/* Ink: a calm portfolio. One typeface family (Geist), lots of space, one signature toy per section.
   Four light papers (White, Paper, Cream, Stone) and a dark mode switch the whole palette (Mood button); Motion turns the effects off. */

/* ---------- moods ---------- */
:root, :root[data-mood="paper"] {
  --bg: #ebe9e4; --bg-2: #f4f3ef; --ink: #141414; --ink-2: #57554f; --ink-3: #9a978f;
  --line: rgba(20, 20, 20, .14); --accent: #5b63f5; --on-accent: #ffffff; --ink-rgb: 20, 20, 20; --mood-name: "Paper";
}
:root[data-mood="white"] {
  --bg: #f7f7f4; --bg-2: #ffffff; --ink: #121212; --ink-2: #55554f; --ink-3: #9b9a94;
  --line: rgba(18, 18, 18, .12); --accent: #5b63f5; --on-accent: #ffffff; --ink-rgb: 18, 18, 18;
}
:root[data-mood="cream"] {
  --bg: #f3ecdc; --bg-2: #f9f4e9; --ink: #1a1713; --ink-2: #5d5547; --ink-3: #a1978a;
  --line: rgba(26, 23, 19, .14); --accent: #5b63f5; --on-accent: #ffffff; --ink-rgb: 26, 23, 19;
}
:root[data-mood="stone"] {
  --bg: #dfdcd5; --bg-2: #e9e7e1; --ink: #151515; --ink-2: #52504b; --ink-3: #8e8b84;
  --line: rgba(21, 21, 21, .15); --accent: #5b63f5; --on-accent: #ffffff; --ink-rgb: 21, 21, 21;
}
/* dark mode: near-black page over moving smoke (smoke.js); wins over any mood */
:root[data-theme="dark"] {
  --bg: #0b0c0e; --bg-2: #16171b; --ink: #ecedef; --ink-2: #b0b3ba; --ink-3: #8b8e96;
  --line: rgba(236, 237, 239, .14); --accent: #9aa3ff; --on-accent: #0b0c0e; --ink-rgb: 0, 0, 0;
  color-scheme: dark;
}
:root {
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .6s var(--ease), color .6s var(--ease); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.eyebrow, .work__top, .head__nav a, .mood, .motion, .hero__foot, .work__label, .work__tabs, .pstep__n, .about__edu, .contact__row, .contact__copy, .work__hint, .try__note {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 16px; color: var(--ink-2); }
.rule { display: inline-block; width: 56px; height: 1px; background: currentColor; opacity: .6; }

/* film grain over everything, very light */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-2%, 3%); } 50% { transform: translate(3%, -2%); } 75% { transform: translate(-3%, -3%); } }

/* ---------- header ---------- */
.head { position: fixed; z-index: 50; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 28px var(--gutter); transition: transform .5s var(--ease); }
.head.is-hidden { transform: translateY(-110%); }
.head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: 0; transition: opacity .4s; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.head.is-scrolled::before { opacity: .94; }
.head__name { display: flex; flex-direction: column; font: 400 clamp(20px, 1.9vw, 28px)/1.02 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.head__name span:last-child { color: var(--ink-2); }
.head__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding-top: 6px; }
.head__nav > a { position: relative; }
.head__nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.head__nav > a:hover::after { transform: scaleX(1); transform-origin: left; }
.mood { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .3s; }
.mood:hover { border-color: var(--ink); }
.mood__dot { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--accent) 0 50%, var(--ink) 50% 100%); transition: transform .6s var(--ease); }
.mood:hover .mood__dot { transform: rotate(180deg); }
.mood b { font-weight: 500; color: var(--ink-3); }
.motion { display: inline-flex; align-items: center; gap: 10px; }
.motion__track { position: relative; width: 38px; height: 20px; border-radius: 999px; border: 1px solid var(--ink); }
.motion__knob { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transition: transform .35s var(--ease); }
.motion[aria-pressed="true"] .motion__knob { transform: translateX(18px); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 40px; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__name { position: relative; z-index: 2; font: 300 clamp(84px, 19.5vw, 380px)/.82 var(--sans); letter-spacing: .005em; text-transform: uppercase; white-space: nowrap; margin-top: 4vh; }
.hero__name [data-split] { display: inline-block; }
.hero__name .ch { display: inline-block; }
.gl-hero .hero__name .ch { color: transparent; }
.no-motion .hero__name .ch { color: var(--ink) !important; }
.hero__foot { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; color: var(--ink-2); }
.hero__role { line-height: 1.9; color: var(--ink); }
.hero__role span { color: var(--ink-2); }
.hero__hint { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .04em; text-transform: none; font-size: 14px; font-weight: 400; }
.hero__hint svg { width: 14px; height: 14px; fill: var(--ink); }
.no-motion .hero__hint { visibility: hidden; }
.hero__scroll { justify-self: end; }
.hero__scroll span { display: inline-block; margin-left: 8px; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* ---------- statement ---------- */
.say { position: relative; height: 230vh; }
.say__pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); }
.say__text { max-width: 1180px; text-align: center; font: 400 clamp(30px, 3.6vw, 58px)/1.18 var(--sans); letter-spacing: -.015em; }
.say__text .w { color: var(--ink); opacity: .16; transition: opacity .25s linear; }
.say__text .w.is-on { opacity: 1; }
.say__bar { position: absolute; bottom: 48px; left: 50%; width: 180px; height: 1px; transform: translateX(-50%); background: var(--line); }
.say__bar i { display: block; height: 100%; width: 0; background: var(--ink); }

/* ---------- work slideshow ---------- */
.work { position: relative; height: 600vh; }
.work__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 108px var(--gutter) 36px; gap: 24px; }
.work__top { display: flex; align-items: center; gap: 20px; color: var(--ink-2); }
.work__count { margin-left: 18px; color: var(--ink-3); }
.work__count b { font-weight: 500; color: var(--ink); }
.work__main { display: grid; grid-template-columns: minmax(280px, 1fr) 1.55fr; gap: clamp(24px, 4vw, 72px); align-items: center; min-height: 0; }
.work__info { display: flex; flex-direction: column; gap: 22px; }
.work__label { color: var(--ink-2); }
.work__title { font: 300 clamp(36px, 4.2vw, 72px)/1.02 var(--sans); letter-spacing: -.025em; max-width: 14ch; }
.work__title .wd { display: inline-block; white-space: nowrap; }
.work__title .ch { display: inline-block; }
.work__fact { color: var(--ink-2); max-width: 34ch; }
.work__cta { align-self: flex-start; display: inline-flex; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; transition: transform .4s var(--ease), background .3s; }
.work__cta span { transition: transform .4s var(--ease); }
.work__cta:hover span { transform: translateX(5px); }
.work__cta.is-locked { visibility: hidden; pointer-events: none; }
.work__info > * { will-change: transform, opacity; }
.work__media { position: relative; height: 100%; min-height: 240px; }
.work__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.work__fallback { position: absolute; inset: 0; margin: auto; width: 100%; max-height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gl-work .work__fallback { visibility: hidden; }
.work__hint { position: absolute; right: 0; bottom: -4px; color: var(--ink-3); }
.no-motion .work__hint { display: none; }
/* Figma-style selection over the picture on hover */
.sel { position: absolute; pointer-events: none; border: 1.5px solid var(--accent); opacity: 0; transition: opacity .25s; }
.work__media.is-ready:hover .sel { opacity: 1; }
.h { position: absolute; width: 9px; height: 9px; background: var(--bg); border: 1.5px solid var(--accent); }
.h--tl { left: -5px; top: -5px; } .h--tr { right: -5px; top: -5px; } .h--bl { left: -5px; bottom: -5px; } .h--br { right: -5px; bottom: -5px; }
.sel__tag { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); padding: 2px 8px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font: 500 11px var(--mono); white-space: nowrap; }
.lock { position: absolute; inset: 0; background: rgba(10, 10, 12, .32); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; opacity: 0; pointer-events: none; transition: opacity .5s;
  font: 500 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.lock.is-on { opacity: 1; }
.lock svg { width: 26px; height: 26px; padding: 20px; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, .92); fill: none; stroke: #141414; stroke-width: 1.5; }
.work__tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.6vw, 28px); }
.work__tabs button { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 16px; text-align: left; color: var(--ink-3); position: relative; transition: color .3s; }
.work__tabs button i { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); overflow: hidden; }
.work__tabs button i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.work__tabs button.is-on { color: var(--ink); }
.work__tabs button span { opacity: .6; }

/* ---------- try: the Yeapp composer ---------- */
.try { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(32px, 6vw, 110px); align-items: center; padding: clamp(100px, 16vh, 180px) var(--gutter); max-width: 1380px; margin: 0 auto; }
.try__text { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.try__title { font: 300 clamp(48px, 6.4vw, 104px)/.95 var(--sans); letter-spacing: -.035em; text-transform: uppercase; }
.try__text p:not(.eyebrow) { color: var(--ink-2); }
.try__note { color: var(--ink-3) !important; }
.phone { width: 100%; aspect-ratio: 9 / 18.5; max-height: 76vh; border-radius: 44px; padding: 11px; background: #0d0d10; box-shadow: 0 50px 90px rgba(var(--ink-rgb), .18); justify-self: center; user-select: none; -webkit-user-select: none; touch-action: none; }
.phone__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f7f6fb; color: #16151d; display: flex; flex-direction: column; font: 400 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; background: #fff; border-bottom: 1px solid #ecebf1; }
.chat__head div { display: flex; flex-direction: column; } .chat__head b { font-weight: 600; } .chat__head span { font-size: 12px; color: #8a8898; }
.chat__back { font-size: 26px; line-height: 1; color: #6b5cff; }
.chat__av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #b4a8ff, #6b5cff); }
.chat__list { flex: 1; overflow-y: auto; padding: 16px 12px 90px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.vn { display: flex; align-items: flex-start; gap: 10px; max-width: 86%; padding: 10px 12px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.vn--out { align-self: flex-end; background: #6b5cff; color: #fff; }
.vn--new { animation: pop .45s var(--ease); }
@keyframes pop { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.vn__play { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #6b5cff; display: grid; place-items: center; }
.vn--out .vn__play { background: #fff; }
.vn__play svg { width: 13px; height: 13px; fill: #fff; }
.vn--out .vn__play svg { fill: #6b5cff; }
.vn__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vn__wave { height: 18px; display: flex; align-items: center; gap: 2px; }
.vn__wave i { width: 3px; border-radius: 2px; background: currentColor; opacity: .35; }
.vn__wave i.is-on { opacity: 1; }
.vn__words { font-size: 13px; line-height: 1.4; color: #8a8898; }
.vn--out .vn__words { color: rgba(255, 255, 255, .62); }
.vn__words .w { transition: color .2s, font-weight .2s; }
.vn__words .w.is-heard { color: #16151d; font-weight: 600; }
.vn--out .vn__words .w.is-heard { color: #fff; }
.vn__time { font-size: 11px; color: #8a8898; align-self: flex-end; }
.vn--out .vn__time { color: rgba(255, 255, 255, .7); }
.composer { position: absolute; left: 12px; right: 12px; bottom: 18px; height: 56px; border-radius: 28px; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 20px; color: #8a8898; }
.mic { width: 46px; height: 46px; border-radius: 50%; background: #6b5cff; display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; touch-action: none; }
.mic svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.is-recording .mic { transform: scale(1.5); background: #ff4d5e; }
.composer__lock { position: absolute; right: 13px; bottom: 74px; width: 32px; height: 52px; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .1); display: grid; place-items: start center; padding-top: 8px; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .3s var(--ease); }
.composer__lock svg { width: 16px; height: 16px; fill: none; stroke: #6b5cff; stroke-width: 1.6; }
.is-recording .composer__lock { opacity: 1; transform: none; }
.rec, .locked { position: absolute; left: 12px; right: 70px; bottom: 18px; height: 56px; border-radius: 28px; background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 16px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 2; }
.is-recording .rec { opacity: 1; }
.rec__dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d5e; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rec__time { font: 500 13px var(--mono); }
.rec__wave { flex: 1; height: 22px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.rec__wave i { flex: 0 0 3px; border-radius: 2px; background: #6b5cff; }
.rec__hint { font-size: 11px; color: #8a8898; }
.locked { right: 12px; justify-content: space-between; padding: 0 8px 0 14px; }
.is-locked .locked { opacity: 1; pointer-events: auto; }
.is-locked .composer { opacity: 0; }
.locked button { font-size: 13px; font-weight: 500; color: #8a8898; padding: 8px 10px; border-radius: 999px; }
.locked .send { background: #6b5cff; color: #fff; padding: 9px 16px; }
.toast { position: absolute; left: 50%; bottom: 86px; transform: translate(-50%, 10px); padding: 8px 14px; border-radius: 999px; background: #16151d; color: #fff; font-size: 12px; opacity: 0; transition: opacity .2s, transform .3s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- process (pen tool) ---------- */
.pen { padding: clamp(100px, 14vh, 160px) var(--gutter); }
.pen__head { margin-bottom: clamp(48px, 8vh, 96px); display: flex; flex-direction: column; gap: 22px; }
.pen__title { font: 300 clamp(44px, 6vw, 100px)/.95 var(--sans); letter-spacing: -.035em; text-transform: uppercase; max-width: 12ch; }
.pen__board { position: relative; }
.pen__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.pen__ghost { fill: none; stroke: var(--ink-3); stroke-opacity: .55; stroke-width: 1.3; stroke-dasharray: 2 7; stroke-linecap: round; }
.pen__path { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .pen__path { filter: drop-shadow(0 0 6px var(--accent)); }
.pen__anchors rect { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.pen__anchors rect.is-on { transform: scale(1); }
.pen__handles g { opacity: 0; transition: opacity .3s; }
.pen__handles g.is-on { opacity: 1; } .pen__handles g.is-done { opacity: .25; }
.pen__handles line { stroke: var(--accent); stroke-width: 1; }
.pen__handles circle { fill: var(--bg); stroke: var(--accent); stroke-width: 1; }
.pen__steps { position: relative; z-index: 2; display: flex; flex-direction: column; gap: clamp(64px, 11vh, 130px); }
.pstep { width: min(460px, 40%); display: flex; flex-direction: column; gap: 12px; opacity: .3; transition: opacity .6s var(--ease); }
.pstep:nth-child(even) { align-self: flex-end; }
.pstep.is-on { opacity: 1; }
/* desktop: the steps are scattered over a board and the line wanders between them */
@media (min-width: 901px) {
  .pen__steps { display: block; height: 1780px; }
  .pstep, .pstep:nth-child(even) { position: absolute; left: var(--x); top: var(--y); width: min(360px, 30vw); align-self: auto; }
  .pstep.is-right { align-items: flex-end; text-align: right; }
}
.pstep__n { color: var(--accent); }
.pstep h3 { font: 300 clamp(36px, 3.8vw, 60px)/1 var(--sans); letter-spacing: -.03em; text-transform: uppercase; }
.pstep p { color: var(--ink-2); }
.pen__cursor { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; will-change: transform; }
.pen__cursor svg { width: 28px; height: 28px; margin: -2px 0 0 -14px; transform: rotate(-35deg); transform-origin: 50% 0; fill: var(--bg); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.pen__cursor svg circle { fill: var(--ink); stroke: none; }

/* ---------- about: big type with Nikhila between the lines ---------- */
.about { padding: clamp(100px, 14vh, 160px) var(--gutter) clamp(80px, 12vh, 140px); overflow-x: clip; }
.ab-stage { position: relative; margin-top: clamp(28px, 5vh, 56px); }
.ab-title { position: static; font: 300 clamp(52px, 8.4vw, 164px)/.9 var(--sans); letter-spacing: -.035em; text-transform: uppercase; }
.ab-l { display: block; position: relative; white-space: nowrap; will-change: transform; }
.ab-l--left { text-align: left; } .ab-l--right { text-align: right; }
.ab-l--back { z-index: 1; color: var(--ink); }
.ab-l--front { z-index: 3; color: var(--accent); }
.ab-me { position: absolute; z-index: 2; left: 50%; bottom: -14%; height: 128%; aspect-ratio: 755 / 1500; transform: translateX(-50%);
  -webkit-mask: linear-gradient(#000 72%, transparent 98%); mask: linear-gradient(#000 72%, transparent 98%); pointer-events: none; }
.ab-cols { position: relative; z-index: 3; display: block; margin-top: clamp(64px, 10vh, 120px); }
.ab-cols p { color: var(--ink-2); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; max-width: 62ch; }
.about__edu { color: var(--ink) !important; font-size: 12px !important; margin-top: 48px; }

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 14vh, 160px) var(--gutter) 36px; border-top: 1px solid var(--line); }
.contact__big { display: block; margin: 40px 0 56px; font: 300 clamp(72px, 15.5vw, 300px)/.85 var(--sans); letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }
.contact__big .ch { display: inline-block; transition: transform .5s var(--ease), color .3s; }
.contact__big:hover .ch { color: var(--accent); }
.contact__row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.contact__row a { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .3s; }
.contact__row a:hover { border-color: var(--ink); }
.contact__row span { margin-left: auto; color: var(--ink-2); }
.contact__row b { color: var(--ink); font-weight: 500; }
.contact__copy { margin-top: 72px; color: var(--ink-3); }

/* ---------- light / dark switch ---------- */
.theme { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .3s; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.theme:hover { border-color: var(--ink); }
.theme__icon { width: 18px; height: 18px; display: grid; place-items: center; }
.theme__icon svg { width: 18px; height: 18px; fill: var(--ink); color: var(--ink); overflow: visible; }
.theme__sun, .theme__moon { transition: transform .6s var(--ease), opacity .4s; transform-origin: 10px 10px; }
.theme__sun { opacity: 0; transform: scale(.4); }
:root[data-theme="dark"] .theme__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme__moon { opacity: 0; transform: rotate(-60deg) scale(.4); }
.theme:hover .theme__moon { transform: rotate(-20deg); }

/* the smoke canvas sits behind everything and only shows in dark mode */
.smoke { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease); }
:root[data-theme="dark"] .smoke { opacity: 1; }
:root[data-theme="dark"] body { background: var(--bg); }
:root[data-theme="dark"]:not(.no-smoke) body { background: transparent; }
:root[data-theme="dark"]:not(.no-smoke) { background: var(--bg); }
:root[data-theme="dark"] .grain { display: none; }
:root[data-theme="dark"] .mood { display: none; }

/* dark mode borrows the instrument-panel feel: mono labels and outlined pills */
:root[data-theme="dark"] :is(.eyebrow, .work__top, .head__nav a, .theme, .motion, .hero__foot, .work__label, .work__tabs, .pstep__n, .about__edu, .contact__row, .contact__copy, .work__hint, .try__note) { font-family: var(--mono); font-weight: 400; letter-spacing: .1em; }
:root[data-theme="dark"] .work__cta { background: transparent; color: var(--ink); border: 1px solid rgba(236, 237, 239, .35); font-family: var(--mono); font-weight: 400; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
:root[data-theme="dark"] .work__cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-theme="dark"] .head.is-scrolled::before { opacity: .72; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
:root[data-theme="dark"] .phone { box-shadow: 0 50px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }

.lightbg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; transition: opacity .8s var(--ease); }
:root[data-theme="dark"] .lightbg, :root[data-lightbg="off"] .lightbg { opacity: 0; }
:root:not([data-theme="dark"]):not([data-lightbg="off"]):not(.no-lightbg) body { background: transparent; }
:root:not([data-theme="dark"]):not([data-lightbg="off"]):not(.no-lightbg) { background: var(--bg); }

/* TEMPORARY picker for the light background */
.bgpick { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 16px; border-radius: 999px; background: #141414; color: #fff; font: 500 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); white-space: nowrap; }
.bgpick span { opacity: .6; margin-right: 8px; }
.bgpick button { padding: 8px 12px; border-radius: 999px; color: #fff; letter-spacing: .12em; text-transform: uppercase; }
.bgpick button[aria-pressed="true"] { background: #fff; color: #141414; }
:root[data-theme="dark"] .bgpick { display: none; }
@media (max-width: 560px) { .bgpick span { display: none; } .bgpick { padding-left: 5px; } }

[hidden] { display: none !important; }

/* switching: a circle spreads out from the button */
.is-switching *, .is-switching *::before, .is-switching *::after { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-reveal .9s cubic-bezier(.65, 0, .35, 1); }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 0)); } }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .head__nav > a { display: none; }
  .mood b, .theme span { display: none; }
  .theme { padding: 8px; }
  .hero__foot { grid-template-columns: 1fr auto; } .hero__hint { display: none; }
  .work__main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 20px; }
  .work__title { font-size: clamp(30px, 7vw, 44px); }
  .work__tabs { grid-template-columns: repeat(6, 1fr); font-size: 0; }
  .work__tabs button span { font-size: 11px; }
  .work__hint { display: none; }
  .try { grid-template-columns: 1fr; }
  .phone { max-width: 340px; }
  .pstep, .pstep:nth-child(even) { width: auto; align-self: stretch; margin-left: 34px; }
  .ab-title { font-size: 13vw; } .ab-l { white-space: normal; } .ab-me { height: 112%; bottom: -8%; }
  .ab-cols { grid-template-columns: 1fr; gap: 18px; }
  .contact__row span { margin-left: 0; }
}
@media (max-width: 560px) {
  .head { padding: 18px var(--gutter); }
  .motion span { display: none; }
  .hero__name { font-size: 24vw; }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } .hero__scroll span { animation: none; } }

.ab-me img { position: relative; display: block; width: 100%; height: 100%; max-width: none; }
/* a printed cutting is solid paper: fill the silhouette with the page colour under the dots,
   so the words "behind" her don't show through the gaps between the dots */
.ab-me::before { content: ""; position: absolute; inset: 0; background: var(--bg);
  -webkit-mask: url("img/portrait-cutout.webp") center / 100% 100% no-repeat; mask: url("img/portrait-cutout.webp") center / 100% 100% no-repeat; }
/* each mode has its own portrait: black lines on paper in light mode; light lines on the dark page in dark mode
   (lines thicker where she is brighter, so the face reads bright, not a negative) */
.ab-me img.ab-me__dark { display: none; }
:root[data-theme="dark"] .ab-me img.ab-me__light { display: none; }
:root[data-theme="dark"] .ab-me img.ab-me__dark { display: block; }

/* ================= v3 type (2026-11-30) =================
   Nikhila asked for the v3 font combo on this version and may want it reverted.
   To revert: delete this whole block and put the Geist font link back in index.html
   (full copies of the previous files are in _backup/pre-v3-fonts-2026-11-30/).
   Big Shoulders Display for headings and big type (tall, condensed, uppercase),
   Instrument Serif italic for accent words, Inter Tight for reading text, JetBrains Mono for small labels. */
:root { --sans: "Inter Tight", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif; --serif: "Instrument Serif", Georgia, serif; }
.head__name { font-family: var(--display); font-weight: 500; letter-spacing: .02em; }
.hero__name { font-family: var(--display); font-weight: 500; letter-spacing: -.005em; line-height: .86; text-align: center; }
.say__text { font-weight: 300; letter-spacing: -.02em; }
.work__title { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(44px, 4.9vw, 88px); line-height: .92; letter-spacing: -.005em; }
.try__title, .pen__title, .pstep h3, .ab-title { font-family: var(--display); font-weight: 800; letter-spacing: -.005em; }
.ab-title { font-size: clamp(64px, 12.6vw, 250px); line-height: .86; }
@media (max-width: 900px) { .ab-title { font-size: 17vw; } }
.contact__big { font-family: var(--display); font-weight: 900; letter-spacing: -.005em; }
.pen__title em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--accent); letter-spacing: 0; }
.ab-l--front { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; font-size: 1.04em; }
.eyebrow, .work__top, .head__nav a, .mood, .theme, .motion, .hero__foot, .work__label, .work__tabs, .pstep__n, .about__edu, .contact__row, .contact__copy, .work__hint, .try__note, .bgpick {
  font-family: var(--mono); font-weight: 400; letter-spacing: .1em; }
.work__cta { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; }

/* hero name sits in the true vertical middle of the screen (equal room above and below, no extra top margin) */
.hero { padding-top: 120px; padding-bottom: 120px; }
.hero__name { margin-top: 0; }

/* ================= serif off (2026-11-30) =================
   Trying the site without Instrument Serif. Delete this block to bring the serif accents back. */
.pen__title em { font-family: var(--display); font-style: normal; font-weight: inherit; text-transform: uppercase; letter-spacing: -.005em; }
.ab-l--front { font-family: var(--display); font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; font-size: 1em; }

/* About: the two front lines are outlined, not filled (white outline in dark mode, ink outline in light mode) */
.ab-l--front { color: transparent; -webkit-text-stroke: max(1.5px, .012em) var(--ink); text-stroke: max(1.5px, .012em) var(--ink); }

/* ---------- page-load splash (loader.js) ---------- */
.loader { display: none; }
.loading { overflow: hidden; }
.loading .loader { display: block; position: fixed; inset: 0; z-index: 300; background: #0b0c0e; transition: opacity .35s ease; }
.loader canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__count { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font: 300 clamp(96px, 16vw, 260px)/1 var(--display); color: #ecedef; letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: opacity .3s ease, filter .3s ease; }
.loader__name { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #8b8e96; white-space: nowrap; transition: opacity .3s ease; }
.loader.is-dropping .loader__count, .loader.is-dropping .loader__name { opacity: 0; filter: blur(8px); }
.loader.is-done { opacity: 0; pointer-events: none; }

/* no filled purple text anywhere: big accent words are outlined (white in dark mode, ink in light mode) */
.pen__title em { color: transparent; -webkit-text-stroke: max(1.5px, .012em) var(--ink); }
.contact__big:hover .ch { color: transparent; -webkit-text-stroke: max(1.5px, .01em) var(--ink); }
.pstep__n { color: var(--ink); }   /* small labels: outlines would be unreadable, so plain text */

/* About description runs the full width, margin to margin */
.ab-cols p { max-width: none; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.6; }

/* ---------- ride: the one-line statement from the live site ---------- */
.ride { position: relative; height: 260vh; }
.ride__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.ride__text { font: 800 clamp(110px, 15vw, 290px)/1 var(--display); letter-spacing: -.005em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); padding-left: 100vw; will-change: transform; }
.ride__text .ch { display: inline-block; will-change: transform; }
.ride__text { color: transparent; -webkit-text-stroke: max(1.5px, .008em) var(--ink); }   /* outlined, like the other accent lines */
.ride__text { color: color-mix(in srgb, var(--ink) 10%, transparent); }   /* faint 10% fill inside the outline */
.ride__text { text-transform: none; }   /* sentence case: "I design products from the first question to the shipped screen." */
.mood { display: none; }   /* light mode is always White paper (2026-11-30); remove this line to bring the Mood button back */
.bgpick { display: none !important; }   /* light-background picker hidden: light mode is plain White paper for now (2026-11-30) */

/* Selected work picture (ripple.js): one canvas behind the whole pinned stage, so the picture can move in depth
   and the ink can spill past it; the text and tabs sit above it. About two screens of scroll per project. */
.work { height: 1200vh; }
.work__stage-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.work__top, .work__main, .work__tabs { position: relative; z-index: 1; }

/* thumbnail smoke colour (ripple.js): dark purple on light pages, black on dark */
:root { --smoke: #2a1f6b; }
:root[data-theme="dark"] { --smoke: #000000; }

/* About photo trail (trail.js, from the live site): square corners */
.ab-trail { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.ab-trail img { position: absolute; left: 0; top: 0; width: 180px; height: 240px; object-fit: cover; opacity: 0; border-radius: 0; will-change: transform, opacity; backface-visibility: hidden; }

.ab-cols p + p { margin-top: 1em; }
.ab-trail canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ab-trail img { border-radius: 8px; }
.ab-trail img { filter: brightness(.8); }

/* "let's talk" trail, from the live site: centred, with faded copies of the top half that slide up near the bottom */
.contact__stack { position: relative; --p: 0; margin: 40px 0 56px; text-align: center; }
.contact__stack .contact__big { margin: 0; text-align: center; }
.contact__stack a.contact__big { position: relative; z-index: 5; }
.contact__trail { position: absolute !important; left: 0; right: 0; top: 0; pointer-events: none; clip-path: inset(0 0 52% 0);
  transform: translateY(calc(var(--p) * var(--i) * -22%)); opacity: calc(.55 - var(--i) * .13); will-change: transform; }
.no-motion .contact__trail { transform: none; opacity: 0; }

/* the Confidential overlay follows the picture's 8px corners */
.lock { border-radius: 8px; overflow: hidden; }

/* the Selected work picture is a link to the case study */
.work__media.is-link { cursor: pointer; }

/* "Product designer" flanking the name, as on the live site: PRODUCT above on the left, DESIGNER below on the right */
.hero__flank { position: relative; z-index: 2; font: 300 clamp(30px, 4.6vw, 88px)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink);
  opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.hero__flank--a { align-self: flex-start; margin-bottom: .1em; }
.hero__flank--b { align-self: flex-end; margin-top: .1em; transition-delay: .15s; }
.hero-in .hero__flank, .no-motion .hero__flank { opacity: 1; transform: none; }
/* Product / Designer: outlined letters with a 10% fill, like the other outlined type on the site */
.hero__flank { font-weight: 500; color: color-mix(in srgb, var(--ink) 10%, transparent); -webkit-text-stroke: max(1px, .012em) var(--ink); }

/* Let's talk: white, and outlined letters on hover (the hover gradient was tried and removed on 2026-12-01) */



/* until the animated name is ready, the plain-text name is hidden, so it never flashes up static first */
.pre-hero .hero__name { visibility: hidden; }

/* phones: the header hides fully when you scroll down (it only moved up partway) */
.head.is-hidden { transform: translateY(calc(-100% - 80px)); }
/* phones: in About, the portrait sits behind the heading lines a little more quietly so the words stay readable */
@media (max-width: 900px) {
  /* phones: every heading line sits in front of the portrait (on desktop the back lines pass behind her), and she is a little darker so the words read */
  .ab-l--back { z-index: 3; }
  .ab-me { filter: brightness(.55); }
  .ab-me::before { display: none; }
  .ab-me { left: 70%; }   /* she stands off to the right, so the heading reads clear on the left */
}

/* light mode is parked for now: the light/dark switch is hidden (2026-12-01) */
[data-theme-btn] { display: none !important; }

/* Selected work: a little longer, for the way in (blank, then the first picture, then its text); each project keeps its share */
.work { height: 1365vh; }
.work__info { will-change: opacity, transform; }
.work__info { transition: opacity .4s ease; }

/* phones: Selected work fits in one screen: tighter text, and the picture takes whatever space is left above the tabs */
@media (max-width: 900px) {
  .work__pin { padding: 84px var(--gutter) 18px; gap: 14px; }
  .work__main { grid-template-rows: auto minmax(0, 1fr); gap: 14px; }
  .work__info { gap: 10px; }
  .work__label { font-size: 11px; }
  .work__title { font-size: clamp(26px, 7.4vw, 38px); }
  .work__fact { font-size: 15px; line-height: 1.45; }
  .work__cta { padding: 10px 16px; font-size: 11px; }
  .work__media { min-height: 0; }
}
@media (max-width: 900px) and (max-height: 700px) { .work__label { display: none; } }

/* ---------- phone menu (menu.js): hamburger; a black panel floods the screen from the button, then the links rise in big ---------- */
.menu-btn, .mnav { display: none; }
@media (max-width: 900px) {
  .motion { display: none; }                           /* the Motion switch is off on phones */
  .menu-btn { display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); position: relative; z-index: 120; }
  .menu-btn i { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
  .menu-open .menu-btn i:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-btn i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu-open .head { transform: none !important; }      /* keep the close button reachable */
  .menu-open .head__name { position: relative; z-index: 120; }
  .mnav { display: flex; position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: center; gap: 4px; padding: 0 var(--gutter);
    background: #050506; clip-path: circle(0 at var(--mx, 90%) var(--my, 40px)); visibility: hidden;
    transition: clip-path .8s cubic-bezier(.76, 0, .24, 1), visibility 0s .8s; }
  .menu-open .mnav { clip-path: circle(150% at var(--mx, 90%) var(--my, 40px)); visibility: visible; transition: clip-path .8s cubic-bezier(.76, 0, .24, 1), visibility 0s; }
  .mnav > a { display: flex; align-items: baseline; gap: 14px; font: 800 clamp(64px, 19vw, 120px)/.92 var(--display); text-transform: uppercase; color: #ecedef;
    opacity: 0; transform: translateY(40px); filter: blur(10px); transition: opacity .4s ease, transform .4s ease, filter .4s ease; }
  .mnav > a span { font: 400 12px var(--mono); letter-spacing: .14em; color: #8b8e96; transform: translateY(-1.4em); }
  .menu-open .mnav > a { opacity: 1; transform: none; filter: blur(0); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
  .menu-open .mnav > a:nth-of-type(1) { transition-delay: .35s; }
  .menu-open .mnav > a:nth-of-type(2) { transition-delay: .45s; }
  .menu-open .mnav > a:nth-of-type(3) { transition-delay: .55s; }
  .mnav__foot { position: absolute; left: var(--gutter); bottom: 32px; font: 400 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8b8e96;
    opacity: 0; transition: opacity .4s; }
  .menu-open .mnav__foot { opacity: 1; transition: opacity .8s .7s; }
}
@media (max-width: 900px) {
  .menu-open .head { z-index: 130; }                    /* the header (name and the close ×) sits above the black panel */
  .menu-open .head::before { opacity: 0 !important; }
}
/* phones and touch screens: no selection frame (handles and size tag) around the Selected work pictures */
@media (max-width: 900px), (hover: none) { .sel { visibility: hidden !important; } }
/* phones: Let's talk spans the full width between the side margins (the word is about 3.92 times as wide as its font size) */
@media (max-width: 760px) { .contact__big { font-size: calc((100vw - 2 * var(--gutter)) / 3.95); } }

/* ---------- section lines (app.js): bottom left, one per section, the current one longest; hover shows the name ---------- */
.ticks { position: fixed; left: var(--gutter); bottom: 34px; z-index: 45; display: grid; gap: 4px; }
.ticks a { display: flex; align-items: center; gap: 12px; height: 11px; color: var(--ink); }
.ticks i { display: block; width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: .45; transition: width .4s var(--ease), opacity .4s; }
.ticks a.near i { width: 24px; opacity: .7; }
.ticks a.on i { width: 44px; opacity: 1; }
.ticks a:hover i { opacity: 1; }
.ticks span { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; white-space: nowrap; }
.ticks a:hover span { opacity: 1; transform: none; }
.ticks:hover a.on span { opacity: 1; transform: none; }
@media (max-width: 900px) { .ticks { display: none; } }

/* Selected work titles use the full width of the text column (an old 14-character cap made them break onto 3 or 4 lines) */
.work__title { max-width: none; }

/* second-fold line: solid and lighter instead of outlined (chosen 2026-12-01; the outlined version is the rules above, delete this block to go back) */
.ride__text { font-weight: 500; color: var(--ink); -webkit-text-stroke: 0; }

/* the frame around the Selected work picture on hover is off everywhere now (it was already off on phones) */
.sel { visibility: hidden !important; }   /* hidden but still measured: clicks on the picture use its outline */

/* shorter way in for the first project (app.js INTRO .9 to .3): the same length per project, 110vh less in total */
.work { height: 1255vh; }

/* the section lines fade out while Selected work is on screen (its tabs take that corner) */
.ticks { transition: opacity .4s; }
.ticks.is-away { opacity: 0; pointer-events: none; }

/* ---------- TRIAL: aurora ribbon (app.js). The project stepper as a band of light; to go back, delete this block and the
   ribbon code in app.js, or restore _backup/pre-aurora-ribbon-2026-12-01/ ---------- */
.work .work__tabs.aurora { display: block; position: relative; height: 78px; font-size: 11px; }
.aurora__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.aurora__svg path { fill: none; stroke: url(#aurG); stroke-linecap: round; }
.aurora__svg .a-haze { stroke-width: 16; opacity: .10; filter: url(#aurB); }
.aurora__svg .a-base { stroke-width: 1; opacity: .28; }
.aurora__svg .a-litglow { stroke-width: 12; opacity: .55; filter: url(#aurB); stroke-dasharray: 0 1; }
.aurora__svg .a-lit { stroke-width: 1.6; opacity: 1; stroke-dasharray: 0 1; }
.aurora__svg .a-head { mix-blend-mode: screen; }
.work .work__tabs.aurora li { display: contents; }
.work .work__tabs.aurora button { position: absolute; width: 28px; height: 28px; padding: 0; transform: translate(-50%, -50%); display: block; color: var(--ink-3); font-size: 11px; }
.work .work__tabs.aurora button i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #9fb3c0; opacity: .5; overflow: visible; transition: transform .4s var(--ease), opacity .4s, background .4s, box-shadow .4s; }
.work .work__tabs.aurora button i::after { display: none; }
.work .work__tabs.aurora button.is-on i { background: #eafff8; opacity: 1; transform: scale(1.7); box-shadow: 0 0 12px 3px rgba(94, 233, 201, .55); }
.work .work__tabs.aurora button span, .work .work__tabs.aurora button em {
  position: absolute; bottom: calc(100% + 6px); left: 50%; white-space: nowrap; font-style: normal; font-size: 11px; pointer-events: none;
  transform: translateX(calc(var(--k) / -5 * 100%));   /* the first name runs right from its point, the last ends at it */
}
.work .work__tabs.aurora button span { opacity: .55; bottom: auto; top: calc(100% + 4px); transform: translateX(-50%); transition: opacity .3s; }
.work .work__tabs.aurora button em { opacity: 0; color: var(--ink); filter: blur(6px); transition: opacity .5s var(--ease), filter .5s var(--ease), transform .5s var(--ease); }
.work .work__tabs.aurora button.is-on em, .work .work__tabs.aurora button:hover em { opacity: 1; filter: blur(0); }
.work .work__tabs.aurora button:not(.is-on):hover em { color: var(--ink-2); }
.work .work__tabs.aurora button.is-on span { opacity: 1; color: var(--ink); }

/* ---------- process line in the aurora colours (green, teal, periwinkle, top to bottom), with a soft glow and a glowing
   circle at the pen's tip. Before: _backup/pre-aurora-pen-2026-12-01/ ---------- */
.pen__path, :root[data-theme="dark"] .pen__path { stroke: url(#penG); filter: none; }
.pen__glow { fill: none; stroke: url(#penG); stroke-width: 12; stroke-linecap: round; opacity: .5; filter: url(#penB); }
.pen__anchors rect, .pen__handles line, .pen__handles circle { stroke: url(#penG); }
.pen__tip { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(234, 255, 248, .95) 0 6%, rgba(var(--tc, 63, 193, 217), .5) 22%, rgba(var(--tc, 63, 193, 217), 0) 70%); }
/* quieter process line: thinner, dimmer, softer glow */
.pen__path, :root[data-theme="dark"] .pen__path { stroke-width: 1.6; opacity: .7; }
.pen__glow { stroke-width: 8; opacity: .25; }
.pen__tip { opacity: .7; }
/* tighter glow around the ribbon */
.aurora__svg .a-litglow { stroke-width: 6; opacity: .4; }
.aurora__svg .a-haze { stroke-width: 8; opacity: .06; }

/* calmer ribbon: blue, indigo and purple (no green), softer lit line, faint unlit line; the current point glows periwinkle.
   The green version: _backup/aurora-ribbon-green-2026-12-01/ */
.aurora__svg .a-lit { opacity: .8; }
.aurora__svg .a-base { opacity: .2; }
.work .work__tabs.aurora button.is-on i { background: #eef0ff; box-shadow: 0 0 10px 2px rgba(138, 140, 255, .5); }

/* the pen tip glow in the same blue, indigo, purple family (its colour follows the line, from app.js) */
.pen__tip { background: radial-gradient(circle, rgba(238, 240, 255, .9) 0 6%, rgba(var(--tc, 111, 108, 240), .5) 22%, rgba(var(--tc, 111, 108, 240), 0) 70%); }
/* every project name shows on the ribbon (dim), the current one bright, like the original slider. On phones there is no room
   for six names, so only the current one shows there (the numbers show for all) */
@media (min-width: 901px) {
  .work .work__tabs.aurora button em { opacity: 1; filter: none; color: var(--ink-3); }
  .work .work__tabs.aurora button.is-on em, .work .work__tabs.aurora button:hover em { color: var(--ink); }
}

/* the "move over the picture to make waves" hint is off */
.work__hint { display: none !important; }

/* ribbon labels: "01 Yeapp" on one straight row under the ribbon (the ribbon still waves above it); the first label starts at
   its point, the last ends at its point. On phones only the numbers show. */
.work .work__tabs.aurora { height: 84px; }
.work .work__tabs.aurora .aurora__lbl { position: absolute; left: 50%; top: calc(72px - var(--wy, 0px) + 14px); display: flex; align-items: baseline; gap: 10px;
  font-weight: inherit; white-space: nowrap; transform: translate(calc(var(--k) / -5 * 100%), -50%); pointer-events: none; }
.work .work__tabs.aurora .aurora__lbl span, .work .work__tabs.aurora .aurora__lbl em { position: static; transform: none; opacity: 1; filter: none; }
.work .work__tabs.aurora .aurora__lbl span { color: var(--ink-3); opacity: .7; }
.work .work__tabs.aurora .aurora__lbl em { color: var(--ink-3); }
.work .work__tabs.aurora button.is-on .aurora__lbl span, .work .work__tabs.aurora button.is-on .aurora__lbl em,
.work .work__tabs.aurora button:hover .aurora__lbl em { color: var(--ink); opacity: 1; }
@media (max-width: 900px) {
  .work .work__tabs.aurora { height: 70px; }
  .work .work__tabs.aurora .aurora__lbl { top: calc(60px - var(--wy, 0px) + 14px); }
  .work .work__tabs.aurora .aurora__lbl em { display: none; }
}

/* Product / Designer letter by letter (app.js): on entry each letter rises out of a soft blur, one after another in a wave;
   on scroll the outer span melts it upward with the name. Before: _backup/pre-flank-motion-2026-12-02/ */
.flank-split .hero__flank { opacity: 1; transform: none; transition: none; white-space: nowrap; }
.hero__flank .fl { display: inline-block; transform-origin: 50% 100%; will-change: transform; }
.hero__flank .fl__in { display: inline-block; opacity: 0; filter: blur(8px); transform: translate3d(0, .7em, 0) rotate(var(--r0, 0deg));
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform 1.2s cubic-bezier(.2, .9, .25, 1.15);
  transition-delay: calc(var(--i) * 55ms); }
.hero__flank .fl:nth-child(odd) .fl__in { --r0: -10deg; }
.hero__flank .fl:nth-child(even) .fl__in { --r0: 8deg; }
.hero-in .hero__flank .fl__in, .no-motion .hero__flank .fl__in { opacity: 1; filter: none; transform: none; }
.no-motion .hero__flank .fl__in { transition: none; }

/* ---------- Aurora colours a visitor can pick (aurora.js). A swatch beside Motion opens four dots.
   Before: _backup/pre-aurora-picker-2026-12-02/ ---------- */
.aurora__svg stop, .pen__svg stop { transition: stop-color 1s ease; }
.tint { position: relative; display: inline-flex; }
.tint__btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.tint__btn b { display: none; }
.tint__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 35%, transparent), 0 0 12px -2px color-mix(in srgb, var(--ink) 25%, transparent);
  transition: background .6s ease, transform .3s var(--ease); }
.tint__btn:hover .tint__dot { transform: scale(1.15); }
.tint__btn.is-nudge .tint__dot { animation: tintNudge 1.2s var(--ease); }
@keyframes tintNudge { 0%, 100% { transform: none; } 30% { transform: scale(1.6); } 60% { transform: scale(.9); } }
.tint__pop { position: absolute; top: calc(100% + 14px); right: 0; display: flex; gap: 6px; padding: 8px; border-radius: 14px;
  background: color-mix(in srgb, var(--bg, #0b0c10) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .3s ease, transform .3s var(--ease); }
.tint.is-open .tint__pop { opacity: 1; transform: none; pointer-events: auto; }
.tint__pop button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--ink-3, var(--ink)); font: inherit; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.tint__pop button:hover, .tint__pop button[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.tint__pop button i { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent); }
.tint__pop button[aria-pressed="true"] i { box-shadow: 0 0 0 1px var(--bg, #0b0c10), 0 0 0 2px var(--ink); }
.about .aurora-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); cursor: pointer; }
.about .aurora-link:hover { text-decoration-color: var(--ink); }
@media (max-width: 900px) { .tint__btn span { display: none; } }
.tint__btn, .tint__pop button { font-family: var(--mono); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.tint__btn { font-size: 12px; }

/* ---------- TRIAL: "Your turn", the northern lights toy (play.js). Before: _backup/pre-sky-play-2026-12-02/ ---------- */
.sky { padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(60px, 10vh, 120px); }
.sky__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sky__top .eyebrow { margin: 0; }
.sky__tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.sky__tabs button { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 8px 16px; border-radius: 999px; transition: color .3s, background .3s; }
.sky__tabs button:hover { color: var(--ink); }
.sky__tabs button[aria-selected="true"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.sky__stage { position: relative; height: min(72svh, 720px); min-height: 380px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 110%, #0c1a22 0%, #070910 55%, #05060a 100%);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.sky__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sky[data-mode="catch"] .sky__stage canvas { cursor: pointer; }
.sky__hint { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; pointer-events: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: opacity .6s; }
.sky__hint.is-faded { opacity: 0; }
@media (max-width: 900px) { .sky__stage { height: 64svh; border-radius: 14px; } .sky__hint { font-size: 11px; padding: 0 16px; } }

/* Catch your wishes (play.js): intro over the polar night, gone once Start is pressed; the canvas is the scene */
.sky__stage { background: linear-gradient(180deg, #04060c 0%, #071020 45%, #0c1a2c 70%, #0b1422 100%); }
.sky__stage canvas { cursor: default; }
.sky.is-playing .sky__stage canvas { cursor: pointer; }
.sky__intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center;
  background: radial-gradient(60% 50% at 50% 45%, rgba(4, 6, 12, .55), rgba(4, 6, 12, 0)); transition: opacity .8s var(--ease), visibility .8s; }
.sky.is-playing .sky__intro { opacity: 0; visibility: hidden; }
.sky__title { margin: 0; font: 500 clamp(44px, 7vw, 110px)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.sky__sub { margin: 0; max-width: 34ch; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; }
.sky__start { margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding: 14px 34px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); transition: background .3s, color .3s, border-color .3s; }
.sky__start:hover { background: var(--ink); color: #05070c; border-color: var(--ink); }
.sky:not(.is-playing) .sky__hint { opacity: 0; }

/* Catch your wishes, title screen in the manner of a game: small mono type, a blinking START (2026-12-02) */
.sky__intro { gap: 12px; background: radial-gradient(40% 30% at 50% 42%, rgba(3, 5, 11, .5), rgba(3, 5, 11, 0)); justify-content: flex-start; padding-top: 11%; }
.sky__title { font: 500 13px/1.4 var(--mono); letter-spacing: .34em; text-transform: uppercase; color: var(--ink); }
.sky__sub { font: 400 11px/1.8 var(--mono); letter-spacing: .06em; color: var(--ink-2); max-width: 38ch; }
.sky__start { margin-top: 14px; padding: 8px 14px; border: 0; border-radius: 0; font: 500 12px/1 var(--mono); letter-spacing: .34em; color: var(--ink); background: none;
  animation: skyBlink 1.1s steps(1, end) infinite; }
.sky__start::before { content: "\25B8\00a0"; }
.sky__start:hover, .sky__start:focus-visible { background: none; color: #fff; animation: none; text-shadow: 0 0 12px rgba(170, 225, 255, .8); }
@keyframes skyBlink { 50% { opacity: 0; } }
.no-motion .sky__start { animation: none; }
@media (max-width: 900px) { .sky__intro { padding-top: 18%; } }

/* Catch your wishes: score top right, the night as a thin bar top left; end screen reuses the intro (2026-12-02) */
.sky__hud { position: absolute; z-index: 2; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; pointer-events: none;
  font: 500 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .6s; }
.sky.is-playing .sky__hud, .sky.is-over .sky__hud { opacity: 1; }
.sky__score em { font-style: normal; color: var(--ink-2); margin-right: 8px; }
.sky__score b { font-weight: 500; display: inline-block; transition: color .4s, text-shadow .4s; }
.sky.is-bump .sky__score b { animation: skyBump .5s var(--ease); }
.sky.is-goal .sky__score b { color: #bfffe4; text-shadow: 0 0 12px rgba(80, 240, 180, .6); }
@keyframes skyBump { 40% { transform: scale(1.35); text-shadow: 0 0 14px rgba(190, 235, 255, .9); } }
.sky__clock { position: relative; width: min(160px, 30%); height: 2px; background: color-mix(in srgb, var(--ink) 18%, transparent); overflow: hidden; }
.sky__clock i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; }
.sky.is-over .sky__clock { opacity: 0; }
.sky.is-over .sky__intro { opacity: 1; visibility: visible; }
.sky.is-playing .sky__hint { opacity: 1; }
.sky.is-playing .sky__hint.is-faded { opacity: 0; }
@media (max-width: 900px) { .sky__hud { top: 14px; left: 14px; right: 14px; font-size: 11px; letter-spacing: .18em; } }


/* Catch your wishes: the time as a countdown in the same style as the score (the bar was dropped) */
.sky__clock { width: auto; height: auto; background: none; overflow: visible; }
.sky__clock em { font-style: normal; color: var(--ink-2); margin-right: 8px; }
.sky__clock b { font-weight: 500; transition: color .4s; }
.sky.is-late .sky__clock b { color: #ffd7a1; }

/* Catch your wishes: three lives shown as small sparkles (top left); a lost one fades to an outline */
.sky__lives { display: inline-flex; gap: 10px; }
.sky__lives i { display: block; width: 16px; height: 16px; transition: opacity .4s, transform .4s var(--ease); }
.sky__lives svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 5px rgba(80, 240, 180, .7)); transition: filter .4s; }
.sky__lives .o { fill: none; stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 1.2; }
.sky__lives .f { fill: #bfffe4; stroke: #bfffe4; stroke-width: 1.2; clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease); }
.sky__lives i.is-half .f { clip-path: inset(50% 0 0 0); }   /* one miss: the sparkle drains to half */
.sky__lives i.is-lost .f { clip-path: inset(100% 0 0 0); }
.sky__lives i.is-lost svg { filter: none; }
.sky__lives i.is-hit { animation: skyLose .6s var(--ease); }
@keyframes skyLose { 30% { transform: scale(1.4) rotate(20deg); } 60% { transform: scale(.85) rotate(-8deg); } }
@media (max-width: 900px) { .sky__lives i { width: 13px; height: 13px; } .sky__lives { gap: 8px; } }

/* Catch your wishes, aurora net trial: drawing during play */
.sky.is-playing .sky__stage canvas { cursor: crosshair; }

/* Catch your wishes: combo label under the score, pops in and fades */
.sky__score { position: relative; }
.sky__combo { position: absolute; right: 0; top: calc(100% + 10px); white-space: nowrap; font-size: 11px; letter-spacing: .26em; color: #bfffe4;
  text-shadow: 0 0 12px rgba(80, 240, 180, .8); opacity: 0; }
.sky.is-combo .sky__combo { animation: skyCombo 1.6s var(--ease); }
.sky.is-combo .sky__score b { animation: skyComboNum .7s var(--ease); }
@keyframes skyCombo { 0% { opacity: 0; transform: translateY(-6px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.15); } 30% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(4px); } }
@keyframes skyComboNum { 35% { transform: scale(1.6); color: #fff; text-shadow: 0 0 18px rgba(80, 240, 180, 1); } }

/* Catch your wishes: while playing, the mouse cursor is a glowing sparkle drawn in the game (play.js) */
@media (hover: hover) { .sky.is-playing .sky__stage canvas { cursor: none; } }


/* longer, smoother way in for the first project (app.js INTRO .3 to .6, 2026-12-04): 1155vh / 6.3 per project, 6.6 units */
.work { height: 1310vh; }
