:root {
  --ink: #111816;
  --coal: #1f2927;
  --deep: #0e1715;
  --paper: #f5f1e8;
  --mist: #dce6e0;
  --teal: #2b6c67;
  --teal-dark: #164642;
  --brass: #b58955;
  --clay: #a15f4e;
  --line: rgba(17, 24, 22, 0.14);
  --white: #fffaf0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(245, 241, 232, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 56px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 999px;
  background: rgba(10, 18, 22, 0.55);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
  font-size: 0.72rem;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  border-color: rgba(17, 24, 22, 0.12);
  background: rgba(17, 24, 22, 0.08);
  box-shadow: none;
}

.brand-mark img {
  width: 74px;
  max-width: none;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.88rem;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(780px, 92vh);
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 15, 14, 0.86) 0%, rgba(9, 15, 14, 0.58) 43%, rgba(9, 15, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(9, 15, 14, 0.7) 0%, rgba(9, 15, 14, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(760px, calc(100% - 36px));
  padding: 132px clamp(18px, 6vw, 72px) 76px;
}

.hero-logo {
  position: absolute;
  top: clamp(96px, 15vw, 142px);
  right: clamp(30px, 7vw, 96px);
  z-index: 1;
  width: clamp(170px, 18vw, 250px);
  opacity: 0.42;
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.5vw, 7.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.8vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

p {
  line-height: 1.7;
}

.hero-copy {
  max-width: 570px;
  margin-bottom: 32px;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.button.primary {
  color: var(--deep);
  background: var(--brass);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 250, 240, 0.52);
}

.band {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 6vw, 72px);
}

.intro {
  background: var(--paper);
}

.intro-grid,
.section-heading,
.portfolio-layout,
.contact-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 8vw, 96px);
  align-items: start;
}

.intro-copy p {
  color: rgba(17, 24, 22, 0.74);
  font-size: 1.05rem;
}

.signal-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding: 16px 0 16px 28px;
  border-top: 1px solid var(--line);
  position: relative;
}

.signal-list li::before {
  position: absolute;
  left: 0;
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--coal);
  color: var(--white);
}

.metrics div {
  min-height: 180px;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid rgba(255, 250, 240, 0.16);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  margin-bottom: 34px;
  color: var(--brass);
  font-size: 0.9rem;
}

.metrics span {
  display: block;
  max-width: 240px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.services {
  background: #eef0e9;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
  margin-bottom: 46px;
}

.section-heading p {
  margin-bottom: 0;
  color: rgba(17, 24, 22, 0.68);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.service-card {
  min-height: 290px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.service-card p {
  color: rgba(17, 24, 22, 0.66);
}

.service-index {
  display: block;
  margin-bottom: 84px;
  color: var(--teal);
  font-weight: 850;
}

.accent-card {
  color: var(--white);
  background: var(--teal-dark);
}

.accent-card p {
  color: rgba(255, 250, 240, 0.76);
}

.accent-card .service-index {
  color: var(--brass);
}

.portfolio {
  color: var(--white);
  background: var(--deep);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(40px, 8vw, 96px);
}

.partner-columns {
  display: grid;
  gap: 0;
}

.partner-columns div {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 250, 240, 0.18);
}

.partner-columns p {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.68);
}

.contact {
  padding: clamp(60px, 8vw, 104px) clamp(18px, 6vw, 72px);
  background: var(--paper);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 8px;
  color: var(--white);
  background: var(--coal);
}

.contact-panel p {
  max-width: 620px;
  color: rgba(255, 250, 240, 0.72);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.86rem;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 250, 240, 0.08);
  outline: none;
}

.contact-form input {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brass);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 72px);
  border-top: 1px solid var(--line);
  color: rgba(17, 24, 22, 0.62);
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .menu-button {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 24px 60px rgba(17, 24, 22, 0.18);
    transform: translateY(-12px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .intro-grid,
  .section-heading,
  .portfolio-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    display: none;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 48px;
    height: 36px;
  }

  .brand-mark img {
    width: 66px;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(9, 15, 14, 0.86), rgba(9, 15, 14, 0.52)),
      linear-gradient(0deg, rgba(9, 15, 14, 0.76), rgba(9, 15, 14, 0.1));
  }

  .hero-content {
    padding: 118px 18px 52px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .button {
    width: 100%;
  }

  .metrics,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .metrics div {
    min-height: 142px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 240, 0.16);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .service-card {
    min-height: 230px;
  }

  .service-index {
    margin-bottom: 48px;
  }

  .contact-panel {
    padding: 28px 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}
