/* Mimlet Operations: site styles
   Palette: Ink & Champagne. Type: Jost (sans, display + UI) with Instrument Serif italic accents. */

@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-ext-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #121212;
  --ink-2: #1C1B19;
  --ink-3: #2A2824;
  --ivory: #F6F2EA;
  --paper: #FBF9F4;
  --champagne: #B89B6A;
  --champagne-soft: #D9C7A4;
  --brass: #7A6139;
  --stone: #66615A;
  --mist: #A39E94;
  --line: #E3DCCD;
  --line-dark: #2F2C27;
  --good: #2E6B4F;
  --warn: #8C600F;
  --bad: #A3392B;

  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);

  --gutter: clamp(16px, 4vw, 44px);
  --radius: 4px;
  --maxw: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--champagne); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--champagne); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Eyebrow with the monogram's 45-degree stroke as its marker */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; transform: rotate(45deg); flex: none; }
.on-ink .eyebrow, .eyebrow.light { color: var(--champagne); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: 500 0.95rem/1 var(--sans); letter-spacing: 0.06em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--champagne); color: var(--ink); }
.btn-primary:hover { background: var(--champagne-soft); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.on-ink .btn-ghost { color: var(--ivory); border-color: #4A463F; }
.on-ink .btn-ghost:hover { border-color: var(--champagne); color: var(--champagne); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.text-link { color: var(--brass); font-weight: 500; text-decoration: none; letter-spacing: 0.03em; display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { text-decoration: underline; }
.on-ink .text-link { color: var(--champagne); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--ink); color: var(--ivory); border-bottom: 1px solid var(--line-dark); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ivory); }
.brand svg { width: 30px; height: 30px; color: var(--ivory); }
.brand .word { display: grid; line-height: 1; gap: 5px; }
.brand .word b { font-weight: 500; letter-spacing: 0.42em; font-size: 0.98rem; margin-right: -0.42em; }
.brand .word small { font-size: 0.56rem; letter-spacing: 0.44em; color: var(--mist); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 0.93rem; letter-spacing: 0.04em; color: #D8D3C8; padding-block: 6px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--champagne); }
.nav .btn { min-height: 40px; padding: 10px 16px; font-size: 0.85rem; border-bottom: 0; color: var(--ink); }
.nav .btn:hover { color: var(--ink); }
.nav .portal-link { display: inline-flex; align-items: center; gap: 8px; }
.nav .portal-link svg { width: 14px; height: 14px; }
.menu-toggle { display: none; background: none; border: 1px solid #4A463F; color: var(--ivory); border-radius: var(--radius); min-height: 42px; padding: 0 14px; font: 500 0.85rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line-dark); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav .btn { margin-top: 18px; min-height: 48px; }
}

/* Sections */
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.on-ink { background: var(--ink); color: var(--ivory); }
.on-paper { background: var(--paper); }
.hairline { border-top: 1px solid var(--line); }
.on-ink .hairline, .on-ink.hairline { border-color: var(--line-dark); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: var(--step-3); font-weight: 300; }
.section-head p { color: var(--stone); font-size: var(--step-1); line-height: 1.55; max-width: 62ch; }
.on-ink .section-head p { color: var(--mist); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--stone); max-width: 60ch; }
.on-ink .lead { color: #CFC9BD; }
.prose { max-width: 66ch; display: grid; gap: 1.1em; }
.prose p { color: #34312C; }
.on-ink .prose p { color: #D6D0C4; }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.02em; margin-top: 22px; }
.hero h1 .em { color: var(--champagne); font-size: 1.06em; }
.hero .lead { margin-top: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-mark { width: 100%; max-width: 360px; justify-self: end; aspect-ratio: 1; color: var(--ivory); position: relative; }
.hero-mark svg { width: 100%; height: 100%; overflow: visible; }
.hero-mark .guide { stroke: var(--line-dark); stroke-width: 0.35; }
.hero-mark .stroke { stroke: var(--ivory); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hero-mark .stroke.accent { stroke: var(--champagne); }
.hero-mark .node { fill: var(--champagne); }
.hero-mark .lbl { font: 500 3.1px var(--sans); letter-spacing: 0.35em; fill: var(--mist); text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .stroke { stroke-dasharray: 220; stroke-dashoffset: 0; animation: draw 2.2s cubic-bezier(.6,.05,.25,1) both; }
  .hero-mark .stroke:nth-of-type(2) { animation-delay: .35s; }
  .hero-mark .stroke:nth-of-type(3) { animation-delay: .7s; }
  .hero-mark .node, .hero-mark .lbl { animation: fadein .8s ease 1.9s both; }
}
@keyframes draw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: 0.001; } to { opacity: 1; } }
@media (max-width: 860px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero-mark { max-width: 220px; justify-self: start; order: -1; }
}
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.02em; margin-top: 20px; max-width: 16ch; }
.page-hero h1 .em { color: var(--champagne); }
.page-hero .lead { margin-top: 24px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.facts > div { padding: 26px 24px 30px 0; display: grid; gap: 6px; align-content: start; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.facts b { font-weight: 300; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1; color: var(--ivory); }
.facts span { font-size: 0.9rem; color: var(--mist); letter-spacing: 0.02em; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* Two doors */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.door { padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px; align-content: start; text-decoration: none; position: relative; transition: background-color .25s; }
.door + .door { border-left: 1px solid var(--line); }
.door:hover { background: #FFFFFF; }
.door .kicker { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
.door h3 { font-size: var(--step-2); font-weight: 400; }
.door p { color: var(--stone); }
.door ul { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.door li { display: flex; gap: 12px; font-size: 0.98rem; }
.door li::before { content: ""; width: 10px; height: 1.5px; background: var(--champagne); margin-top: 0.8em; flex: none; transform: rotate(45deg); }
.door .text-link { margin-top: 10px; }
@media (max-width: 800px) { .doors { grid-template-columns: 1fr; } .door + .door { border-left: 0; border-top: 1px solid var(--line); } }

/* Signs list */
.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); list-style: none; counter-reset: sign; }
.signs li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 26px 1fr; gap: 16px; font-size: 1.1rem; line-height: 1.45; }
.signs li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--champagne); border-radius: 50%; margin-top: 0.3em; }
@media (max-width: 760px) { .signs { grid-template-columns: 1fr; } }

/* Process steps (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; list-style: none; border-top: 1px solid var(--line); }
.steps > li { padding: 28px 24px 8px 0; display: grid; gap: 12px; align-content: start; position: relative; }
.steps > li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps .n { font: 500 0.78rem var(--sans); letter-spacing: 0.2em; color: var(--brass); }
.steps h3 { font-size: 1.45rem; font-weight: 400; }
.steps p { color: var(--stone); font-size: 0.98rem; }
.on-ink .steps { border-color: var(--line-dark); }
.on-ink .steps > li + li { border-color: var(--line-dark); }
.on-ink .steps .n { color: var(--champagne); }
.on-ink .steps p { color: var(--mist); }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps > li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .steps > li:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 28px; }
  .on-ink .steps > li:nth-child(n+3) { border-color: var(--line-dark); }
  .steps > li { padding-bottom: 28px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps > li { padding-left: 0 !important; border-left: 0 !important; }
  .steps > li + li { border-top: 1px solid var(--line); }
  .on-ink .steps > li + li { border-color: var(--line-dark); }
}

@media (min-width: 901px) {
  .steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps.three > li:nth-child(3n+1) { padding-left: 0; border-left: 0; }
  .steps.three > li:nth-child(n+4) { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 28px; }
}

/* Service grid */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services > article { background: var(--paper); padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; }
.services h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: 0; }
.services p { color: var(--stone); font-size: 0.98rem; }
.services .tag { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .services { grid-template-columns: 1fr; } }

/* Split layout */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split h2 { font-size: var(--step-3); font-weight: 300; }
@media (max-width: 860px) { .split, .split.even { grid-template-columns: 1fr; } }

/* Fit lists */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.fit > div { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--paper); display: grid; gap: 16px; align-content: start; }
.fit h3 { font-size: 1.2rem; font-weight: 500; }
.fit ul { list-style: none; display: grid; gap: 12px; }
.fit li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: #34312C; }
.fit .yes li::before { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--good); border-bottom: 1.5px solid var(--good); transform: rotate(-45deg); margin-top: 0.55em; }
.fit .no li::before { content: ""; width: 12px; height: 1.5px; background: var(--stone); margin-top: 0.8em; }
@media (max-width: 700px) { .fit { grid-template-columns: 1fr; } }

/* Verticals */
.verticals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.verticals > article { padding: 28px 22px 32px 0; display: grid; gap: 14px; align-content: start; }
.verticals > article + article { padding-left: 22px; border-left: 1px solid var(--line-dark); }
.verticals h3 { font-size: 1.5rem; font-weight: 400; }
.verticals ul { list-style: none; display: grid; gap: 8px; }
.verticals li { color: #CFC9BD; font-size: 0.96rem; padding-left: 18px; position: relative; }
.verticals li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 9px; height: 1.5px; background: var(--champagne); transform: rotate(45deg); }
@media (max-width: 980px) {
  .verticals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verticals > article:nth-child(odd) { padding-left: 0; border-left: 0; }
  .verticals > article:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 560px) { .verticals { grid-template-columns: 1fr; } .verticals > article { padding-left: 0 !important; border-left: 0 !important; } .verticals > article + article { border-top: 1px solid var(--line-dark); } }

/* Problem trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.trio > div { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.trio h3 { font-size: 1.35rem; font-weight: 500; }
.trio p { color: var(--stone); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* Quote-like thesis */
.thesis { font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3.2rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.015em; max-width: 22ch; }
.thesis .em { color: var(--champagne); }

/* Chart */
.chart-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: end; }
.chart-head h3 { font-size: 1.25rem; font-weight: 500; }
.chart-head p { color: var(--stone); font-size: 0.92rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.88rem; color: #34312C; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.legend i.line { height: 2px; border-radius: 1px; }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart-wrap .flat-label { fill: var(--ink); font-weight: 500; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.chart-wrap .grid-line { stroke: var(--line); stroke-width: 1; }
.chart-wrap .axis-text { font: 400 11px var(--sans); fill: var(--stone); font-variant-numeric: tabular-nums; }
.chart-wrap .bar { fill: var(--champagne); }
.chart-wrap .bar.dim { fill: var(--champagne-soft); }
.chart-wrap .flat { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }
.chart-wrap .hit { fill: transparent; cursor: default; }
.chart-wrap .hit:hover + .bar, .chart-wrap .bar.active { fill: var(--brass); }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: var(--ivory); font-size: 0.84rem; line-height: 1.4; padding: 10px 12px; border-radius: var(--radius); min-width: 160px; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .12s; z-index: 5; }
.tooltip.show { opacity: 1; }
.tooltip b { font-weight: 500; display: block; margin-bottom: 2px; }
.tooltip .row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.chart-note { font-size: 0.82rem; color: var(--stone); }
.callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.callouts > div { background: var(--paper); padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.callouts b { font-size: 1.9rem; font-weight: 400; line-height: 1.05; }
.callouts span { font-size: 0.9rem; color: var(--stone); }
@media (max-width: 700px) { .callouts { grid-template-columns: 1fr; } }
details.table-view { font-size: 0.9rem; }
details.table-view summary { cursor: pointer; color: var(--brass); font-weight: 500; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
table.data { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 0.88rem; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { font-weight: 500; color: var(--stone); }

/* Portal showcase */
.showcase { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.showcase .shot { border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); background: var(--ink-2); }
.showcase .shot img { width: 100%; height: auto; }
.showcase ul { list-style: none; display: grid; gap: 12px; margin-block: 24px 32px; }
.showcase li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: #D6D0C4; }
.showcase li::before { content: ""; width: 9px; height: 1.5px; background: var(--champagne); transform: rotate(45deg); margin-top: 0.8em; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }

/* About block */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; background: var(--ink); color: var(--ivory); display: grid; place-items: center; border-radius: 2px; max-width: 100%; }
.portrait svg { width: 42%; color: var(--ivory); }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principles > div { background: var(--paper); padding: 26px; display: grid; gap: 10px; align-content: start; }
.principles h3 { font-size: 1.2rem; font-weight: 500; }
.principles p { color: var(--stone); font-size: 0.98rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 180px; aspect-ratio: 1; } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 24px; color: var(--stone); max-width: 70ch; display: grid; gap: 10px; }

/* CTA band */
.cta-band { padding-block: clamp(64px, 9vw, 120px); }
.cta-band .inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: end; }
.cta-band h2 { font-size: var(--step-3); font-weight: 300; max-width: 18ch; }
.cta-band h2 .em { color: var(--champagne); }
.cta-band p { color: var(--mist); margin-top: 18px; max-width: 52ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
@media (max-width: 820px) { .cta-band .inner { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--mist); border-top: 1px solid var(--line-dark); padding-block: 56px 36px; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h4, .site-footer .foot-h { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); font-weight: 500; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.site-footer .legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.82rem; }
.site-footer .brand { margin-bottom: 16px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 0.86rem; font-weight: 500; letter-spacing: 0.03em; }
.field .hint { font-size: 0.82rem; color: var(--stone); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #FFFFFF;
  border: 1px solid #CFC6B4; border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--champagne); outline-offset: 0; border-color: var(--champagne); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.9rem; color: #34312C; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1px solid #CFC6B4; border-radius: 999px; background: #FFFFFF; cursor: pointer; font-size: 0.94rem; transition: all .15s; }
.chips input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--champagne); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 18px; border-radius: var(--radius); font-size: 0.95rem; }
.notice.ok { background: #E6EFE8; color: #1E4A36; }
.notice.err { background: #F6E3DF; color: #7A2A20; }
.contact-side { display: grid; gap: 28px; align-content: start; }
.contact-side .item { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.contact-side .item span { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); font-weight: 500; }

/* Scorecard */
.score-q { display: grid; gap: 14px; padding-block: 26px; border-top: 1px solid var(--line); }
.score-q .q { font-size: 1.12rem; line-height: 1.45; display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.score-q .q b { font-weight: 500; color: var(--brass); font-size: 0.85rem; letter-spacing: 0.1em; padding-top: 0.25em; font-variant-numeric: tabular-nums; }
.score-q .chips { padding-left: 54px; }
@media (max-width: 560px) { .score-q .chips { padding-left: 0; } }
.score-area { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); font-weight: 500; margin-top: 32px; }
.result { position: sticky; top: 96px; display: grid; gap: 22px; padding: clamp(24px, 3vw, 36px); background: var(--ink); color: var(--ivory); border-radius: 2px; }
.result .big { font-size: clamp(3.4rem, 2rem + 4vw, 5rem); font-weight: 300; line-height: 1; }
.result .big small { font-size: 1.1rem; color: var(--mist); margin-left: 6px; }
.result .band { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--champagne); }
.result p { color: #CFC9BD; font-size: 0.96rem; }
.meters { display: grid; gap: 12px; }
.meter { display: grid; grid-template-columns: 110px 1fr 36px; gap: 12px; align-items: center; font-size: 0.86rem; }
.meter .track { height: 8px; background: var(--ink-3); border-radius: 4px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--champagne); border-radius: 0 4px 4px 0; transition: width .3s; }
.meter .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--mist); }
.score-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .score-layout { grid-template-columns: 1fr; } .result { position: static; } }

/* Legal page */
.legal-copy { max-width: 72ch; display: grid; gap: 14px; }
.legal-copy h2 { font-size: 1.5rem; font-weight: 500; margin-top: 22px; }
.legal-copy p, .legal-copy li { color: #34312C; }
.legal-copy ul { padding-left: 20px; display: grid; gap: 6px; }

/* Utility */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.muted { color: var(--stone); }
.on-ink .muted { color: var(--mist); }
.small { font-size: 0.88rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Signature builder */
.sig-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.sig-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.sig-preview { background: #FFFFFF; border: 1px solid var(--line); border-radius: 4px; padding: 28px 24px; overflow-x: auto; box-shadow: 0 18px 40px -30px rgba(0,0,0,.35); }
.sig-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.steps-list { display: grid; gap: 8px; padding-left: 20px; color: #34312C; font-size: 0.96rem; }
@media (max-width: 900px) { .sig-layout { grid-template-columns: 1fr; } .sig-side { position: static; } }
@media (max-width: 700px) { .services[style] { grid-template-columns: 1fr !important; } }

/* Brand guide */
.brand-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brand-logos figure { margin: 0; background: var(--ivory); border: 1px solid var(--line); display: grid; gap: 0; }
.brand-logos figure.on-ink { background: var(--ink); border-color: var(--ink); }
.brand-logos img { width: 100%; height: auto; }
.brand-logos .sq img { max-width: 260px; justify-self: center; }
.brand-logos figcaption { font-size: 0.84rem; color: var(--stone); padding: 10px 14px; background: var(--paper); border-top: 1px solid var(--line); }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.swatches > div { display: grid; gap: 4px; }
.swatches i { display: block; height: 96px; border-radius: 3px; margin-bottom: 8px; }
.swatches b { font-weight: 500; }
.swatches span { font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.swatches small { font-size: 0.84rem; color: var(--stone); }
@media (max-width: 760px) { .brand-logos, .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .brand-logos { grid-template-columns: 1fr; } }

/* Proposal request */
.proposal-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .proposal-layout { grid-template-columns: minmax(0, 1fr); } }
.proposal { gap: 26px; }
.p-progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.p-progress li { display: grid; gap: 8px; font-size: 0.82rem; color: var(--stone); padding-top: 12px; border-top: 2px solid var(--line); }
.p-progress li span { display: none; }
.p-progress li.on { color: var(--ink); border-top-color: var(--ink); font-weight: 500; }
.p-progress li.done { color: var(--brass); border-top-color: var(--champagne); }
@media (max-width: 560px) { .p-progress li { font-size: 0; } .p-progress li.on { font-size: 0.82rem; grid-column: span 1; } }
.p-step { border: 0; padding: 0; margin: 0; display: grid; gap: 20px; min-width: 0; }
.p-step legend { font-size: var(--step-2); font-weight: 300; margin-bottom: 20px; padding: 0; line-height: 1.15; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option > span { display: grid; gap: 6px; padding: 20px 20px 20px 22px; border: 1px solid #CFC6B4; background: #FFFFFF; border-radius: var(--radius); min-height: 100%; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.option b { font-weight: 500; font-size: 1.08rem; }
.option small { color: var(--stone); font-size: 0.92rem; line-height: 1.45; }
.option:hover > span { border-color: var(--brass); }
.option input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper); }
.option input:focus-visible + span { outline: 2px solid var(--champagne); outline-offset: 2px; }
.chips input[type="checkbox"] + span { padding-left: 16px; }
.p-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); padding-top: 22px; }
.p-nav #p-next, .p-nav #p-submit { margin-left: auto; }
.proposal-done { display: grid; gap: 22px; align-content: start; padding: clamp(24px, 4vw, 44px); background: var(--paper); border: 1px solid var(--line); }
.proposal-done h2 { font-size: var(--step-3); font-weight: 300; }
.next-steps { display: grid; gap: 14px; padding-left: 22px; color: #34312C; }
.next-steps b { font-weight: 500; }

/* Canada band */
.canada { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.canada h2 { font-size: var(--step-3); font-weight: 300; }
.canada .points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.canada .points > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.canada .points b { display: block; font-weight: 500; font-size: 1.08rem; margin-bottom: 4px; }
.canada .points p { color: var(--stone); }
.canada .ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--champagne); display: grid; place-items: center; color: var(--brass); }
.canada .ic svg { width: 20px; height: 20px; }
.ca-badge { justify-self: start; width: fit-content; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 0.82rem; letter-spacing: 0.04em; color: #D8D3C8; }
.ca-badge svg { width: 16px; height: 16px; color: var(--champagne); }
.on-paper .ca-badge, .section .ca-badge.light { border-color: var(--line); color: #34312C; }
@media (max-width: 860px) { .canada { grid-template-columns: 1fr; } }
.proposal > * { min-width: 0; }
.p-progress li { min-width: 0; overflow: hidden; }
.canada h2 .em { color: var(--brass); }

@media (min-width: 981px) {
  .verticals.eight > article:nth-child(4n+1) { padding-left: 0; border-left: 0; }
  .verticals.eight > article:nth-child(n+5) { border-top: 1px solid var(--line-dark); }
}
@media (max-width: 980px) and (min-width: 561px) {
  .verticals.eight > article:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}
.also { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: #CFC9BD; max-width: 80ch; }
.also b { color: var(--ivory); font-weight: 500; }

.facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .facts.three { grid-template-columns: 1fr; } .facts.three > div { padding-left: 0 !important; border-left: 0 !important; } .facts.three > div + div { border-top: 1px solid var(--line-dark); } }
.industries { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.industries span { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); font-weight: 500; margin-right: 8px; }
.industries a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-size: 0.94rem; transition: border-color .15s, color .15s; }
.industries a:hover { border-color: var(--brass); color: var(--brass); }
.industries a:first-of-type { border-color: var(--champagne); }

.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.industry-grid > article { background: var(--ink); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; scroll-margin-top: 90px; }
.industry-grid > article.featured { background: var(--ink-2); box-shadow: inset 0 2px 0 var(--champagne); }
.industry-grid h3 { font-size: 1.4rem; font-weight: 400; }
.industry-grid ul { list-style: none; display: grid; gap: 8px; }
.industry-grid li { color: #CFC9BD; font-size: 0.96rem; padding-left: 18px; position: relative; }
.industry-grid li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 9px; height: 1.5px; background: var(--champagne); transform: rotate(45deg); }
.industry-grid p { color: #CFC9BD; }
.tag-light { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne); font-weight: 500; }
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .industry-grid { grid-template-columns: 1fr; } }

/* Email preferences */
.prefs { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .prefs { grid-template-columns: 1fr; } }
.prefs-main { display: grid; gap: 22px; align-content: start; max-width: 680px; }
.pref-list { list-style: none; border-top: 1px solid var(--line); }
.pref { border-bottom: 1px solid var(--line); }
.switch { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 22px 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; width: 48px; height: 28px; margin-top: 2px; border-radius: 999px; background: #CFC6B4; transition: background-color .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s, background-color .2s; }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--champagne); }
.switch input:focus-visible + .track { outline: 2px solid var(--champagne); outline-offset: 3px; }
.switch input:disabled + .track { opacity: .6; }
.pref-text { display: grid; gap: 4px; }
.pref-text b { font-weight: 500; font-size: 1.08rem; }
.pref-text span { color: var(--stone); font-size: 0.95rem; }
.pref-text em { font-style: normal; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.pref-all { display: grid; gap: 10px; justify-items: start; padding-top: 6px; }
.confirm-box { display: grid; gap: 14px; padding: 26px 28px; border: 1px solid var(--line); border-left: 3px solid var(--champagne); background: #FFFFFF; }
.confirm-box h2 { font-size: 1.5rem; }
.confirm-box .actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
