/* ==========================================================
   soju. — a single line through a life in broadcast
   ========================================================== */

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-300-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../fonts/caveat-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #f5f1ea;
  --paper-2: #ece6dc;
  --ink: #151412;
  --ink-2: #6f6a63;
  --ink-3: #a29c93;
  --accent: #ff5a1f;
  --sheet: #fbf8f2;
  --nav-bg: rgba(245,241,234,.82);
  --dot: rgba(21,20,18,.07);
  --shadow-ink: rgba(21,20,18,.08);
  --tape: rgba(236,222,190,.82);
  --cable: var(--ink);
  --glow-1: #ffffff; --glow-2: rgba(255,255,255,.95); --glow-3: rgba(255,255,255,.5); --glow-4: rgba(255,255,255,0);
  --tag-up: #7dffa8;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { position: relative; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
a:focus-visible, button:focus-visible, .obj:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* subtle paper texture */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}


/* ---------- lights off ---------- */
html[data-theme="dark"] {
  --paper: #131211;
  --paper-2: #1c1a18;
  --ink: #eee8de;
  --ink-2: #aaa399;
  --ink-3: #78716a;
  --accent: #ff6a32;
  --sheet: #1b1917;
  --nav-bg: rgba(19,18,17,.8);
  --dot: rgba(238,232,222,.07);
  --shadow-ink: rgba(0,0,0,.35);
  --tape: rgba(170,150,115,.38);
  --cable: #ff6a32;
  /* the sunset glow from the photo comes back when the lights go out */
  --glow-1: rgba(255,110,50,.55); --glow-2: rgba(255,100,40,.38); --glow-3: rgba(255,90,31,.12); --glow-4: rgba(255,90,31,0);
  --tag-up: #15803d;
  color-scheme: dark;
}
html[data-theme="dark"] body::before { opacity: .12; }
html[data-theme="dark"] .cable path { filter: drop-shadow(0 0 6px rgba(255,106,50,.55)); }
html.switching body, html.switching body *:not(canvas):not(svg *) { transition: background-color .6s ease, color .6s ease, border-color .6s ease, fill .6s ease, stroke .6s ease !important; }

.lights {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: none; border: 0; padding: 0; cursor: pointer;
  margin-left: 18px; transition: background .3s;
}
.lights:hover { background: rgba(127,120,110,.14); }
.lights svg { width: 17px; height: 17px; overflow: visible; transition: transform .4s var(--ease); }
.lights:hover svg { transform: rotate(-12deg); }
.lights .bulb { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: fill .4s, stroke .4s; }
.lights .rays { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; opacity: 0; transition: opacity .4s; }
html[data-theme="dark"] .lights .bulb { fill: var(--accent); stroke: var(--accent); }
html[data-theme="dark"] .lights .rays { opacity: 1; }
.nav-links { margin-left: auto; }
@media (max-width: 860px) { .lights { margin-left: auto; margin-right: 4px; } }

/* ---------- shared type ---------- */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -.025em; }
.display em { font-weight: 400; }
.display .muted, .muted { color: var(--ink-3); }
.display.big { font-size: clamp(44px, 7vw, 110px); }
.center { text-align: center; }
.kicker { color: var(--ink-2); font-size: 16px; margin-bottom: 14px; }
.sub { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.hand { font-family: var(--hand); font-weight: 500; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border: 1.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 500; transition: background .25s, color .25s, border-color .25s;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill-dark { background: var(--ink); color: var(--paper); }
.pill-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-lg { padding: 16px 24px; font-size: 18px; min-width: 120px; justify-content: space-between; }
.pill i { font-style: normal; transition: transform .3s var(--ease); }
.pill:hover i { transform: translate(2px, -2px); }

/* ---------- cable ---------- */
.cable { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.cable path { fill: none; stroke: var(--cable); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cable circle { fill: var(--cable); }
.anchor { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.anchored { position: relative; }
/* text sits above the cable with a paper-coloured halo, so the line tucks behind words */
.display, .kicker, .sub, .row-text, .timeline h3, .timeline p, .timeline time, .step b, .step span, .hero-copy, .note, .ps, .contact-copy {
  position: relative; z-index: 3;
  text-shadow: 0 0 6px var(--paper), 0 0 10px var(--paper), 0 0 14px var(--paper), 0 0 2px var(--paper);
}
.pill { text-shadow: none; }
.hero-copy, .hero-copy *, .note-hero { text-shadow: none; }   /* no cable up here, and the halo would show against the white glow */

/* ---------- tooltip ---------- */
.tip {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  background: var(--ink); color: var(--paper); font-size: 14px; padding: 7px 12px; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -150%) scale(.9); transition: opacity .2s, transform .25s var(--ease);
}
.tip.on { opacity: 1; transform: translate(-50%, -150%) scale(1); }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter);
  transition: background .4s, padding .4s;
}
.nav.solid { background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px var(--gutter); }
.logo { font-family: var(--serif); font-size: 28px; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.nav-links a:not(.pill) { position: relative; }
.nav-links a:not(.pill)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:not(.pill):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links .pill { padding: 8px 16px; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; position: relative; z-index: 2; }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink); transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 26px; }
.burger.open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); gap: 4px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .8s var(--ease);
}
.menu.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu a { font-family: var(--serif); font-size: clamp(44px, 12vw, 80px); line-height: 1.1; letter-spacing: -.03em; }
@media (max-width: 860px) { .nav-links { display: none; } .burger { display: block; } }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; height: 150vh; --me-x: 68%; }
.hero-sticky { position: sticky; top: 0; z-index: 3; height: 100vh; height: 100svh; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
.sun {
  position: absolute; left: var(--me-x); bottom: -34vh; width: min(110vh, 120vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--glow-1) 0%, var(--glow-2) 28%, var(--glow-3) 50%, var(--glow-4) 70%);
  opacity: .9; will-change: transform;
}
.me {
  position: absolute; left: var(--me-x); bottom: 0; transform: translateX(-50%);
  height: min(86vh, 160vw); aspect-ratio: 1030 / 1301;
  z-index: 3; will-change: transform;
}
.me img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); filter: drop-shadow(0 30px 40px rgba(60,30,10,.25)); }

.hero-copy { position: absolute; left: var(--gutter); bottom: 8vh; z-index: 4; max-width: 50vw; }
.eyebrow { color: var(--ink-2); margin-bottom: 14px; font-size: 16px; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.6vw, 104px); line-height: .98; letter-spacing: -.035em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-side { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-side p { color: var(--ink-2); }
.btns { display: flex; gap: 10px; }

.note { position: absolute; z-index: 4; font-size: 24px; line-height: 1.05; color: var(--ink-2); }
.note-hero { left: 36vw; top: 22vh; transform: rotate(-4deg); }
.note-arrow { position: absolute; left: 100%; top: 6px; width: 110px; height: 56px; margin-left: 8px; transform: scaleX(-1) rotate(-14deg); }
.note-arrow path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }

@media (max-width: 860px) {
  .hero { height: 140vh; --me-x: 50%; }
  .me { height: min(56vh, 112vw); bottom: 0; }
  .sun { bottom: -30vh; width: 150vw; }
  .hero-copy { max-width: none; right: var(--gutter); bottom: auto; top: 12vh; }
  .hero-title { font-size: clamp(42px, 12vw, 64px); }
  .hero-side p { display: none; }
  .hero-side { margin-top: 18px; }
  .note-hero { left: auto; right: var(--gutter); top: auto; bottom: 40vh; font-size: 19px; transform: rotate(6deg); }
  .note-arrow { display: none; }
}

/* ==========================================================
   SYSTEMS
   ========================================================== */
.systems { position: relative; height: 130vh; min-height: 820px; margin-top: 4vh; overflow-x: clip; }
.systems-copy { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; width: min(760px, 88vw); z-index: 3; }
.obj {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); z-index: 3; cursor: grab;
}
.obj img { width: 100%; filter: drop-shadow(0 24px 22px rgba(40,30,20,.18)); animation: bob 6s ease-in-out infinite; transition: transform .5s var(--ease); }
.obj:nth-child(odd) img { animation-duration: 7s; animation-delay: -2s; }
.obj:nth-child(3n) img { animation-duration: 5.5s; animation-delay: -4s; }
.obj:hover img { transform: scale(1.12) rotate(-6deg); }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 2deg; } }
@media (max-width: 860px) {
  .systems { height: 150vh; min-height: 900px; }
  .obj { left: var(--mx); top: var(--my); width: calc(var(--s) * .62); }
}

/* ==========================================================
   HEART
   ========================================================== */
.heart { position: relative; padding: 16vh var(--gutter) 10vh; max-width: 1240px; margin: 0 auto; }
.heart > .display { margin-bottom: 12vh; }
.row { position: relative; display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 40px; margin: 0 0 14vh 4vw; max-width: 760px; z-index: 3; }
.row.flip { grid-template-columns: 1fr 280px; margin-left: auto; margin-right: 4vw; text-align: right; }
.row.flip .row-obj { order: 2; }
.row-obj { position: relative; width: 240px; height: 240px; }
.row-obj img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 26px rgba(40,30,20,.18)); position: relative; z-index: 3; }
.row-obj.duo img { width: 74%; height: 74%; }
.row-obj.duo .duo-b { position: absolute; right: -10px; bottom: -6px; width: 56%; height: 56%; transform: rotate(-8deg); }
.row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.02em; line-height: 1.05; }
.row p { color: var(--ink-2); margin-top: 10px; font-size: 18px; }
@media (max-width: 760px) {
  .row, .row.flip { grid-template-columns: 1fr; gap: 14px; margin: 0 0 10vh; text-align: left; }
  .row.flip { text-align: right; justify-items: end; }
  .row.flip .row-obj { order: 0; }
  .row-obj { width: 150px; height: 150px; }
}

/* ==========================================================
   JOURNEY
   ========================================================== */
.journey { position: relative; padding: 14vh var(--gutter) 16vh; max-width: 1100px; margin: 0 auto; }
.journey > .display { margin-bottom: 10vh; }
.timeline { list-style: none; position: relative; max-width: 720px; margin: 0 auto; }
.timeline li { position: relative; padding: 0 0 56px 56px; z-index: 3; }
.timeline .dot { position: absolute; left: 0; top: 12px; width: 26px; height: 2px; background: var(--ink); }
.timeline .dot::after { content: ''; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.timeline .dot .anchor { left: 0; top: 0; }
.timeline h3 { font-family: var(--sans); font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.timeline p { color: var(--ink-2); max-width: 56ch; margin-top: 4px; }
.timeline time { display: block; color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.timeline .now h3 { color: var(--accent); }
.timeline .now .dot::after { background: var(--accent); box-shadow: 0 0 0 6px rgba(255,90,31,.18); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.45); } 100% { box-shadow: 0 0 0 16px rgba(255,90,31,0); } }

.statement { margin-top: 14vh; max-width: 900px; }
.statement .display { font-size: clamp(38px, 5.4vw, 80px); }

/* ==========================================================
   LOOP
   ========================================================== */
.loop { position: relative; padding: 10vh var(--gutter) 16vh; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 6vh auto 0; }
.step { position: relative; text-align: center; padding: 10px; }
.step img { width: 120px; height: 120px; margin: 0 auto 18px; position: relative; z-index: 3; filter: drop-shadow(0 20px 18px rgba(40,30,20,.16)); transition: transform .5s var(--ease); }
.step:hover img { transform: translateY(-8px) rotate(-6deg) scale(1.06); }
.step b { display: block; font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -.02em; }
.step span:not(.anchor) { color: var(--ink-2); }
.step:nth-child(2) { margin-top: 10vh; } .step:nth-child(3) { margin-top: 3vh; } .step:nth-child(4) { margin-top: 12vh; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .step:nth-child(n) { margin-top: 0; }
  .step:nth-child(even) { margin-top: 8vh; }
  .step img { width: 90px; height: 90px; }
}

/* ==========================================================
   BUILT — side projects
   ========================================================== */
.built { position: relative; padding: 12vh var(--gutter) 10vh; max-width: 1240px; margin: 0 auto; }
.built-head { max-width: 760px; margin-bottom: 10vh; }
.proj { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 440px); justify-content: center; gap: clamp(28px, 6vw, 96px); align-items: center; margin-bottom: 13vh; }
.proj.flip { grid-template-columns: minmax(0, 440px) minmax(0, 520px); }
.proj.flip .proj-vis { order: 2; }
.proj-vis { position: relative; }
.win {
  position: relative; z-index: 3; background-color: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px;
  box-shadow: 6px 8px 0 var(--shadow-ink), 0 30px 60px -30px rgba(40,30,20,.25);
  transform: rotate(-1.2deg); transition: transform .8s var(--ease);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px;   /* dotted notebook paper */
}
.proj.flip .win { transform: rotate(1.2deg); }
.proj:hover .win { transform: rotate(0) translateY(-6px); }
.tape { position: absolute; top: -12px; width: 92px; height: 26px; background: var(--tape); box-shadow: 0 1px 2px rgba(0,0,0,.08); z-index: 2; }
.tape.t1 { left: 18px; transform: rotate(-5deg); }
.tape.t2 { right: 18px; transform: rotate(4deg); }
.proj.flip .fig { left: auto; right: 22px; }
.fig { position: absolute; left: 18px; top: 12px; font-size: 21px; color: var(--ink-2); z-index: 1; text-shadow: none; }
.sticker { position: absolute; z-index: 4; width: clamp(84px, 9vw, 120px); height: auto; filter: drop-shadow(0 16px 14px rgba(40,30,20,.2)); pointer-events: none; }
.sticker.s-r { right: -34px; top: -42px; transform: rotate(10deg); }
.sticker.s-l { left: -34px; top: -42px; transform: rotate(-10deg); }
.vis-note { position: absolute; z-index: 4; font-size: 24px; line-height: 1; color: var(--ink-2); white-space: nowrap; }
.vis-note svg { position: absolute; width: 70px; height: 40px; }
.vis-note path { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; }
.vis-note.n-r { left: 6%; bottom: -54px; transform: rotate(-3deg); }
.vis-note.n-r svg { left: 100%; top: -30px; margin-left: 4px; transform: scaleY(-1); }
.vis-note.n-l { right: 6%; bottom: -54px; transform: rotate(3deg); }
.vis-note.n-l svg { right: 100%; top: -30px; margin-right: 4px; transform: scaleY(-1); }
.viz { display: block; width: 100%; aspect-ratio: 16 / 10; }
.proj-k { font-size: 14px; color: var(--accent); font-weight: 500; letter-spacing: .04em; margin-bottom: 10px; }
.proj h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -.03em; line-height: 1; }
.proj-lede { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); color: var(--ink); margin: 12px 0 14px; line-height: 1.25; }
.proj-text > p:not(.proj-k):not(.proj-lede):not(.proj-status) { color: var(--ink-2); font-size: 17px; }
.proj-text { position: relative; z-index: 3; text-shadow: 0 0 6px var(--paper), 0 0 12px var(--paper); }
.proj-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.proj-tags li { font-size: 13px; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); text-shadow: none; }
.proj-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.proj-status b { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: ping-g 2s ease-out infinite; }
@keyframes ping-g { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.built-more-unused { position: relative; z-index: 3; text-align: center; color: var(--ink-2); font-size: 18px; }
.built-more a { color: var(--ink); font-weight: 500; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: color .3s; }
.built-more a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .proj, .proj.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 12vh; }
  .proj.flip .proj-vis { order: 0; }
  .win, .proj.flip .win { transform: none; }
  .sticker.s-r { right: -6px; } .sticker.s-l { left: -6px; }
  .vis-note { font-size: 20px; }
  .proj-vis { margin-bottom: 34px; }
  .vis-note.n-r, .vis-note.n-l { bottom: -40px; }
  .viz { aspect-ratio: 4 / 3; }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { overflow-x: clip; position: relative; padding: 18vh var(--gutter) 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; }
.contact-copy { position: relative; z-index: 3; text-align: center; max-width: 980px; margin: 0 auto; padding-bottom: 12vh; display: flex; flex-direction: column; align-items: center; }
.contact-links { margin-top: 8vh; display: grid; gap: 12px; width: min(560px, 100%); }
.ps { display: inline-flex; align-items: center; gap: 14px; margin-top: 8vh; font-size: 25px; line-height: 1.05; color: var(--ink-2); transform: rotate(-3deg); text-align: left; }
.ps img { width: 64px; transform: rotate(8deg); flex: 0 0 auto; }

.footer { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; border-top: 1.5px solid var(--ink); color: var(--ink-2); font-size: 14px; position: relative; z-index: 4; background: var(--paper); }
.footer a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .contact { padding-top: 12vh; }
  .contact-copy { padding-bottom: 8vh; }
  .ps { font-size: 21px; margin-top: 6vh; }
  .contact-links { margin-top: 13vh; }
  .ps img { width: 48px; }
  }


/* ---------- contact links ---------- */
.contact-links { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hello {
  position: relative; display: inline-flex; align-items: center; gap: 18px; overflow: hidden;
  padding: 22px 34px 22px 40px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.02em; line-height: 1; text-shadow: none;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.hello::before { content: ''; position: absolute; inset: 0; background: var(--accent); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.hello > span { position: relative; }
.hello-arr { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 22px; transition: transform .5s var(--ease); }
.hello:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(255,90,31,.25); }
.hello:hover::before { transform: none; }
.hello:hover .hello-arr { transform: rotate(-45deg); }
.elsewhere { color: var(--ink-2); font-size: 17px; }
.elsewhere a { color: var(--ink); font-weight: 500; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.elsewhere a:hover { background-size: 100% 2px; }

/* ---------- finale: career as a stock chart + AI forecast ---------- */
.finale { margin-top: 14vh; width: min(920px, 100%); display: flex; flex-direction: column; align-items: center; gap: 70px; position: relative; }
.chart { position: relative; width: 100%; height: clamp(170px, 26vw, 250px); }
.chart-ov { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-ov .axis { stroke: var(--ink-3); stroke-width: 1; opacity: 0; transition: opacity .6s; }
.chart-ov .yr { font-family: var(--sans); font-size: 13px; fill: var(--ink-2); opacity: 0; transition: opacity .6s; }
.chart-ov .yr b, .chart-ov .yr tspan.k { fill: var(--ink); font-weight: 600; }
.chart-ov .mark { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; opacity: 0; transition: opacity .4s; }
.chart-ov .now-line { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0; transition: opacity .6s; }
.chart-ov .cone { fill: url(#coneGrad); opacity: 0; transition: opacity 1.4s .5s; }
.chart-ov .fc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 7; stroke-linecap: round; }
.chart-ov .ai { font-family: var(--hand); font-size: 22px; fill: var(--accent); opacity: 0; transition: opacity .8s 1.2s; }
.chart-ov .now-dot { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.chart-ov .now-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.finale.ready .axis, .finale.ready .yr, .finale.ready .now-line { opacity: 1; }
.finale.live .mark { opacity: 1; }
.finale.live .cone, .finale.live .ai { opacity: 1; }
.finale.live .now-dot { opacity: 1; animation: pop .5s var(--ease) both; }
.finale.live .now-ring { animation: ring 1.8s ease-out .3s infinite; }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.5); } to { transform: scale(1); } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.ticker-tag {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 18px)); white-space: nowrap;
  display: inline-flex; gap: 10px; align-items: baseline; padding: 8px 14px; background: var(--ink); color: var(--paper);
  font-size: 14px; text-shadow: none; opacity: 0; transition: opacity .5s .4s, transform .6s .4s var(--ease);
}
.ticker-tag::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.ticker-tag b { font-weight: 600; letter-spacing: .04em; }
.ticker-tag span { color: var(--tag-up); }
.finale.live .ticker-tag { opacity: 1; transform: translate(-50%, calc(-100% - 22px)); }
.wrap-line { font-size: 25px; line-height: 1.15; color: var(--ink-2); opacity: 0; transform: translateY(10px); transition: opacity .8s 1.6s, transform .8s 1.6s var(--ease); }
.finale.live .wrap-line { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .finale { margin-top: 10vh; gap: 60px; }
  .chart { height: 170px; }
  .chart-ov .yr { font-size: 11px; }
  .wrap-line { font-size: 20px; }
  .hello { font-size: 24px; padding: 16px 20px 16px 28px; gap: 14px; }
  .hello-arr { width: 38px; height: 38px; font-size: 18px; }
}

/* ---------- "and a lot more" ---------- */
.more { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 440px); justify-content: center; align-items: center; gap: clamp(28px, 6vw, 96px); margin: 2vh auto 4vh; }
.more-note {
  position: relative; padding: 46px 30px 30px; background-color: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px;
  box-shadow: 6px 8px 0 var(--shadow-ink); transform: rotate(-1.5deg); transition: transform .8s var(--ease);
}
.more:hover .more-note { transform: rotate(0) translateY(-4px); }
.more-note .tape.t1 { left: 50%; margin-left: -46px; transform: rotate(-3deg); }
.more-list { list-style: none; font-size: 25px; line-height: 1.3; color: var(--ink); text-shadow: none; }
.more-list li { position: relative; padding-left: 26px; }
.more-list li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 13px; height: 13px; border: 1.5px solid var(--ink); border-radius: 3px; transform: rotate(-4deg); }
.more-list li:not(.crossed)::after { content: ''; position: absolute; left: 5px; top: .5em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.2px 2.2px 0; transform: rotate(40deg); }
.more-list li.crossed { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.more-text { position: relative; z-index: 3; text-shadow: 0 0 6px var(--paper), 0 0 12px var(--paper); }
.more-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.8vw, 52px); letter-spacing: -.03em; line-height: 1; }
.more-text > p:not(.more-links) { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.more-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.more-links a { color: var(--ink); font-weight: 500; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: color .3s; }
.more-links a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .more { grid-template-columns: 1fr; gap: 28px; }
  .more-note { transform: none; max-width: 380px; }
  .more-list { font-size: 22px; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .obj img, .timeline .now .dot::after { animation: none !important; }
  .hero { height: 100vh; }
}

/* ---------- phones: no header bar — the logo scrolls away, two small floating buttons stay ---------- */
@media (max-width: 860px) {
  .nav, .nav.solid { position: absolute; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 18px var(--gutter); }
  .lights, .burger {
    position: fixed; top: 14px; z-index: 85; width: 44px; height: 44px; border-radius: 50%;
    background: transparent; border: 0; box-shadow: none;
    margin: 0; transition: transform .3s var(--ease), background .3s, backdrop-filter .3s;
  }
  .burger { right: var(--gutter); }
  .lights { right: calc(var(--gutter) + 44px); }
  .burger span { left: 12px; right: 12px; }
  .burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
  .lights:active, .burger:active { transform: scale(.92); }
  .lights:hover { background: transparent; }
  /* once you scroll, a barely-there soft halo keeps the two icons readable over the content */
  .nav.solid .lights, .nav.solid .burger { background: var(--nav-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
