/* ============================================================================
   beuck.ventures — hand-written stylesheet
   Palette: Option A (deep forest + brass). Tokens only; no raw hex below §2.
   ========================================================================= */

/* ── 1. Fonts (self-hosted; no third-party request — GDPR) ───────────────── */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;              /* variable weight axis */
  font-display: swap;
  src: url('../fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── 2. Tokens ───────────────────────────────────────────────────────────── */

:root {
  /* Colour — every pair below is verified against the background it sits on:
     text/bg 15.3:1 · muted/bg 6.7:1 · accent/bg 7.4:1 · bg-on-accent 7.4:1
     text/surface 13.8:1 · muted/surface 6.0:1 · accent/surface 6.7:1  (all ≥ 4.5:1) */
  --bg:            #0F1A14;
  --surface:       #16241C;
  --surface-2:     #1B2C22;
  --text:          #F2EDE4;
  --muted:         #8FA396;
  --accent:        #C9A227;
  --accent-soft:   rgba(201, 162, 39, 0.14);
  --line:          rgba(242, 237, 228, 0.10);
  --line-strong:   rgba(242, 237, 228, 0.20);
  --danger:        #F2A08A;   /* 8.1:1 on --surface — error text stays AA */

  /* Spacing — 4px scale */
  --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
  --s5: 1.5rem;   --s6: 2rem;     --s7: 3rem;     --s8: 4rem;    --s9: 6rem;

  /* Type */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                  Roboto, Helvetica, Arial, sans-serif;
  --t-xs:   0.75rem;    /* 12 */
  --t-sm:   0.875rem;   /* 14 */
  --t-base: 1rem;       /* 16 */
  --t-md:   1.125rem;   /* 18 */
  --t-lg:   1.5rem;     /* 24 */
  --t-xl:   clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --t-2xl:  clamp(2.4rem, 1.3rem + 4.4vw, 4.5rem);

  /* Shape & elevation */
  --r-sm: 6px;  --r-md: 12px;  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.38);

  /* Motion — one rhythm for the whole site */
  --dur-fast:  150ms;
  --dur-mid:   240ms;
  --dur-slow:  380ms;
  --ease-out:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in:   cubic-bezier(0.55, 0.06, 0.68, 0.19);

  /* Layers */
  --z-base: 0;  --z-raised: 10;  --z-sticky: 40;  --z-nav: 100;

  --shell: 1240px;
}

/* ── 3. Reset & base ─────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;   /* clears the sticky header on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.08; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent); color: var(--bg); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s4); top: -100px;
  z-index: var(--z-nav);
  padding: var(--s3) var(--s5);
  background: var(--accent); color: var(--bg);
  font-weight: 600; text-decoration: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.section { padding-block: var(--s9); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  letter-spacing: -0.01em;
}
.section-lede {
  color: var(--muted);
  font-size: var(--t-md);
  max-width: 52ch;          /* ≈ 60–75 chars incl. spaces */
  margin-top: var(--s3);
}
.section-head { margin-bottom: var(--s5); }

/* Portfolio head sits on one line so the first tile row breaks the fold. */
.portfolio .section-head {
  display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: space-between;
  gap: var(--s3) var(--s5);
}
.portfolio .section-head .section-lede { margin-top: 0; }

.eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ── 4. Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  min-height: 48px;                 /* ≥ 44px touch target */
  padding: var(--s3) var(--s6);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--t-base);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn-sm { min-height: 44px; padding: var(--s2) var(--s5); font-size: var(--t-sm); }

.btn-primary { background: var(--accent); color: var(--bg); font-weight: 600; }
.btn-primary:hover { background: #DCB43A; }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost:active { transform: scale(0.97); }

/* ── 5. Header & nav ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  padding: var(--s3) var(--s5);
  padding-top: max(var(--s3), env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-out);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.brand {
  display: inline-flex; align-items: center; gap: var(--s3);
  text-decoration: none; letter-spacing: 0.08em; font-size: var(--t-sm);
}
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--t-md);
  line-height: 1;
}
.brand-text strong { font-weight: 600; }

.site-nav { display: flex; align-items: center; }
.nav-list {
  display: flex; align-items: center; gap: var(--s2);
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding-inline: var(--s4);
  font-size: var(--t-sm); text-decoration: none; color: var(--muted);
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.nav-list a:hover { color: var(--text); }
.nav-list .nav-cta {
  color: var(--accent);
  border: 1px solid var(--line-strong);
}
.nav-list .nav-cta:hover { background: var(--accent-soft); border-color: var(--accent); }

.nav-toggle {
  display: none;
  align-items: center; gap: var(--s2);
  min-height: 44px; padding: var(--s2) var(--s3);
  background: none; border: 1px solid var(--line-strong);
  border-radius: 999px; cursor: pointer;
  font-size: var(--t-sm);
  touch-action: manipulation;
}
.nav-toggle-bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle-bars span {
  height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav-toggle[aria-expanded='true'] .nav-toggle-bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars span:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

/* ── 6. Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 55svh;            /* deliberately short: the grid must break the fold */
  display: flex; align-items: center;
  padding-block: var(--s6) var(--s5);
  overflow: hidden;
}
/* The portfolio must start high enough that its first row is visible unscrolled. */
.section.portfolio { padding-top: var(--s5); }
.hero-bg {
  position: absolute; inset: -20%;
  z-index: var(--z-base);
  background:
    radial-gradient(46% 52% at 22% 32%, rgba(201, 162, 39, 0.13), transparent 68%),
    radial-gradient(40% 46% at 78% 62%, rgba(120, 168, 132, 0.10), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-bg::after {           /* fine grain, keeps the flat gradient from banding */
  content: ''; position: absolute; inset: 0; opacity: 0.30;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}
@keyframes drift {
  from { transform: translate3d(-2.5%, -1.5%, 0) scale(1.04); }
  to   { transform: translate3d(2.5%, 1.5%, 0) scale(1.10); }
}

.hero-inner { position: relative; z-index: var(--z-raised); }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  letter-spacing: -0.02em;
  margin-block: var(--s4) var(--s5);
  max-width: 16ch;
}
.hero-title em { font-style: normal; color: var(--accent); }

.hero-sub {
  color: var(--muted);
  font-size: var(--t-md);
  max-width: 50ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.hero-scroll {
  position: absolute; left: 50%; bottom: var(--s5);
  z-index: var(--z-raised);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-left: -22px;
  color: var(--muted);
}
.hero-scroll span {
  width: 10px; height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 2.4s var(--ease-out) infinite;
}
@keyframes nudge {
  0%, 62%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.55; }
  30%           { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* ── 7. Bento portfolio grid ─────────────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}

.tile { display: contents; }        /* the <button> is the actual grid item */

.tile-face {
  position: relative;
  grid-column: span 1;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--s5);
  width: 100%;
  min-height: 190px;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  overflow: hidden;
  /* Three independent axes on purpose: `translate` carries the scroll reveal,
     `scale` the press feedback (must land under 100ms, §3), and `transform` is
     left free for the FLIP reflow to drive. */
  transition: border-color var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-out),
              opacity var(--dur-slow) var(--ease-out),
              translate var(--dur-slow) var(--ease-out),
              scale 90ms var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.tile.is-lg   .tile-face { grid-column: span 2; grid-row: span 2; min-height: 396px; }
.tile.is-wide .tile-face { grid-column: span 2; }

.tile-face::after {                 /* brass warm-up on hover */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 100% at 50% 100%, var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity var(--dur-mid) var(--ease-out);
  pointer-events: none;
}
.tile-face:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tile-face:hover::after { opacity: 1; }
.tile-face:active { scale: 0.985; }

.tile-face[aria-expanded='true'] {
  border-color: var(--accent);
  background: var(--surface-2);
}
.tile-face[aria-expanded='true']::after { opacity: 1; }

/* Logo box — fixed height reserves space, so logos can never shift layout */
.tile-logo {
  display: flex; align-items: center;
  height: 46px;
  transition: filter var(--dur-mid) var(--ease-out),
              opacity var(--dur-mid) var(--ease-out);
}
.tile.is-lg .tile-logo { height: 64px; }
.tile-logo img, .tile-logo .logo-svg {
  max-height: 100%; width: auto; max-width: 82%; object-fit: contain;
}
.tile-logo .logo-svg { height: 100%; color: var(--text); }

/* Logo unification — the portfolio's logo set is wildly inconsistent
   (white PNGs, black line-art, one multicolour SVG). Normalise at rest,
   release on hover. */
.tile[data-tone='light'] .tile-logo { filter: grayscale(1) brightness(1.06); opacity: 0.72; }
.tile[data-tone='dark']  .tile-logo { filter: invert(1) grayscale(1);        opacity: 0.72; }
.tile[data-tone='current'] .tile-logo { opacity: 0.72; }

.tile-face:hover .tile-logo,
.tile-face:focus-visible .tile-logo,
.tile-face[aria-expanded='true'] .tile-logo { opacity: 1; }

.tile[data-tone='light'] .tile-face:hover .tile-logo,
.tile[data-tone='light'] .tile-face:focus-visible .tile-logo,
.tile[data-tone='light'] .tile-face[aria-expanded='true'] .tile-logo { filter: none; }

/* Black line-art has no colour to reveal — it stays inverted and brightens instead. */
.tile[data-tone='dark'] .tile-face:hover .tile-logo,
.tile[data-tone='dark'] .tile-face:focus-visible .tile-logo,
.tile[data-tone='dark'] .tile-face[aria-expanded='true'] .tile-logo { filter: invert(1); }

.tile[data-tone='current'] .tile-face:hover .logo-svg,
.tile[data-tone='current'] .tile-face:focus-visible .logo-svg,
.tile[data-tone='current'] .tile-face[aria-expanded='true'] .logo-svg { color: var(--accent); }

.tile-meta { display: grid; gap: var(--s1); }
.tile-name { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }
.tile-tag { font-size: var(--t-sm); color: var(--muted); }

.exit-badge {
  position: absolute; top: var(--s4); right: var(--s4);
  padding: 3px var(--s3);
  background: var(--accent); color: var(--bg);
  border-radius: 999px;
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
}

.tile-cue {
  position: absolute; right: var(--s5); bottom: var(--s5);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--muted);
  transition: transform var(--dur-mid) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.tile-cue svg { width: 13px; height: 13px; }
.tile-face:hover .tile-cue { color: var(--accent); border-color: var(--accent); }
.tile-face[aria-expanded='true'] .tile-cue {
  transform: rotate(135deg); color: var(--accent); border-color: var(--accent);
}

/* Detail panel — expands in place, spanning the full grid width */
.panel {
  grid-column: 1 / -1;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  overflow: hidden;
}
/* Collapsed only when JS is running — see the note in index.php. */
.js .panel { display: none; }
.js .panel.is-open { display: block; }

.panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s7);
  align-items: start;
  padding: var(--s7);
}
.js .panel .panel-inner {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-mid) var(--ease-out) 60ms,
              transform var(--dur-mid) var(--ease-out) 60ms;
}
/* .is-shown is applied a frame after .is-open — a transition cannot run on an
   element in the same frame it leaves display:none. */
.js .panel.is-shown .panel-inner { opacity: 1; transform: none; }
.panel-body { max-width: 62ch; }
.panel-title { font-family: var(--font-display); font-size: var(--t-lg); }
.panel-tag {
  color: var(--accent); font-size: var(--t-sm);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-block: var(--s2) var(--s4);
}
.panel-text { color: var(--muted); }
.panel-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); margin-bottom: 0; }

.panel-exit {
  min-width: 200px;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: center;
}
.panel-exit-label {
  font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--s3);
}
/* Acquirer marks are third-party artwork in their own colours — a bone plate
   keeps them legible and correct instead of forcing them onto the dark ground. */
.panel-exit-plate {
  display: grid; place-items: center;
  height: 56px; padding: var(--s3) var(--s4);
  background: var(--text); border-radius: var(--r-sm);
  margin-bottom: var(--s3);
}
.panel-exit-plate img { max-height: 32px; width: auto; }
.panel-exit-name { font-weight: 600; margin-bottom: var(--s2); }
.panel-exit-link { font-size: var(--t-sm); color: var(--accent); }

/* ── 8. Track record ─────────────────────────────────────────────────────── */

.track { padding-block: var(--s8); border-block: 1px solid var(--line); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  margin: 0;
}
.stat { display: grid; gap: var(--s2); }
.stat dt {
  order: 2;
  font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.stat dd { order: 1; margin: 0; }
.num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;   /* count-up must not shift layout */
}
.num-text { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); color: var(--text); }
.num-sep { color: var(--accent); margin-inline: 0.25em; }

/* ── 9. About ────────────────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}
.about-portrait { margin: 0; }
.about-portrait img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.04);
  transition: filter var(--dur-slow) var(--ease-out);
}
.about-portrait:hover img { filter: none; }
.about-body p { color: var(--muted); max-width: 62ch; }
.about-role {
  color: var(--accent) !important;
  font-size: var(--t-sm); letter-spacing: 0.10em; text-transform: uppercase;
  margin-block: var(--s3) var(--s5);
}
.about-actions { margin-top: var(--s5); }

/* ── 10. Contact ─────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  align-items: start;
  max-width: 42rem;
}
.contact-list { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s3); }
.contact-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }

/* ── 11. Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s6);
  padding-bottom: max(var(--s6), env(safe-area-inset-bottom));
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s4);
}
.footer-brand { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s2); }
.footer-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding-inline: var(--s3);
  font-size: var(--t-sm); color: var(--muted); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-nav a:hover { color: var(--accent); }

/* ── 12. Prose (imprint) ─────────────────────────────────────────────────── */

.prose { max-width: 62ch; }
.prose h1 { font-family: var(--font-display); font-size: var(--t-xl); margin-bottom: var(--s6); }
.prose h2 { font-size: var(--t-md); font-weight: 600; margin-block: var(--s6) var(--s2); }
.prose p, .prose address { color: var(--muted); font-style: normal; }
.prose a { color: var(--accent); }

/* ── 13. Scroll reveal ───────────────────────────────────────────────────── */

/* Gated on .js (set by an inline script in <head>) so that without JavaScript
   nothing is ever left invisible. */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity var(--dur-slow) var(--ease-out),
              translate var(--dur-slow) var(--ease-out);
}
.js .tile-face { opacity: 0; translate: 0 18px; }

.js .reveal.is-in, .js .tile-face.is-in { opacity: 1; translate: 0 0; }

/* ── 14. Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .about-grid   { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s6); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .panel-inner  { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s6); }
  .panel-exit   { justify-self: start; }
}

@media (max-width: 767px) {
  :root { --s9: 4rem; --s8: 3rem; }

  /* Narrower gutters buy back enough width to keep the grid two columns wide,
     which is the whole point of the bento: all ten visible at a glance. */
  .shell { padding-inline: var(--s4); }

  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute; top: 100%; right: var(--s4); left: var(--s4);
    flex-direction: column; align-items: stretch;
    gap: var(--s1);
    padding: var(--s3);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
  }
  .nav-list.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-list a { min-height: 48px; justify-content: flex-start; }

  .bento { grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
  .tile.is-lg   .tile-face,
  .tile.is-wide .tile-face { grid-column: span 2; grid-row: span 1; min-height: 190px; }
  .tile-face { min-height: 168px; padding: var(--s4); }
  .tile-logo { height: 38px; }
  .tile.is-lg .tile-logo { height: 44px; }
  .tile-cue { right: var(--s4); bottom: var(--s4); }

  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
  .about-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .about-portrait { max-width: 200px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Only the very narrowest phones drop to a single column. */
@media (max-width: 359px) {
  .bento { grid-template-columns: 1fr; }
  .tile.is-lg .tile-face, .tile.is-wide .tile-face { grid-column: span 1; }
  .hero-actions .btn { width: 100%; }
}

/* ── 15. Reduced motion — one path, everything instant ───────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .tile-face {
    opacity: 1 !important; translate: none !important; transform: none !important;
  }
  .hero-bg { animation: none; }
}
