  /* ============================================================================
     styles.css — J. Eden portfolio · the executable design system
     ----------------------------------------------------------------------------
     This file IS the design system. DESIGN_NOTES.md explains the *why*; the rules
     below are the *what*, and the dev-only design linter (`npm run lint:design`)
     keeps them honest. Where a declaration carries a rule, an inline comment states
     the constraint — read it before changing the value.

     Source/cascade order is deliberate: preserve the relative order of blocks when
     editing (some later rules intentionally override earlier ones, including across
     media queries). Sections, top to bottom:

       1. TOKENS        :root — palette, type scale, spacing, layout vars
       2. PRIMITIVES    reset, grain, layout helpers, skip-nav, nav, buttons
       3. CHROME        page sections — hero, about, expertise, why
       4. COMPONENTS    portfolio — filters, card grid, riso cards
       5. CHROME        contact / closing, footer
       6. RESPONSIVE    breakpoints + reduced-motion
       7. COMPONENTS    portfolio modal (detail overlay) + its breakpoint

     Non-negotiables (all linted):
       · shadows are solid offset — NEVER blurred. The lone exception is the hero
         portrait's real photographic drop-shadow (whitelisted by selector).
       · the system "black" is --ink (#171B4B) — never #000 / rgba(0,0,0,*).
       · fonts are Work Sans / DM Sans / Arial Black only — Inter/Roboto/Fraunces banned.
       · no italics — emphasis is weight or colour, never slant.
       · border-radius ∈ {0, 6px, 50% / 999px (full-round, pills & dots only)}.
     ============================================================================ */

  /* ============================================================
     1. TOKENS — palette, type scale, spacing. Edit these to retheme the site.
     ============================================================ */
  :root {
    /* Paper & ink (structural) */
    --cloud:       #fafafa;  /* Primary background — warm off-white. The page sits on cloud */
    --paper:       #E9E5DA;  /* Darker warm neutral — detail overlay & neutral-background objects */
    --ink:         #171B4B;  /* Deep navy — the "black" of the system. Never pure black */
    --tetsu:       #171B4B;  /* Alias for --ink (hero, dark section backgrounds) */
    --tetsu-soft:  #1E2358;  /* Softer dark surface inside dark sections */
    --inter:       #273287;  /* Secondary ink — eyebrows, accent text, drop-cap, focus ring */
    --rule:        rgba(23,27,75,.18);    /* Hairline divider on light bg */
    --rule-light:  rgba(233,229,218,.22); /* Hairline divider on dark bg */
    --nordic:      #D3D0E7;  /* Signature hero colour — pale violet-grey, grounding */
    --duranta:     #e4ea05;  /* Signature accent — yellow chartreuse; also highlight on dark */

    /* Spot accents — risograph inks. Use only with multiply / screen / opacity,
       never at full strength, never as a plain background fill. Each maps to a
       category of work. */
    --riso-orange: #EF5323;  /* Organizational design consulting — hands-on, active */
    --riso-pink:   #E8408E;  /* Creative & community-building — creative, playful */
    --riso-purple: #A549B2;  /* Strategy & business agility — synthesis, innovation */
    --riso-teal:   #16AAB5;  /* Vibecoded work — internet-native, stylish */
    --riso-blue:   #3B64E6;  /* Tools & resources — precision, utility */
    --riso-gold:   #F1A924;  /* Coaching — connection, empathy */

    /* Layout */
    --max:      1200px;   /* Max content width */
    --nav-h:    70px;     /* Nav height — adjusting this also adjusts hero offset */
    --section-v: clamp(40px, 5vw, 64px); /* Global vertical section padding */

    /* Accessibility hook — set to 0.9 or 1.15 via a future font-size control */
    --type-scale: 1;
  }

  /* ##########################################################################
     2. PRIMITIVES — reset · grain · layout helpers · skip-nav · nav · buttons
     ########################################################################## */

  /* ============================================================
     BASE RESET
     ============================================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    font-size: 100%; /* respect browser's base font-size preference */
  }
  body {
    margin: 0;
    background: var(--paper); /* paper shows in side margins on wide screens */
    color: var(--ink);
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  /* Page column — constrains all content to a readable width on wide screens.
     The nav stays full-viewport-width; sections are contained here. */
  .page-col {
    max-width: 1040px;
    margin: 0 auto;
    background: var(--cloud);
    box-shadow: -1px 0 0 var(--rule), 1px 0 0 var(--rule); /* hairline side rules drawn as 0-blur offset shadows — solid-offset only, never blurred */
  }

  /* ============================================================
     GRAIN TEXTURE (decorative — stays fixed behind everything)
     ============================================================ */
  .grain-bg {
    position: fixed; inset: 0; pointer-events: none; z-index: 50;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09  0 0 0 0 0.1  0 0 0 0 0.29  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    mix-blend-mode: multiply;
    opacity: 0.14;
  }
  .riso { filter: url(#riso-grain); }

  /* ============================================================
     LAYOUT HELPERS
     ============================================================ */
  .container { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
  @media (max-width: 768px) { .container { padding: 0 24px; } }

  .section-label {
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink);
    display: flex; align-items: center; gap: 12px;
  }
  .section-icon {
    display: inline-block; flex-shrink: 0;
    width: 18px; height: 18px;
    vertical-align: middle;
  }

  /* ============================================================
     SKIP NAVIGATION (accessibility)
     ============================================================ */
  .skip-nav {
    position: absolute; top: -100px; left: 16px; z-index: 9999;
    background: var(--ink); color: var(--cloud);
    padding: 10px 18px;
    font-family: "DM Sans", sans-serif; font-size: 14px;
    text-decoration: none;
    transition: top .15s;
  }
  .skip-nav:focus { top: 16px; }

  /* ============================================================
     NAVIGATION
     ============================================================ */
  /* Nav is always navy — no background transition on scroll */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    background: var(--tetsu);
    transition: box-shadow .25s;
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
    padding: 0 48px;
    max-width: var(--max);
    margin: 0 auto;
  }
  @media (max-width: 768px) { .nav-inner { padding: 0 24px; } }

  /* Logo: hidden at top (name is in the hero), fades in once scrolled */
  .nav-logo {
    font-family: "Arial Black", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 900; font-size: 20px;
    letter-spacing: -0.01em; text-transform: lowercase;
    color: var(--cloud);
    text-decoration: none;
    opacity: 0;
    transition: opacity .3s;
  }
  .nav-logo .dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--nordic); margin: 0 4px 3px 0; vertical-align: middle;
  }

  .nav-links {
    display: flex; gap: 28px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .nav-links a {
    color: var(--cloud); text-decoration: none;
    opacity: 0.85;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: opacity .15s, border-color .15s, color .15s;
  }
  .nav-links a:hover { opacity: 1; color: var(--duranta); border-color: var(--duranta); }

  /* Scrolled: reveal logo, add hairline separator */
  .nav.scrolled {
    box-shadow: 0 1px 0 var(--rule-light);
  }
  .nav.scrolled .nav-logo { opacity: 1; }

  @media (max-width: 640px) {
    .nav-links { gap: 16px; font-size: 11px; }
  }

  /* ============================================================
     BUTTONS
     ============================================================ */
  /* Rectangular label style — no rounded corners; pills are reserved for filters only */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px;
    border: 2px solid rgba(250,250,250,.42);
    border-radius: 0;
    font-family: "DM Sans", sans-serif;
    font-weight: 600; font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--cloud); text-decoration: none;
    background: transparent;
    transition: background .18s, color .18s, border-color .18s;
    cursor: pointer;
  }
  .btn:hover { background: var(--cloud); color: var(--ink); border-color: var(--cloud); }
  /* Filled: solid cloud — stands out against both dark hero and closing backgrounds */
  .btn.filled { background: var(--cloud); color: var(--ink); border-color: var(--cloud); }
  .btn.filled:hover { background: var(--duranta); border-color: var(--duranta); color: var(--ink); }
  .btn:focus-visible { outline: 3px solid var(--inter); outline-offset: 4px; } /* visible focus ring — accessibility default, never designed out (repeated on every focusable) */

  /* Light-background button context */
  .light-ctx .btn { border-color: var(--ink); color: var(--ink); }
  .light-ctx .btn:hover { background: var(--ink); color: var(--cloud); }
  .light-ctx .btn.filled { background: var(--ink); color: var(--cloud); border-color: var(--ink); }
  .light-ctx .btn.filled:hover { background: var(--nordic); color: var(--ink); border-color: var(--nordic); }

  /* ##########################################################################
     3. CHROME — page sections · hero · about · expertise · why
     ########################################################################## */

  /* ============================================================
     HERO
     ============================================================ */
  .hero {
    background: var(--tetsu);
    color: var(--cloud);
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: var(--section-v);
    position: relative;
    overflow: hidden;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  @media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  }

  .hero-eyebrow {
    font-family: "DM Sans", sans-serif;
    font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--nordic); margin-bottom: 24px;
    display: flex; align-items: center; gap: 12px;
  }
  .hero-eyebrow::before {
    content: ""; width: 36px; height: 1px; background: var(--nordic); display: inline-block;
  }

  .display-name {
    font-family: "Arial Black", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(44px, 8.5vw, 106px);
    line-height: 0.86; letter-spacing: -0.03em; text-transform: lowercase;
    margin: 0; color: var(--cloud);
  }
  .display-name span { position: relative; display: inline-block; }
  .display-name .v { color: var(--nordic); }
  .display-name .y { color: var(--duranta); }
  /* misregistration ghost effect */
  .display-name .y::before,
  .display-name .v::before {
    content: attr(data-l);
    position: absolute; left: -3px; top: 2px;
    color: var(--cloud); z-index: -1;
    mix-blend-mode: screen; opacity: 0.55;
  }

  .pronouns {
    font-family: "DM Sans", sans-serif;
    font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
    margin-top: 28px; color: var(--cloud); opacity: 0.6;
  }
  .descriptor {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 1.5vw, 22px);
    margin: 8px 0 36px;
    max-width: 36ch; line-height: 1.45;
    color: var(--cloud); opacity: 0.86;
  }
  .ctas { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Portrait */
  .portrait { position: relative; }
  .portrait-frame { position: relative; }
  .portrait-frame img {
    width: 100%; height: auto; display: block;
    /* THE exception: the only blurred shadow AND only pure-black use on the site —
       a real photographic drop-shadow for the cut-out portrait. Whitelisted by
       selector (.portrait-frame img) in the design linter; do not copy this pattern. */
    filter: drop-shadow(0 24px 48px rgba(0,0,0,.4)) drop-shadow(0 6px 14px rgba(0,0,0,.3));
  }

  /* CTAs anchored to bottom-left of portrait, overlapping the image */
  .portrait-ctas {
    position: absolute; left: 0; bottom: 20px; z-index: 3;
  }

  /* Riso symbol accents */
  .riso-deco { display: block; pointer-events: none; }
  .portrait-frame .riso-deco {
    position: absolute; top: -18px; left: -22px;
    width: 92px; height: 92px; z-index: 2;
  }
  .about-label .riso-deco {
    margin-top: 28px;
    width: 84px; height: 67px; /* 180:143.76 aspect ratio of riso-9 */
  }

  .portrait-cap {
    position: absolute; left: 0; bottom: 8px; z-index: 3;
    font-family: "DM Sans", sans-serif;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--cloud); background: var(--ink);
    padding: 6px 12px; font-weight: 500;
  }

  /* Hero meta strip */
  .hero-meta {
    position: relative;
    border-top: 1px solid var(--rule-light);
    margin-top: 40px; padding-top: 20px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  }
  @media (max-width: 880px) { .hero-meta { grid-template-columns: repeat(2, 1fr); } }
  .hero-meta .stat { font-family: "DM Sans", sans-serif; }
  .hero-meta .stat .k {
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--cloud); opacity: 0.55; margin-bottom: 8px;
  }
  .hero-meta .stat .v {
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 700; font-size: 19px; color: var(--cloud);
    line-height: 1.2; letter-spacing: -0.01em;
  }
  .hero-meta .stat .v em { font-style: normal; color: var(--duranta); font-weight: 800; }

  /* ============================================================
     ABOUT
     ============================================================ */
  .about {
    padding: var(--section-v) 0;
    border-top: 1px solid var(--rule);
  }
  .about-grid {
    display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
  }
  @media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

  .about-label { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }

  /* Stats in the about left column — replaces the h2 */
  .about-stats { margin-top: 24px; }
  .about-stat {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }
  .about-stat:first-child { border-top: 1px solid var(--rule); }
  .stat-k {
    font-family: "DM Sans", sans-serif;
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    font-weight: 600; color: var(--inter); margin-bottom: 3px;
  }
  .stat-v {
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 700; font-size: 16px;
    letter-spacing: -0.01em; color: var(--ink); line-height: 1.3;
  }

  .about-text p {
    font-family: "DM Sans", sans-serif;
    font-size: 17px; line-height: 1.65;
    margin: 0 0 18px; max-width: 62ch; color: var(--ink);
  }

  /* ============================================================
     EXPERTISE
     ============================================================ */
  .expertise {
    padding: var(--section-v) 0;
    border-top: 1px solid var(--rule);
    background: var(--paper);
  }
  .expertise-head {
    display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
    margin-bottom: 48px; align-items: end;
  }
  @media (max-width: 880px) { .expertise-head { grid-template-columns: 1fr; gap: 24px; } }

  .expertise h2 {
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(30px, 5.6vw, 84px);
    line-height: 0.94; margin: 24px 0 0; letter-spacing: -0.035em;
  }
  .expertise h2 .acc { color: var(--inter); }
  .expertise-intro {
    font-family: "DM Sans", sans-serif;
    font-size: 17px; line-height: 1.55;
    max-width: 56ch; margin: 0; color: var(--ink); opacity: 0.78;
  }

  .expertise-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  }
  @media (max-width: 880px) { .expertise-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .expertise-grid { grid-template-columns: 1fr; } }

  .area {
    background: var(--cloud); border: 1px solid var(--rule);
    padding: 24px 22px;
    display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start;
    transition: background .15s, border-color .15s;
  }
  .area:hover { background: var(--nordic); border-color: var(--ink); }
  .area .num { font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: 0.1em; color: var(--inter); padding-top: 4px; }
  .area h3 {
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 800; font-size: 19px; line-height: 1.2;
    margin: 0 0 6px; letter-spacing: -0.015em;
  }
  .area p { font-family: "DM Sans", sans-serif; font-size: 13px; line-height: 1.5; margin: 0; color: var(--ink); opacity: 0.78; }

  /* ============================================================
     WHY WORK WITH ME
     ============================================================ */
  .why {
    padding: var(--section-v) 0;
    border-top: 1px solid var(--rule);
    background: var(--cloud); position: relative;
  }
  .why-head {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
    align-items: start; margin-bottom: 28px;
  }
  @media (max-width: 880px) { .why-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; } }

  .why h2 {
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(26px, 2.2vw, 36px);
    line-height: 1.0; margin: 16px 0 0; letter-spacing: -0.03em; text-wrap: balance;
  }
  .why h2 .acc { color: var(--inter); }
  .why-intro {
    font-family: "DM Sans", sans-serif;
    font-size: 15px; line-height: 1.55; max-width: 52ch;
    margin: 0; color: var(--ink); opacity: 0.78;
  }
  .why-list { list-style: none; padding: 0; margin: 0; counter-reset: why; border-top: 1px solid var(--ink); }
  .why-list li {
    counter-increment: why;
    display: grid; grid-template-columns: 44px 1fr; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid var(--rule);
    align-items: start;
    transition: background .15s;
  }
  .why-list li:hover { background: var(--paper); }
  .why-list li::before {
    content: "0" counter(why) ".";
    font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: 0.08em;
    color: var(--inter); padding-top: 4px;
  }
  .why-list .why-body {
    font-family: "DM Sans", sans-serif; font-weight: 400;
    font-size: 15px; line-height: 1.5;
    margin: 0; text-wrap: pretty; max-width: 62ch; color: var(--ink);
  }
  .why-list .why-body .lead { font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.01em; }
  .why-list .why-body em { font-style: normal; color: var(--inter); font-weight: 700; } /* no italics — <em> emphasis is colour + weight, never slant */

  /* ##########################################################################
     4. COMPONENTS — portfolio · filters · card grid · riso cards
     ########################################################################## */

  /* ============================================================
     PORTFOLIO
     ============================================================ */
  .portfolio {
    padding: var(--section-v) 0 calc(var(--section-v) * 1.25);
    background: var(--paper); position: relative;
    border-top: 1px solid var(--rule);
  }
  /* Heading block — stacks above filter bar */
  .portfolio-head {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  .portfolio-head h2 {
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(34px, 6.4vw, 92px);
    line-height: 0.92; margin: 16px 0 0; letter-spacing: -0.035em; text-transform: lowercase;
  }

  /* Filter pills — the only fully-rounded geometry on the page */
  .filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-family: "DM Sans", sans-serif;
    padding-bottom: 28px; border-bottom: 1px solid var(--ink); margin-bottom: 40px;
  }
  .filters .pill {
    border-radius: 999px; /* fully-round — reserved for filter pills, the ONLY fully-round geometry on the page */
    border: 1.5px solid var(--ink);
    background: transparent;
    padding: 7px 17px;
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink); cursor: pointer; font-weight: 500;
    font-family: "DM Sans", sans-serif;
    transition: color .15s, background .15s, border-color .15s;
  }
  .filters .pill:hover { background: var(--paper); color: var(--inter); border-color: var(--inter); }
  .filters .pill.active { background: var(--ink); color: var(--cloud); border-color: var(--ink); }
  .filters .pill:focus-visible { outline: 3px solid var(--inter); outline-offset: 4px; }

  /* filter count superscript */
  .filters .pill sup { font-size: 9px; margin-left: 5px; opacity: .55; font-weight: 600; }
  .filters .pill.active sup { color: var(--duranta); opacity: 1; }

  /* ---------- Card grid (4:5 portrait; featured spans 2 columns) ---------- */
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
  @media (max-width: 880px) { .grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

  /* ---------- Riso studio card (issue #29) ----------
     A button whose face is generated riso art (or a real image), with a
     scrim and caption overprinted at the bottom. Hard-edged brand: 2px ink
     outline + solid offset shadow on hover. */
  .card {
    position: relative; display: block; width: 100%; aspect-ratio: 4 / 5;
    overflow: hidden; cursor: pointer; padding: 0; text-align: left;
    border: 2px solid var(--ink); border-radius: 6px;
    background: var(--cloud); color: var(--ink); font: inherit;
    transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s cubic-bezier(.2,.7,.2,1);
  }
  .card.is-dark { background: var(--ink); color: var(--paper); }
  .card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); } /* solid offset is the elevation language — NEVER blurred */
  .card:focus-visible { outline: 3px solid var(--inter); outline-offset: 4px; }
  .card-featured { grid-column: span 2; aspect-ratio: 16 / 10; }
  @media (max-width: 560px) { .card-featured { grid-column: span 1; aspect-ratio: 4 / 5; } }

  /* art layer — generated riso svg or a real (duotone-multiply) image */
  .card-art { position: absolute; inset: 0; display: block; }
  .card-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
  .card.is-dark .card-art img { mix-blend-mode: normal; } /* real photos read true on ink stock */
  .riso-svg { width: 100%; height: 100%; display: block; }
  .riso-layer { transition: transform .35s ease; }
  .card:hover .riso-layer-a { transform: translate(-6px, -4px); }
  .card:hover .riso-layer-b { transform: translate(7px, 5px); }

  /* scrim keeps the caption legible over the art */
  .card-scrim {
    position: absolute; left: 0; right: 0; bottom: 0; height: 66%; pointer-events: none;
    background: linear-gradient(180deg, rgba(250,250,250,0) 0%, rgba(250,250,250,.62) 44%, rgba(250,250,250,.97) 84%);
  }
  .card.is-dark .card-scrim {
    background: linear-gradient(180deg, rgba(23,27,75,0) 0%, rgba(23,27,75,.62) 44%, rgba(23,27,75,.97) 84%);
  }
  .card-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; display: block; }
  .card-eyebrow {
    display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
    font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--inter);
  }
  .card.is-dark .card-eyebrow { color: var(--nordic); }
  .cat-dots { display: inline-flex; flex-shrink: 0; }
  .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; mix-blend-mode: multiply; }
  .card.is-dark .dot { mix-blend-mode: screen; }
  .dot-b { margin-left: -3px; }
  .card-title {
    display: block;
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif; font-weight: 800;
    font-size: clamp(18px, 1.9vw, 24px); line-height: 1.12; letter-spacing: -0.02em;
    text-wrap: balance; color: var(--ink);
  }
  .card.is-dark .card-title { color: var(--cloud); }
  .card-featured .card-title { font-size: clamp(22px, 2.4vw, 30px); }
  .card-dek {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-family: "DM Sans", sans-serif; font-size: 14px; line-height: 1.4; margin-top: 5px;
    color: var(--tetsu-soft);
  }
  .card.is-dark .card-dek { color: var(--paper); opacity: .82; }
  .card-open {
    display: block; margin-top: 9px; opacity: 0; transition: opacity .2s;
    font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--inter);
  }
  .card.is-dark .card-open { color: var(--duranta); }
  .card:hover .card-open { opacity: .9; }
  /* ##########################################################################
     5. CHROME — contact / closing · footer
     ########################################################################## */

  /* ============================================================
     CONTACT / CLOSING
     ============================================================ */
  .closing {
    padding: var(--section-v) 0;
    background: var(--tetsu); color: var(--cloud);
    position: relative; overflow: hidden;
  }
  .closing-head { margin-bottom: 56px; max-width: 920px; }
  .closing-eyebrow {
    font-family: "DM Sans", sans-serif;
    font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--nordic); margin-bottom: 18px;
    display: flex; align-items: center; gap: 12px;
  }
  .closing-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--nordic); display: inline-block; }
  .closing h3 {
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 7.4vw, 108px);
    line-height: 0.92; margin: 0 0 28px; letter-spacing: -0.035em; text-wrap: balance;
    color: var(--cloud);
  }
  .closing h3 .acc { color: var(--duranta); }
  .closing-lede {
    font-family: "DM Sans", sans-serif; font-weight: 400;
    font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55;
    max-width: 60ch; margin: 0; color: var(--cloud); opacity: 0.86;
  }

  .closing-grid {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px;
    align-items: start;
    padding-top: 32px; border-top: 1px solid var(--rule-light);
  }
  @media (max-width: 880px) { .closing-grid { grid-template-columns: 1fr; gap: 32px; } }

  .side-label { font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cloud); opacity: 0.5; margin-bottom: 14px; }

  .linkedin-card {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 24px;
    background: rgba(250,250,250,.06); border: 1px solid var(--rule-light);
    text-decoration: none; color: var(--cloud);
    transition: background .18s, border-color .18s;
  }
  .linkedin-card:hover { background: var(--duranta); color: var(--ink); border-color: var(--duranta); }
  .linkedin-card .li-icon {
    width: 44px; height: 44px; background: var(--cloud); color: var(--ink);
    display: grid; place-items: center;
    font-family: "Arial Black", system-ui, sans-serif; font-size: 20px; flex-shrink: 0;
    transition: background .18s, color .18s;
  }
  .linkedin-card:hover .li-icon { background: var(--ink); color: var(--duranta); }
  .linkedin-card .li-body { flex: 1; }
  .linkedin-card .li-k { font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-bottom: 4px; }
  .linkedin-card .li-v { font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
  .linkedin-card .li-arrow { font-size: 22px; opacity: 0.6; }
  .linkedin-card:hover .li-arrow { opacity: 1; }

  .other-line { margin-top: 24px; font-family: "DM Sans", sans-serif; font-size: 13px; letter-spacing: 0.04em; color: var(--cloud); opacity: 0.6; line-height: 1.6; }

  /* Contact form */
  .form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form .field { display: flex; flex-direction: column; }
  .form .field.full { grid-column: 1 / -1; }
  .form label { font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cloud); opacity: 0.55; margin-bottom: 8px; }
  .form input, .form textarea, .form select {
    font-family: "DM Sans", sans-serif; font-size: 17px;
    background: transparent; border: none;
    border-bottom: 1px solid var(--rule-light);
    padding: 8px 0 12px; color: var(--cloud); outline: none; border-radius: 0;
    transition: border-color .18s;
  }
  .form input:focus, .form textarea:focus, .form select:focus { border-bottom-color: var(--duranta); }
  .form textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
  .form select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23fafafa' d='M6 8 0 0h12z'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; background-size: 10px; padding-right: 24px; }
  .form select option { background: var(--tetsu); color: var(--cloud); }
  .form input::placeholder, .form textarea::placeholder { color: rgba(250,250,250,.45); }
  .form-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
  .form-actions .small { font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: 0.1em; color: var(--cloud); opacity: 0.55; }
  .form-status { font-family: "DM Sans", sans-serif; font-size: 12px; letter-spacing: 0.08em; color: var(--duranta); grid-column: 1 / -1; min-height: 18px; opacity: 0; transition: opacity .2s; }
  .form-status.show { opacity: 1; }

  /* ============================================================
     FOOTER
     ============================================================ */
  .foot {
    background: var(--tetsu); color: var(--cloud);
    border-top: 1px solid var(--rule-light); padding: 22px 0;
    font-family: "DM Sans", sans-serif; font-size: 12px; letter-spacing: 0.06em;
  }
  .foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; opacity: 0.7; }

  /* ##########################################################################
     6. RESPONSIVE — breakpoints + reduced-motion. Keep these before the modal
        block below; some rules here intentionally pair with later overrides.
     ########################################################################## */

  /* ============================================================
     MOBILE — reduce vertical rhythm, switch cards to landscape
     ============================================================ */
  @media (max-width: 768px) {
    .hero { padding-top: calc(var(--nav-h) + 20px); }
    .why-list li { grid-template-columns: 36px 1fr; gap: 12px; }
  }


  /* Small-phone: tighter why-list */
  @media (max-width: 430px) {
    .why-list li { grid-template-columns: 40px 1fr; gap: 12px; }
  }

  /* ============================================================
     REDUCED MOTION — honour user's OS preference
     ============================================================ */
  @media (prefers-reduced-motion: reduce) {
    .card { transition: box-shadow .18s; }
    .card:hover { transform: none; }
    .card:hover .riso-layer-a, .card:hover .riso-layer-b { transform: none; }
    .modal { animation: none; }
  }

  /* ##########################################################################
     7. COMPONENTS — portfolio modal (detail overlay) + its breakpoint
     ########################################################################## */

  /* ============================================================
     PORTFOLIO MODAL — detail overlay (replaces the inline accordion)
     Focus-trapped, scroll-locked; built in JS, styled here.
     ============================================================ */
  .overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(23,27,75,.5);
    display: flex; justify-content: center; align-items: flex-start;
    padding: clamp(12px, 3vw, 48px); overflow-y: auto;
  }
  .modal {
    background: var(--paper); color: var(--ink);
    border: 2px solid var(--ink); border-radius: 8px; /* DRIFT: 8px is outside the system set {0,6px,50%,999px} — design linter flags this to reconcile (→ 6px) */
    width: min(820px, 100%); margin: auto 0;
    box-shadow: 14px 14px 0 var(--ink); /* solid offset elevation — never blurred */
    animation: modal-rise .24s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes modal-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal-head { padding: clamp(20px, 3.2vw, 36px); border-bottom: 2px solid var(--ink); }
  .modal-crumb { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
  .modal-crumb .card-eyebrow { margin-bottom: 0; }
  .modal-close {
    background: none; border: 1.5px solid var(--ink); border-radius: 999px;
    padding: 6px 14px; cursor: pointer; color: var(--ink); white-space: nowrap;
    font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
  }
  .modal-close:hover { background: var(--ink); color: var(--paper); }
  .modal-close:focus-visible { outline: 3px solid var(--inter); outline-offset: 3px; }
  .modal-title {
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif; font-weight: 900;
    font-size: clamp(26px, 4.2vw, 42px); line-height: 1.04; letter-spacing: -0.03em;
    margin: 0; text-wrap: balance;
  }
  .modal-dek {
    font-family: "DM Sans", sans-serif; font-size: clamp(16px, 2vw, 19px); line-height: 1.5;
    margin: 10px 0 0; color: var(--tetsu-soft); max-width: 52ch;
  }
  .meta-rail { display: flex; gap: 28px; flex-wrap: wrap; margin: 20px 0 0; }
  .meta-rail dt {
    font-family: "DM Sans", sans-serif; font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--inter); font-weight: 600; margin-bottom: 3px;
  }
  .meta-rail dd {
    margin: 0; font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif;
    font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  }
  .modal-flow { padding: clamp(20px, 3.2vw, 36px); display: flex; flex-direction: column; gap: 24px; }
  .body-text {
    font-family: "DM Sans", sans-serif; font-size: 17px; line-height: 1.62;
    margin: 0; max-width: 62ch; color: var(--ink); text-wrap: pretty;
  }

  /* case study — pull stats + sections */
  .pull-row { display: flex; gap: 14px; flex-wrap: wrap; }
  .pull {
    border: 1.5px solid var(--ink); border-radius: 5px; background: var(--cloud); /* DRIFT: 5px is off-system — design linter flags this to reconcile (→ 6px) */
    padding: 14px 18px; min-width: 150px; flex: 1; display: flex; flex-direction: column; gap: 3px;
  }
  .pull-num { font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif; font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
  .pull-label { font-family: "DM Sans", sans-serif; font-size: 13px; color: var(--tetsu-soft); }
  .case-section { margin: 0; }
  .case-section h3 {
    display: flex; align-items: center; gap: 8px; margin: 0 0 7px;
    font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--inter);
  }
  .case-tick { width: 14px; height: 3px; border-radius: 2px; display: inline-block; flex-shrink: 0; } /* DRIFT: 2px is off-system — design linter flags this to reconcile (→ 0 or 6px) */

  /* figure / image */
  .modal-figure { margin: 0; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--cloud); }
  .modal-figure img { width: 100%; display: block; }
  .modal-caption {
    display: block; border-top: 1.5px solid var(--rule); padding: 10px 14px;
    font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--inter); background: var(--cloud);
  }

  /* embed / game */
  .embed-frame { aspect-ratio: 16 / 9; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: var(--cloud); }
  .embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
  .out-link { font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 14px; color: var(--inter); text-decoration: none; }
  .out-link:hover { text-decoration: underline; }
  .coming-soon {
    font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--inter); opacity: .7;
  }

  /* download */
  .download-card {
    display: flex; align-items: center; gap: 16px;
    border: 1.5px solid var(--ink); border-radius: 6px; background: var(--cloud);
    padding: 16px 18px; text-decoration: none; color: var(--ink);
  }
  a.download-card { transition: transform .18s, box-shadow .18s; }
  a.download-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
  .download-card.is-pending { opacity: .85; }
  .dl-glyph {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; color: var(--cloud);
    font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif; font-weight: 900; font-size: 22px;
  }
  .dl-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
  .dl-name { font-family: "Work Sans", "Helvetica Neue", system-ui, sans-serif; font-weight: 700; font-size: 16px; }
  .dl-meta { font-family: "DM Sans", sans-serif; font-size: 12px; color: var(--inter); }
  .dl-cta {
    border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px;
    font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  }

  @media (max-width: 560px) {
    .modal { box-shadow: 8px 8px 0 var(--ink); }
    .meta-rail { gap: 18px; }
  }
