/* ==========================================================================
   Arkaive Studios — "Lamplit reading room"
   ========================================================================== */

:root {
  /* Palette: each colour belongs to an object in the room */
  --night: #0B0A09;      /* Night Stacks: the dark room */
  --walnut: #16120E;     /* Walnut Shelf: raised surfaces */
  --parchment: #EDE5D3;  /* Parchment: aged page, text */
  --dust: #8F887B;       /* Dust: labels */
  --amber: #FFA620;      /* Lamp Amber: the one light */

  /* Semantic (dark = default) */
  --bg: var(--night);
  --fg: var(--parchment);
  --muted: var(--dust);
  --surface: var(--walnut);
  --line: #2A241C;
  --accent-text: var(--amber);
  --pov-bg: var(--parchment);
  --pov-fg: var(--night);
  --pov-muted: #5A5348;
  --owl-head: var(--parchment);
  --owl-cut: var(--night);
  --pupil: var(--night);
  --ring: rgba(237, 229, 211, .35);
  --ring-soft: rgba(237, 229, 211, .12);
  --header-bg: rgba(11, 10, 9, .72);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

/* "Lights on" */
[data-theme="light"] {
  --bg: var(--parchment);
  --fg: var(--night);
  --muted: #5A5348;
  --surface: #E2D9C4;
  --line: rgba(11, 10, 9, .28);
  --accent-text: var(--night);
  --pov-bg: var(--night);
  --pov-fg: var(--parchment);
  --pov-muted: var(--dust);
  --owl-head: var(--night);
  --owl-cut: var(--parchment);
  --pupil: var(--night);
  --ring: rgba(11, 10, 9, .6);
  --ring-soft: rgba(11, 10, 9, .2);
  --header-bg: rgba(237, 229, 211, .78);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
main > section { scroll-margin-top: 64px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--night);
  font-family: var(--font-mono); font-size: 13px; padding: 10px 14px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.5;
}
.muted { color: var(--muted); }
.accent-text { color: var(--accent-text); }
.accent { color: var(--accent-text); font-style: italic; }
[data-theme="light"] .accent {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: .055em;
  text-underline-offset: .06em;
}

/* ---------- Links ---------- */
.link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-block;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link--accent { color: var(--accent-text); }
.link--accent::after { transform: scaleX(1); height: 1px; background: var(--amber); }
.link--accent:hover::after, .link--accent:focus-visible::after { height: 2px; }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover > .arrow, a:focus-visible > .arrow { transform: translate(3px, -3px); }

/* ---------- Lamp (cursor light) ---------- */
.lamp {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; z-index: 0;
  margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 166, 32, .13), rgba(255, 166, 32, 0) 65%);
  opacity: 0; transition: opacity .6s ease;
  will-change: transform;
}
.lamp.on { opacity: 1; }
[data-theme="light"] .lamp { display: none; }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: var(--header-bg);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--font-display); font-size: 28px; letter-spacing: -.01em; line-height: 1; }
.nav { display: flex; gap: 40px; margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 28px; }

.lamp-toggle {
  width: 44px; height: 24px; padding: 3px; border-radius: 12px;
  border: 1px solid var(--muted); background: transparent; cursor: pointer;
  display: flex; align-items: center; color: var(--fg);
}
.lamp-toggle-knob {
  width: 16px; height: 16px; border-radius: 50%; background: var(--amber);
  transition: transform .35s var(--ease), background-color .3s;
}
[data-theme="light"] .lamp-toggle { border-color: var(--fg); }
[data-theme="light"] .lamp-toggle-knob { transform: translateX(20px); background: var(--fg); }

.menu-btn { display: none; }

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .brand-name { font-size: 22px; }
  .brand-mark { width: 28px; height: 28px; }
  .header-cta { display: none; }
  .header-actions { gap: 16px; }
  .menu-btn {
    display: block; position: relative; width: 28px; height: 28px;
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--fg);
  }
  .menu-btn span {
    position: absolute; left: 3px; right: 3px; height: 1.5px; background: currentColor;
    transition: transform .35s var(--ease), top .35s var(--ease);
  }
  .menu-btn span:nth-child(1) { top: 9px; }
  .menu-btn span:nth-child(2) { top: 18px; }
  .menu-open .menu-btn span:nth-child(1) { top: 13.5px; transform: rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { top: 13.5px; transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--bg);
    flex-direction: column; justify-content: center; gap: 8px;
    padding: var(--header-h) var(--pad) 40px;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
    margin: 0;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  /* backdrop-filter would trap the fixed overlay inside the header box */
  .menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; border-color: transparent; }
  .nav .link {
    font-family: var(--font-display); font-size: 64px; letter-spacing: -.03em;
    text-transform: none; line-height: 1.05;
  }
  .nav .link::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: max(100svh, 760px);
  padding: calc(var(--header-h) + 24px) var(--pad) 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.eyes {
  position: absolute; right: -2vw; top: calc(var(--header-h) + 2vh);
  width: min(54vw, 760px); aspect-ratio: 740 / 480; pointer-events: none;
}
.eyes svg { width: 100%; height: 100%; overflow: visible; }
.eyes .ring { stroke: var(--ring); stroke-width: 1.2; }
.eyes .ring--inner { stroke: var(--ring-soft); }
.eyes .pupil { fill: var(--pupil); }
.eyes-glow { transition: opacity .4s; }
[data-theme="light"] .eyes-glow { opacity: 0; }
.eye .iris { transform-box: fill-box; transform-origin: center; transition: transform .12s ease-in; }
.eyes.blink .iris { transform: scaleY(.06); }

.hero-body { position: relative; display: flex; flex-direction: column; gap: 28px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-text);
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: .93; letter-spacing: -.035em;
}
.line, .cl { display: block; overflow: hidden; padding-bottom: .22em; margin-bottom: -.22em; }
.line-in, .cl-in { display: block; }
.js .line-in, .js .cl-in { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .is-in .line-in, .js .is-in .cl-in { transform: none; }

.hero-foot {
  display: grid; grid-template-columns: 1fr minmax(0, 440px) 1fr; align-items: end; gap: 32px;
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: 12px;
}
.hero-copy { font-size: 18px; line-height: 1.5; grid-column: 2; }
.hero-tag { grid-column: 1; grid-row: 1; font-size: 12px; align-self: end; }
.scroll-cue { grid-column: 3; justify-self: end; font-size: 12px; }

@media (max-width: 820px) {
  .hero { justify-content: flex-start; gap: 24px; padding-top: calc(var(--header-h) + 8px); min-height: auto; }
  .eyes { position: relative; right: auto; top: auto; width: 100%; margin: 0 auto; }
  .hero-title { font-size: clamp(3.6rem, 17vw, 5rem); line-height: .94; }
  .hero-foot { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy, .hero-tag, .scroll-cue { grid-column: 1; grid-row: auto; }
  .hero-copy { font-size: 16px; }
  .hero-tag { order: 3; font-size: 11px; letter-spacing: .08em; }
  .scroll-cue { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Point of view ("the lights come on") ---------- */
.pov {
  --r: 150;
  position: relative;
  background: var(--pov-bg); color: var(--pov-fg);
  padding: clamp(64px, 8vw, 110px) var(--pad) 0;
  overflow: hidden;
}
.js .pov { clip-path: circle(calc(var(--r) * 1%) at 50% 30%); }
.pov-inner { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4.4vw, 64px); }
.pov-sub { color: var(--pov-muted); margin-top: 6px; font-size: 12px; letter-spacing: .14em; }
.pov-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.9rem, 7.3vw, 6.5rem); line-height: .96; letter-spacing: -.035em;
}
.pov-words { display: block; }
.pov-words .w { opacity: var(--wo, 1); transition: opacity .25s linear; }
.pov-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.pov-cols p { font-size: 18px; line-height: 1.55; }

.spines {
  display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: clamp(56px, 8vw, 120px);
  border-bottom: 10px solid var(--pov-fg); overflow: hidden;
}
.spines i {
  display: block; flex-shrink: 0; background: var(--pov-fg);
  transform-origin: bottom; transition: transform .7s var(--ease), background-color .3s;
  transition-delay: calc(var(--i) * 30ms);
}
.js .spines i { transform: scaleY(0); }
.js .spines.in i { transform: none; }
.spines i.amber { background: var(--amber); cursor: default; }
.js .spines.in i.amber:hover { transform: translateY(-14px); transition-delay: 0s; transition-duration: .3s; }

@media (max-width: 820px) {
  .pov-inner { grid-template-columns: 1fr; gap: 20px; }
  .pov-cols { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .pov-cols p { font-size: 16px; line-height: 1.5; }
  .spines { height: 96px; gap: 5px; border-bottom-width: 8px; }
}

/* ---------- What we do ---------- */
.what { padding: clamp(64px, 7vw, 100px) var(--pad) clamp(72px, 8vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 56px; }
.section-head h2 { font-weight: 400; font-size: 13px; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  gap: 120px; padding: 40px; min-height: 560px;
}
.panel--a { border: 1px solid var(--line); min-height: 640px; }
.panel-b-wrap { padding-top: 96px; }
.panel--b { background: var(--surface); min-height: 544px; transition: transform .5s var(--ease); }
.panel--b:hover { transform: translateY(-6px); }
.panel > * { position: relative; }
.panel-body { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.panel-body p { font-size: 17px; line-height: 1.55; max-width: 480px; }
.panel-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 4.7vw, 4.25rem); line-height: .97; letter-spacing: -.03em;
}

.grid-lines, .grid-lit {
  position: absolute !important; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 160px 160px;
}
.grid-lines { color: var(--fg); opacity: .07; }
.grid-lit {
  color: var(--amber); opacity: 0; transition: opacity .4s;
  -webkit-mask-image: radial-gradient(circle 150px at var(--mx, 50%) var(--my, 50%), #000, transparent);
  mask-image: radial-gradient(circle 150px at var(--mx, 50%) var(--my, 50%), #000, transparent);
}
.panel--a:hover .grid-lit { opacity: .75; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--muted); border-radius: 20px; padding: 6px 12px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.tags li:hover { background: var(--amber); color: var(--night); border-color: var(--amber); }

.objects { position: absolute !important; left: 0; right: 0; top: 0; height: 300px; pointer-events: none; }
.objects svg { width: 100%; height: 100%; overflow: visible; }
.obj { transition: transform .5s var(--ease); }
.stroke-shape { stroke: var(--fg); stroke-opacity: .5; }
.solid-shape { fill: var(--fg); fill-opacity: .9; }

@media (max-width: 820px) {
  .section-head { margin-bottom: 28px; flex-direction: column; gap: 6px; }
  .panels { grid-template-columns: 1fr; gap: 20px; }
  .panel { padding: 24px; gap: 40px; min-height: 0; }
  .panel--a { min-height: 0; }
  .panel-b-wrap { padding-top: 0; }
  .panel--b { min-height: 0; padding-top: 120px; }
  .panel-body p { font-size: 16px; }
  .objects { height: 150px; }
  .objects svg { transform: scale(.6); transform-origin: top right; }
  .tags li { font-size: 11px; letter-spacing: .08em; padding: 6px 10px; }
}

/* ---------- Work ---------- */
.work { padding: clamp(24px, 4vw, 40px) var(--pad) clamp(72px, 8vw, 110px); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(40px, 5vw, 72px); }
.work-head .mono { margin-bottom: 20px; }
.work-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 7.8vw, 7rem); line-height: .93; letter-spacing: -.035em;
}
.work-intro { max-width: 380px; font-size: 18px; flex-shrink: 0; }

.projects { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 120px); }
.proj { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.proj--flip { grid-template-columns: 1fr 1.15fr; }
.proj--flip .proj-preview { order: 2; }
.proj-preview { position: relative; overflow: hidden; height: clamp(300px, 34vw, 460px); background: var(--surface); border: 1px solid var(--line); }
.proj-body { display: flex; flex-direction: column; gap: 22px; }
.proj-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.proj-meta .mono { font-size: 12px; letter-spacing: .12em; }
.proj-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 6vw, 5.2rem); line-height: .95; letter-spacing: -.03em; }
.proj-tag { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; color: var(--accent-text); }
.proj-body p { font-size: 17px; line-height: 1.55; max-width: 520px; }
.proj-shape { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proj-shape li { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.proj-shape .mono { font-size: 11px; letter-spacing: .14em; color: var(--accent-text); padding-top: 3px; }
.proj-link { align-self: flex-start; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); border-bottom: 1px solid var(--amber); padding: 10px 0 4px; }
.proj-note { margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 20px; align-items: baseline; }
.proj-note p { font-size: 15px; max-width: 620px; }

/* Dune preview: a gate that follows the pointer. Left of it, the data is clean. */
.rows { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 12%; }
.rows i {
  display: block; height: 14px;
  background: linear-gradient(90deg, currentColor 0 22%, transparent 22% 26%, currentColor 26% 58%, transparent 58% 62%, currentColor 62% 82%, transparent 82%);
}
.rows--messy { color: var(--dust); opacity: .55; }
.rows--messy i:nth-child(3n+2) { background: linear-gradient(90deg, currentColor 0 22%, transparent 22% 26%, transparent 26% 58%, transparent 58% 62%, currentColor 62% 70%, transparent 70%); transform: translateX(6px); }
.rows--messy i:nth-child(4) { transform: translateX(-9px); }
.rows--clean { color: var(--fg); clip-path: inset(0 calc(100% - var(--mx, 55%)) 0 0); }
.rows--clean i:nth-child(3n+2) { opacity: 0; }
.rows--clean i:nth-child(3n) { color: var(--amber); }
.gate { position: absolute; top: 0; bottom: 0; left: var(--mx, 55%); width: 1px; background: var(--amber); box-shadow: 0 0 24px 2px rgba(255,166,32,.5); }
.gate::after { content: "GATE"; position: absolute; top: 14px; left: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--amber); }

/* CardHouse preview: a hand that fans open on hover */
.hand { position: absolute; left: 50%; bottom: 14%; width: 0; height: 0; }
.hand i {
  position: absolute; left: -60px; bottom: 0; width: 120px; height: 170px; transform-origin: 50% 190%;
  background: var(--parchment); color: var(--night); border: 2px solid var(--night);
  font-family: var(--font-mono); font-style: normal; font-weight: 500; font-size: 22px; padding: 10px 12px;
  transform: rotate(calc((var(--k) - 2) * var(--spread, 12deg)));
  transition: transform .6s var(--ease);
  box-shadow: 4px 4px 0 rgba(0,0,0,.35);
  image-rendering: pixelated;
}
.hand i.hot { color: var(--amber); background: var(--night); border-color: var(--amber); }
[data-theme="light"] .hand i { background: var(--night); color: var(--parchment); border-color: var(--parchment); }
[data-theme="light"] .hand i.hot { background: var(--parchment); color: var(--amber); border-color: var(--amber); }
.proj-preview--cards:hover .hand { --spread: 19deg; }
.chips { position: absolute; right: 12%; bottom: 14%; display: flex; flex-direction: column-reverse; gap: 3px; }
.chips b { display: block; width: 44px; height: 10px; background: var(--amber); box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.chips b:nth-child(even) { background: var(--dust); width: 40px; margin-left: 2px; }
.voice { position: absolute; left: 10%; top: 12%; display: flex; gap: 10px; }
.voice span { width: 22px; height: 22px; border: 2px solid var(--dust); }
.voice span.talk { border-color: var(--amber); background: var(--amber); animation: talk 1.4s steps(2) infinite; }
@keyframes talk { 50% { box-shadow: 0 0 0 5px rgba(255,166,32,.3); } }

@media (max-width: 960px) {
  .work-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .proj, .proj--flip { grid-template-columns: 1fr; }
  .proj--flip .proj-preview { order: 0; }
  .proj-preview { height: 260px; }
  .proj-meta { flex-direction: column; gap: 4px; }
  .hand { transform: scale(.58); transform-origin: 0 100%; bottom: 8%; left: 44%; }
  .chips { right: 8%; bottom: 10%; transform: scale(.8); transform-origin: 100% 100%; }
  .voice { left: 6%; top: 10%; }
  .proj-shape li { grid-template-columns: 70px 1fr; }
  .proj-note { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .voice span.talk { animation: none; } .hand i { transition: none; } }

/* ---------- Founder ---------- */
.founder {
  background: var(--surface); padding: clamp(64px, 7vw, 100px) var(--pad);
  display: grid; grid-template-columns: minmax(280px, 520px) 1fr; gap: clamp(32px, 6.7vw, 96px);
}
.portrait { display: flex; flex-direction: column; gap: 16px; }
.arch {
  position: relative; overflow: hidden; aspect-ratio: 520 / 700; border-radius: 999px 999px 0 0;
  --mx: 50%; --my: 45%;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.founder.in .arch img { transform: none; }
.arch::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle 240px at var(--mx) var(--my), rgba(11,10,9,0), rgba(11,10,9,.55) 100%);
  opacity: 0; transition: opacity .5s;
}
.arch.lit::after { opacity: 1; }
.portrait figcaption { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .14em; }

.founder-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.founder-copy .mono { margin-bottom: 28px; }
.founder-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3rem, 6.1vw, 5.5rem); line-height: .97; letter-spacing: -.035em;
}
.founder-bottom { display: flex; flex-direction: column; gap: 40px; }
.founder-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.founder-cols p { font-size: 18px; line-height: 1.55; }
.signoff { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 28px; gap: 24px; }
.signature { font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1; margin-bottom: 8px; }
.signoff .mono { font-size: 12px; }
.detail {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 1px solid var(--amber); flex-shrink: 0;
  transition: transform .6s var(--ease);
}
.detail:hover { transform: rotate(2deg); }
.detail img { width: 420px; max-width: none; height: 630px; margin: -211px 0 0 -137px; object-fit: cover; }

@media (max-width: 960px) {
  .founder { grid-template-columns: 1fr; }
  .arch { aspect-ratio: 350 / 440; }
  .founder-cols { grid-template-columns: 1fr; gap: 20px; }
  .founder-cols p { font-size: 16px; line-height: 1.5; }
  .detail { display: none; }
  .founder-copy { gap: 32px; }
}

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden;
  padding: clamp(80px, 8vw, 110px) var(--pad) clamp(80px, 8vw, 120px);
  min-height: 80svh; display: flex; flex-direction: column; justify-content: space-between; gap: 56px;
}
.contact-glow {
  position: absolute; width: min(900px, 120vw); aspect-ratio: 1; right: -14vw; bottom: -30%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,166,32,.32), rgba(255,166,32,0) 68%);
  transform: translate(var(--gx, 0px), var(--gy, 0px));
}
[data-theme="light"] .contact-glow { background: radial-gradient(circle, rgba(255,166,32,.5), rgba(255,166,32,0) 68%); }
.contact > * { position: relative; }
.contact-glow { position: absolute; }
.contact-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.6rem, 13.6vw, 12.25rem); line-height: .9; letter-spacing: -.04em;
}
.contact-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.contact-copy { font-size: 20px; line-height: 1.5; max-width: 520px; }
.contact-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.contact-cta .mono { font-size: 12px; letter-spacing: .12em; max-width: 440px; }
.cta {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.9rem, 3.1vw, 2.75rem); line-height: 1.05;
  color: var(--accent-text); padding-bottom: 6px;
  background: linear-gradient(var(--amber), var(--amber)) left bottom / 100% 1px no-repeat;
  transition: background-size .4s var(--ease), color .3s;
}
[data-theme="light"] .cta { background-image: linear-gradient(var(--amber), var(--amber)); }
.cta:hover, .cta:focus-visible { background-size: 100% 100%; color: var(--night); }
.cta .arrow { transition: transform .3s var(--ease); }
.cta:hover .arrow, .cta:focus-visible .arrow { transform: translate(6px, -6px); }

@media (max-width: 820px) {
  .contact { min-height: 0; gap: 36px; }
  .contact-title { font-size: clamp(3.4rem, 16vw, 4.6rem); line-height: .95; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .contact-copy { font-size: 17px; }
  .contact-cta { align-items: flex-start; text-align: left; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); margin: 0 var(--pad); padding: 28px 0 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
}
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-name { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.site-footer .mono { font-size: 12px; letter-spacing: .12em; }
.foot-nav { display: flex; gap: 32px; }
.foot-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.foot-end .link { font-size: 13px; letter-spacing: .08em; text-transform: none; }
.foot-end .link::after { transform: scaleX(1); opacity: .5; }
.foot-end .link:hover::after { opacity: 1; }

@media (max-width: 820px) {
  .site-footer { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .foot-end { align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js .reveal, .js .line-in, .js .cl-in, .js .spines i { opacity: 1 !important; transform: none !important; }
  .js .pov { clip-path: none; }
  .lamp { display: none; }
}
