/* squ.solutions · v5
   The grammar of a personal product-portfolio site — fixed floating pill
   nav, a full-viewport hero with the name anchored at the bottom, a light
   "selected work" section of gradient cards with device frames, a dark
   band, an about block, and a giant say-hello footer — carried over to a
   pricing/FP&A practice. Display face Bricolage Grotesque, body Inter,
   labels Geist Mono; all three SELF-HOSTED as subset variable WOFF2
   (no font CDN — blocked where this is authored). The reference's azure
   pulled a step darker throughout. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/Bricolage[wght].woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the reference's palette, its blue a step darker */
  --ink: #1c2330;            /* near-black ground */
  --ink-2: #252d3c;          /* raised on dark */
  --court: #2d6ab5;          /* the blue, darkened from the reference */
  --court-deep: #17395f;     /* footer / deep surfaces */
  --glow: #7fb3e8;           /* highlight blue */
  --cream: #f7f6f2;          /* light ground */
  --cream-2: #efede6;        /* raised on light */
  --white: #ffffff;
  --text: #1c2129;           /* body on light */
  --mut: #6a7280;            /* muted on light */
  --wmut: rgba(255, 255, 255, 0.65);   /* muted on dark */
  --hair: #e4e1d8;           /* light hairline */
  --whair: rgba(255, 255, 255, 0.12);  /* dark hairline */
  --brick: #a83e1c;          /* kept from the decks, sparingly */

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", Consolas, ui-monospace, monospace;
  --serif: var(--display);

  --wrap: 87.5rem; /* 1400px */
  --r: 1rem;
  --r-pill: 999px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  [data-reveal], .hero h1, .hero .lead, .hero .btns, .chips span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .trio .kick::after { transform: none !important; }
  .hero .bgc, .hero .bgv, .hero .tint, .progress { display: none !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 48rem) { .wrap { padding: 0 3rem; } }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--court); }

/* -------------------------------------------------------------- type -- */

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(3rem, 7.5vw, 7.2rem); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; }
.dark .lead, .hero .lead { color: var(--wmut); }
.light .lead { color: var(--mut); }
.eyebrow { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 1rem; }
.dark .eyebrow { color: rgba(255, 255, 255, 0.5); }
.light .eyebrow { color: var(--mut); }
.muted { opacity: 0.75; }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.8rem; }

/* section head: title left, small right-aligned blurb — the reference's */
.head2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; border-bottom: 1px solid; padding-bottom: 1.5rem; margin-bottom: 3.5rem; }
.light .head2 { border-color: rgba(28, 33, 41, 0.1); }
.dark .head2 { border-color: var(--whair); }
.head2 p { margin: 0; max-width: 34ch; text-align: right; font-size: 0.9rem; }
.light .head2 p { color: var(--mut); }
.dark .head2 p { color: var(--wmut); }
@media (max-width: 48rem) {
  .head2, .hero.sub .head2 { flex-direction: column; align-items: flex-start; }
  .head2 p { text-align: left; }
}

/* --------------------------------------------------------------- nav -- */
/* fixed, floating, pill-shaped; gains its glass once the page scrolls */

.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; }
.nav .wrap { padding-top: 1.1rem; transition: max-width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.nav .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: var(--r-pill); padding: 0.6rem 0.9rem; border: 1px solid transparent; transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease; }
/* scrolled: the whole bar condenses into a smaller floating window */
.nav.scrolled .wrap { max-width: 62rem; }
.nav.scrolled .bar { background: rgba(28, 35, 48, 0.72); border-color: var(--whair); backdrop-filter: blur(12px) saturate(140%); padding: 0.32rem 0.55rem; box-shadow: 0 12px 32px rgba(8, 14, 26, 0.25); }
.nav.scrolled .brand { font-size: 1.05rem; }
.nav.scrolled .tabs a { padding: 0.3rem 0.75rem; }
.nav.scrolled a.cta { padding: 0.32rem 0.85rem; }
.brand { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; color: #fff; text-decoration: none; white-space: nowrap; transition: font-size 0.4s ease; }
.brand .dot { color: var(--glow); }
.brand small { display: none; }
.nav .tabs { display: flex; align-items: center; gap: 0.15rem; }
.nav .tabs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.38rem 0.9rem; border-radius: var(--r-pill); white-space: nowrap; transition: color 0.15s ease, background 0.15s ease, padding 0.4s ease; }
.nav .tabs a:hover { color: #fff; }
.nav .tabs a[aria-current="page"] { background: #fff; color: var(--ink); }
.nav a.cta { color: #fff; text-decoration: none; font-size: 0.875rem; font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); border-radius: var(--r-pill); padding: 0.42rem 1rem; white-space: nowrap; transition: background 0.15s ease, border-color 0.15s ease; }
.nav a.cta:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.2); }
.cta-short { display: none; }
@media (max-width: 48rem) { .cta-long { display: none; } .cta-short { display: inline; } }
@media (max-width: 56rem) {
  .nav .bar { flex-wrap: wrap; }
  .nav .tabs { order: 3; width: 100%; justify-content: center; padding-top: 0.3rem; }
  .nav .tabs a { padding: 0.35rem 0.7rem; font-size: 0.82rem; }
  .nav .tabs a, .nav a.cta, .brand { display: inline-flex; align-items: center;
    min-height: 44px; }
  /* the brand and the call to action have to share one row at 390px, or the
     bar becomes three rows tall and lands on the page title */
  .brand { font-size: 1.12rem; }
  .nav a.cta { font-size: 0.82rem; padding: 0.42rem 0.8rem; }
}
@media (max-width: 28rem) {
  .nav .wrap { padding-left: 1rem; padding-right: 1rem; }
  .nav .bar { column-gap: 0.5rem; padding-left: 0.6rem; padding-right: 0.6rem; }
}

/* -------------------------------------------------------------- hero -- */
/* full viewport, the animation as the picture, the name at the bottom */

.hero { position: relative; height: 100svh; min-height: 36rem; max-height: 68rem; overflow: hidden; background: #2e6cb8; color: #fff; display: flex; align-items: flex-end; }
/* the studio: a seamless light-blue backdrop with breathing light,
   sampled from the reference footage - waiting for Kevin's own clip */
  .hero-stage-placeholder { display: none; }
.hero .stage { position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 32%, #4f92e0 0%, #3d80d3 42%, #2e6cb8 78%, #275e9f 100%); animation: stagelight 22s ease-in-out infinite alternate; }
@keyframes stagelight { to { background-position: 6% 10%; background-size: 112% 112%; } }
.hero .bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .tint { position: absolute; inset: 0; pointer-events: none; background: #3d80d3; mix-blend-mode: color; opacity: 0.9; }
.hero .veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(16, 34, 62, 0.15), transparent 40%, rgba(14, 30, 56, 0.45)); }
.hero .wrap { position: relative; width: 100%; max-width: none; padding-bottom: 4rem; padding-top: 7rem; }
@media (min-width: 48rem) { .hero .wrap { padding-left: 2.5rem; padding-right: 2.5rem; padding-bottom: 5rem; } }
.hero h1 { font-size: 11vw; line-height: 0.95; letter-spacing: -0.03em; padding-bottom: 0.08em; }
@media (min-width: 48rem) { .hero h1 { font-size: 7vw; } }
.hero h1 .role { display: block; color: rgba(255, 255, 255, 0.55); }
.hero .lead { max-width: 36rem; font-size: 1rem; margin: 2rem 0 1.5rem; }
@media (min-width: 48rem) { .hero .lead { font-size: 1.125rem; } }
.hero h1, .hero .lead, .hero .btns { opacity: 0; transform: translateY(16px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero h1 { animation-delay: 0.25s; }
.hero .lead { animation-delay: 0.45s; }
.hero .btns { animation-delay: 0.62s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.hero .cue { display: none; }

/* sub-page hero: dark, shorter, room for the fixed nav */
.hero.sub { height: auto; min-height: 0; display: block; }
.hero.sub .wrap { padding-top: 5.5rem; padding-bottom: 3.5rem; }
@media (max-width: 56rem) { .hero.sub .wrap { padding-top: max(10.5rem, var(--nav-clearance, 15rem)); } }
.hero.sub h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.hero.sub .head2 { border: 0; padding-bottom: 0; margin-bottom: 0; align-items: flex-end; }
.hero.sub .head2 p { text-align: left; max-width: 44ch; font-size: 1rem; }

/* the study page meta bar: mono facts under the title */
.metabar { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

/* ------------------------------------------------------------ reveal -- */

[data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal="2"] { transition-delay: 0.08s; }
[data-reveal="3"] { transition-delay: 0.16s; }
[data-reveal="4"] { transition-delay: 0.24s; }
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; }

/* progress hairline */
.progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 60; pointer-events: none; background: linear-gradient(90deg, var(--court), var(--glow)); transform-origin: 0 50%; transform: scaleX(0); }

/* ------------------------------------------------------------- bands -- */

.band { padding: 5.5rem 0; }
@media (min-width: 48rem) { .band { padding: 8rem 0; } }
.band.light { background: var(--cream); color: var(--text); }
.band.light.paper2 { background: #efede7; }
.band.dark { background: var(--ink); color: rgba(255, 255, 255, 0.88); }
.band.dark h1, .band.dark h2, .band.dark h3 { color: #fff; }
.band.light h1, .band.light h2, .band.light h3 { color: var(--ink); }
.band.tight { padding: 3.5rem 0; }

/* ------------------------------------------------------------ button -- */

.btn { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 0.75rem 1.5rem; border-radius: var(--r-pill); transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.btn:hover { transform: scale(1.02); }
.btn.white { background: #fff; color: var(--ink); }
.btn.white:hover { background: var(--cream); }
.btn.solid { background: var(--court); color: #fff; }
.btn.solid:hover { background: #3579c9; }
.dark .btn.ghost, .hero .btn.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.dark .btn.ghost:hover, .hero .btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.light .btn.ghost { color: var(--text); border: 1px solid rgba(28, 33, 41, 0.25); }
.light .btn.ghost:hover { border-color: var(--court); color: var(--court); }
.btn.pale { background: var(--glow); color: var(--ink); }
.btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn .bounce { display: inline-block; animation: arrowb 1.1s ease-in-out infinite; }
@keyframes arrowb { 0%, 100% { transform: translateY(-12%); } 50% { transform: translateY(22%); } }
.more { font-weight: 500; text-decoration: none; font-size: 0.92rem; }
.dark .more { color: var(--glow); }
.light .more { color: var(--court); }
.more:hover { text-decoration: underline; }

/* ------------------------------------------------------ selected work -- */
/* full-bleed study thumbnails: the real exhibit, colour-washed, the
   finding as headline. No hover-to-reveal: everything is visible up
   front, closer to a streaming tile than a portfolio card. */

.workgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 72rem) { .workgrid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } .wthumb { aspect-ratio: 16 / 10; } }
@media (max-width: 36rem) { .workgrid { grid-template-columns: 1fr; } }
.wcard a { display: block; text-decoration: none; color: inherit; }
.wthumb { position: relative; aspect-ratio: 3 / 4; border-radius: 1.1rem; overflow: hidden; display: block; }
.wthumb .wbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); filter: saturate(1.1); }
.wcard:hover .wthumb .wbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); filter: saturate(1.1); }
.wthumb .wwash { position: absolute; inset: 0; mix-blend-mode: hue; background: var(--wash); opacity: 0.35; }
.wthumb .wwash2 { position: absolute; inset: 0; mix-blend-mode: multiply; background: var(--wash2); opacity: 0.35; }
.wthumb .wscrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.62) 38%, rgba(0,0,0,.2) 64%, rgba(0,0,0,0) 85%); }
.wthumb .wcontent { position: absolute; inset: 0; padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between; }
.wthumb .wmethod { align-self: flex-start; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.72); padding: 0.34rem 0.6rem; border-radius: 0.3rem; }
.wthumb .wbig { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1.9vw, 2rem); letter-spacing: -0.025em; line-height: 1.02; color: #eef4ff; text-shadow: 0 2px 20px rgba(0,0,0,.55); text-wrap: balance; }
.wthumb .wbig b { color: var(--wash-text, var(--glow)); font-weight: 800; }
.band.light .wthumb h3 { margin: 0.6rem 0 0; font-size: clamp(0.95rem, 1.15vw, 1.15rem); line-height: 1.25; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.wthumb p { margin: 0.3rem 0 0; font-size: 0.78rem; line-height: 1.45; color: rgba(255,255,255,.7); }

/* ---------------------------------------------------- trio + numbers -- */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6rem 2.4rem; }
.trio .t { display: flex; flex-direction: column; }
.trio .kick { font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--glow); margin-bottom: 0.8rem; }
.light .trio .kick { color: var(--court); }
.trio .kick::after { content: ""; display: block; width: 3rem; height: 2px; background: currentColor; margin-top: 0.6rem; opacity: 0.5; transform: scaleX(0); transform-origin: left; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s; }
.trio .t.in .kick::after { transform: none; }
.no-js .trio .kick::after { transform: none; }
.trio h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.trio p { font-size: 0.94rem; margin: 0 0 1rem; }
.dark .trio p { color: var(--wmut); }
.light .trio p { color: var(--mut); }
.trio .more { margin-top: auto; }
@media (max-width: 52rem) { .trio { grid-template-columns: 1fr; gap: 2rem; } }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--whair); }
.numbers .val { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; color: #fff; margin-bottom: 0.5rem; }
.numbers .cap { font-size: 0.9rem; color: var(--wmut); }
.numbers .cap b { color: #fff; font-weight: 600; }
@media (max-width: 52rem) { .numbers { grid-template-columns: repeat(2, 1fr); } }

/* -------------------------------------------------------------- about -- */

.about { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: center; }
.big { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.32; letter-spacing: -0.01em; color: var(--text); }
.about .big { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
.hl { color: var(--court); }
.band.dark .hl { color: var(--glow); }
.about aside p { color: var(--mut); }

/* portrait: UNUSED until a photo exists. To switch on, add
   <figure class="portrait"><img src="/assets/images/kevin.jpg"
   width="600" height="600" alt="Kevin Larretche"></figure>
   to the about block on index.html and to "Who is behind it"
   on how-i-work.html.
   Round, with a white gap and a court-blue ring, and a soft drop
   shadow so it sits on the band rather than floating over it */
.portrait { margin: 0 0 1.8rem; }
/* arrives a beat after its block: scales up while the blue ring grows out
   of the white gap; keyed off .in from the reveal observer, like the chain */
.portrait img { display: block; width: 100%; max-width: 15rem; height: auto; aspect-ratio: 1;
  object-fit: cover; border-radius: 50%; background: var(--cream-2);
  transform: scale(0.86);
  box-shadow: 0 0 0 5px #fff, 0 0 0 5px var(--court), 0 0 0 -18px rgba(23, 57, 95, 0);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s, box-shadow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }
.in .portrait img, .portrait.in img, .no-js .portrait img { transform: none;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--court), 0 22px 44px -18px rgba(23, 57, 95, 0.45); }
.portrait img:hover { transform: translateY(-4px); transition-delay: 0s; transition-duration: 0.35s;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--glow), 0 28px 50px -18px rgba(23, 57, 95, 0.5); }
@media (prefers-reduced-motion: reduce) { .portrait img { transform: none !important; transition: none !important;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--court), 0 22px 44px -18px rgba(23, 57, 95, 0.45) !important; } }
.portrait figcaption { margin-top: 0.7rem; font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mut); }
.about aside .portrait img { max-width: 16rem; margin: 0 auto; }
/* How I work: the portrait sits in the text, which wraps around it */
.portrait.float { float: right; width: 13rem; margin: 0.4rem 0.6rem 1.4rem 2.6rem; }
@media (max-width: 48rem) { .portrait.float { float: none; width: 11rem; margin: 0 0 1.4rem; } }
.about aside .btns { justify-content: center; }
@media (max-width: 48rem) { .portrait img { max-width: 11rem; } }

@media (max-width: 56rem) { .about { grid-template-columns: 1fr; gap: 2rem; } }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.chips span { font-size: 0.8rem; font-weight: 500; border-radius: var(--r-pill); padding: 0.45rem 1rem; opacity: 0; transform: translateY(10px); transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.chips.in span, .no-js .chips span { opacity: 1; transform: none; }
.chips span:nth-child(2) { transition-delay: 0.06s; } .chips span:nth-child(3) { transition-delay: 0.12s; }
.chips span:nth-child(4) { transition-delay: 0.18s; } .chips span:nth-child(5) { transition-delay: 0.24s; }
.chips span:nth-child(6) { transition-delay: 0.3s; }
.light .chips span { background: #fff; border: 1px solid var(--hair); color: var(--mut); }
.dark .chips span { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--whair); color: var(--wmut); }

/* ---------------------------------------------------- content blocks -- */
/* used by the study and method pages */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid.grid-2, .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 48rem) { .grid.grid-2, .grid-2 { grid-template-columns: 1fr; } }
.grid.grid-3, .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 56rem) { .grid.grid-3, .grid-3 { grid-template-columns: 1fr; } }
.card { border-radius: var(--r); padding: 1.6rem 1.7rem; }
.light .card { background: #fff; border: 1px solid var(--hair); }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.92rem; color: var(--mut); }
.stat .lab { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.stat .val { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.05; margin: 0.4rem 0 0.5rem; }
.stat .cap { font-size: 0.9rem; }
.dark .stat .lab { color: var(--glow); } .dark .stat .val { color: #fff; } .dark .stat .cap { color: var(--wmut); }
.light .stat .lab { color: var(--court); } .light .stat .val { color: var(--ink); } .light .stat .cap { color: var(--mut); }
@media (max-width: 40rem) { .stats { grid-template-columns: 1fr; } }

.note { border-radius: 0.6rem; padding: 0.95rem 1.2rem; font-size: 0.88rem; margin-top: 2rem; }
.dark .note { background: rgba(255, 255, 255, 0.06); color: var(--wmut); }
.light .note { background: var(--cream-2); color: var(--mut); }
.note b { color: var(--brick); }

figure { margin: 0; }
.plate { border-radius: var(--r); padding: 1.2rem 1.4rem; overflow-x: auto; }
.light .plate { background: #fff; border: 1px solid var(--hair); box-shadow: 0 4px 12px rgba(20, 24, 31, 0.04), 0 16px 36px rgba(23, 57, 95, 0.05); }
.dark .plate { background: #fff; }
.plate img { width: 100%; height: auto; display: block; min-width: 30rem; }
figcaption { font-size: 0.86rem; font-style: italic; margin-top: 0.9rem; line-height: 1.55; }
.light figcaption { color: var(--mut); } .dark figcaption { color: var(--wmut); }
figcaption b { font-weight: 600; font-style: normal; }
.light figcaption b { color: var(--text); } .dark figcaption b { color: #fff; }
figcaption .sq { display: none; }

.callout { border-radius: 0.6rem; padding: 1.2rem 1.4rem; margin-top: 1.6rem; border-left: 3px solid var(--court); }
.light .callout { background: rgba(45, 106, 181, 0.06); }
.dark .callout { background: rgba(127, 179, 232, 0.08); border-color: var(--glow); }
.callout b { font-weight: 600; }
.light .callout b { color: var(--ink); } .dark .callout b { color: #fff; }
.callout p:last-child { margin: 0; }
.pull { font-family: var(--display); font-weight: 500; font-size: 1.15rem; line-height: 1.45; padding-left: 1.2rem; border-left: 3px solid var(--court); margin: 1.6rem 0; }
.dark .pull { border-color: var(--glow); color: #fff; }

.ledger { border-top: 1px solid; }
.light .ledger { border-color: var(--ink); } .dark .ledger { border-color: rgba(255, 255, 255, 0.25); }
.ledger .li { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid; }
.light .ledger .li { border-color: var(--hair); } .dark .ledger .li { border-color: var(--whair); }
.ledger .lab { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 0.3rem; }
.light .ledger .lab { color: var(--court); } .dark .ledger .lab { color: var(--glow); }
.ledger p { margin: 0; }
@media (max-width: 40rem) { .ledger .li { grid-template-columns: 1fr; gap: 0.3rem; } }

.tablewrap { overflow-x: auto; border-radius: 0.6rem; }
.light .tablewrap { background: #fff; border: 1px solid var(--hair); }
.dark .tablewrap { background: var(--ink-2); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
th, td { text-align: left; padding: 0.85rem 1.1rem; }
thead th { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.light thead th { color: var(--mut); border-bottom: 2px solid var(--ink); }
.dark thead th { color: var(--glow); border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
tbody td { border-bottom: 1px solid; }
.light tbody td { border-color: var(--hair); } .dark tbody td { border-color: var(--whair); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* wide listing card (case-studies index) */
.case { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; margin-bottom: 1.4rem; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.light .case { background: #fff; border: 1px solid var(--hair); }
.dark .case { background: var(--ink-2); border: 1px solid var(--whair); }
.case:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.18); }
.case .txt { padding: 2.6rem 2.8rem; display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; }
.case .pill { align-self: flex-start; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; padding: 0.4rem 0.8rem; border-radius: var(--r-pill); }
.light .case .pill { background: rgba(45, 106, 181, 0.1); color: var(--court); }
.dark .case .pill { background: rgba(127, 179, 232, 0.14); color: var(--glow); }
.case h3 { font-size: 1.6rem; }
.case p { margin: 0; font-size: 0.95rem; }
.light .case p { color: var(--mut); } .dark .case p { color: var(--wmut); }
.case .btn { align-self: flex-start; margin-top: 0.4rem; padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.light .case:hover .btn.ghost { background: var(--court); color: #fff; border-color: var(--court); }
.case .img { display: grid; place-items: center; padding: 1.6rem; min-height: 15rem; background: linear-gradient(135deg, #2f68a4, #1d4479, #10233c); }
.case .img img { width: 100%; height: auto; background: #fff; border-radius: 0.6rem; padding: 4%; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.5); }
.case:hover .img img { transform: scale(1.02); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (max-width: 52rem) { .case { grid-template-columns: 1fr; } .case .txt { padding: 1.8rem; } }

/* accordion */
.acc-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.acc details { border-radius: 0.7rem; margin-bottom: 0.6rem; overflow: hidden; }
.light .acc details { background: #fff; border: 1px solid var(--hair); }
.dark .acc details { background: var(--ink-2); border: 1px solid var(--whair); }
.acc summary { list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 600; font-size: 0.98rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.3rem; line-height: 1; opacity: 0.6; transition: transform 0.2s ease; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .body { padding: 0 1.3rem 1.2rem; font-size: 0.93rem; animation: acc-in 0.35s ease; }
@keyframes acc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.light .acc .body { color: var(--mut); } .dark .acc .body { color: var(--wmut); }
.acc .body p:last-child { margin: 0; }
@media (max-width: 52rem) { .acc-wrap { grid-template-columns: 1fr; gap: 1.4rem; } }

.upfront { border-radius: var(--r); padding: 1.6rem 1.8rem; margin-top: 1.6rem; }
.light .upfront { background: #fff; border: 1px solid var(--hair); }
.upfront h4 { margin-bottom: 0.8rem; }
.upfront ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.upfront li { padding-left: 1.5rem; position: relative; font-size: 0.9rem; color: var(--mut); }
.upfront li::before { content: "✓"; position: absolute; left: 0; color: var(--court); font-weight: 700; }

/* contact steps + split card */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: 2.6rem 0 3rem; }
.steps .st .k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--glow); margin-bottom: 0.5rem; }
.steps .st h4 { color: #fff; margin-bottom: 0.3rem; }
.steps .st p { font-size: 0.88rem; color: var(--wmut); margin: 0; }
@media (max-width: 52rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
.split { display: grid; grid-template-columns: 1fr 1.25fr; border-radius: var(--r); overflow: hidden; }
.split .promise { background: var(--court-deep); color: #fff; padding: 2.6rem; }
.split .promise h3 { color: #fff; font-size: 1.7rem; margin-bottom: 1rem; }
.split .promise ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.6rem; }
.split .promise li { padding-left: 1.5rem; position: relative; font-size: 0.95rem; }
.split .promise li::before { content: "✓"; position: absolute; left: 0; color: var(--glow); font-weight: 700; }
.split .form { background: var(--cream); color: var(--text); padding: 2.6rem; }
.split .form h3 { color: var(--ink); font-size: 1.35rem; margin-bottom: 0.9rem; }
.split .form p { font-size: 0.95rem; }
.split .form .row { display: grid; gap: 0.7rem; }
.split .form .field { background: #fff; border: 1px solid var(--hair); border-radius: 0.6rem; padding: 0.8rem 1rem; font-size: 0.9rem; color: var(--mut); }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

/* who-I-help cards */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.who .w { border-radius: var(--r); padding: 1.8rem 1.9rem; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.light .who .w { background: #fff; border: 1px solid var(--hair); }
.dark .who .w { background: var(--ink-2); border: 1px solid var(--whair); }
.who .w:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08); }
.who h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.who p { font-size: 0.92rem; margin: 0; }
.light .who p { color: var(--mut); } .dark .who p { color: var(--wmut); }
@media (max-width: 52rem) { .who { grid-template-columns: 1fr; } }

/* the extras strip */
.extras { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hair); }
.dark .extras { border-color: var(--whair); }
.extras a { text-decoration: none; font-size: 0.85rem; font-weight: 500; color: var(--court); border: 1px solid rgba(45, 106, 181, 0.3); border-radius: var(--r-pill); padding: 0.45rem 1rem; transition: background 0.15s ease, color 0.15s ease; }
.extras a:hover { background: var(--court); color: #fff; }
.extras .exlab { font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mut); align-self: center; margin-right: 0.6rem; }

/* next-study handoff at the foot of each case page */
.nextcase { border-top: 1px solid var(--whair); }
.nextcase a { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; text-decoration: none; color: inherit; padding: 3rem 0; }
.nextcase .eyebrow { margin-bottom: 0.6rem; }
.nextcase h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); color: #fff; transition: color 0.3s ease; }
.nextcase a:hover h3 { color: var(--glow); }
.nextcase .arrow { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.4rem); color: var(--glow); transition: transform 0.4s ease; }
.nextcase a:hover .arrow { transform: translate(6px, -6px); }
@media (max-width: 40rem) { .nextcase a { flex-direction: column; } }

/* ------------------------------------------------------------ footer -- */
/* the giant say-hello, on the deep blue */

.foot { background: var(--court-deep); color: #fff; }
.foot .wrap { padding-top: 5.5rem; padding-bottom: 2.5rem; }
.foot .hello { display: block; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(3.2rem, 9vw, 8.5rem); }
.foot .hello .arrow { display: inline-block; color: var(--glow); transition: transform 0.5s ease; }
.foot .hello:hover .arrow { transform: translate(0.12em, -0.12em); }
.foot .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 4rem; padding-top: 2.5rem; font-size: 0.92rem; }
.foot .cols .k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.6rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { opacity: 0.8; }
.foot .rule { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); }
.foot .rule .mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.2em; }
@media (max-width: 48rem) { .foot .cols { grid-template-columns: 1fr; } }

/* the chain: what a coefficient has to become before anyone signs it.
   Six nodes on a rail, the sixth in brick because it returns to the first. */
.chain ol { list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; }
.chain ol::before { content: ""; position: absolute; top: 0.95rem;
  left: 0.95rem; right: 0.95rem; height: 1px; background: var(--hair); }
.chain li { position: relative; padding-top: 3rem; }
.chain .n { position: absolute; top: 0; left: 0; display: grid;
  place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px;
  background: var(--court); color: #fff; font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.04em; }
.chain li:last-child .n { background: var(--brick); }
.chain h3 { font-size: 0.98rem; margin: 0 0 0.45rem; letter-spacing: -0.01em; }
.chain p { font-size: 0.85rem; color: var(--mut); margin: 0; }
.chain .loop { display: flex; gap: 0.9rem; align-items: flex-start;
  margin-top: 2.8rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.chain .loop .r { color: var(--brick); font-size: 1.35rem; line-height: 1; }
.chain .loop p { max-width: 68ch; font-size: 0.9rem; }

/* five-step variant, home page. The base .chain is a 6-track grid for the
   pricing loop; five items in it leave a gap and the connector runs on
   past the last one. Five equal tracks instead, with the type sized for
   a narrower column than the three-step version had. */
.chain.chain-5 ol { grid-template-columns: repeat(5, 1fr); gap: 1.8rem; }
.chain.chain-5 li { padding-top: 3.1rem; }
.chain.chain-5 .n { width: 2.05rem; height: 2.05rem; font-size: 0.66rem; }
.chain.chain-5 ol::before { top: 1.02rem; }
.chain.chain-5 h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.chain.chain-5 p { font-size: 0.88rem; line-height: 1.55; }
.chain.chain-5 > .more { display: inline-block; margin-top: 1.6rem;
  font-size: 0.9rem; }
@media (max-width: 72rem) {
  .chain.chain-5 ol { grid-template-columns: repeat(3, 1fr); row-gap: 2.2rem; }
  .chain.chain-5 ol::before { display: none; }
}
@media (max-width: 46rem) {
  .chain.chain-5 ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 32rem) {
  .chain.chain-5 ol { grid-template-columns: 1fr; }
}

/* the chain on a dark band: the light-ground greys and hairlines do not
   survive there */
.band.dark .chain p { color: var(--wmut); }
.band.dark .chain ol::before { background: var(--whair); }
.band.dark .chain .loop p { color: var(--wmut); }

/* the process draws itself in: the connector runs left to right, then the
   steps arrive along it. Keyed off .in, which the reveal observer adds.
   Both fallbacks below are required, or the steps stay invisible with JS
   off or reduced motion on. */
.chain.chain-5 ol::before { transform: scaleX(0); transform-origin: left;
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s; }
.chain.chain-5 ol.in::before { transform: scaleX(1); }
.chain.chain-5 li { opacity: 0; transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.chain.chain-5 ol.in li { opacity: 1; transform: none; }
.chain.chain-5 ol.in li:nth-child(1) { transition-delay: 0.30s; }
.chain.chain-5 ol.in li:nth-child(2) { transition-delay: 0.44s; }
.chain.chain-5 ol.in li:nth-child(3) { transition-delay: 0.58s; }
.chain.chain-5 ol.in li:nth-child(4) { transition-delay: 0.72s; }
.chain.chain-5 ol.in li:nth-child(5) { transition-delay: 0.86s; }
.chain.chain-5 .n { transform: scale(0.6); transition: transform 0.45s
  cubic-bezier(0.34, 1.4, 0.5, 1); }
.chain.chain-5 ol.in li .n { transform: scale(1); }
.no-js .chain.chain-5 ol::before,
.no-js .chain.chain-5 li,
.no-js .chain.chain-5 .n { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .chain.chain-5 ol::before, .chain.chain-5 li, .chain.chain-5 .n {
    transform: none !important; opacity: 1 !important; }
}
}
@media (max-width: 64rem) {
  .chain ol { grid-template-columns: repeat(3, 1fr); row-gap: 2.4rem; }
  .chain ol::before { display: none; }
}
@media (max-width: 40rem) { .chain ol { grid-template-columns: 1fr; } }

/* contact hero: the address as the only element beside the title */
.hero.sub .hero-mail { display: inline-flex; align-items: baseline; gap: 0.5rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 2.2rem); letter-spacing: -0.02em; color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.35); padding-bottom: 0.3rem; transition: border-color 0.2s ease; white-space: nowrap; }
.hero.sub .hero-mail:hover { border-color: #fff; }
.hero.sub .hero-mail .arrow { font-size: 0.8em; color: var(--glow); transition: transform 0.2s ease; }
.hero.sub .hero-mail:hover .arrow { transform: translate(2px, -2px); }

/* contact page: no hero band; the nav starts in its glass state (data-glass)
   and the address is the page's first and largest element */
.contact-top { padding-top: clamp(8rem, 14vh, 11rem); }
.contact-h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: 2.2rem; }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: 1.6rem 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.mail-big { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 4.2vw, 3.4rem); letter-spacing: -0.03em; color: var(--court); text-decoration: none; word-break: break-all; border-bottom: 3px solid transparent; transition: border-color 0.2s ease; }
.mail-big:hover { border-color: var(--court); }
.mail-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.copy { -webkit-appearance: none; appearance: none; cursor: pointer; font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--court); background: transparent; border: 1px solid rgba(45, 106, 181, 0.35); border-radius: var(--r-pill); padding: 0.62rem 1.1rem; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.copy:hover { background: rgba(45, 106, 181, 0.07); border-color: var(--court); }
.copy.ok { background: var(--court); color: #fff; border-color: var(--court); }
.no-js .copy { display: none; }
.facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin-top: 1.2rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); }
.facts span::before { content: "\2022"; color: var(--court); margin-right: 0.6rem; }

/* studies page: one template per study; the ledger and the What-you-get
   card start level under the intro */
.study-intro { max-width: 72ch; margin-bottom: 1.6rem; }
.light .study-intro { color: var(--text); }
.grid.study { align-items: start; gap: 2.5rem; }
.grid.study .ledger { margin-top: 0; }

/* a study section that should fit one screen */
.band.compact { padding: 4rem 0 3.5rem; }
.band.compact .ledger .li { padding: 0.85rem 0; }
.band.compact .ledger .li p, .band.compact .card p, .band.compact .note { font-size: 0.92rem; line-height: 1.5; }
.band.compact .chain li { padding-top: 2.4rem; }
.band.compact .chain .loop { margin-top: 1.2rem; }

/* the four cards' text blocks reserve the same height (3-line headline,
   2-line question, 2-line teaser) so the headlines start on one line */
.wthumb .wbig { min-height: 3.06em; display: flex; align-items: flex-end; }
.band.light .wthumb h3 { min-height: 2.5em; }
.wthumb p { min-height: 2.9em; }

/* studies page: five tabs, one screen; each lesson as usually / instead */
.band.studies-tabs { padding: 3rem 0 3.5rem; }
.stabs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1.8rem; }
.stabs button { -webkit-appearance: none; appearance: none; font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--mut); border-radius: var(--r-pill); padding: 0.5rem 1.05rem; transition: color 0.15s ease, background 0.15s ease; }
.stabs button:hover { color: var(--ink); }
.stabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.spanel { display: none; }
.spanel.on { display: block; }
.no-js .spanel { display: block; margin-bottom: 3rem; }
.spanel h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 1.3rem; }
.spanel .grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 60rem) { .spanel .grid { grid-template-columns: 1fr; } }
.pairs { border-top: 1px solid var(--ink); }
.pairs .head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: 0.6rem 0 0.4rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; }
.pairs .head span:first-child { color: var(--brick); }
.pairs .head span:last-child { color: var(--court); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; padding: 0.9rem 0 1rem; border-top: 1px solid var(--hair); }
.pair p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.pair .u { color: var(--mut); }
.pair .u b, .pair .i b { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.pair .u b { color: #5b6472; }
.pair .i b { color: var(--ink); }
.pair .u b::before, .pair .i b::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; margin-right: 0.5rem; vertical-align: 0.1em; }
.pair .u b::before { background: var(--brick); }
.pair .i b::before { background: var(--court); }
@media (max-width: 40rem) { .pairs .head, .pair { grid-template-columns: 1fr; gap: 0.6rem; } .pairs .head span:last-child { display: none; } }
.spanel .card p { font-size: 0.9rem; }
.spanel .card .mut { color: var(--mut); font-size: 0.84rem; margin: 0; }
.spec { margin: 1rem 0 0; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--hair); font-size: 0.84rem; line-height: 1.45; }
.spec dt { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--court); padding-top: 0.2rem; margin: 0; }
.spec dd { margin: 0; }
.spec .no dt { color: var(--brick); }
.spanel .link { margin: 0.9rem 0 0; font-size: 0.9rem; }

/* subpages carry no top nav; a floating breadcrumb pill sits bottom right
   (back link | section / page), the way a case-study reader expects */
.crumb { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; display: flex; align-items: center; gap: 0.8rem; max-width: calc(100vw - 2.4rem); background: rgba(28, 35, 48, 0.82); backdrop-filter: blur(12px) saturate(140%); border: 1px solid var(--whair); border-radius: var(--r-pill); padding: 0.55rem 1rem 0.55rem 0.9rem; color: #fff; font-size: 0.86rem; box-shadow: 0 12px 32px rgba(8, 14, 26, 0.25); }
.crumb a { color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; }
.crumb a:hover { color: var(--glow); }
.crumb .sep { width: 1px; height: 1rem; background: rgba(255, 255, 255, 0.25); flex: none; }
.crumb .path { color: rgba(255, 255, 255, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb .path .slash { margin: 0 0.15rem; }
.crumb .path b { color: #fff; font-weight: 500; }
@media (max-width: 40rem) { .crumb { right: 0.8rem; bottom: 0.8rem; left: 0.8rem; max-width: none; font-size: 0.8rem; } }


/* ------------------------------------------------------------ phones -- */
/* Measured with tools/mobile_check.py at 390px and 430px. Nothing that
   carries a sentence stays under 14px, the mono micro-labels stop at
   11.5px, and a link you are meant to tap gets a finger-sized box.
   Desktop sizes are untouched: every rule here is inside the query. */

@media (max-width: 48rem) {
  .wcontent p, .spanel .card .mut, .extras a, .spec dd, .chain li p,
  .chain ol li p { font-size: 0.9rem; }
  .eyebrow, .wthumb .wmethod, .extras .exlab, .ledger .lab,
  .spec dt { font-size: 0.72rem; }
  /* .hero.sub .head2 re-sets align-items further down the file, so at equal
     specificity it wins; this block is last, so the stacked title starts left */
  .hero.sub .head2 { align-items: flex-start; }
  .rule span, .crumb .path b { font-size: 0.9rem; }
  .more { display: inline-flex; align-items: center; min-height: 44px; }
  .crumb a { padding: 0.62rem 0; }
}
