:root {
  --ink: #17211f;
  --ink-soft: #2e3d39;
  --muted: #63716d;
  --paper: #f6f8f5;
  --mist: #e9efec;
  --white: #ffffff;
  --teal: #0f6f65;
  --teal-dark: #074d47;
  --gold: #a9833f;
  --line: #d8e0da;
  --radius: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  height: 3px;
  background: var(--teal);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(216, 224, 218, 0.84);
  background: var(--paper);
  transition:
    min-height 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  min-height: 66px;
  background: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 111, 101, 0.26);
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 112px);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(10, 20, 18, 0.88) 0%, rgba(10, 20, 18, 0.62) 38%, rgba(10, 20, 18, 0.18) 74%),
    url("assets/hero-consulting.png") center / cover no-repeat;
}

.hero-overlay {
  z-index: -1;
  background:
    radial-gradient(circle at 18% 16%, rgba(15, 111, 101, 0.42), transparent 28%),
    linear-gradient(180deg, transparent 70%, rgba(23, 33, 31, 0.34) 100%);
}

.hero-content {
  display: flex;
  min-height: calc(100svh - 112px);
  max-width: var(--max-width);
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(56px, 8vw, 94px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 1.75vw, 1.42rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 750;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.74);
  background: transparent;
}

.button.full {
  width: 100%;
}

.hero-points {
  display: grid;
  max-width: 780px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(36px, 6vw, 64px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-points div {
  min-width: 0;
  padding: 18px 22px 18px 0;
}

.hero-points div + div {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-points dt {
  color: var(--white);
  font-weight: 800;
}

.hero-points dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.scroll-cue {
  display: inline-flex;
  width: 32px;
  height: 56px;
  margin-top: clamp(24px, 4vw, 42px);
  align-items: flex-start;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
}

.scroll-cue span {
  display: block;
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: cue-drop 1500ms ease-in-out infinite;
}

@keyframes cue-drop {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(28px);
  }
}

.band {
  background: var(--white);
}

.section,
.intro,
.sticky-story,
.contact-section {
  scroll-margin-top: 92px;
}

.intro {
  padding-block: clamp(56px, 8vw, 92px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.7vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.13rem;
  line-height: 1.25;
}

.intro-copy p,
.process-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.intro-copy p + p {
  margin-top: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sticky-story {
  position: relative;
  overflow: visible;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(7, 77, 71, 0.96), rgba(18, 28, 26, 0.98)),
    var(--ink);
}

.sticky-story::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 68%);
  pointer-events: none;
}

.sticky-story-media {
  position: sticky;
  top: clamp(86px, 11vh, 116px);
  z-index: 1;
  grid-area: media;
  align-self: start;
  pointer-events: none;
}

.sticky-frame {
  position: relative;
  width: 100%;
  height: min(66svh, 620px);
  min-height: 460px;
  overflow: hidden;
  opacity: 1;
  transform: none;
}

.sticky-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.02);
  transform: scale(1.02);
}

.sticky-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(8, 18, 16, 0.38) 100%);
}

.sticky-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.sticky-caption span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
}

.sticky-caption strong {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.1;
}

.sticky-story-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.9fr);
  grid-template-areas:
    "lead media"
    "steps media";
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
  padding-block: clamp(82px, 10vw, 128px);
}

.sticky-story-lead {
  grid-area: lead;
  max-width: 620px;
}

.sticky-story h2 {
  color: var(--white);
}

.sticky-story-steps {
  grid-area: steps;
  display: grid;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.story-step {
  display: grid;
  min-height: 34svh;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-content: center;
  padding: clamp(30px, 5vw, 48px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.62);
  opacity: 0.46;
  transition:
    color 280ms ease,
    opacity 280ms ease,
    transform 280ms ease;
}

.story-step.is-active {
  color: var(--white);
  opacity: 1;
  transform: translateX(12px);
}

.story-step span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
}

.story-step h3 {
  color: inherit;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.story-step p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-heading {
  max-width: 770px;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.section-heading.compact {
  max-width: 720px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card {
  min-height: 236px;
  padding: 26px 26px 28px 0;
  transition:
    transform 180ms ease,
    color 180ms ease;
}

.service-card + .service-card {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.service-card:hover {
  transform: translateY(-2px);
}

.card-number {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.process-band {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 77, 71, 0.96), rgba(23, 33, 31, 0.98)),
    var(--teal-dark);
}

.process-band h2,
.process-band h3 {
  color: var(--white);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.process-copy {
  position: sticky;
  top: 108px;
}

.process-copy p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.76);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  counter-reset: step;
}

.timeline li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
}

.timeline li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline span {
  display: block;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.timeline p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.audience {
  background: var(--white);
}

.audience-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.audience-list div {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.audience-list p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding-block: clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.contact-copy p {
  max-width: 560px;
  margin-top: 20px;
}

address {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink);
  font-style: normal;
  font-weight: 760;
}

address a {
  width: fit-content;
  border-bottom: 1px solid rgba(15, 111, 101, 0.4);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
}

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

.form-note {
  min-height: 1.4em;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 28px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--white);
  font-weight: 750;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-story {
    min-height: auto;
  }

  .sticky-story-media {
    top: 70px;
    height: 48svh;
    margin-bottom: 0;
  }

  .sticky-frame {
    width: min(100%, 760px);
    height: min(42svh, 430px);
    min-height: 320px;
  }

  .sticky-story-content {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "media"
      "steps";
    gap: 34px;
    padding-block: 48px 78px;
  }

  .sticky-story-lead {
    min-height: auto;
  }

  .sticky-story-steps {
    padding-bottom: 0;
  }

  .story-step {
    min-height: 46svh;
    padding: 30px 0;
  }

  .story-step.is-active {
    transform: none;
  }

  .service-card + .service-card {
    padding-left: 0;
    border-left: 0;
  }

  .service-card:nth-child(even) {
    padding-left: 26px;
    border-left: 1px solid var(--line);
  }

  .service-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .split,
  .process-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .process-copy {
    position: static;
  }

  .contact-layout {
    gap: 32px;
  }
}

@media (max-width: 740px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    min-height: 70px;
    padding-inline: 16px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .brand small {
    font-size: 0.73rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    padding: 0;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav a {
    padding: 12px;
  }

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

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: calc(100svh - 134px);
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(10, 20, 18, 0.86) 0%, rgba(10, 20, 18, 0.7) 58%, rgba(10, 20, 18, 0.56) 100%),
      url("assets/hero-consulting.png") 62% center / cover no-repeat;
  }

  .hero-content {
    min-height: calc(100svh - 134px);
    padding-block: 34px 28px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 13.5vw, 3.55rem);
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 1.04rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    min-height: 46px;
    padding-inline: 16px;
  }

  .hero-points {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero-points div {
    padding: 12px 0;
  }

  .hero-points div + div {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .intro,
  .section,
  .sticky-story,
  .contact-section {
    scroll-margin-top: 78px;
  }

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

  .service-card {
    min-height: 0;
    padding: 22px 0;
  }

  .service-card + .service-card,
  .service-card:nth-child(even),
  .service-card:nth-child(n + 3) {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .card-number {
    margin-bottom: 22px;
  }

  .timeline li,
  .audience-list div {
    grid-template-columns: 1fr;
  }

  .timeline li {
    gap: 14px;
  }

  .story-step {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 42svh;
  }

  .sticky-frame {
    min-height: 260px;
  }

  .audience-list div {
    gap: 12px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding-top: 4px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    max-width: 142px;
  }

  .hero-actions {
    display: grid;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  .sticky-frame,
  .story-step {
    opacity: 1;
    transform: none;
  }
}
