/* haynez.co.uk · futuristic portfolio of Ryan Haynes */
@font-face { font-family: "Space Grotesk"; src: url(../fonts/space-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url(../fonts/geist-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #05060a;
  --bg2: #0a0c14;
  --ink: #eef1f7;
  --ink2: #c3c9d6;
  --muted: #8b93a7;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --a1: #4fd8ff;
  --a2: #9b7cff;
  --a3: #ff8fd0;
  --grad: linear-gradient(90deg, var(--a1), var(--a2) 55%, var(--a3));
  --display: "Space Grotesk", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 20px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; /* iOS < 16 fallback */
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(79, 216, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gut); }

/* Backdrop */
#gl { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
#gl.is-on { opacity: 1; }
body::before { /* fallback when WebGL is off */
  content: ""; position: fixed; inset: 0; z-index: -3;
  background: radial-gradient(60% 50% at 75% 30%, rgba(79, 216, 255, .16), transparent 70%), radial-gradient(50% 50% at 20% 80%, rgba(155, 124, 255, .14), transparent 70%), var(--bg);
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 10, .55) 85%); }

/* Type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 12.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { font-style: normal; color: var(--a1); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #3ff0a0; box-shadow: 0 0 0 0 rgba(63, 240, 160, .6); animation: live 2.2s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(63, 240, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 240, 160, 0); } }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.arr { display: inline-block; margin-left: .45em; transition: transform .35s var(--ease); }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.btn:hover .arr { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: #07080d; box-shadow: 0 10px 40px -12px rgba(79, 216, 255, .55); }
.btn--solid:hover { background: #fff; box-shadow: 0 14px 50px -10px rgba(155, 124, 255, .7); }
.btn--glass { background: rgba(255, 255, 255, .06); border-color: var(--line2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink2); }
.btn--ghost:hover { border-color: var(--line2); color: var(--ink); }
.btn--link { padding: 0 4px; min-height: 44px; color: var(--ink2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 5px; white-space: normal; text-align: left; }
.btn--link:hover { color: var(--ink); text-decoration-color: var(--a1); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn > .dot-live { margin-right: 9px; }

/* Glass surfaces with a cursor spotlight */
.glass { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.glass::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c, var(--a1)) 22%, transparent), transparent 45%);
}
.glass::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c, var(--a1)) 80%, white), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass:hover::before, .glass:hover::after { opacity: 1; }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 28px; background: var(--bg); }
.intro[hidden] { display: none; }
.intro__word { font: 700 clamp(56px, 14vw, 180px)/1 var(--display); letter-spacing: -.045em; }
.intro__meta { display: flex; align-items: center; gap: 14px; margin: 0; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.intro__bar { width: 120px; height: 1px; background: var(--line2); overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Cursor ring */
.cursor { display: none; }
@media (pointer: fine) {
  html.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; }
  .cursor__dot { position: absolute; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--ink); mix-blend-mode: difference; }
  .cursor__ring { position: absolute; width: 22px; height: 22px; margin: -11px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; }
  .cursor.is-hover .cursor__ring { width: 36px; height: 36px; margin: -18px; border-color: rgba(79, 216, 255, .8); background: rgba(79, 216, 255, .08); }
  .cursor.is-label .cursor__ring { width: 50px; height: 50px; margin: -25px; background: rgba(238, 241, 247, .92); border-color: transparent; }
  .cursor__label { font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #07080d; opacity: 0; transition: opacity .2s; }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* Nav */
.nav { position: fixed; z-index: 100; top: 14px; left: 50%; translate: -50% 0; width: min(1240px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 12, 20, .5); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); transition: translate .5s var(--ease), background .3s; }
.nav.is-hidden { translate: -50% -130%; }
.nav__logo { text-decoration: none; display: inline-flex; padding: 6px 0; }
.mono-flip { display: inline-flex; font: 600 15px/1 var(--mono); letter-spacing: 0; }
.mono-flip span { display: inline-block; width: 1ch; text-align: center; will-change: transform; }
.nav__logo { perspective: 300px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--ink2); transition: color .25s, background .25s; }
.nav__links a i { font: 500 10.5px var(--mono); font-style: normal; color: var(--muted); margin-right: 6px; vertical-align: 1px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: rgba(255, 255, 255, .07); }
.nav__z { min-height: 42px; }
.nav__burger { display: none; }
.nav__progress { position: absolute; left: 24px; right: 24px; bottom: -1px; height: 1px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; }
.hero__inner { position: relative; }
.hero__title { margin: 0; font-weight: inherit; }
.flipword { position: relative; display: inline-flex; white-space: nowrap; perspective: 1200px; }
.flipword .fl { display: inline-block; will-change: transform; transform-style: preserve-3d;
  background: linear-gradient(180deg, #ffffff 15%, #c9d3e6 55%, #7f8aa3 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.no-js .flipword .fl, .flipword.is-plain .fl { -webkit-background-clip: border-box; background-clip: border-box; background: none; color: var(--ink); }
.hero__word { font: 700 clamp(72px, 18.5vw, 280px)/.86 var(--display); letter-spacing: -.055em; margin-left: -.04em; padding: .04em 0 .08em; }
.flipword__mirror { position: absolute; left: 50%; top: -4%; bottom: -4%; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, var(--a1), var(--a2), transparent); opacity: 0; transform: scaleY(0); box-shadow: 0 0 24px 4px rgba(79, 216, 255, .45); pointer-events: none; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__caption { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.hero__k { font: 600 clamp(20px, 2.4vw, 28px)/1.2 var(--display); letter-spacing: -.02em; }
.hero__v { font: 400 15px/1.3 var(--mono); color: var(--muted); }
.flipctl { display: flex; flex-wrap: wrap; gap: 8px; }
.flipctl__ico { display: inline-block; margin-right: 8px; transition: transform .6s var(--ease); }
#flip-btn[aria-pressed="true"] .flipctl__ico { transform: rotate(180deg); }
.hero__lede { max-width: 640px; margin: 30px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 34px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line2); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--ink); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Ticker */
.ticker { padding: 30px 0; border-block: 1px solid var(--line); overflow: hidden; background: rgba(5, 6, 10, .35); }
.ticker__row { display: flex; overflow: hidden; }
.ticker__track { display: flex; flex: none; will-change: transform; }
.ticker__set { display: flex; flex: none; align-items: center; }
.ticker__set span { padding: 0 28px; font: 600 clamp(26px, 3.6vw, 48px)/1.25 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.ticker__set b { color: var(--a1); font-size: 18px; font-weight: 400; }
.ticker__row--alt .ticker__set span { color: transparent; -webkit-text-stroke: 1px rgba(238, 241, 247, .45); }
.ticker__row--alt .ticker__set b { color: var(--a2); }
html.no-js .ticker__track, .is-reduced .ticker__track { flex-wrap: wrap; }

/* Sections */
.sec { position: relative; padding: clamp(96px, 13vw, 170px) 0 0; }
.sec__head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec__title { margin: 0; font: 600 clamp(40px, 6.6vw, 92px)/1 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.sec__sub { margin: 22px 0 0; max-width: 620px; color: var(--ink2); font-size: 18px; }
.split .line-mask { padding-bottom: .06em; margin-bottom: -.06em; }

/* About */
.statement { margin: 0 0 clamp(48px, 7vw, 88px); max-width: 1100px; font: 500 clamp(26px, 3.4vw, 46px)/1.22 var(--display); letter-spacing: -.025em; color: var(--ink); }
.statement .w { transition: none; }
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__text p { margin: 0 0 20px; color: var(--ink2); font-size: 18px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 22px 22px 20px; }
.fact dt { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 10px 0 6px; font: 600 clamp(36px, 4vw, 52px)/1 var(--display); letter-spacing: -.04em; }
.fact dd small { font-size: .42em; letter-spacing: 0; color: var(--ink2); font-weight: 500; }
.fact p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.fact__z a { text-decoration: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.creds { margin-top: clamp(56px, 7vw, 90px); }
.creds__h { margin: 0 0 18px; font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.creds__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cred { display: grid; gap: 6px; padding: 24px; }
.cred__k { justify-self: start; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--a1); }
.cred b { margin-top: 10px; font: 600 20px/1.25 var(--display); letter-spacing: -.015em; }
.cred > span:last-child { font-size: 15px; color: var(--muted); }

/* Skills */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 14px; color: var(--ink2); cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.chip i { font: 500 11px var(--mono); font-style: normal; color: var(--muted); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink)); }
.chip:hover { border-color: var(--line2); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #07080d; }
.chip.is-on i { color: #3a3f4d; }
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.skill { display: flex; flex-direction: column; padding: 22px 22px 20px; min-height: 100%; transform-style: preserve-3d; }
.skill.is-out { display: none; }
.skill__top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.skill__glyph { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 12px; font: 600 13px var(--mono); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.skill__cat { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tag-exp { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #ffd27a; border: 1px solid rgba(255, 210, 122, .4); background: rgba(255, 210, 122, .08); }
.skill__top .tag-exp { margin-left: auto; }
.skill__name { margin: 0; font: 600 21px/1.2 var(--display); letter-spacing: -.02em; }
.skill__type { margin: 4px 0 12px; font-size: 14px; color: var(--c); }
.skill__desc { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.skill__use { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.skill__use span { display: block; margin-bottom: 4px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }

/* Projects: native swipe by default; pinned horizontal scroll on wide screens */
.hscroll { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll__track { display: flex; gap: 18px; width: max-content; padding: 4px max(var(--gut), calc((100vw - 1240px) / 2 + var(--gut))) 8px; }
.case { flex: none; width: min(540px, calc(100vw - 2 * var(--gut))); padding: 26px; scroll-snap-align: center; display: flex; flex-direction: column; }
.case__art { position: relative; height: 170px; margin: -10px -10px 22px; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.case__orb { position: absolute; right: 18px; top: 50%; width: 130px; height: 130px; margin-top: -65px; border-radius: 50%;
  background: conic-gradient(from var(--ang, 0deg), var(--c), #ffffff22, color-mix(in srgb, var(--c) 40%, #9b7cff), var(--c)); filter: blur(.5px); animation: orb 9s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 34%, #000 35%); mask: radial-gradient(circle, transparent 34%, #000 35%); opacity: .9; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orb { to { --ang: 360deg; } }
.case__no { position: absolute; left: 20px; bottom: 12px; font: 600 72px/1 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(238, 241, 247, .4); }
.case__org { margin: 0; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.case__title { margin: 8px 0 6px; font: 600 clamp(26px, 2.6vw, 34px)/1.08 var(--display); letter-spacing: -.03em; }
.case__sub { margin: 0 0 18px; color: var(--ink2); font-size: 16px; }
.case__body { margin: 0 0 18px; display: grid; gap: 14px; }
.case__body dt { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.case__body dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink2); }
.case__body ul { margin: 0; padding-left: 18px; }
.case__body li::marker { color: var(--c); }
.chips { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line2); font: 500 12px var(--mono); color: var(--ink2); background: rgba(255, 255, 255, .03); }
.hscroll__bar { height: 2px; margin-top: 26px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hscroll__bar i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(.15); }
.hs-pin .hscroll { overflow: visible; scroll-snap-type: none; }
@media (min-width: 900px) {
  .case { width: min(920px, 74vw); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto auto auto 1fr auto; column-gap: 34px;
    grid-template-areas: "art body" "org body" "title body" "sub body" "chips body"; }
  .case__art { grid-area: art; margin: 0 0 22px; height: 180px; }
  .case__org { grid-area: org; } .case__title { grid-area: title; } .case__sub { grid-area: sub; }
  .case__body { grid-area: body; margin: 0; align-self: start; padding-left: 34px; border-left: 1px solid var(--line); gap: 18px; }
  .case .chips { grid-area: chips; }
}
.hs-pin .hscroll__track { padding-bottom: 4px; }

/* Experience */
.timeline { position: relative; }
.timeline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.timeline__rail { position: absolute; left: 190px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--a1), var(--a2), var(--a3)); transform-origin: 50% 0; transform: scaleY(1); }
.job { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 60px; align-items: start; }
.job__when { margin: 22px 0 0; text-align: right; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.job__node { position: absolute; left: 184px; top: 26px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--a1); box-shadow: 0 0 0 5px rgba(79, 216, 255, .12); }
.job__card { padding: 22px 24px 22px; }
.job__org { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 15px; color: var(--ink2); }
.job__role { margin: 0 0 16px; font: 600 clamp(21px, 2.2vw, 28px)/1.2 var(--display); letter-spacing: -.025em; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.badge--now { color: #3ff0a0; border-color: rgba(63, 240, 160, .4); background: rgba(63, 240, 160, .07); }

/* Zenyah band */
.zen { padding: clamp(96px, 13vw, 170px) 0 0; }
.zen__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: clamp(28px, 5vw, 64px); overflow: hidden; --c: var(--a2);
  background: radial-gradient(80% 120% at 0% 0%, rgba(155, 124, 255, .22), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(79, 216, 255, .16), transparent 60%), rgba(255, 255, 255, .03); }
.zen__word { font: 700 clamp(56px, 10vw, 150px)/.9 var(--display); letter-spacing: -.05em; }
.zen__title { margin: 0 0 14px; font: 600 clamp(28px, 3.4vw, 46px)/1.08 var(--display); letter-spacing: -.035em; }
.zen__copy p:not(.eyebrow) { margin: 0; color: var(--ink2); }
.zen__copy .hero__cta { margin-top: 26px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.form { padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 26px 16px 10px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(5, 6, 10, .5); font-size: 16px; outline: none; transition: border-color .25s, box-shadow .25s; resize: vertical; }
.field textarea { min-height: 150px; }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: 0 0; transition: transform .25s var(--ease), color .25s; }
.field input:focus, .field textarea:focus { border-color: var(--a1); box-shadow: 0 0 0 4px rgba(79, 216, 255, .14); }
.field input:focus + label, .field textarea:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); color: var(--a1); }
.field.is-bad input, .field.is-bad textarea { border-color: #ff6b8a; }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--ink2); }
.contact__side { display: grid; gap: 18px; justify-items: start; }
.mail { display: grid; gap: 6px; text-decoration: none; }
.mail__k { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mail__v { font: 600 clamp(28px, 3.6vw, 48px)/1.05 var(--display); letter-spacing: -.035em; background: linear-gradient(90deg, var(--ink), var(--ink)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 4px; word-break: break-word; }
.mail:hover .mail__v { background-size: 100% 2px; }
.contact__meta { margin: 14px 0 0; display: grid; gap: 12px; width: 100%; }
.contact__meta div { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.contact__meta dt { color: var(--muted); font-size: 14px; }
.contact__meta dd { margin: 0; font-size: 15px; text-align: right; }

/* Footer */
.foot { padding: clamp(110px, 14vw, 190px) 0 32px; overflow: hidden; }
.foot__big { display: flex; justify-content: center; width: 100%; text-decoration: none; font: 700 clamp(72px, 19.5vw, 300px)/.8 var(--display); letter-spacing: -.06em; opacity: .9; }
.foot__big .fl { background: linear-gradient(180deg, rgba(238, 241, 247, .9), rgba(238, 241, 247, .08)); -webkit-background-clip: text; background-clip: text; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot__row p { margin: 0; }
.foot__row a { color: var(--ink2); }

/* Responsive */
@media (max-width: 980px) {
  .about, .contact, .zen__inner { grid-template-columns: minmax(0, 1fr); }
  .creds__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav { padding-left: 18px; gap: 10px; }
  .nav__burger { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); cursor: pointer; }
  .nav__burger span:not(.sr) { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__z { order: 2; min-height: 40px; padding: 0 14px; }
  .nav__burger { order: 3; margin-left: 0; }
  .nav__logo { margin-right: auto; }
  .nav__links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: grid; gap: 2px; padding: 10px; border-radius: 22px; border: 1px solid var(--line); background: rgba(10, 12, 20, .92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); visibility: hidden; opacity: 0; translate: 0 -8px; transition: opacity .3s, translate .3s var(--ease), visibility 0s .3s; }
  .nav__links.is-open { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .3s, translate .3s var(--ease); }
  .nav__links a { padding: 14px 16px; font-size: 17px; }
  html.no-js .nav__links { position: static; visibility: visible; opacity: 1; display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 110px; align-items: end; }
  .hero__lede { margin-top: 24px; }
  .hero__word { font-size: 23.5vw; }
  .eyebrow { align-items: flex-start; }
  .eyebrow .dot-live { margin-top: 3px; }
  .hero__cta .btn--solid, .hero__cta .btn--glass { flex: 1 1 auto; }
  .flipctl { width: 100%; }
  .flipctl .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .fact { padding: 18px 16px; }
  .timeline__rail { left: 6px; }
  .job { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-left: 32px; }
  .job__node { left: 0; top: 4px; }
  .job__when { margin: 0; text-align: left; }
  .case { padding: 20px; }
  .case__art { height: 130px; margin: -6px -6px 18px; }
  .case__orb { width: 100px; height: 100px; margin-top: -50px; }
  .case__no { font-size: 56px; }
  .ticker { padding: 22px 0; }
  .ticker__set span { padding: 0 18px; }
  .foot__row { flex-direction: column; }
  .mail__v { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .dot-live, .case__orb, .hero__scroll span { animation: none; }
  .glass::before, .glass::after, .arr { transition: none; }
}

/* ---------- Phone layout (rebuilt for 360–430px screens) ---------- */
.skill__more, .case__more, .hscroll__hint { display: none; }
.hscroll__foot { display: flex; align-items: center; gap: 16px; }
.hscroll__foot .hscroll__bar { flex: 1; margin-top: 0; }
.hscroll__hint { margin: 0; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.projects .hscroll__foot { margin-top: 26px; }
.plus { position: relative; }
.skill__more i, .case__more i { position: relative; width: 12px; height: 12px; flex: none; }
.skill__more i::before, .skill__more i::after, .case__more i::before, .case__more i::after { content: ""; position: absolute; left: 0; top: 5.25px; width: 12px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.skill__more i::after, .case__more i::after { transform: rotate(90deg); }
.is-open > .skill__more i::after, .is-open > .case__more i::after { transform: rotate(0deg); }

@media (max-width: 640px) {
  :root { --gut: 16px; --r: 18px; }
  body { font-size: 16px; line-height: 1.6; }
  html { scroll-padding-top: 72px; }

  /* Lighter effects: blur behind dozens of cards is expensive on phones */
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(20, 23, 34, .82), rgba(12, 14, 22, .82)); }
  .glass::before, .glass::after { display: none; }
  .grain { opacity: .7; }

  /* Nav */
  .nav { top: 10px; width: calc(100% - 20px); padding: 6px 6px 6px 16px; }
  .nav__z { min-height: 38px; padding: 0 12px; font-size: 14px; }
  .nav__burger { width: 40px; height: 40px; }
  .nav__progress { left: 18px; right: 18px; }

  /* Hero */
  .hero { min-height: 100svh; padding: 92px 0 40px; align-items: end; }
  .hero__eyebrow { font-size: 10.5px; letter-spacing: .1em; margin-bottom: 14px; }
  .hero__word { font-size: 24vw; letter-spacing: -.05em; line-height: .9; margin-left: -.03em; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 10px; padding-top: 16px; }
  .hero__caption { flex-direction: column; gap: 2px; }
  .hero__k { font-size: 22px; }
  .hero__v { font-size: 12.5px; }
  .flipctl { width: auto; gap: 6px; }
  .flipctl .btn { flex: 0 0 auto; min-height: 38px; padding: 0 14px; font-size: 13px; }
  .hero__lede { margin-top: 20px; font-size: 16px; }
  .hero__cta { gap: 10px; margin-top: 24px; }
  .hero__cta .btn--solid, .hero__cta .btn--glass { flex: 1 1 0; min-height: 50px; padding: 0 14px; }
  .hero__cta .btn--link { flex-basis: 100%; min-height: 40px; font-size: 14px; }
  .hero__scroll { display: none; }

  /* Ticker */
  .ticker { padding: 14px 0; }
  .ticker__set span { padding: 0 14px; font-size: 7vw; }
  .ticker__set b { font-size: 13px; }

  /* Section rhythm and type */
  .sec { padding-top: 84px; }
  .sec__head { margin-bottom: 28px; }
  .sec__title { font-size: 10.5vw; line-height: 1.02; letter-spacing: -.04em; }
  .sec__sub { margin-top: 14px; font-size: 16px; }
  .eyebrow { font-size: 11px; margin-bottom: 12px; }

  /* About */
  .statement { margin-bottom: 36px; font-size: 6.6vw; line-height: 1.25; }
  .about { gap: 28px; }
  .about__text p { font-size: 16px; margin-bottom: 16px; }
  .facts { gap: 8px; }
  .fact { padding: 16px 14px; }
  .fact dt { font-size: 10px; letter-spacing: .1em; }
  .fact dd { margin: 8px 0 4px; font-size: 32px; }
  .fact p { font-size: 12.5px; }
  .creds { margin-top: 44px; }
  .creds__list { gap: 8px; }
  .cred { padding: 16px; gap: 4px; }
  .cred b { margin-top: 8px; font-size: 17px; }
  .cred > span:last-child { font-size: 14px; }

  /* Skills: one swipeable row of filters, compact rows that open on tap */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)) 18px; padding: 2px var(--gut) 6px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); mask: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; min-height: 38px; padding: 0 14px; font-size: 13.5px; }
  .skills { gap: 8px; }
  html.js .skill { display: grid; grid-template-columns: 42px minmax(0, 1fr) 36px; column-gap: 12px; align-items: center; padding: 12px 12px 12px 12px; min-height: 0; }
  html.js .skill.is-out { display: none; }
  html.js .skill__top { display: contents; }
  html.js .skill__glyph { grid-column: 1; grid-row: 1 / span 2; min-width: 42px; height: 42px; padding: 0 4px; font-size: 11.5px; border-radius: 11px; }
  html.js .skill__cat { display: none; }
  html.js .skill__name { grid-column: 2; grid-row: 1; font-size: 17px; line-height: 1.25; }
  html.js .skill__type { grid-column: 2; grid-row: 2; margin: 1px 0 0; font-size: 13px; }
  html.js .skill .tag-exp { grid-column: 2; grid-row: 3; justify-self: start; margin: 6px 0 0; font-size: 10.5px; }
  html.js .skill__more { grid-column: 3; grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--ink); cursor: pointer; }
  html.js .skill__more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  html.js .skill__body { grid-column: 1 / -1; display: none; padding-top: 14px; }
  html.js .skill.is-open .skill__body { display: block; }
  html.js .skill.is-open .skill__more { background: var(--ink); color: #07080d; border-color: var(--ink); }
  .skill__desc { font-size: 14.5px; margin-bottom: 12px; }
  .skill__use { padding-top: 12px; font-size: 13.5px; }

  /* Projects: swipe cards with a peek of the next one; full brief opens on tap */
  .hscroll__track { gap: 10px; align-items: flex-start; scroll-padding-inline: var(--gut); }
  .case { width: calc(100vw - 2 * var(--gut) - 30px); padding: 16px; scroll-snap-align: start; }
  .case__art { height: 104px; margin: 0 0 16px; border-radius: 12px; }
  .case__orb { width: 80px; height: 80px; margin-top: -40px; right: 14px; }
  .case__no { left: 14px; bottom: 8px; font-size: 48px; }
  .case__org { font-size: 10.5px; }
  .case__title { margin: 6px 0 4px; font-size: 24px; }
  .case__sub { margin-bottom: 14px; font-size: 15px; line-height: 1.5; }
  .case__body { gap: 12px; margin-bottom: 6px; }
  .case__body dd { font-size: 14px; }
  html.js .case .case__extra { display: none; }
  html.js .case.is-open .case__extra { display: block; }
  html.js .case__more { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 14px; padding: 0; min-height: 44px; border: 0; background: none; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
  .hscroll__hint { display: block; }
  .projects .hscroll__foot { margin-top: 18px; }
  .chips { gap: 5px; }
  .chips li { padding: 4px 9px; font-size: 11px; }

  /* Experience */
  .timeline__list { gap: 18px; }
  .timeline__rail { left: 5px; }
  .job { padding-left: 26px; gap: 6px; }
  .job__node { width: 11px; height: 11px; top: 5px; box-shadow: 0 0 0 4px rgba(79, 216, 255, .12); }
  .job__when { font-size: 12px; }
  .job__card { padding: 16px; }
  .job__org { font-size: 14px; gap: 8px; margin-bottom: 4px; }
  .job__role { font-size: 19px; margin-bottom: 12px; }
  .badge { font-size: 10.5px; padding: 2px 8px; }

  /* Zenyah */
  .zen { padding-top: 84px; }
  .zen__inner { width: calc(100% - 2 * var(--gut)); padding: 22px 18px; gap: 18px; }
  .zen__word { font-size: 19vw; }
  .zen__title { font-size: 26px; }
  .zen__copy p:not(.eyebrow) { font-size: 15px; }
  .zen__copy .hero__cta { margin-top: 20px; }
  .zen__copy .hero__cta .btn--solid { flex-basis: 100%; }

  /* Contact */
  .contact { gap: 28px; }
  .form { padding: 16px; gap: 12px; }
  .field input, .field textarea { padding: 24px 14px 9px; border-radius: 12px; }
  .field label { left: 15px; top: 16px; }
  .form .btn { justify-self: stretch; }
  .mail__v { font-size: 7.4vw; }
  .contact__meta dd, .contact__meta dt { font-size: 14px; }

  /* Footer */
  .foot { padding: 84px 0 28px; }
  .foot__big { font-size: 22vw; }
  .foot__row { margin-top: 24px; padding-top: 18px; font-size: 13px; }
}
@media (max-width: 370px) {
  .hero__word { font-size: 23vw; }
  .nav__z { padding: 0 10px; }
  .flipctl .btn { padding: 0 12px; font-size: 12.5px; }
}
@media (max-width: 640px) { .fact__z { font-size: 26px !important; white-space: nowrap; } }
@media (max-width: 640px) {
  .hero__eyebrow { flex-wrap: wrap; row-gap: 4px; }
  .hero__sep { display: none; }
  .hero__loc { flex-basis: 100%; padding-left: 17px; }
}

/* ---------- iPhone / Safari hardening ---------- */
/* Notch and home-bar safe areas (viewport-fit=cover) */
.wrap:not(.zen__inner) { padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
.nav { top: max(14px, env(safe-area-inset-top)); }
.foot { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
@media (max-width: 640px) { .nav { top: max(10px, env(safe-area-inset-top)); } }
/* Older Safari without color-mix(): plain fallbacks */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .skill__glyph { background: rgba(255, 255, 255, .05); border-color: var(--line2); }
  .case__art { background: rgba(255, 255, 255, .03); }
}
/* iOS Safari can drop gradient-clipped text on 3D-transformed or filtered elements, so use a solid fill there */
@supports (-webkit-touch-callout: none) {
  .flipword .fl { background: none; -webkit-text-fill-color: #e8ecf4; color: #e8ecf4; }
  .foot__big .fl { -webkit-text-fill-color: rgba(238, 241, 247, .55); color: rgba(238, 241, 247, .55); }
  .fact__z a { background: none; -webkit-text-fill-color: var(--a1); color: var(--a1); }
}
/* Stop iOS enlarging text in landscape; inputs stay at 16px so focusing never zooms */
html { text-size-adjust: 100%; }

/* ======================================================================
   Light theme. The page follows the device setting by default; the switch
   in the nav overrides it (stored per browser). html[data-theme] is set by
   a tiny script in <head> before first paint, so there is no flash.
   ====================================================================== */
.theme-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); color: var(--ink); cursor: pointer; transition: background .3s, border-color .3s; }
.theme-btn:hover { border-color: var(--a1); }
.theme-btn svg { width: 19px; height: 19px; transition: transform .6s var(--ease), opacity .35s; }
.theme-btn .i-sun { position: absolute; }
:root:not([data-theme="light"]) .theme-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="light"] .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
@media (max-width: 860px) { .theme-btn { order: 1; } }
@media (max-width: 640px) { .theme-btn { width: 38px; height: 38px; } .theme-btn svg { width: 17px; height: 17px; } }
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, -webkit-text-fill-color .45s ease, box-shadow .45s ease !important;
}

:root[data-theme="light"] {
  --bg: #f3f5fa;
  --bg2: #ffffff;
  --ink: #0b0e17;
  --ink2: #333a4b;
  --muted: #5a6275;
  --line: rgba(12, 18, 40, .1);
  --line2: rgba(12, 18, 40, .18);
  --a1: #0a7cab;
  --a2: #6246e8;
  --a3: #c8347f;
  color-scheme: light;
}
[data-theme="light"] ::selection { background: rgba(10, 124, 171, .22); color: var(--ink); }
[data-theme="light"] body::before { background: radial-gradient(60% 50% at 75% 30%, rgba(10, 124, 171, .12), transparent 70%), radial-gradient(50% 50% at 20% 80%, rgba(98, 70, 232, .1), transparent 70%), var(--bg); }
[data-theme="light"] .grain { background: linear-gradient(180deg, transparent, rgba(243, 245, 250, .6) 85%); }
[data-theme="light"] .dot-live { background: #12a866; }

/* Buttons and surfaces */
[data-theme="light"] .btn--solid { background: var(--ink); color: #fff; box-shadow: 0 10px 34px -14px rgba(10, 124, 171, .6); }
[data-theme="light"] .btn--solid:hover { background: #1c2232; }
[data-theme="light"] .btn--glass { background: rgba(255, 255, 255, .6); }
[data-theme="light"] .btn--glass:hover { background: #fff; border-color: rgba(12, 18, 40, .3); }
[data-theme="light"] .btn--link { text-decoration-color: rgba(12, 18, 40, .25); }
[data-theme="light"] .theme-btn { background: rgba(255, 255, 255, .7); }
[data-theme="light"] .glass { background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .6)); border-color: rgba(12, 18, 40, .09); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 40px -28px rgba(20, 30, 70, .35); }
[data-theme="light"] .nav { background: rgba(255, 255, 255, .62); border-color: rgba(12, 18, 40, .08); box-shadow: 0 10px 30px -20px rgba(20, 30, 70, .35); }
[data-theme="light"] .nav__links a:hover, [data-theme="light"] .nav__links a.is-active { background: rgba(12, 18, 40, .06); }
[data-theme="light"] .ticker { background: rgba(255, 255, 255, .45); }
[data-theme="light"] .ticker__row--alt .ticker__set span { -webkit-text-stroke-color: rgba(11, 14, 23, .45); }
[data-theme="light"] .chip { background: rgba(255, 255, 255, .6); }
[data-theme="light"] .chip.is-on { background: var(--ink); color: #fff; }
[data-theme="light"] .chip.is-on i { color: #b9c0cf; }
[data-theme="light"] .chips li { background: rgba(255, 255, 255, .7); }
[data-theme="light"] .tag-exp { color: #8a5a00; border-color: rgba(176, 120, 0, .4); background: rgba(255, 196, 70, .16); }
[data-theme="light"] .badge--now { color: #0d7f4c; border-color: rgba(13, 127, 76, .35); background: rgba(18, 168, 102, .08); }
[data-theme="light"] .skill__glyph { background: color-mix(in srgb, var(--c) 14%, white); border-color: color-mix(in srgb, var(--c) 45%, white); color: color-mix(in srgb, var(--c) 55%, #0b0e17); }
[data-theme="light"] .skill__type, [data-theme="light"] .case__org { color: color-mix(in srgb, var(--c) 55%, #0b0e17); }
[data-theme="light"] .case__art { background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%), rgba(255, 255, 255, .6); }
[data-theme="light"] .case__no { -webkit-text-stroke-color: rgba(11, 14, 23, .35); }
[data-theme="light"] .case__body li::marker { color: color-mix(in srgb, var(--c) 60%, #0b0e17); }
[data-theme="light"] .job__node { background: var(--bg2); }
[data-theme="light"] .zen__inner { background: radial-gradient(80% 120% at 0% 0%, rgba(98, 70, 232, .14), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(10, 124, 171, .12), transparent 60%), rgba(255, 255, 255, .7); }
[data-theme="light"] .field input, [data-theme="light"] .field textarea { background: rgba(255, 255, 255, .9); }
[data-theme="light"] .field input:focus, [data-theme="light"] .field textarea:focus { box-shadow: 0 0 0 4px rgba(10, 124, 171, .14); }
[data-theme="light"] .field.is-bad input, [data-theme="light"] .field.is-bad textarea { border-color: #c8344f; }
[data-theme="light"] .cursor__dot { background: var(--ink); mix-blend-mode: normal; }
[data-theme="light"] .cursor__ring { border-color: rgba(12, 18, 40, .35); }
[data-theme="light"] .cursor.is-hover .cursor__ring { border-color: var(--a1); background: rgba(10, 124, 171, .08); }
[data-theme="light"] .cursor.is-label .cursor__ring { background: rgba(11, 14, 23, .92); }
[data-theme="light"] .cursor__label { color: #fff; }
[data-theme="light"] .hero__scroll span { background: var(--ink); }
@media (max-width: 860px) { [data-theme="light"] .nav__links { background: rgba(255, 255, 255, .96); } }
@media (max-width: 640px) {
  [data-theme="light"] .glass { background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .86)); }
  [data-theme="light"] html.js .skill.is-open .skill__more, html[data-theme="light"].js .skill.is-open .skill__more { background: var(--ink); color: #fff; border-color: var(--ink); }
}

/* Flip letters: ink-dark chrome in light mode */
[data-theme="light"] .flipword .fl { background-image: linear-gradient(180deg, #0b0e17 20%, #2c3446 60%, #5b6579 100%); }
[data-theme="light"] .foot__big .fl { background-image: linear-gradient(180deg, rgba(11, 14, 23, .85), rgba(11, 14, 23, .06)); }
[data-theme="light"] .flipword__mirror { box-shadow: 0 0 24px 4px rgba(10, 124, 171, .35); }
@supports (-webkit-touch-callout: none) {
  [data-theme="light"] .flipword .fl { background: none; -webkit-text-fill-color: #0b0e17; color: #0b0e17; }
  [data-theme="light"] .foot__big .fl { -webkit-text-fill-color: rgba(11, 14, 23, .45); color: rgba(11, 14, 23, .45); }
}
.no-js .theme-btn { display: none; }

/* Footer: "Let's talk" leads (the backdrop particles spell it), the wordmark is a quiet sign-off */
.foot { padding-top: clamp(40px, 5vw, 70px); }
.foot__cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: clamp(140px, 13vw, 200px); margin-bottom: clamp(10px, 2vw, 24px); text-align: center; text-decoration: none; color: var(--ink); border-radius: 24px; }
.foot__cta-say { font: 700 clamp(46px, 8vw, 120px)/1 var(--display); letter-spacing: -.045em; transition: opacity .8s ease; }
.foot__cta-sub { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.foot__cta:hover .foot__cta-sub, .foot__cta:focus-visible .foot__cta-sub { color: var(--a1); }
.foot__cta.is-particles .foot__cta-say { opacity: 0; }
.foot__big { font-size: clamp(48px, 9vw, 138px); opacity: .55; }
@media (max-width: 640px) { .foot { padding-top: 40px; } .foot__big { font-size: 15vw; } .foot__cta { min-height: 130px; } .foot__cta-sub { font-size: 10.5px; max-width: 26ch; } }
