/* ───────── Fonts (same files as the Webflow site) ───────── */
@font-face { font-family: "Herculine"; src: url("/assets/fonts/Herculine.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Font Awesome 6 — subset to only the icons this site uses (originals in /fonts-src). */
@font-face { font-family: "FA Sharp"; src: url("/assets/fonts/fa-sharp-icons.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "FA Pro"; src: url("/assets/fonts/fa-pro-icons.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "FA Brands"; src: url("/assets/fonts/fa-brands-icons.woff2") format("woff2"); font-display: block; }
.fa { font-style: normal; font-weight: 400; line-height: 1; display: inline-block; -webkit-font-smoothing: antialiased; speak: never; }
.fa-sharp { font-family: "FA Sharp"; }
.fa-pro { font-family: "FA Pro"; }
.fa-brands { font-family: "FA Brands"; }

/* ───────── Tokens ───────── */
:root {
  --bg: #0b0b0b;
  --panel: #232323;
  --panel-head: #141414;
  --line: #333;
  --text: #f2f2f2;
  --muted: #a6a6a6;
  --cream: #fffce3;
  --tan: #e5c796;
  --accent: #ff6a00;
  --radius: 4px;
  --nav-h: 76px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Every section fills the viewport. */
.screen { position: relative; min-height: 100vh; min-height: 100svh; }

/* ───────── Backgrounds ───────── */
.grid-bg {
  background-color: var(--bg);
  background-image: url("/assets/grid.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Background is either the grid or the starfield (js/starfield.js), never both.
   <html data-bg="grid|stars"> is set in each page's <head>; the nav's bg toggle flips it. */
.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: none; }
html[data-bg="stars"] .stars { display: block; }
html[data-bg="stars"] .grid-bg { background: transparent; } /* plain black page (body) with stars behind the content */
/* Moving TV-static noise over the whole site (as on Webflow: fixed, 4% opacity, on top). */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .04;
  background: url("/assets/static.gif") repeat;
}

/* ───────── Loader: "PRO.Design" in Herculine, letter by letter ───────── */
.loader {
  position: fixed; inset: 0; z-index: 90; background: var(--panel);
  display: grid; place-items: center; transition: opacity .6s ease, visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; transition-duration: .5s; }
/* Webflow timeline: wrap fades in (.25s); letters rise 100% → 0 over 2.41s, staggered .25s from the edges,
   yoyo ×4 (in, out, in, out); background fades at 10.64s over .5s (timed in home.js). */
.loader__text {
  font-family: "Herculine", var(--sans); font-size: clamp(56px, 13.3vw, 240px); line-height: 1; color: var(--cream); white-space: nowrap;
  animation: wrapIn .25s ease-out both;
}
.loader__text span {
  display: inline-block; opacity: 0; transform: translateY(100%);
  animation: letterRise 2.41s cubic-bezier(.65, 0, .35, 1) var(--d, 0s) 4 alternate both;
}
@keyframes wrapIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes letterRise { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }

/* ───────── Wordmark (Geist Medium, uppercase) ───────── */
.wordmark {
  font-family: var(--sans); font-weight: 500; text-transform: uppercase; line-height: 1.5; white-space: nowrap;
  font-size: clamp(30px, 8.9vw, 200px); color: var(--cream); margin: 0;
}
.wordmark .proto, .wordmark .dot { color: var(--tan); }
.wordmark--grey { color: var(--text); }
.wordmark--grey .proto, .wordmark--grey .dot { color: var(--muted); }
/* Fluid text (fluidtext.js): a WebGL copy of the letters is drawn over the real text, which keeps its
   layout, hover boxes and screen-reader text but stops painting its letters. */
.wordmark.is-fluid, [data-fluid].is-fluid { position: relative; -webkit-text-fill-color: transparent; }
.fluid-text { position: absolute; pointer-events: none; }
.win__head [data-fluid] { display: inline-block; } /* so its size can be measured and watched */

/* Figma-style selection box on hover (PRO / DESIGN / WORKS) */
.sel {
  --h: 12px; --ease: cubic-bezier(.65, 0, .35, 1);
  position: relative; display: inline-block; line-height: 1.2; padding: 0 .02em; pointer-events: auto;
  outline: 1px solid transparent; transition: outline-color .5s .1s var(--ease);
}
.sel i { position: absolute; inset: 0; pointer-events: none; }
.sel::before, .sel::after, .sel i::before, .sel i::after {
  content: ""; position: absolute; width: var(--h); height: var(--h); box-sizing: border-box;
  background: #f2f2f2; border: 1px solid var(--accent); opacity: 0;
  transition: opacity .5s .1s var(--ease);
}
.sel::before   { left: calc(var(--h) / -2);  top: calc(var(--h) / -2); }
.sel::after    { right: calc(var(--h) / -2); top: calc(var(--h) / -2); }
.sel i::before { left: calc(var(--h) / -2);  bottom: calc(var(--h) / -2); }
.sel i::after  { right: calc(var(--h) / -2); bottom: calc(var(--h) / -2); }
.sel:hover { outline-color: var(--muted); }
.sel:hover::before, .sel:hover::after, .sel:hover i::before, .sel:hover i::after { opacity: 1; }
.sel--sm { --h: 8px; padding: 4px 10px; }

/* ───────── Nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(16px, 4vw, 72px);
  background: linear-gradient(#000 60%, rgba(0, 0, 0, 0));
  font-size: 14px;
}
.nav__welcome { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.nav__welcome strong { color: #fff; font-weight: 400; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__pen { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; color: #fff; font-size: 13px; }
.nav__pen:hover { background: var(--panel); }
.nav__center { display: flex; align-items: center; gap: 16px; }
.nav__center > span { color: var(--muted); font-weight: 600; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }

.dropdown { position: relative; }
.dropdown__toggle { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; padding: 6px 4px; }
.dropdown__toggle .fa { font-size: 12px; transition: transform .2s; }
.dropdown[data-open="true"] .dropdown__toggle .fa { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 190px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px;
  list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown[data-open="true"] .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 3px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; color: #fff; }
.dropdown__menu a:hover, .dropdown__menu a[aria-current="page"] { background: #2f2f2f; }
.dropdown__menu a[aria-current="page"]::after { content: "●"; color: var(--accent); font-size: 8px; align-self: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); text-transform: uppercase; font-size: 14px;
  border-radius: 999px; padding: 9px 16px; border: 1px solid var(--line); transition: background .15s, color .15s, border-color .15s;
}
.btn--light { background: #f2f2f2; color: #000; border-color: #f2f2f2; }
.btn--light:hover { background: var(--cream); }
.btn--ghost { border-color: #8a8a8a; }
.btn--ghost:hover { background: #f2f2f2; color: #111; }
.btn--accent { border-color: var(--accent); color: var(--text); font-family: var(--sans); text-transform: uppercase; letter-spacing: .02em; font-size: 13px; padding: 4px 9px; gap: 5px; border-radius: 3px; }
.btn--accent span { color: var(--accent); }
.btn--accent:hover, .btn--accent[aria-pressed="true"] { background: var(--accent); color: #000; }
.btn--accent:hover span, .btn--accent[aria-pressed="true"] span { color: #000; }
/* Filled version of the small card button (See My Work): orange fill with dark text */
.btn--accent.btn--filled { background: var(--accent); border-color: var(--accent); color: #000; }
.btn--accent.btn--filled span { color: #000; }
.btn--accent.btn--filled:hover { background: #ff8a3d; border-color: #ff8a3d; color: #000; }
.btn--accent.btn--filled:hover span { color: #000; }

/* Settings button: equaliser bars that dance while music plays (flat when off) + a chevron; opens the settings menu */
.music-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 11px 0 12px;
  flex: none; border-radius: 999px;
  border: 1px solid var(--line); color: #fff; transition: border-color .15s, background .15s, color .15s;
}
.music-toggle .fa { font-size: 10px; transition: transform .2s; }
/* Chevron hidden for now (trying the plain round button); delete these two lines to bring it back */
.music-toggle .fa { display: none; }
.music-toggle { width: 36px; padding: 0; }
.settings[data-open="true"] .music-toggle .fa { transform: rotate(180deg); }
.music-toggle:hover, .settings[data-open="true"] .music-toggle { border-color: var(--accent); }
.music-toggle[data-state="on"], .music-toggle[data-state="pending"] { color: var(--accent); border-color: var(--accent); }
.music-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transform-origin: bottom; transition: height .25s; }
.music-toggle[data-state="on"] .eq i { height: 12px; animation: eq 1s ease-in-out infinite alternate; }
.music-toggle[data-state="on"] .eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
.music-toggle[data-state="on"] .eq i:nth-child(3) { animation-duration: .9s; animation-delay: -.6s; }
.music-toggle[data-state="on"] .eq i:nth-child(4) { animation-duration: .6s; animation-delay: -.15s; }
.music-toggle[data-state="pending"] .eq i { height: 7px; } /* on, waiting for a tap to resume */
@keyframes eq { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }

/* Settings menu: right-aligned under its button, rows are on/off switches */
.settings__menu { left: auto; right: 0; translate: none; min-width: 220px; display: grid; gap: 2px; }
.settings__menu [role="switch"] {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 9px 10px;
  border-radius: 3px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; color: #fff; text-align: left;
}
.settings__menu [role="switch"]:hover { background: #2f2f2f; }
.settings__menu [role="switch"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.settings__menu [role="switch"][hidden] { display: none; }
.switch {
  position: relative; flex: none; width: 30px; height: 16px; border-radius: 999px;
  border: 1px solid #5a5a5a; transition: background .15s, border-color .15s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%;
  background: #8a8a8a; transition: transform .18s, background .15s;
}
[aria-checked="true"] > .switch { background: var(--accent); border-color: var(--accent); }
[aria-checked="true"] > .switch::after { transform: translateX(14px); background: #000; }

.socials { display: flex; gap: 14px; }
.socials a { display: grid; place-items: center; width: 20px; height: 20px; color: #fff; font-size: 14px; transition: color .15s; }
.socials a:hover { color: var(--accent); }

/* ───────── Windows (draggable panels) ───────── */
.win {
  position: absolute; width: 270px; background: var(--panel); border: 1px solid #2c2c2c;
  border-radius: var(--radius); padding: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); z-index: 5;
  touch-action: none;
}
/* Cards sized to their content (no empty space on the right). Date & Time fits the longest clock text,
   "Wednesday, 12:59 pm". On phones every card is full width (see the 767px rules). */
.win[data-win="time"] { width: 220px; }
.win[data-win="socials"] { width: 150px; }
.win[data-win="availability"] { width: 280px; }
.win.dragging { box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.win__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--panel-head); padding: 7px 8px 7px 10px; border-radius: 2px; user-select: none;
  font-family: var(--mono); font-size: 14px; text-transform: uppercase;
}
.win__min { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 3px; color: #fff; font-size: 14px; }
.win__min:hover { background: #2c2c2c; }
.win__body { padding: 14px 2px 2px; display: grid; gap: 10px; }
.win[data-min="true"] .win__body { display: none; }
.win__label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.win__caps { font-size: 14px; text-transform: uppercase; color: var(--muted); }
.win ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: #ddd; }
.win ul a:hover { color: var(--accent); }

.name-input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--text);
  font: inherit; font-size: 16px; padding: 6px 0; outline: none;
}
.name-input::placeholder { color: #5b5b5b; }
.name-input:focus { border-bottom-color: #444; }
.win__actions { display: flex; justify-content: flex-end; }
.clock { font-size: 18px; color: var(--muted); }
.clock b { color: var(--text); font-weight: 400; }
.copy-email { text-align: left; font-size: 18px; font-weight: 400; color: var(--text); }
.copy-email:hover { color: var(--accent); }
.availability { font-size: 14px; color: #cfcfcf; text-transform: uppercase; }

/* ───────── Hero ───────── */
.hero { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.hero__title { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
/* Headline waits for the loader to finish, then blurs in. */
.hero__title .wordmark { animation: heroIn 1.2s .2s cubic-bezier(.2, .7, .2, 1) both paused; }
.is-loaded .hero__title .wordmark { animation-play-state: running; }
@keyframes heroIn { from { filter: blur(18px); opacity: 0; } to { filter: none; opacity: 1; } }

.ticker {
  position: absolute; left: clamp(16px, 7vw, 100px); bottom: 32px; width: min(460px, calc(100% - 32px));
  border: 1.5px solid #9a9a9a; border-radius: 999px; overflow: hidden; padding: 6px 0; z-index: 4;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: marquee 18s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { font-family: var(--mono); font-size: 16px; text-transform: uppercase; color: #cfcfcf; padding: 0 10px; white-space: nowrap; display: flex; align-items: center; gap: 20px; }
.ticker__item::after { content: "*"; font-family: var(--mono); font-size: 30px; line-height: 1; color: var(--accent); translate: 0 .18em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.scroll-cue {
  /* bottom left, sitting just above the disciplines ticker and lined up with it */
  position: absolute; left: calc(clamp(16px, 7vw, 100px) + 4px); bottom: 84px; z-index: 4;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue i { width: 28px; height: 1px; background: #666; position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ───────── Works (fits exactly one screen) ───────── */
.works {
  height: 100vh; height: 100svh; min-height: 600px; overflow: hidden;
  padding: calc(var(--nav-h) - 12px) 16px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.section-title { font-family: var(--mono); font-size: 24px; line-height: 36px; font-weight: 500; text-transform: uppercase; margin: 0; }
.slider {
  position: relative; flex: 0 1 auto; border-radius: 14px;
  /* As wide as possible while title + slider + deck fit the viewport height. */
  width: min(1100px, 100%, calc((100svh - var(--nav-h) - 230px) * 1100 / 560));
  aspect-ratio: 1100 / 560; border: 10px solid #222; background: #111; overflow: hidden; z-index: 1;
}
.slider__track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.slide { flex: 0 0 100%; height: 100%; position: relative; }
.slide img, .slide video { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide a { position: absolute; inset: 0; }
.slider__progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); width: 0; z-index: 2; }

.deck {
  display: grid; grid-template-columns: 130px auto minmax(0, 320px); gap: 6px; flex: none;
  background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 10px; padding: 6px; z-index: 1;
  max-width: 100%;
}
.deck__all { background: #1d1d1d; border-radius: 6px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; line-height: 20px; padding: 10px; }
.deck__all:hover { background: #111; color: var(--accent); }
.deck__pad { background: #1d1d1d; border-radius: 6px; padding: 8px; display: grid; grid-template-columns: repeat(3, 40px); gap: 8px; }
.key {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #3a3a3a; color: #ddd; font-size: 16px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .06);
  transition: background .12s, transform .08s, color .12s;
}
.key:hover { background: #4a4a4a; color: #fff; }
.key:active { transform: translateY(1px); }
.key[aria-pressed="true"] { color: var(--accent); }
.deck__info { background: #1d1d1d; border-radius: 6px; padding: 10px 12px; min-width: 0; }
.deck__info h2, .deck__info h3 { margin: 0 0 4px; font-family: var(--mono); font-size: 14px; font-weight: 500; text-transform: uppercase; }
.deck__info p { margin: 0; font-size: 14px; color: #cfcfcf; }
.deck__link { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--accent); }
.deck__link:hover { color: var(--text); }
.deck__info .count { font-family: var(--mono); font-size: 12px; color: var(--muted); float: right; }

/* All works overlay */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .86); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; padding: calc(var(--nav-h)) clamp(16px, 4vw, 72px) 40px; overflow: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.overlay[data-open="true"] { opacity: 1; visibility: visible; }
.overlay__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.overlay__bar .seg { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.overlay__bar .seg button { font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.overlay__bar .seg button[aria-pressed="true"] { background: #f2f2f2; color: #111; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.works-grid[data-view="list"] { grid-template-columns: 1fr; gap: 0; }
.work-card { text-align: left; display: grid; gap: 10px; }
.work-card__img { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #151515; border: 1px solid #262626; }
.work-card__img img, .work-card__img video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover img, .work-card:hover video { transform: scale(1.04); }
.work-card h3 { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 500; text-transform: uppercase; }
.work-card p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.works-grid[data-view="list"] .work-card { grid-template-columns: 40px 1fr auto; align-items: center; padding: 16px 0; border-bottom: 1px solid #262626; }
.works-grid[data-view="list"] .work-card__img { display: none; }
.works-grid[data-view="list"] .work-card .idx { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.works-grid[data-view="grid"] .work-card .idx, .works-grid[data-view="grid"] .work-card .tags { display: none; }
.tags { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }

/* ───────── Inner pages ───────── */
.page { padding: calc(var(--nav-h) + 8px) clamp(16px, 4vw, 72px) 32px; display: flex; flex-direction: column; justify-content: center; }
.page-title { font-weight: 400; font-size: clamp(56px, 9.6vw, 180px); line-height: 1.1; text-align: center; margin: 0 0 16px; color: var(--text); }
.page-title--contact { font-size: clamp(48px, 6.8vw, 130px); }
.intro {
  max-width: 660px; margin: 0 auto 40px; background: rgba(255, 255, 255, .1); border-radius: 6px;
  padding: 14px 16px; color: var(--muted); font-size: 14px;
}
.rows { width: 100%; max-width: 1240px; margin: 0 auto; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 22px 0; }
.row__label { font-size: 16px; text-transform: uppercase; margin: 0; font-weight: 400; color: var(--text); }
.row ul { list-style: none; margin: 0; padding: 0; }
.link-list { display: grid; gap: 2px; font-size: 14px; }
.link-list a:hover { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #8a8a8a; border-radius: 3px; padding: 4px 8px; font-size: 12px; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--accent); color: var(--cream); }
.xp { display: grid; gap: 14px; font-size: 12px; }
.xp li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.xp .y { color: var(--muted); font-variant-numeric: tabular-nums; }
.xp .sep { font-family: var(--mono); font-size: 14px; color: #3a3a3a; }
.xp .c { color: var(--text); }
.xp .r { color: var(--tan); }
.empty { color: var(--muted); font-size: 12px; border: 1px solid #8a8a8a; border-radius: 3px; padding: 4px 8px; display: inline-block; }

.footer-mark { margin: 48px auto 0; text-align: center; overflow: hidden; }
.footer-mark .wordmark { display: inline-block; }

/* Contact */
.contact-wrap { width: 100%; max-width: 640px; margin: 0 auto; text-align: center; }
.contact-lede { font-size: 16px; text-transform: uppercase; margin: 0 0 6px; }
.contact-note { color: var(--tan); font-size: 14px; margin: 0 auto 24px; max-width: 560px; }
.form { display: grid; gap: 10px; text-align: left; }
.field { display: grid; gap: 4px; }
.field input, .field textarea {
  width: 100%; background: #2a2a2a; border: 1px solid transparent; border-radius: 4px; color: var(--text);
  font: inherit; font-size: 16px; padding: 11px 12px; outline: none; transition: border-color .15s, background .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6a6a6a; }
.field input:focus, .field textarea:focus { border-color: #5a5a5a; background: #2f2f2f; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: #e5484d; }
.field .err { color: #ff8a8d; font-size: 12px; }
.field .err:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.submit {
  background: #f2f2f2; color: #111; font-family: var(--mono); text-transform: uppercase; font-size: 14px;
  border-radius: 4px; padding: 13px; transition: background .15s, opacity .15s;
}
.submit:hover { background: var(--cream); }
.submit[disabled] { opacity: .6; cursor: progress; }
.form-status { border-radius: 4px; padding: 14px; font-size: 14px; text-align: center; color: var(--muted); }
.form-status[data-type="ok"] { background: rgba(70, 167, 88, .15); border: 1px solid rgba(70, 167, 88, .5); color: #b4f0c0; }
.form-status[data-type="error"] { background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .5); color: #ffb3b5; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; text-align: left; align-items: center; }
.contact-links h2 { font-size: 16px; color: var(--tan); text-transform: uppercase; font-weight: 400; margin: 0; text-align: right; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 80; background: #f2f2f2; color: #111;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 10px 16px; border-radius: 999px;
  opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast[data-show="true"] { opacity: 1; transform: none; }

/* ───────── Custom cursor ───────── */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor[data-visible="true"] { opacity: 1; }
.cursor__dot, .cursor__label { position: fixed; left: 0; top: 0; will-change: transform; }
.cursor__dot::before {
  content: ""; position: absolute; width: 10px; height: 10px; left: -5px; top: -5px; border-radius: 50%;
  background: var(--cream); border: 1.5px solid transparent;
  transition: width .2s, height .2s, left .2s, top .2s, background .2s, border-color .2s, transform .12s;
}
.cursor[data-state="link"] .cursor__dot::before,
.cursor[data-state="grab"] .cursor__dot::before,
.cursor[data-state="grabbing"] .cursor__dot::before {
  width: 34px; height: 34px; left: -17px; top: -17px; background: rgba(255, 106, 0, .12); border-color: var(--accent);
}
.cursor[data-state="grab"] .cursor__dot::before { border-style: dashed; }
.cursor[data-down="true"] .cursor__dot::before { transform: scale(.7); }
.cursor[data-state="text"] .cursor__dot::before { opacity: 0; }
.cursor__label {
  display: none; margin: 16px 0 0 14px; white-space: nowrap; max-width: 24ch; overflow: hidden; text-overflow: ellipsis;
  background: var(--accent); color: #000; font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; padding: 4px 9px; border-radius: 2px 999px 999px 999px;
}
.has-name .cursor__label { display: block; }
.cursor[data-state="text"] .cursor__label { opacity: .5; }
.cursor__label.pop { animation: cursorPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cursorPop { from { scale: .4; } to { scale: 1; } }

/* ───────── Lenis smooth scroll (paging between home screens is in home.js) ───────── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Shorter laptop screens: tighten vertical rhythm so each page section still fits one screen. */
@media (min-width: 768px) and (max-height: 860px) {
  .page { padding-top: calc(var(--nav-h) - 8px); padding-bottom: 16px; }
  .page-title { font-size: clamp(56px, min(9.6vw, 15vh), 180px); margin-bottom: 8px; }
  .page-title--contact { font-size: clamp(48px, min(6.8vw, 11vh), 130px); }
  .intro { margin-bottom: 16px; }
  .row { padding: 12px 0; }
  .contact-note { margin-bottom: 16px; }
  .field textarea { min-height: 72px; }
  .contact-links { margin-top: 20px; }
  .footer-mark { margin-top: 24px; }
}

/* ───────── Project page (/works/<slug>, js/work.js) ─────────
   12-column grid like studiolumio's case studies: number rail (col 1), gallery (cols 2–8), sticky panel (cols 9–12). */
.case {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
  min-height: 100vh; padding: calc(var(--nav-h) + 40px) clamp(16px, 3vw, 48px) 120px;
  background-attachment: fixed;
}
.case__rail { grid-column: 1; position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 28px; justify-items: start; }
.case__rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.case__rail a { font-family: var(--mono); font-size: 12px; color: #5c5c5c; transition: color .15s; }
.case__rail a:hover { color: var(--text); }
.case__rail a[aria-current="page"] { color: var(--accent); }
.case__rail a[aria-current="page"]::before { content: "→ "; }
/* little mouse: a wheel dot that scrolls down, hinting the page scrolls */
.case__mouse { width: 16px; height: 26px; border: 1px solid #5c5c5c; border-radius: 10px; display: grid; justify-items: center; padding-top: 5px; }
.case__mouse i { width: 2px; height: 5px; border-radius: 2px; background: var(--muted); animation: caseWheel 1.6s ease-in-out infinite; }
@keyframes caseWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }

.case__gallery { grid-column: 2 / 9; display: grid; gap: 56px; min-width: 0; }
.case__fig { margin: 0; display: grid; gap: 10px; }
.case__fig img { width: 100%; height: auto; border-radius: var(--radius); background: #151515; }
.case__fig figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.case__embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #151515; }
.case__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #151515; }
.case__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case__heading {
  margin: 24px 0 -24px; font-family: var(--mono); font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--tan);
  display: flex; align-items: center; gap: 12px;
}
.case__heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.case__next {
  display: grid; grid-template-columns: 1fr minmax(0, 40%); grid-template-rows: auto 1fr; column-gap: 24px; align-items: end;
  margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(20, 20, 20, .7);
  transition: border-color .2s;
}
.case__next:hover { border-color: var(--accent); }
.case__next-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.case__next-title { grid-row: 2; font-size: clamp(32px, 4vw, 64px); line-height: 1; font-weight: 500; text-transform: uppercase; color: var(--cream); }
.case__next-img { grid-column: 2; grid-row: 1 / 3; aspect-ratio: 16 / 10; border-radius: 3px; overflow: hidden; }
.case__next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case__next:hover .case__next-img img { transform: scale(1.05); }

.case__panel {
  grid-column: 9 / -1; position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 18px; align-content: start;
  max-height: calc(100vh - var(--nav-h) - 60px); overflow-y: auto; scrollbar-width: none; padding-bottom: 8px;
}
.case__panel::-webkit-scrollbar { display: none; }
.case__back { justify-self: start; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); transition: color .15s; }
.case__back::before { content: "← "; }
.case__back:hover { color: var(--accent); }
.case__code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.case__title { margin: -8px 0 0; font-size: clamp(36px, 3.6vw, 64px); line-height: 1.05; font-weight: 500; text-transform: uppercase; color: var(--cream); overflow-wrap: anywhere; }
.case__summary { margin: 0; font-size: 16px; line-height: 1.5; color: #cfcfcf; }
.case__toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  transition: border-color .15s;
}
.case__toggle:hover, .case__toggle[aria-expanded="true"] { border-color: var(--accent); }
.case__toggle i { position: relative; width: 9px; height: 9px; }
.case__toggle i::before, .case__toggle i::after { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 1px; background: currentColor; transition: transform .2s; }
.case__toggle i::after { transform: rotate(90deg); }
.case__toggle[aria-expanded="true"] i::after { transform: rotate(0); }
.case__about { display: grid; gap: 16px; padding: 4px 0 4px 12px; border-left: 1px solid var(--accent); }
.case__about[hidden] { display: none; }
.case__about-block h2 { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--tan); }
.case__about-block p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: #cfcfcf; }
.case__meta { margin: 0; display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.case__meta div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.case__meta dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.case__meta dd { margin: 0; font-size: 14px; color: var(--text); }
.case__links { display: flex; flex-wrap: wrap; gap: 8px; }
.case__links:empty { display: none; }
.case__hint { margin: 0; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: #5c5c5c; }
.case__missing { grid-column: 1 / -1; text-align: center; padding-top: 10vh; }

@media (max-width: 1100px) { .case__gallery { grid-column: 2 / 8; } .case__panel { grid-column: 8 / -1; } }
/* scroll-in */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .nav__right .socials { display: none; }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .contact-links { grid-template-columns: 1fr; }
  .contact-links h2 { text-align: left; }
}
@media (max-width: 767px) {
  .case { display: flex; flex-direction: column; gap: 32px; padding: calc(var(--nav-h) + 16px) 16px 80px; }
  .case__rail { display: none; }
  .case__panel { position: static; max-height: none; overflow: visible; order: -1; }
  .case__gallery { gap: 32px; width: 100%; }
  .case__next { grid-template-columns: 1fr; }
  .case__next-img { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .nav { grid-template-columns: 1fr auto auto; gap: 12px; }
  .nav__center > span { display: none; }
  .nav__right .btn { padding: 7px 12px; font-size: 12px; }
  .btn--accent { font-size: 14px; padding: 9px 14px; gap: 6px; } /* bigger tap target on phones */
  .nav__right { gap: 8px; }
  .music-toggle { width: 32px; height: 32px; padding: 0; }
  .nav__welcome { min-width: 0; }
  .nav__welcome strong { max-width: 8ch; }
  .nav__hello { display: none; }
  .dropdown__toggle { font-size: 12px; gap: 6px; }
  .dropdown__toggle, .nav__right .btn { white-space: nowrap; }
  .wordmark { white-space: normal; font-size: 13.5vw; line-height: 1.2; text-align: center; }
  .wordmark .proto { display: block; }
  .hero { height: auto; min-height: 100svh; padding: calc(var(--nav-h) + 8px) 16px 96px; display: flex; flex-direction: column; gap: 14px; }
  .hero__title { position: static; padding: 28px 0; order: -1; }
  .win, .win[data-win] { position: static; width: 100%; }
  .ticker { left: 16px; bottom: 24px; }
  .scroll-cue { display: none; }
  .works { height: auto; min-height: 100svh; }
  .slider { width: 100%; border-width: 6px; border-radius: 10px; aspect-ratio: 4 / 3; }
  .deck { grid-template-columns: 1fr auto; }
  .deck__info { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
  .music-toggle[data-state="on"] .eq i { animation: none !important; }
  .music-toggle[data-state="on"] .eq i:nth-child(odd) { height: 7px; }
  .loader__text span { animation-delay: 0s !important; }
  .grain { display: none; } /* animated GIF can't be paused by CSS */
}
