:root {
  --ink: var(--graphite);
  --soft-blue: #dbe8ee;
  --deep-blue: #3e7189;
  --wash: #f2eee7;
}

body {
  background: var(--ivory);
  font-size: 17px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .38;
  background:
    radial-gradient(circle at 88% 14%, rgba(91,143,168,.14), transparent 22rem),
    linear-gradient(90deg, transparent 0 49.9%, rgba(37,40,42,.035) 50% 50.1%, transparent 50.2%);
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(247,245,240,.92);
  border-bottom: 1px solid rgba(37,40,42,.15);
  backdrop-filter: blur(18px);
}

.main-nav a { font-size: 14px; }
.header-cta { box-shadow: 6px 6px 0 rgba(91,143,168,.22); }

.hero.page-top {
  min-height: min(900px, calc(100svh - 1px));
  padding-top: clamp(48px, 7vw, 98px);
  padding-bottom: clamp(30px, 5vw, 70px);
  position: relative;
}

.hero.page-top::before,
.subpage-hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: min(50vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(91,143,168,.24);
  border-radius: 50%;
  right: -18vw;
  top: 8%;
}

.hero.page-top::after,
.subpage-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  opacity: .45;
  background-image: linear-gradient(rgba(37,40,42,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(37,40,42,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 48%, transparent);
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 14ch; }
.hero-lead { max-width: 36rem; }
.hero-actions { gap: 22px; }
.button { border-radius: 0; }

.hero-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--graphite);
  box-shadow: 14px 14px 0 rgba(91,143,168,.23);
}

.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, rgba(91,143,168,.3), transparent 56%);
}

.duo-visual {
  height: 100%;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.duo-kicker {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--soft-blue);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.duo-person {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.22);
  background: #1d3039;
}

.duo-person img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.18) saturate(.78) contrast(1.05);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .8s;
}

.duo-person:hover img { transform: scale(1.05); filter: grayscale(0) saturate(.98); }
.duo-person::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(20,28,31,.95)); }
.duo-person span { position: relative; z-index: 1; color: white; font-size: 16px; font-weight: 700; line-height: 1.25; }
.duo-person small { position: absolute; z-index: 1; bottom: 20px; left: 20px; right: 20px; color: var(--soft-blue); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.duo-person span { margin-bottom: 27px; }

.duo-connection {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  font-size: 17px;
  line-height: 1.35;
}

.duo-connection::before,
.duo-connection::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.35); }
.duo-connection b { color: var(--soft-blue); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.proof-strip { position: relative; overflow: hidden; }
.proof-strip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(91,143,168,.12), transparent 55%); pointer-events: none; }
.proof-strip div { position: relative; }
.proof-strip span { font-size: 14px; line-height: 1.45; }

.home-paths { background: transparent; gap: 18px; padding-top: 120px; padding-bottom: 120px; }
.home-paths>a { min-height: 410px; border: 1px solid rgba(37,40,42,.18); background: rgba(247,245,240,.78); box-shadow: none; }
.home-paths>a:nth-child(2) { background: var(--blue); color: white; transform: translateY(38px); }
.home-paths>a:nth-child(2) span { color: var(--soft-blue); }
.home-paths>a:hover { transform: translateY(-10px); background: var(--graphite); color: white; }
.home-paths>a:nth-child(2):hover { transform: translateY(28px); }
.home-paths h2 { max-width: 10ch; font-size: clamp(30px,2.7vw,46px); }

.case-teaser { position: relative; background: var(--sand); overflow: hidden; }
.case-teaser::after { content: ""; position: absolute; width: 34vw; aspect-ratio: 1; border: 1px solid rgba(91,143,168,.4); border-radius: 50%; right: -8vw; bottom: -15vw; }
.case-teaser>div { position: relative; z-index: 1; }
.case-clouds span, .credentials span { background: rgba(247,245,240,.52); font-size: 12px; }

.mini-cta { position: relative; overflow: hidden; }
.mini-cta::before { content: ""; position: absolute; width: 70vw; height: 70vw; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; right: -30vw; top: -34vw; }
.mini-cta>* { position: relative; z-index: 1; }

.subpage-hero { position: relative; min-height: 530px; padding-top: 110px; background: linear-gradient(125deg, rgba(219,232,238,.68), var(--ivory) 55%); overflow: hidden; }
.subpage-hero h1 { max-width: 15ch; }
.subpage-hero>p:last-child { font-size: clamp(18px,1.55vw,22px); }
.subpage-hero.dark { background: var(--graphite); }
.subpage-hero.brand-blue { background: var(--blue); }

.section { padding-top: clamp(76px,10vw,130px); padding-bottom: clamp(76px,10vw,130px); }
.section p, .case-main>p:not(.eyebrow), .about-grid>div>p, .service-page .service-list li { font-size: 16px; line-height: 1.65; }
.section .large-copy { font-size: clamp(21px,2vw,28px); line-height: 1.45; }

.service-page { background: var(--wash); }
.service-page .service-list article { position: relative; padding: 58px 0; transition: padding .35s, background .35s; }
.service-page .service-list article::before { content: ""; position: absolute; left: -28px; right: -28px; top: 0; bottom: 0; z-index: -1; background: transparent; transition: background .35s; }
.service-page .service-list article:hover::before { background: rgba(91,143,168,.13); }
.service-page .service-list h3 { font-size: clamp(28px,3vw,42px); }
.service-page .service-list ul { font-size: 15px; }

.industry-section { background: var(--graphite); }
.industry-grid div { transition: background .35s, transform .35s; }
.industry-grid div:hover { background: rgba(91,143,168,.22); transform: translateY(-4px); }
.steps.process-timeline .process-number { box-shadow: 0 0 0 8px rgba(91,143,168,.1); }
.scaling-section { background: var(--graphite); }

.about-content-section { background: var(--sand); }
.team-grid { gap: 18px; }
.team-grid article { position: relative; overflow: hidden; background: rgba(247,245,240,.86); border: 1px solid rgba(37,40,42,.12); box-shadow: 10px 10px 0 rgba(91,143,168,.13); }
.team-grid article .portrait { width: 210px; height: 290px; }
.team-grid article:nth-child(2) { transform: translateY(46px); }

.values-band { gap: 0; }
.values-band div { padding: 0 28px; }
.values-band h3 { font-size: 24px; }
.values-band p { font-size: 15px; line-height: 1.6; }

.contact-page { background: linear-gradient(135deg, var(--sand), #f7f5f0 58%, var(--soft-blue)); }
.contact-form { border-top: 4px solid var(--blue); box-shadow: 16px 16px 0 rgba(37,40,42,.1); }
.contact-form label, .contact-expect div p { font-size: 14px; }

.cookie-consent {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 100;
  width: min(460px, calc(100vw - 36px));
  padding: 24px;
  color: var(--ivory);
  background: var(--graphite);
  box-shadow: 14px 14px 0 rgba(91,143,168,.42);
  border: 1px solid rgba(255,255,255,.22);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent h2 { font-size: 20px; margin: 0 0 9px; }
.cookie-consent p { color: #d6dfe2; margin: 0; font-size: 14px; line-height: 1.55; }
.cookie-consent a { color: white; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cookie-actions button { cursor: pointer; min-height: 44px; padding: 10px 15px; border: 1px solid rgba(255,255,255,.65); color: white; background: transparent; font-weight: 700; }
.cookie-actions .cookie-accept { background: var(--blue); border-color: var(--blue); }
.cookie-actions button:hover { background: white; color: var(--graphite); }
.cookie-settings { margin-left: auto; font-size: 13px; }

@media (max-width: 1050px) {
  .hero.page-top { min-height: auto; }
  .home-paths>a:nth-child(2), .home-paths>a:nth-child(2):hover { transform: none; }
  .team-grid article:nth-child(2) { transform: none; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .site-header { position: sticky; }
  .hero.page-top { padding-top: 34px; }
  .hero-copy h1 { max-width: 10ch; font-size: clamp(47px, 13vw, 62px); }
  .hero-lead { font-size: 18px; line-height: 1.55; }
  .duo-visual { min-height: 0; grid-template-rows: auto 270px auto; gap: 8px; }
  .duo-person { min-height: 270px; padding: 12px; }
  .duo-person small { left: 12px; right: 12px; bottom: 12px; font-size: 9px; }
  .duo-person span { margin-bottom: 24px; font-size: 14px; }
  .duo-connection { font-size: 14px; gap: 8px; }
  .duo-connection b { font-size: 10px; }
  .proof-strip span { font-size: 15px; }
  .home-paths { padding: 70px 20px; gap: 12px; }
  .home-paths>a { min-height: 260px; }
  .home-paths h2 { font-size: 31px; }
  .subpage-hero { min-height: 455px; padding-top: 82px; padding-bottom: 56px; }
  .subpage-hero h1 { font-size: 46px; }
  .subpage-hero>p:last-child { font-size: 18px; }
  .section p, .case-main>p:not(.eyebrow), .about-grid>div>p, .service-page .service-list li { font-size: 16px; }
  .service-page .service-list article { padding: 37px 0; }
  .service-page .service-list h3 { font-size: 29px; }
  .service-page .service-list ul { font-size: 15px; gap: 12px; }
  .team-grid article .portrait { width: 100%; height: 300px; }
  .values-band h3 { font-size: 22px; }
  .cookie-consent { padding: 20px; }
  .cookie-settings { margin-left: 0; width: 100%; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .duo-person img, .home-paths>a, .industry-grid div, .service-page .service-list article { transition: none; }
}
