/* ==========================================================================
   Mobitecture — apps, architected.
   Dark, layered, macOS/iOS-style depth. Blueprint #4E5CF0 · Copper #EE9A5B
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette (from the identity sheet) */
  --ink: #0d0f14;
  --ink-2: #121418;
  --graphite: #1d2029;
  --slate: #2c303c;
  --concrete: #8d9198;
  --limestone: #f4f2ed;
  --travertine: #e6e1d7;
  --azure: #7db2ff;
  --blueprint: #4e5cf0;
  --dusk: #432880;
  --copper: #ee9a5b;
  --mint: #5ee0a0;

  /* app product colours */
  --c-aftercast: #1fb6d4;
  --c-liturgy: #d4ae5c;
  --c-overhead: #2a8fd0;
  --c-skerry: #4e5cf0;

  --text: var(--limestone);
  --text-2: #b9bcc4;
  --text-3: #8a8e98;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);

  --glass: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  --glass-solid: rgba(22, 24, 32, 0.72);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.06) inset, 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px -8px rgba(0,0,0,0.5);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.08) inset, 0 0 0 1px rgba(255,255,255,0.04) inset, 0 2px 4px rgba(0,0,0,0.35), 0 24px 60px -20px rgba(0,0,0,0.7);

  --font: "Geist", "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: clamp(18px, 5vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: dark;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* --- ambient backdrop: blueprint grid + soft light ----------------------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 12% -10%, rgba(78,92,240,0.28), transparent 60%),
    radial-gradient(50vmax 40vmax at 100% 10%, rgba(67,40,128,0.30), transparent 60%),
    radial-gradient(45vmax 35vmax at 85% 105%, rgba(238,154,91,0.12), transparent 60%),
    linear-gradient(180deg, #10121a 0%, var(--ink) 60%);
}
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(125,178,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,178,255,0.06) 1px, transparent 1px),
    linear-gradient(rgba(125,178,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,178,255,0.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.backdrop::after { /* film grain to kill gradient banding */
  content: ""; position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 10px;
}
::selection { background: rgba(78,92,240,0.55); color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 12px; background: var(--blueprint); color: #fff;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* squircle corners where the browser supports it (Chrome 139+) */
@supports (corner-shape: squircle) {
  .card, .glass, .btn, .chip, .nav, .app-icon, .tag { corner-shape: squircle; }
  .card, .glass { border-radius: calc(var(--r-lg) * 1.6); }
}

/* --- nav ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 14px;
  border-radius: 22px;
  background: rgba(18, 20, 26, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
          backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 11px; border-radius: 13px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.08); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.nav-links .gh svg { width: 18px; height: 18px; }
.nav-links .gh span { display: none; }
@media (max-width: 420px) {
  .brand img { height: 26px; }
  .nav-links a { padding: 8px 8px; font-size: 13.5px; }
}
@media (min-width: 720px) { .nav-links .gh span { display: inline; } }

/* --- buttons & chips ----------------------------------------------------- */
.btn {
  --b: rgba(255,255,255,0.06);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: 16px; border: 1px solid var(--hairline-2);
  font: 600 15px/1 var(--font); color: var(--text);
  background: var(--b);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 8px 20px -10px rgba(0,0,0,0.6);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.10); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(180deg, #6371ff 0%, var(--blueprint) 45%, #3a3bc4 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 -2px 6px rgba(20,10,80,0.35) inset,
    0 10px 30px -10px rgba(78,92,240,0.75),
    0 2px 4px rgba(0,0,0,0.3);
}
.btn-primary:hover { background: linear-gradient(180deg, #7280ff 0%, #5966f5 45%, #3f42cf 100%); box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 14px 36px -10px rgba(78,92,240,0.9), 0 2px 4px rgba(0,0,0,0.3); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 13px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 9px; border-radius: 999px;
  font: 500 12px/1.2 var(--mono); letter-spacing: 0;
  color: var(--text-2);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}
.chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dot, var(--concrete));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--concrete)) 22%, transparent), 0 0 10px var(--dot, var(--concrete));
}
.chip.live { --dot: var(--mint); color: #cdf5e0; }
.chip.wip { --dot: var(--azure); color: #d5e5ff; }
.chip.desk { --dot: var(--copper); color: #f8dcc6; }
.chip.plan { --dot: #a7a2ff; color: #dcdaff; }
.chip.live::before { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--mint) 0%, transparent), 0 0 14px var(--mint); } }
@media (prefers-reduced-motion: reduce) { .chip.live::before { animation: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--mono); text-transform: lowercase; letter-spacing: 0.02em;
  color: var(--azure);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }

/* --- glass surfaces ------------------------------------------------------ */
.glass, .card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-2);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
}
.glass::before, .card::before { /* rim highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0) 40%, rgba(255,255,255,0) 80%, rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* --- hero ---------------------------------------------------------------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero-art { position: relative; justify-self: center; width: min(62vw, 290px); margin: 0; order: -1; }
.hero-grid > * { min-width: 0; }
.hero-art .glow {
  position: absolute; inset: 8% 4% -6%; border-radius: 40%;
  background: radial-gradient(closest-side, rgba(78,92,240,0.65), rgba(67,40,128,0.35) 55%, transparent 75%);
  filter: blur(30px); z-index: -1;
}
.hero-art .glow.copper {
  inset: auto -6% 4% auto; width: 46%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(238,154,91,0.38), transparent 70%);
}
.facade {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 50px rgba(10, 8, 40, 0.65)) drop-shadow(0 6px 12px rgba(0,0,0,0.35));
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
  will-change: transform;
}
.fig-caption {
  margin-top: 14px; text-align: center;
  font: 400 11.5px/1.4 var(--mono); color: var(--text-3); letter-spacing: .02em;
}
.fig-caption b { color: var(--copper); font-weight: 500; }

.hero h1 { margin: 0; }
.wordmark { width: clamp(250px, 72vw, 540px); height: auto; }
.tagline {
  margin: 14px 0 0; font: 400 clamp(17px, 2.4vw, 22px)/1.3 var(--mono);
  color: var(--text-2); letter-spacing: -0.01em;
}
.tagline .caret {
  display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -0.17em;
  background: var(--copper); border-radius: 2px; animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tagline .caret { animation: none; } }
.lede { margin: 22px 0 0; max-width: 34em; font-size: clamp(16px, 1.8vw, 18px); color: var(--text-2); }
.lede strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 26px; font: 400 12.5px/1.4 var(--mono); color: var(--text-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span + span::before { content: "·"; color: var(--slate); margin-right: 8px; }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-art { order: 0; width: min(100%, 420px); }
}

/* --- sections ------------------------------------------------------------ */
section { scroll-margin-top: 90px; }
.section { padding: clamp(40px, 7vw, 88px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(22px, 4vw, 36px); }
.section-head h2, .page-head h1 {
  margin: 10px 0 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08;
  font-size: clamp(28px, 4.4vw, 44px);
}
.section-head p { margin: 10px 0 0; max-width: 36em; color: var(--text-2); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--azure); }
.link-more:hover { color: #a9caff; }
.link-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-more:hover svg { transform: translateX(3px); }

.page-head { padding: clamp(36px, 7vw, 80px) 0 clamp(8px, 2vw, 16px); }
.page-head p { margin: 14px 0 0; max-width: 38em; font-size: clamp(16px, 1.8vw, 18px); color: var(--text-2); }

/* --- studio principles --------------------------------------------------- */
.principles { display: grid; gap: 14px; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { padding: 22px 22px 24px; }
.principle .num { font: 500 12px/1 var(--mono); color: var(--copper); }
.principle h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.principle p { margin: 0; color: var(--text-2); font-size: 15px; }

/* --- app cards ----------------------------------------------------------- */
.apps-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .apps-grid.four { grid-template-columns: repeat(4, 1fr); } }

.app-card {
  --accent: var(--blueprint);
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.app-card::after { /* product-colour light leak */
  content: ""; position: absolute; z-index: -1; inset: -40% -20% auto auto; width: 75%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%);
  opacity: .55; transition: opacity .35s;
  pointer-events: none;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--hairline-2); }
.app-card:hover::after { opacity: .9; }
.app-card.aftercast { --accent: var(--c-aftercast); }
.app-card.liturgy   { --accent: var(--c-liturgy); }
.app-card.overhead  { --accent: var(--c-overhead); }
.app-card.skerry    { --accent: var(--c-skerry); }

.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-icon {
  width: 64px; height: 64px; border-radius: 15px; flex-shrink: 0;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.45)) drop-shadow(0 2px 3px rgba(0,0,0,0.3));
  transition: transform .35s var(--ease);
}
.app-card:hover .app-icon { transform: scale(1.05) rotate(-2deg); }
.app-card h3 { margin: 4px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.app-card .platform { margin: 2px 0 0; font: 400 12.5px/1.4 var(--mono); color: var(--text-3); }
.app-card .desc { margin: 0; color: var(--text-2); font-size: 15px; }
.app-card .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.app-card .stretch::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.app-card .links a { position: relative; z-index: 2; }

/* detailed variant (apps page) */
.app-card.detail { padding: clamp(20px, 3.4vw, 30px); gap: 16px; }
.app-card.detail .app-icon { width: 84px; height: 84px; border-radius: 20px; }
.app-card.detail h3 { font-size: 24px; }
.facts { display: grid; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.facts li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--text-2); }
.facts li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #000));
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.code {
  display: block; overflow-x: auto; padding: 12px 14px; border-radius: 14px;
  font: 400 12.5px/1.55 var(--mono); color: #cfd6ff; white-space: nowrap;
  background: rgba(5, 6, 10, 0.55); border: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 2px 10px rgba(0,0,0,0.3) inset;
}
.code .p { color: var(--copper); user-select: none; }

/* compact list */
.mini-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .mini-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .mini-list { grid-template-columns: repeat(3, 1fr); } }
.mini {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.035); border: 1px solid var(--hairline);
  transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.mini:hover { background: rgba(255,255,255,0.06); border-color: var(--hairline-2); transform: translateY(-2px); }
.mini b { font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: 10px; }
.mini b small { font: 400 11.5px/1.6 var(--mono); color: var(--text-3); }
.mini span { font-size: 14px; color: var(--text-2); }

/* --- architect / about --------------------------------------------------- */
.split { display: grid; gap: 14px; }
@media (min-width: 880px) { .split { grid-template-columns: 1.25fr 0.75fr; } }
.panel { padding: clamp(22px, 4vw, 36px); }
.panel h2, .panel h3 { margin: 10px 0 0; letter-spacing: -0.03em; font-weight: 600; line-height: 1.15; }
.panel h2 { font-size: clamp(24px, 3.4vw, 32px); }
.panel h3 { font-size: 20px; }
.panel p { color: var(--text-2); margin: 14px 0 0; }
.panel p strong { color: var(--text); font-weight: 600; }
.role { margin-top: 6px !important; font: 400 13px/1.5 var(--mono) !important; color: var(--azure) !important; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tag {
  padding: 6px 11px; border-radius: 10px; font-size: 13px; color: var(--text-2);
  background: rgba(255,255,255,0.045); border: 1px solid var(--hairline);
}

.arc { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.arc li { position: relative; padding: 0 0 18px 26px; }
.arc li:last-child { padding-bottom: 0; }
.arc li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--graphite); border: 2px solid var(--slate);
}
.arc li:last-child::before { background: var(--copper); border-color: color-mix(in srgb, var(--copper) 50%, #000); box-shadow: 0 0 12px rgba(238,154,91,0.6); }
.arc li::after { content: ""; position: absolute; left: 9.5px; top: 20px; bottom: 2px; width: 1px; background: linear-gradient(var(--slate), transparent); }
.arc li:last-child::after { display: none; }
.arc b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.arc span { font-size: 14px; color: var(--text-3); }

.kv { display: grid; gap: 14px; margin: 18px 0 0; }
.kv div { display: grid; gap: 2px; }
.kv dt { font: 400 11.5px/1.4 var(--mono); color: var(--text-3); text-transform: lowercase; }
.kv dd { margin: 0; font-size: 15px; color: var(--text); }
.kv dd a { color: var(--azure); }
.kv dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.lockup-panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 44px) 20px; }
.lockup-panel img { width: min(100%, 300px); height: auto; }

/* --- footer -------------------------------------------------------------- */
.site-footer { padding: 40px 0 48px; margin-top: clamp(24px, 6vw, 64px); border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: auto 1fr auto; } }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand p { margin: 0; font-size: 13.5px; color: var(--text-3); line-height: 1.45; }
.footer-brand p b { color: var(--text); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-start; margin: 0; padding: 0; list-style: none; font-size: 14px; }
@media (min-width: 760px) { .footer-links { justify-content: center; } }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-note { font: 400 12px/1.4 var(--mono); color: var(--text-3); }

/* --- reveal-on-scroll (only when JS is running) -------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* --- 404 ----------------------------------------------------------------- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost img { width: 140px; margin: 0 auto 24px; filter: drop-shadow(0 20px 40px rgba(10,8,40,.6)); }
.lost h1 { margin: 0; font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.035em; }
.lost p { color: var(--text-2); }
.lost .cta { justify-content: center; }

/* no backdrop-filter support: make glass opaque enough to read */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card, .nav { background: var(--glass-solid); }
}

@media print {
  .backdrop, .site-header, .cta, .hero-art { display: none !important; }
  body { background: #fff; color: #111; }
  .glass, .card { box-shadow: none; border-color: #ddd; background: none; }
}

/* rhythm: tighten stacked sections */
.section + .section { padding-top: clamp(12px, 3vw, 32px); }
.page-head + .section { padding-top: clamp(24px, 4vw, 40px); }
