/* Nur Ifran Arpon — v2. Navy by default, Black as the second look.
   Product pages repaint everything (and the light field) in that product's own colours. */

@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root, :root[data-theme="navy"] {
  --bg: #050a18;
  --bg-2: #0a1328;
  --bg-3: #111c38;
  --line: #1c2748;
  --ink: #eef1fb;
  --ink-2: #a6aecb;
  --ink-3: #7e88aa;
  --accent: #8ea2ff;
  --glow: #3b5bdb;
  --cta-bg: #eef1fb;
  --cta-ink: #050a18;
  --display: "Inter", system-ui, sans-serif;
  --display-weight: 560;
  --track: -0.05em;
  --mono: "Mono", ui-monospace, "Cascadia Mono", monospace;
  --gutter: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
:root[data-theme="black"] {
  --bg: #0b0b0c;
  --bg-2: #141415;
  --bg-3: #1c1c1e;
  --line: #2a2a2d;
  --ink: #f3f3f4;
  --ink-2: #a9a9ae;
  --ink-3: #7d7d83;
  --accent: #c9d2ff;
  --glow: #3a3a48;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: transparent; color: var(--ink);
  font: 400 18px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--cta-bg); color: var(--cta-ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* ---------- the live light field (WebGL canvas behind everything) ---------- */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; background: var(--bg); }
.grain { position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- fixed frame: name, menu, clock, hint ---------- */
.frame { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.frame::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; background: linear-gradient(var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, transparent); opacity: var(--top-shade, 0); transition: opacity .4s; pointer-events: none; }
.f-clock, .f-hint { transition: opacity .4s, transform .4s var(--ease); }
.frame.quiet .f-clock, .frame.quiet .f-hint { opacity: 0; transform: translateY(8px); }
.frame > * { pointer-events: auto; position: absolute; }
.f-name { top: 22px; left: var(--gutter); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; }
.f-name svg { width: 26px; height: 26px; border-radius: 7px; }
.f-right { top: 18px; right: var(--gutter); display: flex; gap: 10px; align-items: center; }
.f-clock { left: var(--gutter); bottom: 20px; }
.f-hint { right: var(--gutter); bottom: 20px; display: flex; align-items: center; gap: 10px; }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.frame .mono { pointer-events: none; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  font-size: 16px; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none; color: var(--ink);
  transition: border-color .3s, background-color .3s;
}
.pill-btn:hover { border-color: var(--ink-3); }
.pill-btn .dots { display: inline-grid; grid-template-columns: repeat(2, 4px); gap: 3px; }
.pill-btn .dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.look { padding: 0 6px; gap: 2px; }
.look span { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-3); transition: background-color .3s, color .3s; }
:root[data-theme="navy"] .look [data-v="navy"], :root[data-theme="black"] .look [data-v="black"] { background: var(--ink); color: var(--bg); }

@media (max-width: 760px) {
  .f-name { top: 16px; font-size: 17px; }
  .f-right { top: 12px; }
  .f-right .look { display: none; }
  .f-clock { display: none; }
  .f-hint { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 30px; border-radius: 999px; font-size: 18px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .35s var(--ease), border-color .3s, background-color .3s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--cta-bg); color: var(--cta-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: color-mix(in srgb, var(--bg-2) 50%, transparent); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- the Space ring (navigation) ---------- */
.ring-nav { position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .25s; }
.ring-nav.open { pointer-events: auto; opacity: 1; }
.ring-nav .veil { position: absolute; inset: 0; background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), color-mix(in srgb, var(--bg) 40%, transparent), color-mix(in srgb, var(--bg) 88%, transparent) 60%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ring-nav .hub { position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); width: 0; height: 0; }
.ring-nav .centre { position: absolute; left: -58px; top: -58px; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 80%, transparent); font-size: 13px; font-family: var(--mono); color: var(--ink-2); line-height: 1.3; padding: 10px; text-transform: uppercase; letter-spacing: .05em; }
.ring-nav .item { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ring-nav .item a { position: absolute; left: -38px; top: -38px; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); transform: translate(var(--x), var(--y)) scale(.4); opacity: 0; transition: transform .45s var(--ease), opacity .3s, border-color .2s, background-color .2s; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.ring-nav.open .item a { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; transition-delay: var(--d, 0s); }
.ring-nav .item a img, .ring-nav .item a svg { width: 40px; height: 40px; border-radius: 10px; }
.ring-nav .item a .lbl { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 4px 10px; border-radius: 999px; }
.ring-nav .item a.hot, .ring-nav .item a:hover, .ring-nav .item a:focus-visible { border-color: var(--accent); background: var(--bg-3); transform: translate(var(--x), var(--y)) scale(1.16); }
.ring-nav .beam { position: absolute; left: 0; top: 0; height: 2px; width: 0; transform-origin: 0 50%; background: linear-gradient(90deg, transparent, var(--accent)); border-radius: 2px; opacity: .9; }
.ring-nav .close { position: absolute; right: var(--gutter); top: 18px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 150; background: var(--bg); display: grid; place-items: center; }
.loader .count { font-family: var(--mono); font-size: 14px; color: var(--ink-3); letter-spacing: .1em; position: absolute; left: var(--gutter); bottom: 28px; }
.loader .lname { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(40px, 7vw, 110px); letter-spacing: var(--track); overflow: hidden; line-height: 1; padding: 0 .04em .08em; }
.loader .lname span { display: inline-block; }
.loader .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.no-js .loader { display: none; }

/* ---------- page swap transition ---------- */
.flip-ghost { position: fixed; z-index: 110; overflow: hidden; border-radius: 18px; pointer-events: none; will-change: transform, left, top, width, height; }
.flip-ghost img { width: 100%; height: 100%; object-fit: cover; }
.wipe { position: fixed; inset: 0; z-index: 105; pointer-events: none; background: var(--bg); transform: translateY(100%); }

/* ---------- home hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 clamp(80px, 12vh, 140px); position: relative; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(64px, 15.2vw, 280px); line-height: .84; letter-spacing: var(--track); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.hero h1 .ch { display: inline-block; will-change: transform; transition: color .35s; }
.hero h1 .ch.hot { color: var(--accent); }
.hero h1 .soft { color: var(--ink-3); }
.hero-meta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vh, 48px); align-items: end; }
.hero-meta .lede { grid-column: 1 / span 5; margin: 0; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.4; color: var(--ink); max-width: 30ch; }
.hero-meta .roles { grid-column: 7 / span 3; display: grid; gap: 6px; }
.hero-meta .now { grid-column: 10 / span 3; display: grid; gap: 6px; justify-self: end; text-align: right; }
.hero-meta b { font-weight: 500; color: var(--ink); font-size: 16px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 0 0 rgba(76,195,138,.6); animation: pulse 2.4s infinite; margin-right: 8px; vertical-align: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76,195,138,.55); } 70% { box-shadow: 0 0 0 10px rgba(76,195,138,0); } 100% { box-shadow: 0 0 0 0 rgba(76,195,138,0); } }
@media (max-width: 900px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta .lede { grid-column: 1 / -1; }
  .hero-meta .roles { grid-column: 1; }
  .hero-meta .now { grid-column: 2; }
}

/* ---------- section heads ---------- */
.sec { padding: clamp(100px, 16vh, 200px) 0; position: relative; }
.sec-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: clamp(28px, 5vh, 56px); flex-wrap: wrap; }
.sec-top h2 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(44px, 6vw, 104px); line-height: .95; letter-spacing: var(--track); }
.sec-top h2 sup { font-family: var(--mono); font-size: 14px; letter-spacing: .05em; color: var(--ink-3); vertical-align: top; margin-left: 10px; font-weight: 500; position: relative; top: .6em; }

/* ---------- work index: list and ring views ---------- */
.views { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.views button { border: 0; background: transparent; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.views button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.wlist { list-style: none; margin: 0; padding: 0; }
.wlist li { border-bottom: 1px solid var(--line); }
.wrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 220px) minmax(0, 220px) 40px; gap: 20px; align-items: center; padding: clamp(22px, 3.4vh, 38px) 0; text-decoration: none; position: relative; }
.wrow .n { font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.wrow .t { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(40px, 6.4vw, 112px); letter-spacing: var(--track); line-height: .95; transition: transform .6s var(--ease), color .4s; }
.wrow .k, .wrow .s { font-size: 16px; color: var(--ink-2); }
.wrow .s { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wrow .s i { width: 8px; height: 8px; border-radius: 50%; background: #4cc38a; flex: none; }
.wrow .s i.amber { background: #f0b44c; }
.wrow .arr { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, border-color .3s, transform .5s var(--ease); }
.wrow .arr svg { width: 16px; height: 16px; }
.wrow:hover .t { transform: translateX(18px); }
.wrow:hover .arr { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(-45deg); }
.wlist:hover .wrow:not(:hover) .t { color: var(--ink-3); }
.wrow .thumb { display: none; }
@media (max-width: 900px) {
  .wrow { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 14px; }
  .wrow .k, .wrow .s { display: none; }
  .wrow .thumb { display: block; grid-column: 1 / -1; order: 5; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); }
  .wrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .wrow .sub { display: block; grid-column: 2 / 3; font-size: 15px; color: var(--ink-2); margin-top: -6px; }
}
.wrow .sub { display: none; }
@media (max-width: 900px) { .wrow .sub { display: block; } }

.hover-img { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(280px, 26vw, 440px); aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.8); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); border: 1px solid var(--line); }
.hover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.hover-img img.on { opacity: 1; }

.wring { height: min(78vh, 760px); position: relative; perspective: 1100px; display: none; cursor: grab; touch-action: pan-y; }
.wring.active { display: block; }
.wlist.hidden { display: none; }
.wring .cam { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.wring .rg { position: absolute; transform-style: preserve-3d; }
.wring .cv { position: absolute; left: 0; top: 0; width: var(--cw); aspect-ratio: 4 / 5; margin: calc(var(--cw) * -0.625) 0 0 calc(var(--cw) * -0.5); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); backface-visibility: hidden; -webkit-backface-visibility: hidden; text-decoration: none; background: var(--bg-3); box-shadow: 0 40px 90px -40px rgba(0,0,0,.85); }
.wring .cv img { width: 100%; height: 100%; object-fit: cover; }
.wring .cv span { position: absolute; left: 14px; right: 14px; bottom: 14px; font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.03em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.wring .cv em { position: absolute; left: 14px; top: 14px; font-style: normal; font-family: var(--mono); font-size: 12px; color: #fff; background: rgba(0,0,0,.45); padding: 4px 8px; border-radius: 999px; letter-spacing: .05em; }

/* ---------- statement + facts ---------- */
.big-words { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4.8vw, 84px); line-height: 1.08; letter-spacing: -0.035em; margin: 0; max-width: 20ch; }
.big-words .w { color: var(--ink); }
.js .big-words .w { color: var(--line); transition: color .25s; }
.js .big-words .w.on { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 9vh, 110px); border-top: 1px solid var(--line); }
.facts > div { padding: 26px 22px 0 0; }
.facts > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(44px, 4.6vw, 76px); letter-spacing: -0.045em; line-height: 1; }
.facts span { display: block; margin-top: 12px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div { padding: 22px 14px 22px 0; border-bottom: 1px solid var(--line); } .facts > div + div { padding-left: 0; border-left: 0; } .facts > div:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line); } }

/* ---------- about with the flip photo ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.photo { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; perspective: 1200px; margin: 0; }
.photo > img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.photo.tiled > img { opacity: 0; }
.flip-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr); transform-style: preserve-3d; }
.flip { position: relative; transform-style: preserve-3d; will-change: transform; }
.flip i { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-repeat: no-repeat; }
.flip .b { transform: rotateY(180deg); }
.flip.tl i { border-top-left-radius: 22px; } .flip.tr i { border-top-right-radius: 22px; } .flip.bl i { border-bottom-left-radius: 22px; } .flip.br i { border-bottom-right-radius: 22px; }
.about-text .mono { display: block; margin-bottom: 18px; }
.about-text h2 { margin: 0 0 28px; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(48px, 6.6vw, 116px); line-height: .92; letter-spacing: var(--track); }
.about-text p { margin: 0 0 20px; font-size: clamp(19px, 1.4vw, 22px); color: var(--ink-2); max-width: 56ch; }
.about-text p.first { color: var(--ink); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 32px; }
.kv > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { margin: 6px 0 0; font-size: 17px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; text-decoration: none; margin-top: 18px; }
.link-arrow:hover { text-decoration: underline; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .photo { max-width: 460px; } .kv { grid-template-columns: 1fr; } }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.skills > div { padding: 30px 26px 36px 0; }
.skills > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.skills h3 { margin: 18px 0 12px; font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; letter-spacing: -0.025em; line-height: 1.1; }
.skills p { margin: 0; color: var(--ink-2); font-size: 17px; }
.skills .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.skills .tags span { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
@media (max-width: 1100px) { .skills { grid-template-columns: 1fr 1fr; } .skills > div { border-bottom: 1px solid var(--line); } .skills > div:nth-child(2n+1) { padding-left: 0; border-left: 0; } }
@media (max-width: 640px) { .skills { grid-template-columns: 1fr; } .skills > div { padding: 26px 0 !important; border-left: 0 !important; } }

/* ---------- contact + footer ---------- */
.contact { padding: clamp(120px, 20vh, 240px) 0 clamp(60px, 10vh, 120px); }
.contact h2 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(64px, 13vw, 240px); line-height: .86; letter-spacing: var(--track); }
.contact h2 a { text-decoration: none; }
.contact .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-top: 36px; }
.contact p { margin: 0; color: var(--ink-2); font-size: 20px; max-width: 46ch; }
.contact .out { margin-top: 18px; font-size: 17px; color: var(--ink-2); min-height: 1.6em; }
.contact .out a { color: var(--ink); }
@media (max-width: 900px) { .contact .row { grid-template-columns: 1fr; } }
.footer { border-top: 1px solid var(--line); padding: 28px 0 80px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 15px; color: var(--ink-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .kofi a { color: var(--accent); }

/* ---------- project pages ---------- */
.p-hero { min-height: 100svh; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 110px 0 clamp(36px, 6vh, 64px); }
.p-cover { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; height: min(54vh, 56vw); width: 100%; border: 1px solid var(--line); background: var(--bg-3); }
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-hero h1 { margin: clamp(22px, 3vh, 36px) 0 0; font-family: var(--p-font, var(--display)); font-weight: var(--p-weight, var(--display-weight)); font-size: clamp(56px, min(11vw, 19vh), 210px); line-height: .9; letter-spacing: var(--p-track, var(--track)); }
.p-hero h1 em { font-style: italic; font-weight: 400; }
.p-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.p-meta dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.p-meta dd { margin: 6px 0 0; font-size: 16px; color: var(--ink); }
@media (max-width: 900px) { .p-meta { grid-template-columns: 1fr 1fr; } }
.p-intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); }
.p-intro .big-words { font-family: var(--p-font, var(--display)); max-width: 24ch; }
@media (max-width: 900px) { .p-intro { grid-template-columns: 1fr; } }

.film { position: relative; }
.film-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.film-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 72px); align-items: center; width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.film-caps { position: relative; min-height: 220px; }
.film-caps .cap { position: absolute; inset: 0 0 auto 0; opacity: 0; }
.film-caps .cap:first-child { opacity: 1; }
.film-caps .mono { display: block; margin-bottom: 14px; }
.film-caps h3 { margin: 0 0 12px; font-family: var(--p-font, var(--display)); font-weight: var(--p-weight, var(--display-weight)); font-size: clamp(30px, 3vw, 50px); letter-spacing: -0.03em; line-height: 1.05; }
.film-caps p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 38ch; }
.film-frames { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); box-shadow: 0 60px 140px -60px rgba(0,0,0,.85); }
.film-frames.square { aspect-ratio: 1 / 1; width: min(100%, 76vh); margin-inline: auto; }
.film-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.film-frames img:first-child { opacity: 1; }
.film-dots { display: flex; gap: 8px; margin-top: 26px; }
.film-dots i { width: 28px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.film-dots i b { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 900px) {
  .film { height: auto !important; }
  .film-pin { position: relative; height: auto; display: block; padding: 40px 0; }
  .film-grid { grid-template-columns: 1fr; }
  .film-caps { min-height: 0; }
  .film-caps .cap { position: relative; opacity: 1; margin-bottom: 26px; }
  .film-frames img { position: relative; opacity: 1; display: none; }
  .film-frames img:first-child { display: block; }
  .film-dots { display: none; }
}

.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature-list > div { padding: 28px 24px 32px 0; }
.feature-list > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.feature-list h3 { margin: 14px 0 10px; font-family: var(--p-font, var(--display)); font-weight: var(--p-weight, var(--display-weight)); font-size: 26px; letter-spacing: -0.02em; }
.feature-list p { margin: 0; color: var(--ink-2); font-size: 17px; }
@media (max-width: 900px) { .feature-list { grid-template-columns: 1fr; } .feature-list > div { padding: 24px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); } }

.next { display: block; text-decoration: none; padding: clamp(80px, 14vh, 160px) 0 clamp(50px, 8vh, 90px); border-top: 1px solid var(--line); }
.next .mono { display: block; margin-bottom: 18px; }
.next .nt { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(56px, 11vw, 200px); letter-spacing: var(--track); line-height: .9; }
.next .nimg { width: clamp(120px, 18vw, 300px); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); flex: none; transition: transform .7s var(--ease); }
.next .nimg img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .nimg { transform: rotate(-4deg) scale(1.06); }

/* ---------- journey timeline ---------- */
.tl { position: relative; }
.tl.horizontal { height: var(--tl-h, 300vh); }
.tl.horizontal .tl-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.tl-track { display: flex; }
.tl.horizontal .tl-track { padding-left: max(var(--gutter), (100vw - 1440px) / 2); will-change: transform; }
.tl-item { flex: 0 0 auto; width: clamp(300px, 27vw, 420px); padding: 34px 34px 0 0; border-top: 1px solid var(--line); position: relative; }
.tl-item::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-3); }
.tl-item.big::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 18px var(--accent); }
.tl-item h4 { margin: 12px 0 10px; font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; line-height: 1.08; letter-spacing: -0.025em; }
.tl-item p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 34ch; }
.tl-progress { height: 2px; background: var(--accent); width: 0; margin-top: -1px; position: relative; }
.tl:not(.horizontal) .tl-track { flex-direction: column; padding-left: 6px; }
.tl:not(.horizontal) .tl-item { width: auto; padding: 0 0 40px 30px; border-top: 0; border-left: 1px solid var(--line); }
.tl:not(.horizontal) .tl-item::before { top: 4px; left: -6px; }

.prose { max-width: 720px; }
.prose h2 { margin: 64px 0 16px; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(30px, 3vw, 46px); letter-spacing: -0.025em; line-height: 1.08; }
.prose p { color: var(--ink-2); font-size: 19px; }
.prose a { color: var(--accent); }
.page-head { padding: clamp(150px, 24vh, 260px) 0 clamp(50px, 8vh, 100px); }
.page-head h1 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(60px, 10vw, 180px); line-height: .88; letter-spacing: var(--track); }
.page-head p { margin: 28px 0 0; color: var(--ink-2); font-size: clamp(19px, 1.5vw, 23px); max-width: 52ch; }

/* ---------- reveal + reduced motion ---------- */
.js .rv { opacity: 0; transform: translateY(32px); }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; }
  .js .big-words .w { color: var(--ink); }
  .film { height: auto !important; }
  .film-pin { position: relative; height: auto; padding: 60px 0; }
  .film-frames img { position: relative; opacity: 1; display: none; } .film-frames img:first-child { display: block; }
  .film-caps .cap { position: relative; opacity: 1; margin-bottom: 20px; }
  .live-dot { animation: none; }
  .ring-nav .item a, .btn, .wrow .t { transition: none; }
}
body[data-page="project"] .f-clock, body[data-page="project"] .f-hint, body[data-page="journey"] .f-clock, body[data-page="journey"] .f-hint { opacity: 0; pointer-events: none; }
.facts > div { min-width: 0; }
@media (max-width: 520px) { .facts b { font-size: clamp(30px, 9vw, 40px); } .facts span { font-size: 15px; } }

/* keep scrolling: the little bar that fills as you scroll past the end into the next page */
.pull { position: fixed; left: 50%; bottom: 22px; z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 11px 18px 13px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, 14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.pull.on { opacity: 1; transform: translate(-50%, 0); }
.pull .mono { font-size: 12px; color: var(--ink-2, var(--ink)); }
.pull i { display: block; width: 100%; min-width: 120px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pull b { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .12s linear; }
@media (prefers-reduced-motion: reduce) { .pull { transition: none; } }
/* room under the footer so the keep-scrolling bar never sits on its links */
body[data-page="home"] .footer, body[data-page="project"] .footer, body[data-page="journey"] .footer { margin-bottom: 76px; }
@media (max-width: 520px) { .next .nt { font-size: clamp(38px, 11vw, 56px); gap: 14px; } .next .nimg { width: clamp(84px, 24vw, 120px); } }
@media (max-width: 360px) { .btn { padding-inline: 20px; font-size: 15px; } }
