/* ============================================================
   wemark studio — landing page
   Brand: warm editorial. Walnut ink, cream/white grounds,
   linen surfaces, burgundy accent (≤5%).
   Type: Domaine Display Narrow (display), Lexend Deca (everything else)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Domaine Display Narrow";
  src: url("/assets/fonts/DomaineDispNar-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Domaine Display Narrow";
  src: url("/assets/fonts/DomaineDispNar-RegularItalic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Domaine Display Narrow";
  src: url("/assets/fonts/DomaineDispNar-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Domaine Display Narrow";
  src: url("/assets/fonts/DomaineDispNar-Semibold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Domaine Display Narrow";
  src: url("/assets/fonts/DomaineDispNar-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lexend Deca";
  src: url("/assets/fonts/LexendDeca-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lexend Deca";
  src: url("/assets/fonts/LexendDeca-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lexend Deca";
  src: url("/assets/fonts/LexendDeca-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lexend Deca";
  src: url("/assets/fonts/LexendDeca-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --white:    #FFFFFF;
  --cream:    #F7EFDD;
  --linen:    #E3C0A6;
  --camel:    #977658;
  --cocoa:    #735746;
  --walnut:   #2F1B11;
  --walnut-deep: #200F08;
  --burgundy: #7C2D2A;

  --linen-soft: #EFDFCF;   /* tints derived from palette for surfaces */
  --line:       rgba(47, 27, 17, 0.14);
  --line-soft:  rgba(47, 27, 17, 0.08);

  --display: "Domaine Display Narrow", Georgia, serif;
  --sans: "Lexend Deca", system-ui, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 6rem);
  --maxw: 1320px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--walnut);
  background: var(--white);
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--camel);
}

/* Display headline base */
.display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--walnut);
  text-wrap: balance;
}
.accent-word { color: var(--burgundy); font-style: italic; font-weight: 500; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; column-gap: 2.2rem;
  min-height: 100px;
  padding-block: 8px;
  /* align nav content with the centered .wrap content box at all widths */
  padding-inline: calc((100% - min(100%, var(--maxw))) / 2 + var(--gutter));
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease, color .4s ease;
  /* permanent light bar so the single dark wemark wordmark reads everywhere */
  background: rgba(247, 239, 221, 0.9);
  backdrop-filter: blur(14px);
  color: var(--walnut);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav.scrolled {
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.8rem;
}
.nav__links { display: flex; gap: 1.6rem; align-items: center; order: 2; justify-self: start; }
.nav__links a {
  font-size: 0.85rem; font-weight: 400; color: inherit; opacity: .82;
  letter-spacing: 0.01em; transition: opacity .2s; white-space: nowrap;
}
.nav__links a:hover { opacity: 1; }
.nav__brand { order: 1; justify-self: start; line-height: 0; display: block; }
.nav__brand img { height: 38px; width: auto; transition: height .4s ease; }
.nav.scrolled .nav__brand img { height: 32px; }
.nav__right { order: 3; justify-self: end; display: flex; gap: 1.4rem; align-items: center; }
.nav__phone { display: inline-flex; align-items: baseline; gap: .5rem; color: inherit; white-space: nowrap; opacity: .92; transition: opacity .2s; }
.nav__phone:hover { opacity: 1; }
.nav__phone .lab { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: .65; }
.nav__phone .num { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  padding: 0.78rem 1.5rem; border-radius: 100px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  letter-spacing: 0.005em; white-space: nowrap;
}
.btn--solid { background: var(--burgundy); color: var(--cream); }
.btn--solid:hover { background: var(--walnut); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--walnut); border-color: var(--line); }
.btn--outline:hover { border-color: var(--walnut); background: var(--walnut); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--walnut); padding-inline: 0; }
.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.84rem; }

.nav__login { font-size: 0.86rem; color: inherit; opacity: .82; transition: opacity .2s; }
.nav__login:hover { opacity: 1; }

/* mobile menu toggle (hamburger) — injected by JS, hidden on desktop */
.nav__toggle {
  display: none; order: 4; justify-self: end;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 11px;
  color: var(--walnut); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle:hover { background: rgba(47,27,17,0.05); }
.nav__toggle span { position: relative; display: block; width: 19px; height: 1.7px; background: currentColor; border-radius: 2px; transition: background .2s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 19px; height: 1.7px; background: currentColor; border-radius: 2px; transition: transform .25s ease; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.open .nav__toggle span { background: transparent; }
.nav.open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - 100px);
  margin-top: 100px;
  background: var(--linen-soft);
  color: var(--walnut);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
/* no vignette — keep the right side of the photo fully clean */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: none;
}

/* full-bleed background image — interactive image-slot (double-click to reframe) */
.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--linen-soft); }
.hero__bg image-slot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero__ph {
  position: absolute; inset: 0;
  background-color: #3A2417;
  background-image:
    repeating-linear-gradient(45deg, rgba(247,239,221,0.05) 0 16px, rgba(247,239,221,0) 16px 32px);
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.hero__ph-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(247,239,221,0.6);
  border: 1px solid rgba(247,239,221,0.2); border-radius: 6px;
  padding: .45rem .75rem; margin: 1.4rem;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(239,223,207,0.96) 0%, rgba(239,223,207,0.8) 24%, rgba(239,223,207,0.36) 44%, rgba(239,223,207,0) 60%),
    linear-gradient(0deg, rgba(239,223,207,0.8) 0%, rgba(239,223,207,0.16) 22%, rgba(239,223,207,0) 40%);
}

/* left content */
.hero__inner { flex: 1; display: flex; align-items: center; }
.hero__content { position: relative; z-index: 3; max-width: 40rem; padding-top: 4rem; }
.hero__tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 0.82rem; color: var(--cocoa); margin-bottom: 1.7rem; letter-spacing: .01em;
}
.hero__tag .check {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(151,118,88,0.6);
  display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; color: var(--burgundy);
}
.hero h1 {
  font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -0.012em;
  color: var(--walnut);
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  margin-bottom: 1.6rem; text-wrap: balance;
}
.hero h1 .accent-word { color: var(--burgundy); }
.hero__sub {
  font-size: 1.04rem; line-height: 1.6; color: var(--cocoa);
  max-width: 30em; margin-bottom: 2.2rem;
}
.hero__cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero .btn--ghost-light {
  background: transparent; color: var(--walnut);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.78rem 1.5rem; font-size: .9rem; font-weight: 500;
  transition: background .25s, border-color .25s;
}
.hero .btn--ghost-light:hover { background: var(--walnut); color: var(--cream); border-color: var(--walnut); }
.hero__support {
  margin-top: 1.5rem; font-size: 0.85rem; color: var(--camel);
  max-width: 30em; line-height: 1.55;
}
.hero__support strong { color: var(--walnut); font-weight: 500; }

/* bottom stat strip */
.hero__stats {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-bottom: clamp(1.4rem, 3vh, 2.4rem);
}
.hstat { padding: 1.4rem 1.6rem 0 0; }
.hstat + .hstat { border-left: 1px solid var(--line); padding-left: 1.8rem; }
.hstat__k { font-size: 0.78rem; font-weight: 500; color: var(--walnut); margin-bottom: .35rem; letter-spacing: .01em; }
.hstat__v { font-size: 0.86rem; color: var(--cocoa); line-height: 1.45; }

/* ============================================================
   The two arms — slim framing line under the hero
   ============================================================ */
.arms-line {
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(1.7rem, 4.5vh, 3rem);
}
.arms-line__txt {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.5;
  color: var(--cocoa); max-width: 50rem; margin: 0 auto;
  text-align: center; text-wrap: balance; letter-spacing: -0.005em;
}
.arms-line__txt b { font-weight: 500; color: var(--walnut); }
.arms-line__txt a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .25s, color .25s;
}
.arms-line__txt a:hover { border-color: var(--burgundy); }
.arms-line__txt a:hover b { color: var(--burgundy); }

/* ============================================================
   Photography — contained (never cropped), on a cream mat
   ============================================================ */
.figure {
  margin: 0; overflow: hidden; border-radius: 16px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.1rem, 2.4vw, 2rem);
}
.figure img { display: block; width: auto; max-width: 100%; max-height: 540px; height: auto; border-radius: 7px; }
.problem__fig .ph, .close-cta__fig .ph { width: 100%; border-radius: 8px; }
.ph--portrait { aspect-ratio: 4 / 5; }
/* real photo filling a full-bleed figure (overrides the contained .figure img rule) */
.problem__fig .ph__img, .close-cta__fig .ph__img, .why__fig .ph__img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: cover; border-radius: 0;
}
.ph--square { aspect-ratio: 1 / 1; width: 100%; border-radius: 9px; }
/* draggable image component fills its .ph container (double-click to reframe) */
.ph image-slot { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* Problem: full-height portrait (no frame) + text */
.problem__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem,5vw,4.5rem); align-items: stretch; }
.problem__fig { margin: 0; border-radius: 16px; overflow: hidden; background: var(--linen-soft); padding: 0; }
.problem__fig .ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }

/* Intelligence: full-width intro (no image) */
.intel__top { max-width: 60rem; }
.intel__top h2 { max-width: 18ch; }

/* Closing CTA: full-height portrait (no frame) + text */
.close-cta__grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem,5vw,4.5rem); align-items: stretch; text-align: left; }
.close-cta__fig {
  margin: 0; border-radius: 18px; overflow: hidden;
  background: var(--linen-soft); padding: 0;
}
.close-cta__fig .ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.close-cta.has-split { text-align: left; }
.close-cta.has-split h2, .close-cta.has-split .close-cta__body { margin-left: 0; }

/* ============================================================
   Image placeholders
   ============================================================ */
.ph {
  position: relative; overflow: hidden;
  background-color: var(--linen);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(47,27,17,0.05) 0 11px,
    rgba(47,27,17,0.00) 11px 22px
  );
  display: flex; align-items: flex-end;
  border: 1px solid var(--line-soft);
}
.ph__label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--cocoa);
  background: rgba(247,239,221,0.78);
  padding: .4rem .7rem; margin: .9rem;
  border: 1px solid var(--line-soft);
}

/* ============================================================
   Generic section
   ============================================================ */
.sec { padding-block: clamp(5rem, 11vh, 9rem); }
.sec--cream { background: var(--cream); }
.sec--white { background: var(--white); }
.sec--walnut { background: var(--walnut); color: var(--cream); }

.sec-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.sec-head__ey { margin-bottom: 1.1rem; }
.sec-num {
  font-family: var(--display); font-weight: 400;
  font-size: 0.95rem; color: var(--camel); letter-spacing: 0.05em;
}

/* PROBLEM */
.problem h2 { font-size: clamp(2rem, 3.9vw, 3.3rem); max-width: 16ch; }
.problem__body { display: grid; gap: 1.4rem; }
.problem__body p { color: var(--cocoa); font-size: 1.04rem; line-height: 1.65; max-width: 40em; }
.problem__body p:first-child { color: var(--walnut); font-size: 1.12rem; }

/* WHO WE ARE */
.who { background: var(--cream); color: var(--walnut); }
.who .eyebrow { color: var(--camel); }
.who .sec-num { color: var(--camel); }
.who h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem,3.9vw,3.3rem); line-height: 1.05; color: var(--walnut); max-width: 18ch; letter-spacing: -0.01em; }
.who__accent { color: var(--burgundy); font-style: italic; }
.who__body { display: grid; gap: 1.4rem; }
.who__body p { color: var(--cocoa); font-size: 1.04rem; line-height: 1.65; max-width: 40em; }
.who__media { margin-top: 3.5rem; height: clamp(280px, 38vh, 440px); }

/* DISCIPLINES */
.disc__top { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,5rem); align-items: end; margin-bottom: 3.5rem; }
.disc h2 { font-size: clamp(2rem, 3.9vw, 3.3rem); max-width: 15ch; }
.disc__intro { color: var(--cocoa); font-size: 1.04rem; max-width: 36em; }
.disc__list { border-top: 1px solid var(--line); }
.disc-row {
  display: grid;
  grid-template-columns: 5rem 1fr 2.4fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s ease, background .35s ease;
}
.disc-row:hover { padding-left: 1.2rem; background: linear-gradient(90deg, rgba(124,45,42,0.05), transparent 60%); }
.disc-row__num { font-family: var(--display); font-size: 1.6rem; color: var(--camel); font-weight: 400; }
.disc-row:hover .disc-row__num { color: var(--burgundy); }
.disc-row__title { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; color: var(--walnut); letter-spacing: -0.01em; }
.disc-row__desc { color: var(--cocoa); font-size: 1rem; line-height: 1.6; max-width: 44em; }
.disc__more { margin-top: 2.6rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 0.95rem; font-weight: 500; color: var(--burgundy);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .25s, border-color .25s;
}
.link-arrow:hover { gap: .85rem; border-color: var(--burgundy); }

/* INTELLIGENCE */
.intel { background: var(--linen-soft); color: var(--walnut); }
.intel .eyebrow { color: var(--camel); }
.intel .sec-num { color: var(--camel); }
.intel h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem,3.9vw,3.3rem); line-height: 1.05; color: var(--walnut); max-width: 16ch; letter-spacing: -0.01em; }
.intel__lead { color: var(--cocoa); font-size: 1.06rem; line-height: 1.65; max-width: 40em; margin-top: 1.4rem; }
.intel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
@media (max-width: 1200px) { .intel__grid { grid-template-columns: repeat(2, 1fr); } }
.icard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 1.7rem 1.7rem 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 14px 34px -20px rgba(47,27,17,0.28);
}
.icard__name { font-family: var(--display); font-size: 1.7rem; font-weight: 500; color: var(--walnut); }
.icard__name b { color: var(--burgundy); font-weight: 500; }
.icard__desc { color: var(--cocoa); font-size: 0.95rem; line-height: 1.55; margin-top: .6rem; margin-bottom: 1.6rem; }
.icard__viz { margin-top: auto; }
.intel__more { margin-top: 3rem; }
.intel .link-arrow { color: var(--burgundy); }
.intel .link-arrow:hover { border-color: var(--burgundy); }

/* mini UI mockups inside cards (light card bg) */
.ui {
  background: var(--cream); color: var(--walnut);
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--line-soft); border-bottom: none;
  padding: 0.95rem; font-size: 0.78rem;
  box-shadow: 0 -2px 18px rgba(47,27,17,0.06);
}
.ui__bar { display: flex; align-items: center; gap: .4rem; margin-bottom: .8rem; }
.ui__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--linen); }
.ui__title { font-weight: 600; font-size: 0.72rem; letter-spacing: 0.02em; color: var(--cocoa); margin-left: auto; }

/* Loop viz */
.loop-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 7px; background: var(--white); margin-bottom: .4rem; border: 1px solid var(--line-soft); }
.loop-row .stars { color: var(--burgundy); letter-spacing: 1px; font-size: .8rem; }
.loop-row .tag { margin-left: auto; font-size: .62rem; font-weight: 600; padding: .15rem .45rem; border-radius: 5px; letter-spacing: .03em; }
.tag--pub { background: rgba(124,45,42,0.12); color: var(--burgundy); }
.tag--priv { background: rgba(47,27,17,0.08); color: var(--cocoa); }

/* Ring viz */
.ring-bubble { padding: .55rem .7rem; border-radius: 10px; font-size: .74rem; line-height: 1.4; margin-bottom: .45rem; max-width: 85%; }
.ring-bubble.them { background: var(--white); border: 1px solid var(--line-soft); color: var(--cocoa); }
.ring-bubble.us { background: var(--burgundy); color: var(--cream); margin-left: auto; }
.ring-meta { font-size: .6rem; color: var(--camel); text-align: center; margin-bottom: .55rem; letter-spacing: .04em; }

/* Dashboard viz */
.dash-stat { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; }
.dash-stat .v { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--walnut); }
.dash-stat .l { font-size: .66rem; color: var(--camel); text-transform: uppercase; letter-spacing: .08em; }
.dash-bars { display: flex; align-items: flex-end; gap: .35rem; height: 56px; }
.dash-bars span { flex: 1; background: var(--linen); border-radius: 3px 3px 0 0; }
.dash-bars span.hi { background: var(--burgundy); }

/* HOW IT WORKS */
.how__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.how h2 { font-size: clamp(2rem, 3.9vw, 3.3rem); max-width: 15ch; }
.how__body { color: var(--cocoa); font-size: 1.04rem; line-height: 1.65; max-width: 40em; margin-top: 1.6rem; display: grid; gap: 1.3rem; }
.phases { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.phase { border: 1px solid var(--line); border-radius: 14px; padding: 2.2rem; background: var(--white); position: relative; }
.sec--cream .phase { background: var(--white); }
.phase__k { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.phase__k .n { font-family: var(--display); font-size: 1rem; }
.phase__t { font-family: var(--display); font-size: 1.85rem; font-weight: 500; color: var(--walnut); margin-bottom: .7rem; letter-spacing: -0.01em; }
.phase__d { color: var(--cocoa); font-size: 0.98rem; line-height: 1.6; }
.phase__tag { margin-top: 1.4rem; font-size: 0.8rem; color: var(--camel); padding-top: 1rem; border-top: 1px solid var(--line-soft); }

/* WHY IT MATTERS */
.why { background: var(--white); }
.why__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: stretch; }
.why__lead { align-self: center; }
.why h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.06;
  letter-spacing: -0.012em; max-width: 16ch; margin-top: 1.1rem;
  text-wrap: balance;
}
.why__body {
  color: var(--cocoa); font-size: 1.08rem; line-height: 1.7;
  max-width: 46em; margin-top: 1.8rem;
  display: grid; gap: 1.3rem;
}
.why__fig { margin: 0; border-radius: 16px; overflow: hidden; background: var(--linen-soft); min-height: 340px; }
.why__fig .ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }

/* CLOSING CTA */
.close-cta { background: var(--walnut); color: var(--cream); text-align: center; padding-block: clamp(6rem, 14vh, 11rem); }
.close-cta .eyebrow { color: var(--linen); margin-bottom: 1.4rem; }
.close-cta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.04; color: var(--cream); max-width: 16ch; margin: 0 auto 1.6rem; letter-spacing: -0.012em; }
.close-cta__body { color: rgba(247,239,221,0.82); font-size: 1.06rem; line-height: 1.65; max-width: 46ch; margin: 0 auto 2.6rem; }
.close-cta .btn--solid { background: var(--burgundy); color: var(--cream); }
.close-cta .btn--solid:hover { background: var(--walnut); color: var(--cream); }
.close-cta__note { margin-top: 1.5rem; font-size: 0.84rem; color: rgba(247,239,221,0.6); }

/* FOOTER */
.footer { background: var(--walnut); color: var(--cream); padding-block: clamp(3.5rem, 7vh, 5.5rem) 2rem; border-top: 1px solid rgba(247,239,221,0.12); }
.footer__top {
  display: grid; grid-template-columns: 1.15fr 1.85fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
  border-bottom: 1px solid rgba(247,239,221,0.12);
}
.footer__brand { display: inline-block; line-height: 0; margin-bottom: 1.6rem; }
.footer__brand img { height: 52px; width: auto; }
.footer__blurb { color: rgba(247,239,221,0.7); font-size: 0.98rem; line-height: 1.65; max-width: 34ch; margin-bottom: 1.8rem; }
.footer .footer__lead .btn--solid { background: var(--burgundy); color: var(--cream); }
.footer .footer__lead .btn--solid:hover { background: var(--linen); color: var(--walnut); }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.footer__h { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--linen); margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer__col a { font-size: 0.95rem; color: rgba(247,239,221,0.74); transition: color .2s; }
.footer__col a:hover { color: var(--cream); }
.footer__social { display: flex; gap: 1.1rem; margin-top: 1.4rem; }
.footer__social a { font-size: 0.85rem; color: rgba(247,239,221,0.6); border-bottom: 1px solid rgba(247,239,221,0.25); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.footer__social a:hover { color: var(--linen); border-color: var(--linen); }
.footer__social a.icon { border-bottom: none; padding-bottom: 0; display: inline-flex; color: rgba(247,239,221,0.72); }
.footer__social a.icon:hover { color: var(--linen); }
.footer__social a.icon svg { display: block; width: 22px; height: 22px; }

.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.8rem; }
.footer__copy { font-size: 0.84rem; color: rgba(247,239,221,0.55); }
.footer__legal { display: flex; gap: 1.6rem; }
.footer__legal a { font-size: 0.84rem; color: rgba(247,239,221,0.6); transition: color .2s; }
.footer__legal a:hover { color: var(--linen); }

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* tablet portrait: stack multi-column content to match interior pages */
  .sec-head, .disc__top, .who__split { grid-template-columns: 1fr; }
  .problem__grid, .intel__top, .close-cta__grid { grid-template-columns: 1fr; }
  .how__grid, .why__grid { grid-template-columns: 1fr; }
  .why__fig { min-height: 300px; }
  .close-cta__fig { order: 2; }
  .intel__grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .disc-row { grid-template-columns: 3rem 1fr; }
  .disc-row__desc { grid-column: 2; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding-bottom: 0; }
  .hero__inner { padding-top: 7rem; }
  .hero__content { padding-top: 0; padding-bottom: 3rem; max-width: none; }
  .hero__sub, .hero__support { max-width: 38em; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__brand { justify-self: start; }
  .nav__toggle { display: inline-flex; }
  .nav__right { display: none; }
  /* links become a slide-down panel anchored under the bar */
  .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(247,239,221,0.98); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-soft);
    box-shadow: 0 18px 36px -20px rgba(47,27,17,0.45);
    padding: 0.4rem var(--gutter) 1rem;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .32s ease, opacity .2s ease;
  }
  .nav.open .nav__links { max-height: 78vh; opacity: 1; pointer-events: auto; }
  .nav__links a {
    padding: 0.95rem 0.2rem; font-size: 1.02rem; opacity: 1;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__links a:last-child { border-bottom: none; }
  body { font-size: 16px; }
}
@media (max-width: 560px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hstat + .hstat { border-left: none; padding-left: 0; border-top: 1px solid rgba(247,239,221,0.16); }
  .nav__right .nav__login { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}

/* wemark: entrance animation disabled — content visible immediately (no scroll-reveal) */
.reveal, .reveal .shot, .reveal .shot--float { opacity: 1 !important; transform: none !important; }
/* case study: keep entrance-animated elements visible immediately (animation off) */
[data-stagger] > * { opacity: 1 !important; transform: none !important; }
.cs-hero.preanim .cs-hero__crumb, .cs-hero.preanim .cs-hero__title,
.cs-hero.preanim .cs-hero__title-sub, .cs-hero.preanim .cs-hero__lead,
.cs-hero.preanim .cs-hero__tags { opacity: 1 !important; transform: none !important; }
/* converted image-slot -> <img>: fill the .ph frame absolutely (as the original custom element did) */
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }

/* free-audit CTA: a button in the bar on desktop (.nav__right), a menu item on phones (.nav__cta) */
.nav__links .nav__cta { display: none; }
@media (max-width: 720px) { .nav__links .nav__cta { display: block; } }
