/* Eli Andreas — draft one-page home. Type, spacing and hero from the Teke Tech home page
   (teketech.ca, itself on the Terrapulse-style template), rebuilt all white and monochrome. */
:root {
  --bg: #f4f5f4;          /* the hero's off-white, used for every light section */
  --ink: #0b0b0c;
  --body: #55585d;
  --muted: #8b8e93;
  --line: rgba(11, 11, 12, .1);
  --soft: #f3f4f4;
  --lime: #c6f35c;          /* the Teke Tech accent, used in the hero */
  --pad: 34px;
  --sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }
/* Lenis smooth wheel scrolling (desktop) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
section[id] { scroll-margin-top: 63px; }

/* small type */
.mono { font: 400 10.5px/1.75 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.dim { opacity: .55; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 3px; background: var(--ink); color: var(--bg);
  font: 400 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }

/* headings */
h1 { font-size: clamp(24px, 5.6vw, 100px); white-space: nowrap; font-weight: 700; line-height: .92; letter-spacing: -.045em; }
h2 { font-size: clamp(26px, 3.9vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
h3 { font-size: clamp(24px, 2.6vw, 38px); font-weight: 800; line-height: 1.02; letter-spacing: -.012em; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 63px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(244, 245, 244, .84); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.logo { display: inline-flex; align-items: center; justify-self: start; }
.logo img { width: 30px; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); transition: transform .4s var(--ease); }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
.nav { transition: background .35s var(--ease), color .35s var(--ease); }
.nav.on-dark { background: rgba(0, 0, 0, .62); color: #f2f2f2; }
.nav .sq { background: var(--lime); color: #0b0b0c; }
.nav.on-dark .sq { background: var(--lime); color: #000; }
.nav-links { display: flex; gap: 26px; }
.nav-links a, .nav-cta { font: 400 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.nav-links a { opacity: .6; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { justify-self: end; gap: 12px; }
.sq { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; background: var(--ink); color: var(--bg); font: 500 12px/1 var(--mono); font-style: normal; }

/* ---------- 1. hero: pinned stage, the Teke Tech rocks on a white sky ---------- */
.hero { position: relative; height: 300vh; }
.stage { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; }
.sky { position: absolute; inset: 0; background:
  radial-gradient(60% 45% at 20% 16%, #fff, transparent 70%),
  radial-gradient(50% 42% at 82% 30%, #fff, transparent 70%),
  linear-gradient(180deg, #f3f5f4, #fbfbfb 58%, var(--bg)); }
.fade { opacity: var(--fade, 1); transition: opacity .1s linear; }
.hero-head { position: absolute; top: 17.5%; left: 0; right: 0; display: grid; justify-items: center; gap: 22px; text-align: center; padding: 0 16px; }

.rocks { position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--b, 0)); }
.rock { position: absolute; display: block; height: auto; max-width: none; will-change: transform, filter; }
.rocks .rock { animation: float 9s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.rock.main { left: 50%; top: 61%; width: min(64vw, 104vh); margin: calc(min(64vw, 104vh) * -.352) 0 0 calc(min(64vw, 104vh) / -2);
  transform: translateY(calc(var(--ry, 0) * 1vh)) scale(var(--rs, 1)); transform-origin: 50% 30%; filter: blur(var(--rb, 0px)); }
/* blur follows depth: the small rocks up top are furthest and softest, the side rock a little soft, the two at the bottom sharp (closest) */
.rock.far { transform: scale(calc(1 + var(--e, 0) * .5)); filter: blur(var(--bl)); opacity: var(--far, 1); }
.rock.f1 { left: 4%; top: 11%; width: 7vw; --bl: 4.5px; animation-delay: -2s; }
.rock.f2 { left: 90%; top: 24%; width: 8vw; --bl: 4px; animation-delay: -6s; }
.rock.near { transform: translate(calc(var(--dx) * var(--e, 0) * var(--k) * 70vw), calc(var(--dy) * var(--e, 0) * var(--k) * 45vh)) scale(calc(1 + var(--e, 0) * var(--k) * 3.2));
  filter: blur(calc(var(--bl) + var(--e, 0) * var(--k) * 32px)); }
.rock.n1 { left: -5%; top: 26%; width: 11vw; --bl: 2.5px; --k: 2.6; --dx: -1; --dy: -.5; animation-delay: -4s; }
.rock.n2 { left: -6%; top: 58%; width: 19vw; --bl: 0px; --k: 3.2; --dx: -1; --dy: .5; animation-delay: -7s; z-index: 3; }
.rock.n3 { left: 80%; top: 58%; width: 22vw; --bl: 0px; --k: 3; --dx: 1; --dy: .45; animation-delay: -3s; z-index: 3; }   /* foreground: bigger, softer, and they fly out faster */

.hud { position: absolute; left: 54%; top: 61.5%; display: grid; gap: 8px; justify-items: start; color: #fff; isolation: isolate; }
/* a soft dark bloom behind the HUD so white type reads on the pale stone */
.hud::before { content: ""; position: absolute; left: -70px; top: -46px; width: 260px; height: 190px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8, 10, 8, .55), rgba(8, 10, 8, .28) 55%, rgba(8, 10, 8, 0)); }
.hud .tag { height: 20px; background: var(--lime); color: #0b0b0c; }
.hero-head .tag { background: var(--lime); color: #0b0b0c; }
.hud .mono { font-size: 9.5px; line-height: 1.7; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hud-line { position: absolute; right: calc(100% + 8px); top: 10px; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.hud-line::before { content: ""; position: absolute; left: -1px; top: -6px; width: 1px; height: 13px; background: currentColor; }
.hud-btn { display: inline-flex; align-items: center; gap: 8px; height: 22px; margin-top: 4px; padding: 0 9px; border-radius: 3px; color: #fff;
  font: 400 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  background: rgba(11, 11, 12, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s, color .2s; }
.hud-btn i { font-style: normal; transition: transform .25s var(--ease); }
.hud-btn:hover { background: var(--lime); color: #0b0b0c; box-shadow: none; }
.hud-btn:hover i { transform: translateX(3px); }
.hero-note { position: absolute; left: var(--pad); bottom: 30px; padding-left: 16px; font-size: 11.5px; letter-spacing: .13em; border-left: 1px solid var(--lime); }
.scroll-cue { position: absolute; right: var(--pad); bottom: 30px; display: inline-flex; align-items: center; gap: 12px; }
.ring { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--ink); position: relative; }
.ring::after { content: ""; position: absolute; left: 8.5px; top: 7px; width: 5px; height: 5px; border-right: 1.2px solid var(--ink); border-bottom: 1.2px solid var(--ink); transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px) rotate(45deg); } }

/* the close-up from on top of the rock, and the welcome note over it */
.top-view { position: absolute; inset: 0; overflow: hidden; opacity: var(--b, 0); pointer-events: none; }
.top-view img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(calc(1.4 - var(--s, 0) * .4)); filter: blur(calc((1 - var(--s, 0)) * 16px)); will-change: transform, filter; }
.zoom-scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 20px; opacity: 0; transform: translateY(14px); filter: blur(10px);
  pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.zoom-scene.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.zoom-scene .hud { left: 50%; top: 47%; }
.zoom-scene .hero-note { color: #fff; border-left-color: var(--lime); text-shadow: 0 1px 10px rgba(8, 20, 12, .6); }
.zoom-note { max-width: 880px; padding: 70px 80px; color: #fff; text-align: center; font: 600 clamp(22px, 2.5vw, 38px)/1.22 var(--sans); letter-spacing: -.012em;
  text-wrap: balance; text-shadow: 0 2px 22px rgba(8, 20, 12, .75), 0 1px 3px rgba(8, 20, 12, .55);
  background: radial-gradient(ellipse closest-side, rgba(8, 20, 12, .66), rgba(8, 20, 12, .46) 55%, rgba(8, 20, 12, .16) 82%, rgba(8, 20, 12, 0)); }

/* the four flags over the close-up (Teke Tech hotspots): lime dot with a plus, a small label */
.spots { position: absolute; inset: 0; pointer-events: none; }
.spot { position: absolute; display: inline-flex; align-items: center; gap: 8px; color: #0b0b0c; opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease); }
.spots.on .spot { opacity: 1; transform: none; pointer-events: auto; }
.spots.on .spot:nth-child(2) { transition-delay: .08s; } .spots.on .spot:nth-child(3) { transition-delay: .16s; } .spots.on .spot:nth-child(4) { transition-delay: .24s; }
.spot i { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); position: relative; box-shadow: 0 0 0 5px rgba(198, 243, 92, .28); transition: box-shadow .3s; }
.spot i::before, .spot i::after { content: ""; position: absolute; left: 6px; top: 9.5px; width: 8px; height: 1px; background: #0b0b0c; }
.spot i::after { transform: rotate(90deg); }
.spot b { font-weight: 400; background: rgba(246, 248, 245, .82); padding: 3px 9px; border-radius: 3px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
.spot:hover i { box-shadow: 0 0 0 8px rgba(198, 243, 92, .4); }

/* ---------- sheets ---------- */
.sheet { position: relative; padding: 110px var(--pad) 90px; background: var(--bg); }
.head { display: grid; gap: 22px; justify-items: center; text-align: center; }
.head h2 { max-width: 15em; }
.lede { color: var(--body); max-width: 520px; }
.lede.wide { max-width: 700px; margin: 26px auto 0; font-size: 16px; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1100px; margin: 56px auto 0; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.stats b { display: block; font-size: clamp(30px, 4vw, 60px); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.stats .mono { color: var(--muted); }

/* ---------- 2. the logo strip: full width, endless, faded at the edges ---------- */
.logos-label { margin: 44px 0 0; text-align: center; }
.logos { margin: 22px calc(var(--pad) * -1) 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.logos-track { display: flex; align-items: center; gap: 84px; width: max-content; padding: 10px 42px; will-change: transform; }   /* script.js slides it with the scroll */
@keyframes logos { to { transform: translateX(-50%); } }
.logo-img { width: auto; filter: grayscale(1) brightness(0); opacity: .62; transition: opacity .3s; }
.logo-word { font: 700 23px/1 var(--sans); letter-spacing: -.03em; color: #0b0b0c; opacity: .62; white-space: nowrap; transition: opacity .3s; }
.logo-pair { display: inline-flex; align-items: center; gap: 10px; }
.ng-box { width: 17px; height: 26px; border: 4px solid #0b0b0c; box-sizing: border-box; }   /* the yellow-border mark, in the strip's grey */
.logo-pair .logo-img, .logo-pair .logo-word { opacity: 1; }
.logo-pair { opacity: .62; transition: opacity .3s; }
.logo-img:hover, .logo-word:hover, .logo-pair:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* the mini strip in About: smaller, and it drifts by itself (pauses on hover) */
.logos.mini { margin: 4px 0 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mini-track { gap: 40px; padding: 8px 20px; animation: logos 34s linear infinite; }
.logos.mini:hover .mini-track { animation-play-state: paused; }
.mini-track > * { zoom: .62; }   /* the same logos at about 60% */

/* ---------- 3. objects ---------- */
.obj { display: grid; grid-template-columns: minmax(0, 900px) minmax(220px, 280px); justify-content: center; align-items: center; gap: 0; margin: 30px auto 0; }
.obj.flip { grid-template-columns: minmax(220px, 280px) minmax(0, 820px); }
#objects .obj-hud { margin-left: -90px; }
#stealth .obj-hud { margin-right: -70px; position: relative; z-index: 1; }
.obj.flip .obj-stage { order: 2; }
.obj-stage { position: relative; }
.obj-stage air-tube-viewer { display: block; width: 100%; aspect-ratio: 4 / 3; }
.obj-stage.square { max-width: 820px; justify-self: start; width: 100%; }
.spin { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #fff; }
.obj-hud { position: relative; display: grid; gap: 12px; justify-items: start; padding-left: 50px; }
.obj-hud .hud-line { right: auto; left: 0; top: 10px; color: var(--ink); }
.obj-hud h3 { margin-top: 4px; }
.obj-hud ul { display: grid; gap: 0; width: 100%; max-width: 300px; margin-top: 6px; border-top: 1px solid var(--line); }
.obj-hud li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.link { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }

/* ---------- 4. work: carousel beside text ---------- */
.projects { display: grid; margin-top: 30px; }
.proj { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 400px); justify-content: center; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.proj.flip { grid-template-columns: minmax(0, 400px) minmax(0, 600px); }
.proj.flip .car { order: 2; }
.car { position: relative; min-width: 0; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; background: var(--soft); }
.track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 16 / 9; scroll-snap-align: start; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.car:hover .slide img { transform: scale(1.02); }
.slide figcaption { position: absolute; left: 14px; top: 12px; height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 3px;
  background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 9.5px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.play { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px 0 10px; border: 0; border-radius: 999px;
  background: rgba(11, 11, 12, .72); color: #fff; font: 400 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .25s var(--ease); }
.play:hover { background: var(--ink); transform: translateY(-1px); }
.car:has(.car-foot) .play { bottom: 66px; }
.play b { width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.car-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.count { color: var(--muted); min-width: 60px; }
.dashes { display: flex; gap: 6px; flex: 1; }
.dashes i { width: 26px; height: 2px; background: var(--line); border-radius: 2px; transition: background .3s, width .3s; }
.dashes i.on { width: 44px; background: var(--ink); }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; font: 400 14px/1 var(--mono); transition: background .2s, color .2s, border-color .2s; }
.arrows button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.arrows button:disabled { opacity: .3; pointer-events: none; }
.proj-text { display: grid; gap: 14px; justify-items: start; }
.idx { color: var(--muted); }
.proj-text .lede { font-size: 15.5px; }
.spec { width: 100%; max-width: 420px; margin-top: 6px; border-top: 1px solid var(--line); }
.spec li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.spec li span { color: var(--muted); }
.spec li b { font-weight: 400; }
.proj-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }

/* ---------- 5. about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; align-items: center; max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); }
.about-left { display: grid; gap: 18px; justify-items: start; align-content: start; }
.about-right { width: 100%; }
.about-hold { display: none; }
.headshot { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.bio-hi { font: 800 clamp(26px, 2.4vw, 36px)/1.1 var(--sans); letter-spacing: -.012em; margin-top: 6px; }
.bio { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 34em; }   /* one plain size for the whole bio */
.bio { text-wrap: pretty; }
@media (min-width: 1280px) { .bio { width: 34em; text-align: justify; text-align-last: justify; hyphens: none; } }   /* each paragraph is written to fill exactly three full lines */
.about-right { display: grid; gap: 14px; align-content: start; }
.label { color: var(--muted); margin-top: 12px; }
.label:first-child { margin-top: 0; }
.rows { border-top: 1px solid var(--line); }
.rows li { text-align: left; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; letter-spacing: -.015em; }
.rows .n { color: var(--muted); font-size: 9.5px; }
.rows .dim { font-size: 9.5px; }
.collab { color: var(--body); line-height: 1.6; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 14px; height: 39px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: transform .25s var(--ease), background .2s, color .2s; }
.pill i { font-style: normal; transition: transform .25s var(--ease); }
.pill:hover i { transform: translateX(4px); }
.pill.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); text-transform: lowercase; }
.pill.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- the loop: a copy of the opening hero screen after the footer; resting on it jumps back to the real top ---------- */
.loop { position: relative; height: 100svh; overflow: hidden; }
.loop .stage { position: absolute; inset: 0; }

/* ---------- footer ---------- */
.footer { padding: 26px var(--pad); border-top: 1px solid var(--line); }
.foot-end { display: flex; justify-content: center; gap: 10px 28px; flex-wrap: wrap; color: var(--muted); font-size: 9.5px; text-align: center; }
.foot-end a:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
.lb { width: min(92vw, 1200px); max-width: none; padding: 0; border: 0; border-radius: 12px; background: #000; overflow: visible; }
.lb::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }   /* the page, blurred and darkened, behind a playing film */
.lb video { width: 100%; max-height: 82vh; border-radius: 12px; background: #000; }
.lb-close { position: absolute; right: 0; top: -36px; border: 0; background: none; color: #fff; }

/* draft marker */
.draft { position: fixed; right: 12px; top: 72px; z-index: 60; padding: 6px 10px; border-radius: 3px; background: #ffd60a; color: #0b0b0c; font-size: 9.5px; font-weight: 500; }

/* ---------- motion ---------- */
/* every section after the hero: its pieces rise and fade in one after another as it comes on screen (script.js tags them .rv) */
.rv { opacity: 0; transform: translateY(22px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.shown .rv { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .rocks .rock, .ring::after { animation: none; }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 810px) {
  :root { --pad: 20px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero-head { top: 15%; }
  .hud { left: 50%; top: 58%; }
  .scroll-cue { display: none; }
  .hero-note { right: var(--pad); bottom: 24px; }
  .hero-note br { display: none; }
  .zoom-note { padding: 50px 22px; font-size: 21px; }
  h2 { font-size: min(26px, 7vw); }
  .rock.main { top: 57%; width: 104vw; margin: -36.6vw 0 0 -52vw; }
  .rock.f1 { width: 14vw; top: 12%; } .rock.f2 { width: 15vw; left: 82%; top: 12%; }
  .rock.n1 { width: 22vw; top: 30%; left: -12%; } .rock.n2 { width: 40vw; top: 72%; left: -14%; } .rock.n3 { width: 46vw; left: 70%; top: 74%; }
  .sheet { padding: 80px var(--pad) 64px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .obj, .obj.flip, .proj, .proj.flip { grid-template-columns: 1fr; gap: 26px; }
  .obj-stage.square { justify-self: center; }
  #objects .obj-hud, #stealth .obj-hud { margin: 0; }
  .obj.flip .obj-stage, .proj.flip .car { order: 0; }
  .obj-hud { padding-left: 46px; }
  .proj { padding: 40px 0; }
  .about { gap: 44px; }
}

/* ---------- every section after the hero fills the screen, its content centred in it ---------- */
.sheet, .band { min-height: 100svh; display: grid; align-content: center; }
.work-head { min-height: 56svh; }
#stealth { --bg: #fff; background: #fff; }   /* the jacket clip's own pure white, so the video sits in it seamlessly */

/* ---------- section themes: any section with .dark gets the night palette ---------- */
.dark { --bg: #000; --ink: #f2f2f2; --body: #a2a5a9; --muted: #6f7276; --line: rgba(255, 255, 255, .12); --soft: #111;
  background: var(--bg); color: var(--ink); color-scheme: dark; }
.dark .slide figcaption { background: rgba(0, 0, 0, .6); color: #fff; }
.dark .play { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.dark .play:hover { background: #fff; color: #000; }
.dark .play:hover b { border-left-color: #000; }

/* objects: the tube on its own dark sheet, the jacket on its own white one */
#objects .obj { border-top-color: transparent; }
#stealth .obj { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- work: a white heading, then full-width bands ---------- */
.work-head { padding-bottom: 46px; }
.band { padding: 72px var(--pad); background: var(--bg); color: var(--ink); }
.band .proj { padding: 0; border-top: 0; }

/* ---------- the three locked scenes after the hero (about me, tube, jacket): a sticky full-screen stage; the content swings up into place ---------- */
.scene { position: relative; background: var(--bg); }
.scene-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1600px; background: var(--bg); }
.scene-card { height: 100svh; min-height: 0; padding: 76px var(--pad) 30px; display: grid; align-content: center; transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--a, 1)) * 10deg)) scale(calc(.86 + var(--a, 1) * .14)); will-change: transform; }
.scene .obj { margin-top: 18px; }
.scene .obj-stage air-tube-viewer { aspect-ratio: auto; height: min(64svh, 54vw); }
.scene .obj-stage.square { max-width: min(72svh, 760px); }

h3 .brand { font-weight: 900; letter-spacing: -.01em; }   /* TEKE, extra bold */
#intro .tag, #objects .tag, #stealth .tag { background: var(--lime); color: #0b0b0c; }   /* lime tags: about me, TEKE, Stealth */
.tag-bold { font-weight: 700; }
.obj-hud .link, .obj-hud .dim { font-weight: 700; }
.head .sub { font: 500 clamp(17px, 1.5vw, 22px)/1.2 var(--sans); letter-spacing: -.01em; color: var(--body); }   /* the small line under a section tag */
.reel-head { position: absolute; left: 0; right: 0; top: 13vh; z-index: 2; display: grid; justify-items: center; gap: 16px; text-align: center; color: #fff;
  opacity: var(--a, 0); text-shadow: 0 2px 18px rgba(0, 0, 0, .4); pointer-events: none; }
.reel-head .tag { background: #0b0b0c; color: #fff; text-shadow: none; }

/* desktop: the tube fills the whole window behind its text; the jacket stands full height, feet on the bottom edge */
@media (min-width: 811px) {
  #objects .scene-card, #stealth .scene-card { position: relative; display: block; padding: 0; }
  #objects .head { position: absolute; left: 0; right: 0; top: 84px; z-index: 2; pointer-events: none; }
  #objects .obj, #stealth .obj { position: static; display: block; margin: 0; }
  #objects .obj-stage { position: absolute; inset: 0; }
  #objects .obj-stage air-tube-viewer { width: 100%; height: 100%; aspect-ratio: auto; }
  #objects .obj-hud, #stealth .obj-hud { position: absolute; top: 50%; transform: translateY(-50%); width: 280px; margin: 0; z-index: 2; }
  #objects .obj-hud { left: 21vw; isolation: isolate; }
  #objects .obj-hud::before { content: ""; position: absolute; inset: -80px -110px; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .85), rgba(0, 0, 0, .6) 55%, rgba(0, 0, 0, 0)); }   /* a dark pool so the specs read over the glowing tube */
  #objects .obj-hud { width: 420px; }
  #objects .obj-line { color: #fff; font-size: 17px; font-weight: 600; line-height: 1.45; white-space: nowrap; }   /* two lines, set by the <br> */
  #objects .head h2 { text-shadow: 0 2px 24px rgba(0, 0, 0, .9), 0 0 60px rgba(0, 0, 0, .8); }
  #stealth .obj-stage.square { position: absolute; bottom: 0; left: calc(50vw - (100svh - 64px) / 2 - 9vw); height: calc(100svh - 64px); width: auto; max-width: none; aspect-ratio: 1; }
  #stealth .obj-stage.square .spin { width: 100%; height: 100%; }
  #stealth .obj-hud { right: 21vw; }
  /* the Air app in a phone (frame from the AirLED site), left of the tube */
  .app-phone { --ph: clamp(190px, 15vw, 260px); position: absolute; right: 24vw; top: 50%; z-index: 2; width: var(--ph); aspect-ratio: 360 / 740; border-radius: calc(var(--ph) * .167); padding: calc(var(--ph) * .036);
    transform: translateY(-46%); background: linear-gradient(180deg, #2a2a2d, #1a1a1c 50%, #242427);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 4px #0a0a0b, inset 0 0 0 5px #141416, 0 0 0 1px #000, 0 40px 90px rgba(0, 0, 0, .8), 0 0 80px rgba(0, 0, 0, .9); }
  .app-phone .side { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #4a4a4e, #2a2a2d); }
  .app-phone .side.m { left: -3px; top: 15%; height: 3.5%; } .app-phone .side.u { left: -3px; top: 21%; height: 7%; }
  .app-phone .side.d { left: -3px; top: 29.7%; height: 7%; } .app-phone .side.p { right: -3px; top: 23.8%; height: 10%; }
  .app-phone .scr { width: 100%; height: 100%; border-radius: calc(var(--ph) * .13); overflow: hidden; background: #000; }
  .app-phone .scr img { width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 810px) {
  /* the Air app on phones: smaller, top right of the tube */
  .app-phone { --ph: 46vw; position: absolute; right: -16vw; top: auto; bottom: -12%; transform: rotate(9deg); z-index: 1; width: var(--ph); aspect-ratio: 360 / 740; border-radius: calc(var(--ph) * .167);
    padding: calc(var(--ph) * .036); background: linear-gradient(180deg, #2a2a2d, #1a1a1c 50%, #242427);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 3px #0a0a0b, 0 0 0 1px #000, 0 20px 50px rgba(0, 0, 0, .8); }
  .app-phone .side { display: none; }
  .app-phone .scr { width: 100%; height: 100%; border-radius: calc(var(--ph) * .13); overflow: hidden; background: #000; }
  .app-phone .scr img { width: 100%; height: 100%; object-fit: cover; }
  #objects .obj-line { font-size: 14px; }
  /* hero: the title bigger and lower, so the rock sits over it as on desktop; no bar behind the nav */
  .hero-head { top: auto; bottom: calc(43% + 37vw); gap: 16px; }   /* tied to the rock's top edge (57% − 36.6vw), so the ferns just touch the title on any phone height */
  h1 { font-size: 7.6vw; }
  .nav.on-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .zoom-scene .hero-note { font-size: 9px; letter-spacing: .09em; white-space: nowrap; right: auto; }
}
/* phones: the tube fills the screen too, its specs sit along the bottom */
@media (max-width: 810px) {
  #objects .scene-card { position: relative; display: block; padding: 0; }
  #objects .head { position: absolute; left: 0; right: 0; top: 84px; z-index: 2; pointer-events: none; }
  #objects .obj { position: static; display: block; margin: 0; }
  #objects .obj-stage { position: absolute; inset: 0; }
  #objects .obj-stage air-tube-viewer { width: 100%; height: 100%; aspect-ratio: auto; }
  #objects .obj-hud { position: absolute; left: var(--pad); right: var(--pad); bottom: 5vh; z-index: 2; padding-left: 46px; }
  #objects .obj-hud ul { display: none; }
}

/* ---------- work: one full-screen reel per project. script.js sets --a (0 a screen away, 1 locked) and --t (through the clip) ---------- */
.reel { position: relative; background: #000; color: #fff; }   /* black behind the frame as it grows, never white */
.reel-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1600px; }
.reel-frame { position: absolute; inset: 0; overflow: hidden; background: #000; transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--a, 0)) * 14deg)) scale(calc(.78 + var(--a, 0) * .22)); border-radius: calc((1 - var(--a, 0)) * 28px); will-change: transform; }
.reel-video, .reel-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-before { clip-path: inset(0 0 0 calc(var(--w, 0) * 100%)); }   /* the plain plate, cut away from the left as the fire comes in */
.wipe { position: absolute; top: 0; bottom: 0; left: calc(var(--w, 0) * 100%); width: 2px; margin-left: -1px; background: var(--lime);
  box-shadow: 0 0 18px rgba(198, 243, 92, .6); opacity: calc(var(--a, 0) * (1 - var(--w, 0)) * 8); pointer-events: none; }
.wipe b { position: absolute; top: 15vh; padding: 3px 8px; border-radius: 3px; background: rgba(0, 0, 0, .5); color: #fff; font-weight: 400; white-space: nowrap; }
.wipe b:first-child { left: 12px; } .wipe b:last-child { right: 12px; }
.reel-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--m, 1); }   /* the project's main image, first and last frame */
.reel-still { opacity: 0; }
.reel-still:first-child { opacity: 1; }
.reel-shade { position: absolute; inset: 0; opacity: var(--a, 0);
  background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .32) 48%, rgba(0, 0, 0, 0) 75%), linear-gradient(0deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 50%), rgba(0, 0, 0, .25); }   /* 25% darker overall hides the softness of the stretched clips */
.reel-text { position: absolute; left: calc(var(--pad) + 2vw); bottom: 9vh; width: min(900px, calc(100vw - var(--pad) * 2 - 4vw)); display: grid; gap: 14px; justify-items: start;
  color: #fff; --line: rgba(255, 255, 255, .2); }
.reel-text > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reel.locked .reel-text > * { opacity: 1; transform: none; }
.reel.locked .reel-text > :nth-child(2) { transition-delay: .06s; } .reel.locked .reel-text > :nth-child(3) { transition-delay: .12s; }
.reel.locked .reel-text > :nth-child(4) { transition-delay: .18s; } .reel.locked .reel-text > :nth-child(5) { transition-delay: .24s; } .reel.locked .reel-text > :nth-child(6) { transition-delay: .3s; }
.reel-text { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.reel-text .idx { color: rgba(255, 255, 255, .8); font-weight: 500; }
.reel-text .tag { text-shadow: none; }
.reel-text .tag { background: #0b0b0c; color: #fff; }   /* portfolio tags: black with white type */
.reel-text h3 { font-size: clamp(38px, 5.6vw, 88px); font-weight: 800; letter-spacing: -.02em; line-height: .98; }
.reel-text .lede { color: #fff; font-size: clamp(16px, 1.45vw, 21px); font-weight: 500; max-width: none; white-space: nowrap; }   /* one line */
.reel-text .spec { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 11px; font-weight: 500; color: #fff; }
.reel-text .spec span { color: rgba(255, 255, 255, .62); }
.reel-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }
.reel-links .play { position: static; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.reel-links .play:hover { background: var(--lime); color: #0b0b0c; }
.reel-links .play:hover b { border-left-color: #0b0b0c; }
.reel-links .link { border-color: rgba(255, 255, 255, .3); }
.reel-links .link:hover { border-color: #fff; }
.reel-bar { position: absolute; right: calc(var(--pad) + 2vw); bottom: 9vh; width: 140px; height: 2px; background: rgba(255, 255, 255, .25); border-radius: 2px; overflow: hidden; opacity: var(--a, 0); }
.reel-bar b { display: block; height: 100%; width: calc(var(--t, 0) * 100%); background: var(--lime); }

/* ---------- archive: polaroids pinned in a strip on the page, sliding sideways ---------- */
.archive { position: relative; background: var(--bg); border-top: 1px solid var(--line); --pw: min(calc((100vh - 250px) * .564), 27.6vw); }
.g-pin { position: relative; }
.archive.pinned .g-pin { position: sticky; top: 0; height: 100vh; min-height: 600px; overflow: hidden; }
.g-head { display: grid; justify-items: center; text-align: center; padding: 90px var(--pad) 0; }
#archive .tag { background: var(--lime); color: #0b0b0c; }
.archive.pinned .g-head { position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding-top: 88px; }
.g-track { display: flex; align-items: center; gap: 7vw; padding: 40px var(--pad) 70px; }
.archive.pinned .g-track { height: 100%; padding: 63px calc(50vw - var(--pw) / 2) 0; will-change: transform; }
.g-item { position: relative; flex: 0 0 auto; margin: 0; transform: rotate(var(--r, 0deg)) scale(.9); opacity: .55;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .16)) drop-shadow(0 2px 3px rgba(0, 0, 0, .12)); transition: transform .5s var(--ease), opacity .5s var(--ease); }
.g-item.now { transform: rotate(calc(var(--r, 0deg) * .5)) scale(1); opacity: 1; }
.pola { width: var(--pw); aspect-ratio: 490 / 520; }
.pola .pic { position: absolute; overflow: hidden; clip-path: inset(0); background: #151515; }   /* clip-path too: Safari can drop overflow clipping inside a moving, filtered strip */
.pola .photo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }   /* script.js sizes and places it around its focus point */
.pola .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pola figcaption { position: absolute; left: 9%; right: 9%; bottom: 6.5%; font: 400 calc(var(--pw) * .052)/1.6 "Homemade Apple", cursive; color: #1d1d1f;
  text-align: center; transform: rotate(-1.5deg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin { position: absolute; left: 50%; top: -14px; width: calc(var(--pw) * .11); margin-left: calc(var(--pw) * -.055); z-index: 2; pointer-events: none; filter: drop-shadow(3px 5px 3px rgba(0, 0, 0, .28)); }
.tape { position: absolute; z-index: 2; pointer-events: none; opacity: .93; }
.pola .tape.t1 { top: -20px; left: 50%; width: 42%; margin-left: -21%; transform: rotate(-4deg); }
.g-bar { position: absolute; left: 50%; width: 180px; margin-left: -90px; bottom: 26px; height: 1px; background: var(--line); display: none; }
.archive.pinned .g-bar { display: block; }
.g-bar b { display: block; height: 100%; width: calc(var(--gp, 0) * 100%); background: var(--ink); }

/* lightbox also opens archive photos */
#lb-img { display: none; max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.lb.is-img { width: auto; background: transparent; }
.lb.is-img video { display: none; }
.lb.is-img #lb-img { display: block; }

@media (max-width: 810px) {
  .archive { --pw: 64vw; }
  /* About on phones: two full-screen panels, you and the bio, then recognition, logos and contact */
  /* About: two full-screen panels that pin in turn; the second slides up over the first */
  #about { display: block; padding: 0; border-top: 0; }
  .about-left, .about-right { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center;
    gap: 14px; padding: 76px 28px 36px; background: var(--bg); overflow: hidden; }
  .about-right { box-shadow: 0 -18px 40px rgba(0, 0, 0, .06); }
  .about-left { justify-items: start; text-align: left; }   /* photo, tag, greeting and bio all sit to the left */
  .about-left .bio { margin: 0; max-width: 32em; font-size: 16px; line-height: 1.55; text-align: left; }
  .about-right { margin-top: 70svh; }   /* the bio holds for a while before the next panel slides up */
  .about-hold { display: block; height: 70svh; }   /* and this panel holds before the footer */
  .about-left .headshot { width: 104px; height: 104px; }
  .about-right .rows { width: 100%; }
  .about-right .label { margin-top: 10px; }
  .about-right .btns { justify-content: center; }
  .about-right .logos.mini { width: 100%; }
  /* Stealth: the jacket fills the screen top to bottom, its specs float over the foot of it */
  #stealth .scene-card { position: relative; display: block; padding: 0; }
  #stealth .obj { position: static; display: block; margin: 0; }
  #stealth .obj-stage.square { position: absolute; top: auto; bottom: 0; left: 50%; width: calc(100svh - 56px); height: calc(100svh - 56px); max-width: none; margin: 0; translate: -50% 0; }   /* explicit size: Safari can collapse an aspect-ratio box set by insets */
  #stealth .obj-stage.square .spin { width: 100%; height: 100%; }
  #stealth .obj-hud { position: absolute; left: var(--pad); right: var(--pad); bottom: 3vh; z-index: 2; padding: 16px 16px 10px 46px; margin: 0;
    background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 12px; }
  #stealth .obj-hud .hud-line { left: 8px; top: 26px; width: 28px; }
  #stealth .obj-hud ul { display: none; }   /* on phones the card keeps just the name and the link, so the jacket shows */
  .archive.pinned .g-track { gap: 10vw; }
  .reel-text { left: var(--pad); bottom: 7vh; gap: 10px; }
  .reel-text .lede { font-size: 15px; }
  .reel-shade { background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .1)); }
  .reel-bar { left: var(--pad); right: auto; bottom: 3.5vh; }
  .about { grid-template-columns: 1fr; gap: 44px; }
  .spot:nth-child(1) { left: 14.3% !important; top: 23.6% !important; } .spot:nth-child(2) { left: 60.2% !important; top: 20.2% !important; }
  .spot:nth-child(3) { left: 16.0% !important; top: 78.9% !important; } .spot:nth-child(4) { left: 56.8% !important; top: 82.3% !important; }
  .spot b { font-size: 9px; }
  .logos-track { gap: 52px; }
  .logo-word { font-size: 19px; }
}
