/* Shared styles for every page of the portfolio */
:root{
  --bg:#f7f4ef; --surface:#ffffff; --ink:#1c1b19; --muted:#55524c; --line:#ddd7cc;
  --accent:#c13515; --accent-ink:#ffffff; --accent-soft:#fbe4dc; --focus:#1d4ed8; --danger:#b3261e;
  --accent-deco:#c13515; --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355524c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); /* decorative only: logo dot, rules, rings */
  --btn:#c13515; --btn-ink:#ffffff; /* accent buttons, same in both themes (5.54:1) */
  --radius:16px; --max:1160px;
  --serif:"Newsreader", Georgia, serif; --sans:"Archivo", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#141413; --surface:#1e1d1b; --ink:#f1ede6; --muted:#b5b0a7; --line:#34322e;
    --accent:#ff7466; --accent-ink:#2a0b0b; --accent-soft:#3d2020; --focus:#8ab4ff; --danger:#ffb4a9; --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b5b0a7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"]{
  --bg:#141413; --surface:#1e1d1b; --ink:#f1ede6; --muted:#b5b0a7; --line:#34322e;
  --accent:#ff7466; --accent-ink:#2a0b0b; --accent-soft:#3d2020; --focus:#8ab4ff; --danger:#ffb4a9; --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b5b0a7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:84px}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} *,*::before,*::after{transition:none!important;animation:none!important} }
body{margin:0;background:var(--bg);color:var(--ink);font:300 1.0625rem/1.65 var(--sans);letter-spacing:.01em;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 16px}
@media (min-width:720px){.wrap{padding:0 32px}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:16px;top:-100px;background:var(--btn);color:var(--btn-ink);padding:10px 16px;border-radius:var(--radius);z-index:100;font-weight:600;text-decoration:none}
.skip:focus{top:12px}

/* Header */
header.site{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid transparent;transition:border-color .2s}
header.site.scrolled{border-bottom-color:var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
.logo{font:500 1.35rem/1 var(--serif);text-decoration:none;letter-spacing:-.01em;display:inline-block;padding:6px 0}
/* Logo hover: each letter rolls up and is replaced by a copy from below, staggered */
.logo .roll{display:inline-flex}
.logo .ch{display:inline-block;overflow:hidden;line-height:1.15;vertical-align:top}
.logo .ch>span{display:inline-block;position:relative;transition:transform .55s cubic-bezier(.76,0,.24,1);transition-delay:calc(var(--i) * 28ms)}
.logo .ch>span::after{content:attr(data-c);position:absolute;left:0;top:100%}
.logo:hover .ch>span,.logo:focus-visible .ch>span{transform:translateY(-100%)}
.logo .dot{color:var(--accent-deco)}

/* Intro: the logo is drawn as an outline, fills from the bottom while a counter runs,
   the dot drops in, then the logo flies into the header. Off for reduced motion. */
.intro{display:none}
.intro-on body{overflow:hidden}
.intro-on header.site .logo{opacity:0}
.intro-on .intro{display:flex}
.intro{position:fixed;inset:0;z-index:200;background:var(--bg);align-items:center;justify-content:center;cursor:pointer}
.intro.fade{transition:background-color .7s ease .15s;background-color:transparent;pointer-events:none}
.intro-logo{display:inline-flex;align-items:baseline;font:500 clamp(3.4rem,14vw,10rem)/1.15 var(--serif);letter-spacing:-.01em;transform-origin:0 0;will-change:transform}
.intro-word{position:relative;display:inline-block}
.intro-word .outline{color:transparent;-webkit-text-stroke:1px color-mix(in srgb,var(--ink) 55%,transparent)}
.intro-word .fill{position:absolute;inset:0;color:var(--ink);clip-path:inset(100% 0 0 0)}
.intro-dot{display:inline-block;color:var(--accent-deco);transform:translateY(-60%) scale(0);opacity:0}
.intro-meta{position:absolute;left:16px;right:16px;bottom:24px;display:flex;justify-content:space-between;font:500 .8rem/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
@media (min-width:720px){.intro-meta{left:32px;right:32px;bottom:32px}}
.intro.fade .intro-meta{opacity:0;transition:opacity .25s}
nav ul{list-style:none;margin:0;padding:0;display:flex;gap:clamp(8px,2vw,20px);align-items:center}
nav a{display:block;padding:10px 14px;border-radius:var(--radius);text-decoration:none;font-weight:500;font-size:.98rem;color:var(--muted)}
/* Nav: hover and the current section get an underline instead of a tinted background */
nav a:not(.cta){text-decoration-line:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:8px;transition:text-decoration-color .15s,color .15s}
nav a:not(.cta):hover{color:var(--ink);text-decoration-color:var(--line)}
nav a[aria-current="true"]:not(.cta){color:var(--ink);text-decoration-color:var(--accent-deco)}
nav a.cta{background:var(--btn);color:var(--btn-ink)}
nav a.cta:hover,nav a.cta[aria-current="true"]{background:var(--btn);color:var(--btn-ink);filter:brightness(1.08)}
.icon-btn{background:none;border:1px solid var(--line);color:var(--ink);width:44px;height:44px;border-radius:var(--radius);display:inline-grid;place-items:center;cursor:pointer}
.icon-btn:hover{background:var(--accent-soft)}
.menu-toggle{display:none}
.tools{display:flex;gap:clamp(8px,2vw,20px);align-items:center}
@media (max-width:760px){
  .menu-toggle{display:inline-grid}
  nav#primary{position:absolute;top:68px;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--line);display:none}
  nav#primary.open{display:block}
  nav ul{flex-direction:column;align-items:stretch;padding:8px 16px 16px;gap:4px}
  .tools{gap:8px}
  nav a{padding:14px 16px;font-size:1.05rem}
}

/* Hero / About */
section{padding:88px 0}
@media (max-width:720px){section{padding:64px 0}}
.eyebrow{font-size:.8rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin:0 0 14px}
/* Headings: Newsreader 500, ligatures off and a touch of tracking so letter pairs like "fi" stay separate */
h1,h2,h3{font-family:var(--serif);font-weight:500;letter-spacing:.005em;font-variant-ligatures:no-common-ligatures;margin:0}
h1{letter-spacing:.01em}
h1{font-size:clamp(2.4rem,6vw,4.4rem);line-height:1.05}
/* Headline sits on exactly two lines: size scales with the column width (Newsreader, longest line about 9.6em wide) */
.bio{container-type:inline-size}
#about-title{font-size:clamp(1.8rem,9.9cqi,4.2rem)}
h2{font-size:clamp(2rem,4vw,3rem);line-height:1.1}
h3{font-size:1.3rem;line-height:1.25}
.lede{font-size:clamp(1.1rem,1.6vw,1.3rem);color:var(--muted);max-width:60ch;margin:22px 0 0}
.about{display:grid;gap:56px;align-items:center;grid-template-columns:1fr}
@media (min-width:900px){.about{grid-template-columns:minmax(0,1fr) auto}}
/* Round portrait with an offset accent ring behind it. Fixed square size so no browser can stretch it;
   pinned to the top of its column. */
.portrait{--size:240px;position:relative;isolation:isolate;margin:0;width:var(--size);height:var(--size);flex:none;justify-self:center;align-self:start}
.portrait img{width:var(--size);height:var(--size);max-width:none;object-fit:cover;object-position:50% 40%;border-radius:50%;background:var(--accent-soft)}
.portrait::before{content:"";position:absolute;inset:0;transform:translate(14px,14px);border:2px solid var(--accent-deco);border-radius:50%;z-index:-1}
@media (max-width:899px){.portrait{--size:150px;order:-1;justify-self:start}.portrait::before{transform:translate(9px,9px)}}
.bio p{max-width:72ch;margin:0 0 16px}
/* All bio text (intro paragraph included) shares one size and color: 16px over 24px leading */
.bio p:not(.eyebrow),.bio .lede{font-size:1rem;line-height:1.5rem;color:var(--ink)}
.bio .lede{margin-top:60px}
.bio .family{padding:16px 18px;background:var(--surface);border-left:4px solid var(--accent-deco);border-radius:0 var(--radius) var(--radius) 0}
.stats-title{margin:36px 0 12px;font:600 .78rem/1.3 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.stats{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width:600px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
.stats li{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px}
.stats strong{display:block;font:500 1.9rem/1.1 var(--serif);color:var(--accent)}
.stats strong span{font:inherit;color:inherit}
/* The rating range stays on one line and shrinks to fit narrow cards (it is about 4.8em wide) */
.stats li{container-type:inline-size}
.stats .range{white-space:nowrap;font-size:min(1.9rem,19.5cqi)}
.stats .range .arrow{display:inline-block;margin:0 .12em;font-family:var(--sans);font-size:.7em;vertical-align:.12em;color:var(--muted)}
.stats li>span{display:block;margin-top:6px;font-size:.88rem;line-height:1.4;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:24px 0 0}
.stats-title + .chips{margin-top:4px}
.chips li{font-size:.85rem;font-weight:400;letter-spacing:.025em;padding:6px 12px;border:1px solid var(--line);border-radius:var(--radius);color:var(--muted)}
/* Small running text gets a little extra tracking for legibility */
.card p,.fig figcaption,.hint,footer,.facts dd,.cs-stats span,.gov span,.label span{letter-spacing:.02em}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.btn{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:var(--radius);font:600 1rem/1 var(--sans);text-decoration:none;border:2px solid var(--btn);cursor:pointer}
.btn.primary{background:var(--btn);color:var(--btn-ink)}
.btn.ghost{background:transparent;color:var(--ink)}
.btn:hover{filter:brightness(1.08)}
.btn.ghost:hover{background:var(--accent-soft)}

/* Work */
#work{background:var(--surface);border-block:1px solid var(--line)}
.work-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:24px;margin-bottom:36px}
.filters{display:flex;flex-wrap:wrap;gap:8px}
.filters button{min-height:44px;padding:8px 16px;border-radius:var(--radius);border:1px solid var(--line);background:var(--bg);color:var(--ink);font:500 .95rem var(--sans);cursor:pointer}
.filters button:hover{border-color:var(--accent)}
.filters button[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.grid{list-style:none;margin:0;padding:0;display:grid;gap:28px;grid-template-columns:1fr}
@media (min-width:700px){.grid{grid-template-columns:repeat(2,1fr)}}
.card{position:relative;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;height:100%;transition:transform .25s ease, box-shadow .25s ease}
.card:hover,.card:focus-within{transform:translateY(-4px);box-shadow:0 18px 40px -20px rgba(0,0,0,.35)}
.card .thumb{aspect-ratio:16/10;overflow:hidden;background:var(--accent-soft)}
.card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.card:hover .thumb img{transform:scale(1.04)}
.card .ph{width:100%;height:100%;display:grid;place-items:center;font:500 clamp(1.4rem,3vw,2rem)/1.1 var(--serif);color:var(--accent);text-align:center;padding:24px;
  background:radial-gradient(circle at 20% 20%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 55%),var(--accent-soft)}
.card .body{padding:22px 24px 26px;display:flex;flex-direction:column;gap:10px;flex:1}
.meta{display:flex;flex-wrap:wrap;gap:8px;font-size:.72rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.meta .tag{color:var(--accent)}
.card h3{font-size:clamp(1.5rem,2.2vw,1.75rem);line-height:1.15}
.card p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.6}
.card .impact{margin-top:auto;padding-top:10px;font-weight:600;color:var(--ink);font-size:.95rem}
.card a.stretch{text-decoration:none}
.card a.stretch::after{content:"";position:absolute;inset:0}
.card a.stretch:focus-visible{outline:none}
.card:has(a.stretch:focus-visible){outline:3px solid var(--focus);outline-offset:4px}
.card .more,.resume-card .more{font-weight:600;color:var(--accent);font-size:.95rem}
.resume-card .more{text-decoration:none}
.resume-card .more:hover{text-decoration:underline;text-underline-offset:4px}
.card[hidden]{display:none}

/* Hire */
.hire{display:grid;gap:48px;grid-template-columns:1fr}
@media (min-width:900px){.hire{grid-template-columns:.9fr 1.1fr}}
.resume-card{margin-top:32px;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.resume-card h3{margin-bottom:8px}
.resume-card p{margin:0 0 18px;color:var(--muted)}
.socials{list-style:none;padding:0;margin:24px 0 0;display:flex;gap:18px;flex-wrap:wrap}
.socials a{font-weight:500;text-underline-offset:4px}
form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px}
@media (max-width:520px){form{padding:20px}}
.field{margin-bottom:20px}
.row{display:grid;gap:0 18px;grid-template-columns:1fr}
@media (min-width:560px){.row{grid-template-columns:1fr 1fr}}
label{display:block;font-weight:600;margin-bottom:6px;font-size:.95rem}
.req{color:var(--muted);font-weight:400;font-size:.85rem}
input,select,textarea{width:100%;font:inherit;color:var(--ink);background:var(--bg);border:1.5px solid var(--line);border-radius:var(--radius);padding:12px 14px;min-height:48px}
/* Select: custom chevron set in from the edge instead of the browser's flush arrow */
select{appearance:none;-webkit-appearance:none;padding-right:46px;background-image:var(--chevron);background-repeat:no-repeat;background-position:right 18px center;background-size:14px;cursor:pointer}
textarea{min-height:140px;resize:vertical}
input:hover,select:hover,textarea:hover{border-color:var(--muted)}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:1px;border-color:var(--accent)}
[aria-invalid="true"]{border-color:var(--danger)}
.error{color:var(--danger);font-size:.88rem;margin-top:6px;display:flex;gap:6px}
.error:empty{display:none}
.status{margin-top:16px;padding:14px 16px;border-radius:var(--radius);background:var(--accent-soft)}
.status:empty{display:none}
.hint{font-size:.85rem;color:var(--muted);margin-top:6px}

footer{padding:36px 0;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem}
footer .wrap{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}

.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none}}

/* Small date note under a stat, e.g. "as of November 2026" */
.asof{display:block;margin-top:4px;font-size:.75rem;line-height:1.3;color:var(--muted)}
.asof-inline{display:inline;margin:0;font-size:.85rem}

/* ---------- Case study pages ---------- */
.cs-head{padding-top:56px;padding-bottom:40px}
.crumb{display:inline-flex;align-items:center;gap:6px;margin-bottom:28px;font-weight:600;font-size:.95rem;color:var(--muted);text-decoration:none}
.crumb:hover{color:var(--ink)}
.cs-head h1{font-size:clamp(2.4rem,6vw,4.6rem);max-width:18ch}
.cs-head .lede{max-width:56ch}
.facts{display:grid;gap:20px 32px;grid-template-columns:repeat(2,minmax(0,1fr));margin:40px 0 0;padding:24px 0 0;border-top:1px solid var(--line)}
@media (min-width:860px){.facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
.facts dt{font:600 .75rem/1.3 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.facts dd{margin:0;font-size:.98rem;line-height:1.45}
.cs-hero{margin:0;border-radius:var(--radius);overflow:hidden;background:var(--accent-soft)}
.cs-hero img{width:100%;height:auto;aspect-ratio:1600/1000;object-fit:cover;object-position:50% 30%}
@media (max-width:640px){.cs-hero img{aspect-ratio:1}}
.cs-stats{list-style:none;padding:0;margin:40px 0 0;display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.cs-stats li{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.cs-stats strong{display:block;font:500 2rem/1.1 var(--serif);color:var(--accent)}
.cs-stats span{display:block;margin-top:6px;font-size:.9rem;line-height:1.4;color:var(--muted)}
.cs-body section{padding:72px 0 0}
.cs-body section:last-of-type{padding-bottom:96px}
@media (max-width:720px){.cs-body section{padding-top:56px}}
.prose{max-width:720px}
.prose h2{font-size:clamp(1.8rem,3.4vw,2.5rem);margin-bottom:18px}
.prose h3{font-size:1.25rem;margin:36px 0 10px}
.prose p{margin:0 0 16px}
.prose ul{margin:0 0 16px;padding-left:1.2em}
.prose li{margin-bottom:10px}
.prose li::marker{color:var(--accent-deco)}
.prose strong{font-weight:600}
.split{display:grid;gap:16px;grid-template-columns:1fr;margin-top:8px}
@media (min-width:760px){.split{grid-template-columns:1fr 1fr;gap:20px}}
.split>div{padding:22px 24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.split h3{font-size:1.2rem;margin:0 0 10px}
.split p{margin:0}
.callout{margin:28px 0;padding:18px 22px;background:var(--surface);border-left:4px solid var(--accent-deco);border-radius:0 var(--radius) var(--radius) 0}
.callout p:last-child{margin:0}
.steps{list-style:none;counter-reset:step;padding:0;margin:0}
.steps>li{counter-increment:step;position:relative;padding-left:64px;margin:0 0 40px}
.steps>li::before{content:counter(step,decimal-leading-zero);position:absolute;left:0;top:2px;font:500 1.5rem/1 var(--serif);color:var(--accent)}
.steps>li h3{margin-top:0}
/* Steps laid out as columns (three across on wide screens), with small thumbnails */
.steps-cols{display:grid;gap:40px 32px;grid-template-columns:1fr}
@media (min-width:900px){.steps-cols{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Two steps: two columns */
@media (min-width:900px){.steps-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Four steps: two columns on mid widths, four across on wide screens */
@media (min-width:900px){.steps-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.steps-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 24px}}
.steps-cols>li{padding:44px 0 0;margin:0;display:flex;flex-direction:column}
.steps-cols>li>.prose{flex:1}
.steps-cols>li::before{top:0}
.steps-cols .prose{max-width:none}
.steps-cols .fig{margin:20px 0 0}
.steps-cols .fig + .fig{margin-top:16px}
.steps-cols .fig img{aspect-ratio:2/1;object-fit:contain;background:#fff}
/* Tall images (e.g. portrait infographics) keep their shape instead of the 2:1 frame */
.steps-cols .fig-tall .fig-link{width:max-content;max-width:100%}
.steps-cols .fig-tall img{aspect-ratio:auto;width:auto;max-width:100%;max-height:420px}
.steps-cols .fig figcaption{font-size:.85rem}
.fig-link{display:block;border-radius:var(--radius);cursor:zoom-in}
.fig-link:hover img{border-color:var(--accent)}
.fig{margin:36px 0 8px}
.fig img{width:100%;height:auto;border-radius:var(--radius);border:1px solid var(--line);background:#fff}
.fig figcaption{margin-top:12px;font-size:.9rem;line-height:1.5;color:var(--muted);max-width:72ch}
.fig figcaption a{color:var(--accent);font-weight:600;text-underline-offset:3px}
.fig-narrow{max-width:560px}
.scroller{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--line);background:#fff}
.scroller img{width:1600px;max-width:none;border:0;border-radius:0}
.scroller:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.gov{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:14px;grid-template-columns:1fr}
@media (min-width:640px){.gov{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gov li{margin:0;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.gov strong{display:block;margin-bottom:4px;font-family:var(--serif);font-size:1.08rem}
.gov span{color:var(--muted);font-size:.95rem;line-height:1.5}
.quotes{display:grid;gap:14px;grid-template-columns:1fr;margin:24px 0 0}
@media (min-width:640px){.quotes{grid-template-columns:1fr 1fr}}
.quotes blockquote{margin:0;padding:20px 22px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);font:500 1.08rem/1.45 var(--serif)}
.quotes .stars{display:block;margin-bottom:8px;color:var(--accent);font-family:var(--sans);letter-spacing:.12em}
/* "Coming in 2027" style label: accent on its tint (4.55:1 light, 5.57:1 dark) */
.badge{display:inline-block;padding:4px 10px;border-radius:var(--radius);background:var(--accent-soft);color:var(--accent);font:600 .72rem/1.3 var(--sans);letter-spacing:.07em;text-transform:uppercase;vertical-align:.1em}
.teaser{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:20px 0 0;max-width:60ch;color:var(--muted)}

/* Placeholder copy on case study pages that are still being written */
.todo{padding:18px 20px;border:1.5px dashed var(--line);border-radius:var(--radius);color:var(--muted);font-style:italic}
.cs-next{display:flex;flex-wrap:wrap;gap:12px;margin-top:40px}

/* ---------- Password gate for case studies ---------- */
.locked main,.locked footer{visibility:hidden}
.gate-backdrop{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:16px;background:color-mix(in srgb,var(--bg) 72%,transparent);backdrop-filter:blur(8px)}
.locked .gate-backdrop{background:var(--bg)}
.gate{width:min(440px,100%);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:0 24px 60px -24px rgba(0,0,0,.45)}
@media (max-width:520px){.gate{padding:22px}}
.gate h2{font-size:1.6rem;line-height:1.15;margin:0 0 10px}
.gate p{margin:0 0 20px;color:var(--muted)}
.gate p a{color:var(--accent);font-weight:600;text-underline-offset:3px}
.gate form{background:none;border:0;border-radius:0;padding:0}
.gate .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
