/* ============================================================
   DISols — digital solutions practice
   Design system — editorial authority × instrument-grade precision
   Palette: paper/graphite-navy/slate/silver, bronze for metrics
   ============================================================ */

/* ---- Tokens ---------------------------------------------- */
:root {
  /* surfaces */
  --paper:     #F7F5F0;
  --paper-2:   #F2F0EA;
  --paper-3:   #EFEBE2;
  --graphite:  #1B232C;
  --graphite-2:#232C36;
  --graphite-3:#2B3540;

  /* ink */
  --ink:       #17191C;
  --ink-2:     #4C5158;
  --ink-3:     #686E76;   /* ≥4.5:1 on paper — small mono labels stay AA */
  --on-dark:   #ECEAE3;
  --on-dark-2: #A7ABB0;

  /* accent */
  --teal:      #2C3E50;
  --teal-700:  #22303F;
  --teal-600:  #33485C;
  --teal-300:  #9DB2C4;
  --steel:     #506266;
  --steel-300: #C9CFD6;
  --amber:     #6E5C30;   /* PROOF METRICS ONLY */
  --amber-300: #94824F;

  /* lines */
  --line:      #E4E0D6;
  --line-2:    #D8D3C6;
  --line-dark: rgba(255,255,255,.14);
  --line-dark-2: rgba(255,255,255,.07);

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* shape */
  --radius:   4px;
  --radius-lg: 8px;
  --shadow-1: 0 1px 2px rgba(23,25,28,.04), 0 2px 8px rgba(23,25,28,.04);
  --shadow-2: 0 2px 4px rgba(23,25,28,.05), 0 12px 32px -8px rgba(23,25,28,.12);

  /* layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --band-y:  clamp(56px, 8vw, 72px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
::selection { background: var(--teal); color: var(--paper); }

/* paper grain — subtle atmosphere, no glow */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

/* ---- Typography ------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 460;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 480;
}
h2, .h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); }
h3, .h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.005em; }
h4, .h4 { font-size: 1.12rem; font-weight: 520; }

p { color: var(--ink-2); }
.lead {
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
}
strong { font-weight: 600; color: var(--ink); }

/* eyebrow / kicker — the instrument-grade signal */
.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--teal);
  opacity: .55;
}
.kicker.no-rule::before { display: none; }
.kicker--num { color: var(--ink-3); }

/* on dark */
.band-dark .kicker { color: var(--teal-300); }
.band-dark .kicker::before { background: var(--teal-300); }

/* ---- Layout ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1320px; }
.container--narrow { max-width: 820px; }

.band { position: relative; z-index: 2; padding-block: var(--band-y); }
.band--tight { padding-block: clamp(48px, 6vw, 84px); }
.band-paper   { background: var(--paper); }
.band-paper-2 { background: var(--paper-2); }
.band-sunken  { background: var(--paper-3); }
.band-dark {
  background: var(--graphite);
  color: var(--on-dark);
}
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--paper); }
.band-dark p { color: var(--on-dark-2); }
.band-dark .lead { color: var(--on-dark); }
.band-dark strong { color: #fff; }

.hr { height: 1px; background: var(--line); border: 0; }
.band-dark .hr { background: var(--line-dark); }

/* section header block */
.sec-head { max-width: 760px; }
.sec-head .kicker { margin-bottom: 1.3rem; }
.sec-head h2 { margin-bottom: 1.1rem; }
.sec-head .lead { max-width: 64ch; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .kicker { justify-content: center; }

/* grids */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.split-2 { display: grid; gap: clamp(36px, 5vw, 72px); grid-template-columns: 1.5fr .9fr; align-items: start; }
@media (max-width: 940px) { .split-2 { grid-template-columns: 1fr; } }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .85em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary,
.btn-primary:visited { background: var(--teal); color: var(--paper); }
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active { background: var(--teal-700); color: var(--paper); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.band-dark .btn-primary { background: var(--teal-300); color: var(--graphite); }
.band-dark .btn-primary:hover { background: #B3C5D4; }
.band-dark .btn-ghost { color: var(--paper); border-color: var(--line-dark); }
.band-dark .btn-ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,.04); }

/* inline arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  font-size: .95rem;
  color: var(--teal);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow:hover { gap: .8em; border-color: var(--teal); }
.link-arrow:visited { color: var(--teal); }
.band-dark .link-arrow, .band-dark .link-arrow:visited { color: var(--teal-300); }
.band-dark .link-arrow:hover { border-color: var(--teal-300); }

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

/* ---- Header ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 93%, transparent);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .5ch;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 540;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand .by {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.brand .dot { color: var(--teal); }
.brand img { height: 50px; width: auto; align-self: center; }
.brand { align-items: center; gap: 10px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: .55em .8em;
  border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--paper-3); }
.nav-links a.active { color: var(--teal); }
.nav-cta { margin-left: 8px; }

/* nav CTA: .nav-links a would win the cascade — declare every state explicitly */
.nav-links a.btn-primary,
.nav-links a.btn-primary:visited,
.nav-links a.btn-primary.active { background: var(--teal); color: var(--paper); }
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus-visible,
.nav-links a.btn-primary:active { background: var(--teal-700); color: var(--paper); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(5.5px); }
.nav-toggle span { position: relative; }

@media (max-width: 940px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease);
    box-shadow: var(--shadow-2);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .9em .4em; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta { margin: 14px 0 0; justify-content: center; }
  .nav-links a.nav-cta { border-bottom: 0; padding: .85em 1.5em; }
  .nav-toggle { display: inline-flex; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: rotate(45deg); }
  .nav-open .nav-toggle span::after  { transform: rotate(-45deg); }
}

/* ---- Hero ------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding-block: clamp(54px, 8vw, 104px) clamp(40px,6vw,72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* engineering-paper grid — site-wide on light bands */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .45;
}
.hero .container { position: relative; z-index: 2; }

.hero-brandmark {
  font-family: var(--mono);
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.7rem;
}
.hero-brandmark b { color: var(--teal); font-weight: 600; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 40ch; margin-bottom: 1.5rem; }
.hero-proof-para {
  font-size: 1rem; color: var(--ink-2); max-width: 48ch;
  padding-left: 18px; border-left: 2px solid var(--teal);
  margin-bottom: 2.1rem;
}
.hero .btn-row { margin-bottom: 0; }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }
/* the schematic can't be elegant at phone width — the dark-band ladder carries the model there */
@media (max-width: 640px) { .hero-visual { display: none; } }

/* ---- Proof strip ----------------------------------------- */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-strip .stat {
  padding: 26px clamp(10px, 1.6vw, 22px);
  border-right: 1px solid var(--line);
}
.proof-strip .stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 480;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.01em;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-top: .7rem; line-height: 1.35;
}
@media (max-width: 860px) {
  .proof-strip { grid-template-columns: repeat(3, 1fr); }
  .proof-strip .stat:nth-child(3n) { border-right: 0; }
  .proof-strip .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip .stat:nth-child(3n) { border-right: 1px solid var(--line); }
  .proof-strip .stat:nth-child(2n) { border-right: 0; }
  .proof-strip .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.band-dark .proof-strip,
.band-dark .proof-strip .stat { border-color: var(--line-dark); }
.band-dark .stat .lbl { color: var(--on-dark-2); }

/* ---- Cards ----------------------------------------------- */
/* generic surface card */
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 34px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }

/* numbered list item (problem bullets) */
.list-num { list-style: none; display: grid; gap: 2px; }
.list-num li {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  align-items: start; padding: 20px 0; border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.list-num li:last-child { border-bottom: 1px solid var(--line); }
.list-num .ix {
  font-family: var(--mono); font-size: .8rem; color: var(--teal);
  padding-top: .2rem; font-weight: 500;
}
.band-dark .list-num li { border-color: var(--line-dark); color: var(--on-dark-2); }
.band-dark .list-num .ix { color: var(--teal-300); }

/* offer card */
.offer {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.4vw, 34px);
  position: relative;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.offer:hover { border-color: var(--teal); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.offer .offer-ix {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  color: var(--ink-3); margin-bottom: 1.1rem;
}
.offer h3 { margin-bottom: .7rem; }
.offer p { font-size: .97rem; margin-bottom: 1.4rem; }
.offer .offer-out {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .03em;
  color: var(--ink-2); line-height: 1.5;
}
.offer .offer-out b { color: var(--teal); font-weight: 600; }

/* spec card (blueprint pillars / proof) — datasheet feel */
.spec {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2vw, 30px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.spec:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.spec .spec-ix {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  color: var(--amber); margin-bottom: 1rem;
}
.spec h3, .spec h4 { margin-bottom: .55rem; }
.spec p { font-size: .94rem; }

/* proof card */
.proof-card { display: grid; gap: .9rem; }
.proof-card .pc-tag {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
}
.proof-card ul { list-style: none; display: grid; gap: .6rem; }
.proof-card li {
  position: relative; padding-left: 20px; font-size: .95rem; color: var(--ink-2);
}
.proof-card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border: 1.5px solid var(--teal); border-radius: 1px;
  transform: rotate(45deg);
}

/* article card */
.article-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.2vw, 32px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.article-card:hover { border-color: var(--teal); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.article-card .meta {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem;
  display: flex; gap: .8em; flex-wrap: wrap;
}
.article-card .meta .cat { color: var(--teal); }
.article-card h3 { margin-bottom: .7rem; }
.article-card p { font-size: .95rem; margin-bottom: 1.4rem; }
.article-card .link-arrow { margin-top: auto; }

/* ---- Case study ------------------------------------------ */
.case {
  border-top: 1px solid var(--line);
  padding-block: clamp(36px, 5vw, 60px);
}
.case-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; margin-bottom: 1.8rem; }
.case-ix {
  font-family: var(--mono); font-size: .85rem; color: var(--amber);
  letter-spacing: .1em; padding-top: .35rem;
}
.case-head .pc-tag {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); display: block; margin-bottom: .7rem;
}
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px,2.4vw,36px); }
@media (max-width: 720px) { .case-grid { grid-template-columns: 1fr; } .case-head { grid-template-columns: 1fr; gap: 10px; } }
.case-field .k {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .5rem;
}
.case-field p { font-size: .96rem; }
.case-proves {
  grid-column: 1 / -1;
  background: var(--paper-3); border-radius: var(--radius);
  padding: 18px 22px; border-left: 2px solid var(--teal);
}
.case-proves .k { color: var(--teal); }

/* ---- Maturity ladder (HTML/CSS rows) --------------------- */
.ladder { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rung {
  display: grid; grid-template-columns: 64px 1fr; align-items: stretch;
  border-top: 1px solid var(--line); background: var(--paper-2);
  transition: background .3s var(--ease);
}
.rung:first-child { border-top: 0; }
.rung:hover { background: var(--paper-3); }
.rung .lvl {
  display: grid; place-content: center;
  font-family: var(--mono); font-weight: 600; font-size: .95rem;
  color: var(--paper); background: var(--teal);
  position: relative;
}
.rung:nth-child(1) .lvl { background: #5C6873; }
.rung:nth-child(2) .lvl { background: #46566A; }
.rung:nth-child(3) .lvl { background: var(--teal-600); }
.rung:nth-child(4) .lvl { background: var(--teal); }
.rung:nth-child(5) .lvl { background: var(--teal-700); }
.rung .rung-body { padding: 18px 22px; }
.rung h4 { margin-bottom: .25rem; color: var(--graphite); }
.rung p { font-size: .92rem; color: var(--ink-2); }

/* ---- Checklist ------------------------------------------- */
.checklist { list-style: none; display: grid; gap: 0; }
.checklist li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-2);
  font-size: 1rem;
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist .mk {
  width: 20px; height: 20px; flex: none; margin-top: 2px;
  border: 1.5px solid var(--teal); border-radius: 3px;
  display: grid; place-content: center;
}
.checklist .mk::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal);
  transform: rotate(-45deg);
}
.band-dark .checklist li { border-color: var(--line-dark); color: var(--on-dark-2); }
.band-dark .checklist .mk { border-color: var(--teal-300); }
.band-dark .checklist .mk::after { border-color: var(--teal-300); }

/* ---- Prose (articles / about) ---------------------------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.6rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.08rem; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .5rem; }
.prose li::marker { color: var(--teal); }
.prose blockquote {
  border-left: 3px solid var(--teal); padding: .4rem 0 .4rem 1.4rem;
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink);
}
.prose strong { color: var(--ink); }
.prose a { color: var(--teal); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-color: var(--teal); }

/* ---- Forms ----------------------------------------------- */
.form-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: .5rem; }
.field label {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2);
}
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

.form-status { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; font-size: .96rem; display: none; }
.form-status.show { display: block; }
.form-status.ok  { background: #EBEFF2; border: 1px solid var(--teal-300); color: var(--teal-700); }
.form-status.err { background: #F1EDE2; border: 1px solid var(--amber-300); color: #57481F; }

/* ---- Footer ---------------------------------------------- */
.site-footer { background: var(--graphite); color: var(--on-dark-2); position: relative; z-index: 2; }
.footer-top { padding-block: clamp(52px, 7vw, 88px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand .by { color: var(--on-dark-2); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.foot-col h5 {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-dark); margin-bottom: 1.1rem; font-weight: 500;
}
.foot-col a { display: block; padding: .35em 0; color: var(--on-dark-2); font-size: .95rem; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 24px; }
.footer-bottom .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--on-dark-2); }

/* ---- CTA band -------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .container { max-width: 760px; }
.cta-band h2 { margin-bottom: 1.2rem; }
.cta-band p { margin-bottom: 2rem; font-size: 1.1rem; }
.cta-band .btn-row { justify-content: center; }

/* ---- Page hero (interior) -------------------------------- */
.page-hero { padding-block: clamp(48px, 7vw, 56px) clamp(36px, 4vw, 48px); position: relative; }
.page-hero .kicker { margin-bottom: 1.4rem; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1.3rem; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 1.8rem; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { margin: 0 .6em; opacity: .5; }

/* ---- Reveal animation ------------------------------------ */
/* Hidden ONLY when JS is active (html.js). No-JS / failed JS => content stays visible. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* hero staggered load */
.hero .load { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }
.hero .load.l1 { animation-delay: .05s; }
.hero .load.l2 { animation-delay: .15s; }
.hero .load.l3 { animation-delay: .25s; }
.hero .load.l4 { animation-delay: .35s; }
.hero .load.l5 { animation-delay: .45s; }
.hero-visual.load { animation-delay: .25s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero .load { opacity: 1 !important; transform: none !important; animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- Skip link / a11y ------------------------------------ */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--teal); color: var(--paper); padding: .7em 1.1em; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

/* ---- Utilities ------------------------------------------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.measure { max-width: 65ch; }
.nowrap { white-space: nowrap; }
.amber { color: var(--amber); }
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }
.eyebrow-num { font-family: var(--mono); color: var(--ink-3); font-size: .8rem; letter-spacing: .1em; }

/* ---- Language selector ----------------------------------- */
.lang-select {
  position: relative;
  margin-left: 8px;
  z-index: 110;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
  cursor: pointer;
}
.lang-btn:hover { background: var(--paper-3); color: var(--ink); }
.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-code { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; }
.lang-chevron {
  width: 10px; height: 10px;
  transition: transform .2s var(--ease);
}
.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.lang-dropdown.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  font-size: .88rem;
  font-weight: 450;
  color: var(--ink-2);
  border-radius: var(--radius);
  text-align: left;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.lang-dropdown button:hover { background: var(--paper-3); color: var(--ink); }
.lang-dropdown button.active {
  color: var(--teal);
  font-weight: 600;
  background: var(--paper-2);
}
.lang-dropdown .ld-flag { font-size: 1.15rem; line-height: 1; }

@media (max-width: 940px) {
  .lang-select {
    margin: 0;
    padding: 6px 0 0;
    border-top: 1px solid var(--line);
  }
  .lang-btn {
    width: 100%;
    justify-content: center;
    padding: .7em 1em;
  }
  .lang-dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
    opacity: 0;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity .2s var(--ease), max-height .3s var(--ease);
  }
  .lang-dropdown.open {
    opacity: 1;
    max-height: 300px;
    pointer-events: auto;
  }
  .lang-dropdown button {
    justify-content: center;
    padding: .6em;
  }
}

/* ---- Cookie consent banner -------------------------------- */
.consent-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 9999;
  max-width: 420px;
  background: rgba(42, 45, 50, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  color: #e8e6e1;
  padding: 22px 26px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.consent-banner.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.consent-inner { display: flex; flex-direction: column; gap: 16px; }
.consent-inner p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.6;
  color: rgba(232, 230, 225, .72);
}
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn {
  flex: 1;
  font-size: .8rem;
  padding: .6em 1em;
  white-space: nowrap;
  border-radius: 8px;
  text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.consent-actions .btn-ghost {
  background: transparent;
  color: rgba(232, 230, 225, .55);
  border: 1px solid rgba(232, 230, 225, .2);
}
.consent-actions .btn-ghost:hover {
  color: #e8e6e1;
  border-color: rgba(232, 230, 225, .4);
  background: rgba(255, 255, 255, .06);
}
.consent-actions .btn-primary {
  background: rgba(255, 255, 255, .12);
  color: #e8e6e1;
  border: 1px solid rgba(255, 255, 255, .15);
}
.consent-actions .btn-primary:hover {
  background: rgba(255, 255, 255, .2);
}
@media (max-width: 600px) {
  .consent-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}
