/* ==================================================================
   TOPLINE ORIGINATION PARTNERS - landing page
   Single stylesheet. Every colour, font and size is a variable in
   the :root block below, so changing one line changes the whole page.
   Built on the ToplineX design system (brand/colors_and_type.css):
   warm cream ground, Halant serif headlines, Geist body,
   brand blue used sparingly as the single accent.
   ================================================================== */

/* ---------- 1. FONTS ---------- */
@font-face{font-family:"Halant";src:url("assets/fonts/Halant-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Halant";src:url("assets/fonts/Halant-Medium.ttf") format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:"Halant";src:url("assets/fonts/Halant-SemiBold.ttf") format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:"Geist";src:url("assets/fonts/geist-400.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Geist";src:url("assets/fonts/geist-500.ttf") format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:"Geist";src:url("assets/fonts/geist-600.ttf") format("truetype");font-weight:600;font-display:swap}

/* ---------- 2. DESIGN TOKENS ---------- */
:root{
  /* Surfaces, light to dark */
  --paper:      #f6f0e9;   /* SHARED HEX: --tx-cream from the ToplineX brand
                              system. The one light surface on the page. */
  --white:      #ffffff;   /* cards and panels, to lift off --paper */
  --dk:         #111111;   /* SHARED HEX: --tx-ink from the ToplineX brand
                              system, and the black the live site actually
                              uses. Hero, approach panel, results, contact
                              and footer all sit on it. */
  --dk-2:       #1A1A1A;   /* cards on dark */
  --dk-3:       #2A2A2A;   /* hairlines on dark */

  /* Text */
  --ink:        #1b1713;   /* headlines */
  --ink-2:      #4a443d;   /* body */
  --ink-3:      #6F685E;   /* muted labels and captions. Tuned against the
                              cream: 4.86:1 on paper, 5.50:1 on white. */
  --on-dk:      #F1EDE7;   /* body text on dark */
  --on-dk-2:    #a79c90;   /* muted text on dark */

  /* The one accent. Swap this single value to re-tone the whole site
     (e.g. a brass #9A6C55 for a more traditional advisory feel). */
  --accent:     #835B47;   /* Brass. 5.22:1 on the cream, so it is safe on
                              small text. Change this one value to re-tone
                              every accent on the page. */
  --accent-dk:  #C2946F;   /* brass lifted for the dark surfaces */

  /* Lines */
  --line:       #E5DCCE;
  --line-soft:  #EFE8DC;

  /* Type */
  --serif: "Halant", Georgia, "Times New Roman", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Geometry */
  --radius:   4px;         /* restrained: advisory, not SaaS */
  --radius-lg:8px;
  --maxw:     1200px;
  --gutter:   32px;
  --ease:     cubic-bezier(.22,.61,.36,1);
}

/* ---------- 3. BASE ---------- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:clip}
body{
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  letter-spacing:-.05em;
  color:var(--ink-2);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none}
::selection{background:var(--ink);color:var(--paper)}

/* Visible focus ring for keyboard users, invisible for mouse users. */
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
.nav :focus-visible,.hero :focus-visible,.section--dark :focus-visible,
.contact :focus-visible,.foot :focus-visible{outline-color:#fff}

/* ---------- 3b. REVEAL ---------- */
.js-rev .rev{opacity:0;transform:translateY(16px)}
.js-rev .rev.in{opacity:1;transform:none;
  transition:opacity .7s var(--ease),transform .7s var(--ease)}

/* ---------- 4. LAYOUT ---------- */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.wrap--narrow{max-width:820px}
.section{padding:clamp(4.5rem,8vw,8rem) 0}
.section--dark{background:var(--dk);color:var(--on-dk)}
.center{text-align:center}


/* ---------- 5. TYPOGRAPHY ---------- */
h1,h2,h3{font-family:var(--serif);color:var(--ink);font-weight:400;letter-spacing:-.06em}
h1{font-size:clamp(2.4rem,5.4vw,70px);line-height:1.1;text-wrap:balance}
h2{font-size:clamp(2rem,4.3vw,56px);line-height:1.1;text-wrap:balance}
h3{font-size:clamp(1.25rem,1.7vw,1.5rem);line-height:1.1;letter-spacing:-.04em}
h4{font-family:var(--sans);font-weight:600;font-size:1rem;letter-spacing:-.02em;color:var(--ink)}
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4,
.hero h1,.hero h2,.hero h3,.contact h1,.contact h2,.contact h3{color:#fff}

/* The signature move, borrowed from the main ToplineX site:
   one italic accent word inside a headline. Used once per section. */
em.accent{font-style:italic;color:var(--accent);font-weight:400}
.section--dark em.accent,.hero em.accent,.contact em.accent,
.approach-band em.accent{color:var(--accent-dk)}

/* Small uppercase label above a heading */
.eyebrow{
  font-family:var(--sans);font-size:.8rem;font-weight:600;
  letter-spacing:.13em;text-transform:uppercase;
  color:var(--accent);margin-bottom:24px;
  display:flex;align-items:center;gap:.8rem;
}
.eyebrow::before{content:"";width:1.6rem;height:1px;background:currentColor;flex:none}
.center .eyebrow,.contact .eyebrow{justify-content:center}
.section--dark .eyebrow,.hero .eyebrow,.contact .eyebrow,
.approach-band .eyebrow{color:var(--accent-dk)}

.lede{font-size:clamp(1.05rem,1.35vw,1.2rem);color:var(--ink-2);max-width:60ch}
.section--dark .lede,.contact .lede{color:var(--on-dk-2)}
.center .lede{margin-inline:auto}

.shead{
  display:grid;grid-template-columns:1.2fr .8fr;
  column-gap:clamp(2rem,6vw,6rem);align-items:end;
  margin-bottom:clamp(3rem,5vw,4.5rem);
}
.shead .eyebrow{grid-column:1 / -1}
.shead h2{max-width:20ch}
.shead .lede{max-width:36ch;margin:0 0 .2rem;font-size:1.0625rem;line-height:1.7}
/* A head with no supporting line does not need the second column. */
.shead:not(:has(.lede)){grid-template-columns:1fr}

/* ---------- 6. BUTTONS ---------- */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--sans);font-size:.95rem;font-weight:600;letter-spacing:-.01em;
  padding:15px 28px;border-radius:var(--radius);border:1px solid transparent;
  cursor:pointer;transition:transform .2s var(--ease),background .2s var(--ease),
    border-color .2s var(--ease),color .2s var(--ease);
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn--primary{background:var(--ink);color:var(--paper)}
.btn--primary:hover{background:#000}
/* Inverted wherever the surface behind it is dark. */
.nav .btn--primary,.section--dark .btn--primary,
.hero .btn--primary,.contact .btn--primary{background:#fff;color:var(--dk)}
.nav .btn--primary:hover,.section--dark .btn--primary:hover,
.hero .btn--primary:hover,.contact .btn--primary:hover{background:var(--on-dk)}
.btn--ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn--ghost:hover{border-color:var(--ink);background:var(--white)}
.section--dark .btn--ghost,.hero .btn--ghost,.contact .btn--ghost{color:#fff;border-color:var(--dk-3)}
.section--dark .btn--ghost:hover,.hero .btn--ghost:hover,.contact .btn--ghost:hover{
  border-color:var(--on-dk-2);background:rgba(255,255,255,.06)}
.btn .arw{transition:transform .2s var(--ease)}
.btn:hover .arw{transform:translateX(3px)}

.btn-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.center .btn-row{justify-content:center}

/* ---------- 7. NAV ---------- */
.nav{
  position:sticky;top:0;z-index:100;
  background:rgba(17,17,17,.86);backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.nav__inner{display:flex;align-items:center;justify-content:space-between;height:74px;gap:24px}
.nav__brand{display:flex;align-items:center;padding:.5rem 0}
/* The lockup is two lines of type beside the mark, so it needs more height
   than a single-line wordmark would. */
.nav__brand img{height:31px;width:auto}
.nav__links{display:flex;align-items:center;gap:34px}
.nav__links a:not(.nav__cta){font-size:.92rem;font-weight:500;color:var(--on-dk-2);
  padding:.45rem 0;transition:color .18s var(--ease)}
.nav__links a:hover{color:#fff}
.nav__cta{padding:11px 20px;font-size:.88rem}
.nav__burger{display:none;background:none;border:0;cursor:pointer;padding:8px;color:#fff}

/* ---------- 7b. BACKGROUND LAYERS ----------
   A photographic band used as texture rather than as a picture: a
   photograph at low opacity, a near-opaque wash of the surface colour over
   it, and the content above both. At this opacity the image reads as texture
   rather than as a picture, which is the whole point.

   It is an <img> rather than a CSS background so the below-fold one can
   lazy-load and the browser can pick its own decode timing.
   ---------------------------------------------- */
.has-bg{position:relative;isolation:isolate;overflow:hidden}

.band-bg{
  position:absolute;inset:0;z-index:-2;pointer-events:none;
  width:100%;height:100%;object-fit:cover;
  object-position:var(--bg-pos,50% 50%);
  opacity:var(--bg-opacity,.42);
}
.band-wash{
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:var(--wash,linear-gradient(115deg,rgba(17,17,17,.90),rgba(17,17,17,.72)));
}

/* Headlines over a photograph need a little help holding their edge. */
.has-bg h1,.has-bg h2{text-shadow:0 2px 24px rgba(0,0,0,.5)}

/* The hero already carries two radial washes; with a photograph behind them
   they compound into a muddy centre, so they stand down. */
.hero.has-bg::before,.hero.has-bg::after{display:none}

/* ---------- 8. HERO ---------- */
.hero{
  background:var(--dk);color:var(--on-dk);
  padding:clamp(80px,9vw,128px) 0 clamp(72px,7vw,104px);
  position:relative;overflow:hidden;
}
/* Two soft radial washes: depth without an image to download. */
.hero::before,.hero::after{content:"";position:absolute;pointer-events:none;border-radius:50%}
.hero::before{
  width:860px;height:860px;top:-420px;right:-200px;
  background:radial-gradient(circle,rgba(255,247,236,.085) 0%,transparent 66%);
}
.hero::after{
  width:620px;height:620px;bottom:-360px;left:-160px;
  background:radial-gradient(circle,rgba(214,181,142,.09) 0%,transparent 68%);
}
.hero__inner{position:relative;z-index:1}
.hero h1{color:#fff;max-width:19ch}
.hero .lede{margin-top:26px;font-size:clamp(1.08rem,1.5vw,1.28rem);color:var(--on-dk);max-width:58ch}
.hero .btn-row{margin-top:40px}
.hero__note{margin-top:18px;font-size:.84rem;color:var(--on-dk-2)}

/* Stats strip along the bottom of the hero */
.stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:0;
  margin-top:clamp(56px,6vw,80px);
  border-top:1px solid var(--dk-3);
}
.stats--2{grid-template-columns:repeat(2,1fr)}
.stat{padding:30px 32px 0;border-left:1px solid var(--dk-3)}
.stat:first-child{border-left:0;padding-left:0}
.stat__fig{font-family:var(--serif);font-size:clamp(2.1rem,3.4vw,2.9rem);line-height:1.1;
  color:#fff;font-weight:500;letter-spacing:-.06em}
.stat__lab{margin-top:12px;font-size:.88rem;color:var(--on-dk-2);max-width:26ch}

/* ---------- 9. POSITIONING BAND ---------- */
.band{background:var(--paper);border-block:1px solid var(--line);
  padding:clamp(3.5rem,6vw,5.5rem) 0}
.band__inner{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(32px,5vw,72px);align-items:start}
.band h2{font-size:clamp(1.7rem,2.6vw,2.4rem);line-height:1.12;max-width:21ch}
.band p + p{margin-top:16px}

/* ---------- 10. PRACTICE CARDS ---------- */
.practices{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.practice{
  background:var(--white);border:1px solid var(--line);border-radius:12px;
  padding:2.5rem 2.5rem 1rem;display:flex;flex-direction:column;
  transition:border-color .25s var(--ease);
}
.practice:hover{border-color:#D3C7B5}
/* short rule above the practice name */
.practice::before{content:"";display:block;width:2rem;height:2px;background:var(--accent);margin-bottom:1.6rem}
.practice h3{margin-bottom:.7rem}
.practice__sum{font-size:1rem;line-height:1.6;color:var(--ink-3);
  margin-bottom:2rem;max-width:34ch;min-height:4.8em}

/* Sub-services: ruled rows, each with an arrow that fills in on hover. */
.practice__svc{border-top:1px solid var(--line)}
.practice__svc li{border-bottom:1px solid var(--line)}
.practice__svc li:last-child{border-bottom:0}
.practice__svc a{
  position:relative;display:block;padding:1.4rem 3.4rem 1.4rem 0;
  transition:padding-left .25s var(--ease);
}
.practice__svc a:hover{padding-left:.5rem}
.practice__svc b{display:block;font-size:1.0625rem;font-family:var(--serif);font-weight:500;
  letter-spacing:-.02em;color:var(--ink);margin-bottom:.35rem}
.practice__svc span:not(.svc__a){display:block;font-size:.92rem;color:var(--ink-3);
  line-height:1.55;max-width:35ch}
/* Centred on the row rather than pinned to a fixed offset, so it stays put
   whatever length the description runs to. */
.svc__a{
  position:absolute;right:0;top:50%;transform:translateY(-50%);
  width:2.2rem;height:2.2rem;display:grid;place-items:center;
  border:1px solid var(--line);border-radius:50%;
  color:var(--accent);
  transition:background .22s var(--ease),color .22s var(--ease),border-color .22s var(--ease);
}
.practice__svc a:hover .svc__a{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* ---------- 11. APPROACH ---------- */
.approach-band{
  background:var(--dk);color:var(--on-dk);
  margin-inline:clamp(10px,1.05vw,18px);
  border-radius:16px;
  padding-block:clamp(4rem,7vw,6.5rem);
  position:relative;overflow:hidden;
}
.approach-band::before{
  content:"";position:absolute;width:820px;height:820px;top:-460px;right:-220px;
  border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(214,181,142,.10) 0%,transparent 68%);
}
.approach-band > .wrap{position:relative;z-index:1}
.approach-band h2,.approach-band h3{color:#fff}
.approach-band .eyebrow{color:var(--on-dk-2)}
.approach-band .lede{color:var(--on-dk-2)}

/* The rail: each stage hangs off a shared top line, with a node at its start. */
.approach{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;
  margin-top:clamp(3rem,5vw,4rem)}
.appr{position:relative;border-top:1px solid rgba(255,255,255,.26);padding:2rem 2rem 0 0}
.appr + .appr{padding-left:2rem;border-left:1px solid rgba(255,255,255,.12)}
.appr::before{
  content:"";position:absolute;top:-5px;left:0;width:9px;height:9px;
  border-radius:50%;background:var(--accent-dk);
}
.appr + .appr::before{left:-5px}
.appr__num{
  font-family:var(--sans);font-size:.8rem;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--on-dk-2);margin-bottom:1.1rem;
}
.appr h3{font-size:clamp(1.4rem,2vw,1.8rem);line-height:1.1;margin-bottom:1rem}
.appr p{font-size:1rem;line-height:1.75;color:var(--on-dk-2)}
/* Over a photograph the muted tone loses the edge; go a step brighter. */
.has-bg .appr p,.has-bg .stat__lab{color:var(--on-dk)}

/* ---------- 12. PROCESS ---------- */
.process-layout{
  display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr);
  gap:clamp(2.5rem,6vw,6.5rem);align-items:start;
}
/* The whole point of this section: the brief stays put, the stages move. */
.process-heading{position:sticky;top:7.5rem}
.process-heading h2{max-width:14ch;margin-bottom:1.4rem}
.process-heading .lede{max-width:30ch;font-size:1.0625rem;line-height:1.7}

.steps{display:block}
.step{
  display:grid;grid-template-columns:3.4rem minmax(0,1fr);
  gap:clamp(1rem,2vw,1.6rem);align-items:start;
  padding:2.4rem 0;border-top:1px solid var(--line);
}
.step:last-child{border-bottom:1px solid var(--line)}
.step__num{font-family:var(--serif);font-size:2.6rem;line-height:1.1;
  color:var(--ink-3);font-weight:400;letter-spacing:-.06em}
.step__when{font-size:.8rem;font-weight:600;letter-spacing:.11em;text-transform:uppercase;
  color:var(--ink-3);margin-bottom:.7rem}
.step h3{margin-bottom:.8rem}
.step__body--right{grid-column:2}
.step p{font-size:1rem;line-height:1.7}

/* The two-column note under each stage: what you do, what we hand over. */
.step__meta{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:1.6rem;
  padding-top:1.2rem;border-top:1px solid var(--line-soft)}
.step__meta dt{font-size:.7rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-3);margin-bottom:6px}
.step__meta dd{margin:0;font-size:.92rem;color:var(--ink-2)}

/* ---------- 13. PROOF ---------- */
.cases{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.case{
  background:var(--dk-2);border:1px solid var(--dk-3);border-radius:12px;
  padding:2.25rem 2rem;display:flex;flex-direction:column;
  transition:border-color .25s var(--ease);
}
.case:hover{border-color:rgba(255,255,255,.2)}
.case__tag{font-size:.72rem;font-weight:600;letter-spacing:.13em;text-transform:uppercase;
  color:var(--on-dk-2);margin-bottom:20px}
.case h3{font-size:1.45rem;margin-bottom:10px}
.case__sub{font-size:.82rem;font-weight:600;letter-spacing:.06em;color:var(--on-dk);
  margin-bottom:18px}
.case__body{font-size:.92rem;color:var(--on-dk-2);margin-bottom:26px}
.case__figs{display:grid;grid-template-columns:repeat(2,1fr);gap:22px 18px;
  padding-top:26px;border-top:1px solid var(--dk-3);margin-top:auto}
.case__fig b{display:block;font-family:var(--serif);font-size:1.75rem;line-height:1.1;
  color:#fff;font-weight:500;letter-spacing:-.06em}
.case__fig span{display:block;margin-top:7px;font-size:.78rem;color:var(--on-dk-2);line-height:1.4}
/* Link through to the full write-up. Rule under the text rather than a
   button, so it reads as a continuation of the card, not a second CTA. */
.case__more{
  display:inline-flex;align-items:center;gap:9px;align-self:flex-start;
  margin-top:24px;padding:.55rem 0 .45rem;
  font-family:var(--sans);font-size:.85rem;font-weight:600;letter-spacing:-.01em;
  color:#fff;border-bottom:1px solid rgba(255,255,255,.3);
  transition:border-color .2s var(--ease);
}
.case__more:hover{border-bottom-color:#fff}
.case__more svg{transition:transform .2s var(--ease)}
.case__more:hover svg{transform:translateX(3px)}

.quote{
  margin-top:20px;background:var(--dk-2);border:1px solid var(--dk-3);
  border-left:2px solid rgba(255,255,255,.28);border-radius:var(--radius-lg);
  padding:2.75rem clamp(1.75rem,4vw,3rem);
}
.quote blockquote{font-family:var(--serif);font-size:clamp(1.15rem,1.9vw,1.5rem);
  line-height:1.4;color:#fff;font-weight:400;letter-spacing:-.04em}
.quote figcaption{margin-top:22px;font-size:.88rem;color:var(--on-dk-2)}
.quote figcaption b{color:var(--on-dk);font-weight:600}

/* ---------- 15. FAQ ---------- */
/* Pure HTML <details>, no JavaScript. */
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{
  display:flex;align-items:flex-start;justify-content:space-between;gap:24px;
  padding:26px 0;cursor:pointer;list-style:none;
  font-family:var(--serif);font-size:clamp(1.05rem,1.5vw,1.25rem);
  color:var(--ink);font-weight:500;transition:color .2s var(--ease);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary .sign{flex:0 0 auto;position:relative;width:14px;height:14px;margin-top:9px}
.faq summary .sign::before,.faq summary .sign::after{
  content:"";position:absolute;background:var(--ink-3);transition:transform .25s var(--ease),background .2s var(--ease)}
.faq summary .sign::before{top:6px;left:0;width:14px;height:2px}
.faq summary .sign::after{top:0;left:6px;width:2px;height:14px}
.faq details[open] summary .sign::after{transform:rotate(90deg)}
.faq summary:hover .sign::before,.faq summary:hover .sign::after{background:var(--ink)}
.faq__a{padding:0 0 28px;max-width:72ch}
.faq__a p + p{margin-top:14px}

/* ---------- 16. CONTACT + FOOTER ---------- */
.contact{background:var(--dk);color:var(--on-dk);padding:clamp(88px,9vw,124px) 0;
  position:relative;overflow:hidden}
.contact::before{content:"";position:absolute;width:760px;height:760px;
  top:-380px;left:50%;transform:translateX(-50%);border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(255,247,236,.075) 0%,transparent 66%)}
.contact__inner{position:relative;z-index:1}
.contact h2{color:#fff}

.foot{background:var(--dk-2);color:var(--on-dk-2);padding:62px 0 34px;
  border-top:1px solid var(--dk-3);font-size:.88rem}
.foot__top{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(2,minmax(0,1fr));
  gap:40px;padding-bottom:40px;border-bottom:1px solid var(--dk-3)}
.foot__brand{height:34px;width:auto;margin-bottom:18px;display:block}
.foot__blurb{max-width:42ch;line-height:1.6}
.foot__h{font-family:var(--sans);font-size:.72rem;font-weight:600;letter-spacing:.13em;
  text-transform:uppercase;color:var(--on-dk);margin-bottom:16px}
.foot li + li{margin-top:2px}
.foot li a{display:inline-block;padding:.4rem 0}
.foot a{transition:color .18s var(--ease)}
.foot a:hover{color:#fff}
.foot__bottom{display:flex;flex-wrap:wrap;gap:16px 32px;justify-content:space-between;
  padding-top:28px;font-size:.8rem;color:var(--on-dk-2)}
.foot__legal{max-width:80ch;line-height:1.6}

/* ---------- 16b. CASE STUDY PAGES ----------
   Used only by case-studies/*.html. Same tokens and same devices as the
   landing page: a dark hero with a stats strip, then the write-up as a
   series of labelled blocks on paper.
   ------------------------------------------- */

/* Breadcrumb back to the results section */
.cs-back{
  display:inline-flex;align-items:center;gap:9px;
  font-size:.85rem;font-weight:600;color:var(--on-dk-2);
  padding:.55rem 0;margin-bottom:1.75rem;
  transition:color .18s var(--ease);
}
.cs-back:hover{color:#fff}
.cs-back svg{transition:transform .2s var(--ease)}
.cs-back:hover svg{transform:translateX(-3px)}

.cs-hero h1{max-width:24ch}
.cs-hero .lede{max-width:54ch}

/* The write-up. Label in a narrow left column, prose on the right, which
   mirrors the How We Work layout rather than inventing a new one. */
.cs-block{
  display:grid;grid-template-columns:minmax(0,.5fr) minmax(0,1.5fr);
  gap:clamp(1.5rem,5vw,5rem);
  padding:clamp(2.75rem,5vw,4.25rem) 0;
  border-top:1px solid var(--line);
}
.cs-block:first-of-type{border-top:0;padding-top:0}
.cs-block__lab{
  font-family:var(--sans);font-size:.78rem;font-weight:600;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink-3);
}
.cs-lead{
  font-family:var(--serif);font-size:clamp(1.35rem,2.3vw,2rem);line-height:1.15;
  letter-spacing:-.06em;color:var(--ink);font-weight:400;
  margin-bottom:1.5rem;max-width:46ch;text-wrap:balance;
}
.cs-body p{font-size:1.0625rem;line-height:1.75;color:var(--ink-2);max-width:68ch}
.cs-body p + p{margin-top:1.1rem}

/* Pull-out figures inside a block */
.cs-figs{
  display:grid;grid-template-columns:repeat(2,1fr);gap:28px;
  margin-top:2rem;padding-top:1.75rem;border-top:1px solid var(--line-soft);
}
.cs-fig b{
  display:block;font-family:var(--serif);font-size:clamp(1.9rem,2.8vw,2.5rem);
  line-height:1.1;letter-spacing:-.06em;color:var(--ink);font-weight:500;
}
.cs-fig span{display:block;margin-top:9px;font-size:.88rem;color:var(--ink-3);line-height:1.45}

/* Light-surface variant of the landing page quote block */
.quote--light{
  background:var(--white);border-color:var(--line);
  border-left:2px solid var(--accent);
}
.quote--light blockquote{color:var(--ink)}
.quote--light figcaption{color:var(--ink-3)}
.quote--light figcaption b{color:var(--ink)}

/* Footer of the page: the other two write-ups */
.cs-more{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.cs-more__card{
  display:block;background:var(--white);border:1px solid var(--line);
  border-radius:12px;padding:2rem;
  transition:border-color .25s var(--ease),transform .25s var(--ease);
}
.cs-more__card:hover{border-color:#D3C7B5;transform:translateY(-2px)}
.cs-more__card .cs-block__lab{display:block;margin-bottom:1rem}
.cs-more__card h3{margin-bottom:.5rem}
.cs-more__card p{font-size:.95rem;color:var(--ink-3);line-height:1.6}

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width:1024px){
  .practices{grid-template-columns:1fr 1fr}
  .practice:last-child{grid-column:1 / -1}
  .band__inner{grid-template-columns:1fr;gap:28px}
  .shead{grid-template-columns:1fr;gap:1.2rem}
  .shead h2,.shead .lede{max-width:42ch}

  /* Not enough height beside the stages for a sticky heading to earn its
     keep, so the brief returns to normal flow. */
  .process-layout{grid-template-columns:1fr;gap:2.5rem}
  .process-heading{position:static}
  .process-heading h2{max-width:20ch}

  .cases{grid-template-columns:1fr 1fr}
  .case:last-of-type{grid-column:1 / -1}

  .cs-block{grid-template-columns:1fr;gap:1.25rem}
  .cs-lead{max-width:40ch}

  .approach{grid-template-columns:1fr 1fr}
  .appr:nth-child(3){border-left:0;padding-left:0}
  .appr:nth-child(3)::before{left:0}
}

@media (max-width:760px){
  :root{--gutter:22px}
  body{font-size:16px}
  .section{padding:4.5rem 0}

  /* Mobile nav: links collapse into a full-screen panel toggled by the burger.
     No backdrop blur here: it would trap the fixed panel inside .nav. */
  .nav{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--dk)}
  .nav__burger{display:block}
  .nav__links{
    position:fixed;inset:74px 0 0;background:var(--dk);
    flex-direction:column;justify-content:flex-start;gap:4px;
    padding:28px var(--gutter);transform:translateX(100%);
    transition:transform .32s var(--ease);overflow-y:auto;
  }
  .nav__links[data-open="true"]{transform:translateX(0)}
  .nav__brand img{height:23px}
  .nav__links a:not(.nav__cta){font-size:1.25rem;font-family:var(--serif);color:#fff;
    padding:14px 0;width:100%;border-bottom:1px solid var(--dk-3)}
  .nav__cta{margin-top:20px;align-self:flex-start;font-family:var(--sans);font-size:.95rem}

  .stats{grid-template-columns:1fr;border-top:0}
  .stat{border-left:0;border-top:1px solid var(--dk-3);padding:24px 0 0}
  .stat:first-child{border-top:1px solid var(--dk-3)}
  .stat__lab{max-width:none}

  .practices,.approach,.cases{grid-template-columns:1fr}
  .practice:last-child,.case:last-of-type{grid-column:auto}
  .practice{padding:2rem 1.75rem .75rem}
  .practice__sum{min-height:0;margin-bottom:1.5rem}

  /* The rail becomes a stack, so each stage carries its own top line. */
  .approach-band{margin-inline:0;border-radius:0}
  .appr,.appr + .appr{padding:1.75rem 0 0;border-left:0}
  .appr + .appr{margin-top:2.5rem}
  .appr::before,.appr + .appr::before{left:0}
  .appr h3{min-height:0}

  .step{grid-template-columns:2.6rem minmax(0,1fr);gap:1rem;padding:2rem 0}
  .step__num{font-size:2rem}
  .step__meta{grid-template-columns:1fr;gap:14px}

  .case{padding:2rem 1.75rem}
  .case__figs{grid-template-columns:1fr 1fr}
  .cs-more{grid-template-columns:1fr}
  .cs-figs{gap:22px}
  .foot__top{grid-template-columns:1fr;gap:34px}
  .btn{width:100%;justify-content:center}
  .nav__cta{width:auto}
  .btn-row{flex-direction:column;align-items:stretch}
}

/* Respect the OS "reduce motion" setting. */
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* ---------- 18. PRINT ---------- */
@media print{
  .nav,.hero::before,.hero::after,.contact::before{display:none}
  body{background:#fff;color:#000;font-size:11pt}
  .section{padding:24px 0;break-inside:avoid}
  .hero,.section--dark,.contact,.foot,.approach-band,.case,.quote{
    background:#fff!important;color:#000!important;border-color:#ccc!important}
  .cs-back,.case__more,.cs-more{display:none}
  .approach-band{margin-inline:0;border-radius:0}
  .hero h1,.section--dark h2,.contact h2,.stat__fig,.case h3,.case__fig b,
  .approach-band h2,.approach-band h3,.cs-hero h1,.cs-hero .lede{color:#000!important}
  .process-heading{position:static!important}
  .faq details{break-inside:avoid}
  .faq__a{display:block!important}
}
