/* =========================================================
   SHOT BY SEAN – Design tokens
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --fg: #f2f0ec;
  --muted: #a39e96;           /* 7.4:1 on --bg */
  --line: rgba(242, 240, 236, 0.14);
  --accent: #e8202a;          /* signal red */
  --accent-ink: #ffffff;

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 2.4vw, 36px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  --z-canvas: 0;
  --z-ui: 10;
  --z-overlay: 40;
  --z-modal: 100;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-stretch: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  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-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: var(--z-modal);
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px;
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wide {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================
   LANDING – Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 90% at 50% 60%, #2a2622 0%, #0d0c0b 70%);
}
.hero__media video,
.hero__media .hero__still {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__still {
  background-size: cover; background-position: center;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 65%, rgba(10,10,10,0.75) 100%);
}
.hero__grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Easter egg: time stop (js/landing.js) ---------- */
.ts-sphere, .ts-ring {
  position: fixed; z-index: 3000; pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0); animation-fill-mode: both; animation-timing-function: linear;
}
.ts-sphere {
  -webkit-backdrop-filter: invert(1) contrast(1.3) saturate(1.5);
  backdrop-filter: invert(1) contrast(1.3) saturate(1.5);
  box-shadow: inset 0 0 120px rgba(120, 255, 200, 0.35), 0 0 80px rgba(120, 255, 200, 0.25);
  animation-name: ts-sphere;
}
.ts-sphere--late {
  -webkit-backdrop-filter: invert(1) grayscale(1) contrast(1.6);
  backdrop-filter: invert(1) grayscale(1) contrast(1.6);
  box-shadow: none;
}
@keyframes ts-sphere {
  0%   { transform: translate(-50%, -50%) scale(0); }
  45%  { transform: translate(-50%, -50%) scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4); }
  100% { transform: translate(-50%, -50%) scale(0); }
}
.ts-ring {
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 24px rgba(160, 255, 220, 0.8), inset 0 0 24px rgba(160, 255, 220, 0.6);
  animation-name: ts-ring; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ts-ring {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
.ts-ring--out { border-color: rgba(232, 32, 42, 0.9); box-shadow: 0 0 30px rgba(232, 32, 42, 0.7); }
.ts-tint {
  position: fixed; inset: 0; z-index: 2999; pointer-events: none; opacity: 0;
  -webkit-backdrop-filter: grayscale(0.85) sepia(0.45) hue-rotate(35deg) contrast(1.15) brightness(0.9);
  backdrop-filter: grayscale(0.85) sepia(0.45) hue-rotate(35deg) contrast(1.15) brightness(0.9);
  background: radial-gradient(circle at 50% 40%, rgba(90, 140, 60, 0.08), rgba(20, 30, 10, 0.35));
  transition: opacity 0.5s ease;
}
.ts-tint.is-on { opacity: 1; transition-duration: 0.2s; }
.is-timestop *, .is-timestop *::before, .is-timestop *::after { animation-play-state: paused !important; }
.is-timestop .ts-sphere, .is-timestop .ts-ring, .is-timestop .ts-words { animation-play-state: running !important; }
.ts-words {
  position: fixed; inset: 0; z-index: 3001; pointer-events: none;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(40px, 9.5vw, 190px); line-height: 0.85; letter-spacing: 0.02em; white-space: nowrap;
  color: rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
  clip-path: circle(0 at var(--x) var(--y));
  animation: ts-words linear both;
}
@keyframes ts-words {
  0%   { clip-path: circle(0 at var(--x) var(--y)); transform: scale(1.15); }
  25%  { clip-path: circle(var(--r) at var(--x) var(--y)); transform: scale(1); }
  75%  { clip-path: circle(var(--r) at var(--x) var(--y)); transform: scale(0.98); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4); }
  100% { clip-path: circle(0 at var(--x) var(--y)); transform: scale(0.95); }
}
.ts-go {
  position: fixed; z-index: 3002; pointer-events: none; line-height: 1; white-space: nowrap;
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  font-weight: 700;
  background: linear-gradient(165deg, #e05ac4 0%, #9a36a6 40%, #3a1760 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.05em #6e2a8a;               /* thickens the strokes */
  filter: drop-shadow(2px 0 0 #000) drop-shadow(-2px 0 0 #000) drop-shadow(0 2px 0 #000) drop-shadow(0 -2px 0 #000)
          drop-shadow(0 6px 12px rgba(40, 0, 60, 0.5));
  will-change: transform, opacity;
}
.ts-shake .hero { animation: ts-shake 0.6s linear; }
@keyframes ts-shake {
  0%, 100% { transform: none; }
  10% { transform: translate(-3px, 2px) scale(1.01); } 25% { transform: translate(3px, -2px) scale(1.02); }
  40% { transform: translate(-2px, -3px) scale(1.015); } 60% { transform: translate(2px, 3px) scale(1.01); }
  80% { transform: translate(-1px, 1px); }
}

.hero__top { padding: clamp(10px, 1.4vw, 22px) var(--gutter) 0; }
.hero__title {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: -0.005em;
  white-space: nowrap;
  position: relative;
}
.hero__title .line { display: block; width: max-content; font-size: 13vw; }
.hero__title .tm {
  position: absolute; right: 0; top: 0.1em;
  font-size: clamp(12px, 1.3vw, 22px); color: var(--fg); font-weight: 900; letter-spacing: 0;
}
.hero__title .line { opacity: 0; transform: translateY(18%); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.is-ready .hero__title .line { opacity: 1; transform: none; }
.is-ready .hero__title .line + .line { transition-delay: 80ms; }

.hero__nav {
  margin-top: clamp(14px, 1.6vw, 26px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px clamp(36px, 7vw, 120px);
}
.hero__nav > a, .nav-drop__link {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-size: clamp(15px, 1.35vw, 22px);
  padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center;
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
  position: relative;
}
.hero__nav > a::after, .nav-drop__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.hero__nav > a:hover::after, .hero__nav > a:focus-visible::after,
.nav-drop__link:hover::after, .nav-drop__link:focus-visible::after,
.nav-drop.is-open .nav-drop__link::after { transform: scaleX(1); }

/* Work dropdown */
.nav-drop { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.nav-drop__toggle {
  width: 36px; height: 44px; display: grid; place-items: center;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,0.5));
}
.nav-drop__toggle svg { transition: transform var(--dur) var(--ease-out); }
.nav-drop.is-open .nav-drop__toggle svg { transform: rotate(180deg); }
.nav-drop__menu {
  position: absolute; top: 100%; left: 50%; z-index: var(--z-overlay);
  min-width: 240px; margin: 0; padding: 8px; list-style: none;
  background: rgba(12, 12, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.nav-drop__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.nav-drop.is-open .nav-drop__menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.nav-drop__menu a {
  display: flex; align-items: center; min-height: 44px; padding: 10px 14px;
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%; text-transform: uppercase;
  font-size: 14px; letter-spacing: 0.04em; white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-drop__menu a:hover, .nav-drop__menu a:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }
.nav-drop__menu li:first-child a { color: var(--muted); font-size: 12px; }
.nav-drop__menu li:first-child a:hover { color: var(--accent-ink); }

.hero__bottom {
  margin-top: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  padding: 0 var(--gutter) clamp(16px, 2vw, 28px);
}
.hero__tagline { margin: 0; text-align: center; line-height: 1.35; font-size: 11px; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
.hero__cta {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px; min-height: 60px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.08em;
  background: var(--accent); color: var(--accent-ink);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.hero__cta:hover { background: #ff2d37; }
.hero__cta:active { transform: scale(0.97); }
.hero__cta svg { transition: transform var(--dur) var(--ease-out); }
.hero__cta:hover svg { transform: translateX(4px); }
.hero__scroll { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }

/* =========================================================
   LANDING – Sections
   ========================================================= */
.section { padding: clamp(72px, 10vw, 160px) var(--gutter); border-top: 1px solid var(--line); }
.section__label { color: var(--muted); margin: 0 0 28px; }
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px);
}
.about h2, .contact h2 {
  margin: 0; font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: 0.9;
  font-size: clamp(40px, 7vw, 120px);
}
.about__text { font-family: var(--font-display); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; max-width: 60ch; margin: 0 0 40px; }
.about__text p { margin: 0 0 1em; }
.about__text p:first-child { font-size: 1.2em; font-weight: 600; line-height: 1.4; }
.services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.services li { border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro { container-type: inline-size; min-width: 0; }
.contact h2 { font-size: min(12cqi, 104px); }
.contact__lead { margin: 28px 0 0; font-size: clamp(17px, 1.4vw, 20px); max-width: 36ch; color: var(--muted); }

/* Form */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px; min-height: 52px;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a39e96' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(242,240,236,0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); background: #1a1a1a; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.has-error input, .field.has-error textarea { border-color: #ff6b6b; }
.field__error { margin: 0; min-height: 0; font-size: 14px; color: #ff8a8a; }
.field__error:empty { display: none; }
.form__note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-transform: none; letter-spacing: 0.02em; }
.form__note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.form__submit {
  justify-self: start; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px; min-height: 60px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background var(--dur-fast), transform var(--dur-fast), opacity var(--dur-fast);
}
.form__submit:hover { background: #ff2d37; }
.form__submit:active { transform: scale(0.97); }
.form__submit:disabled { opacity: 0.5; cursor: progress; }
.form__status { margin: 0; font-size: 16px; }
.form__status:empty { display: none; }
.form__status.is-success { color: #7ddc9a; }
.form__status.is-success::before { content: "✓ "; }
.form__status.is-error { color: #ff8a8a; }

/* Legal page */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--gutter) 96px; }
.legal__back { display: inline-flex; gap: 8px; padding: 10px 0; color: var(--muted); }
.legal__back:hover { color: var(--fg); }
.legal__brand { display: block; margin: 32px 0 48px; color: var(--accent); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: 0.85; font-size: clamp(40px, 8vw, 88px); }
.legal h1, .legal h2 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: 1; }
.legal h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 24px; }
.legal h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 56px 0 16px; }
.legal h3 { font-size: 17px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: #dcd9d3; }
.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.legal address { font-style: normal; font-size: 18px; line-height: 1.6; }
.contact__mail {
  display: inline-block; margin-top: 28px; color: var(--accent);
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(22px, 4.4vw, 72px); line-height: 1; overflow-wrap: anywhere;
  border-bottom: 3px solid transparent; transition: border-color var(--dur) var(--ease-out);
}
.contact__mail:hover { border-color: var(--accent); }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; }
.contact__links a { padding: 10px 0; color: var(--muted); transition: color var(--dur-fast); }
.contact__links a:hover { color: var(--fg); }

.site-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 16px var(--gutter); border-top: 1px solid var(--line); color: var(--muted);
}
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { padding: 10px 0; transition: color var(--dur-fast); }
.site-footer a:hover { color: var(--fg); }

/* Page transition curtain */
.curtain {
  position: fixed; inset: 0; z-index: var(--z-modal); background: var(--accent);
  transform: translateY(100%); pointer-events: none;
}
.curtain.is-active { transform: translateY(0); transition: transform 520ms var(--ease-in); }

/* =========================================================
   WORK – 3D gallery
   ========================================================= */
.work-page { overflow: hidden; height: 100vh; height: 100dvh; }
.stage {
  position: fixed; inset: 0; z-index: var(--z-canvas);
  touch-action: none; outline: none;
  background: radial-gradient(90% 80% at 30% 70%, #161412 0%, var(--bg) 70%);
}
.stage canvas { width: 100% !important; height: 100% !important; }
.stage.is-hover { cursor: pointer; }
.stage.is-drag { cursor: grabbing; }

.ui { position: fixed; z-index: var(--z-ui); pointer-events: none; }
.ui > * { pointer-events: auto; }

.ui--tl { top: 0; left: 0; padding: 18px var(--gutter); display: flex; gap: 16px; align-items: flex-start; max-width: 520px; }
.brand {
  color: var(--accent); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: 22px; line-height: 0.85; letter-spacing: -0.005em; display: block; padding: 4px 0;
}
.brand span { display: block; }
.intro { margin: 2px 0 0; color: var(--fg); font-size: 14px; line-height: 1.4; max-width: 34ch; }

.ui--tr { top: 0; right: 0; padding: 14px var(--gutter); display: flex; gap: 8px; }
.toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  background: rgba(10,10,10,0.6); backdrop-filter: blur(8px);
}
.toggle button {
  padding: 8px 14px; min-height: 36px; border-radius: 999px; color: var(--muted);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.toggle button:not([aria-pressed="true"]):hover { color: var(--fg); }

.ui--bl { left: 0; bottom: 0; padding: 0 var(--gutter) 22px; max-width: min(46vw, 560px); }
.now__count { color: var(--muted); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.now__count b { color: var(--accent); font-weight: 500; }
.now__title {
  margin: 0; font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: 0.92;
  font-size: clamp(22px, 2.3vw, 40px); overflow-wrap: anywhere; text-wrap: balance;
}
.now__meta { margin: 10px 0 0; color: var(--muted); }
.now__title, .now__meta { transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.now.is-swapping .now__title, .now.is-swapping .now__meta { opacity: 0; transform: translateY(6px); }

.ui--bc { left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100vw - 2 * var(--gutter)); }
.filters {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(20,20,20,0.75); backdrop-filter: blur(10px); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  white-space: nowrap; padding: 8px 14px; min-height: 36px; border-radius: 999px;
  font-size: 13px; color: var(--fg); transition: background var(--dur-fast), color var(--dur-fast);
}
.filters button:hover { background: rgba(242,240,236,0.08); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.ui--br { right: 0; bottom: 0; padding: 0 var(--gutter) 26px; text-align: right; }
.ui--br { display: flex; gap: 20px; }
.ui--br a { color: var(--fg); padding: 8px 0; display: inline-block; }
.ui--br a:hover { color: var(--accent); }

.hint {
  position: fixed; z-index: var(--z-ui); left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px; color: var(--fg);
  padding: 10px 16px; border-radius: 999px; background: rgba(10,10,10,0.55); backdrop-filter: blur(6px);
  pointer-events: none; transition: opacity 600ms var(--ease-out);
}
.hint.is-hidden { opacity: 0; }
.hint__mouse { width: 16px; height: 24px; border: 1.5px solid currentColor; border-radius: 8px; position: relative; }
.hint__mouse::after {
  content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 5px; margin-left: -1px;
  background: currentColor; border-radius: 1px; animation: wheel 1.4s var(--ease-out) infinite;
}
@keyframes wheel { from { transform: translateY(0); opacity: 1; } to { transform: translateY(7px); opacity: 0; } }

.loader {
  position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center;
  background: var(--bg); transition: opacity 500ms var(--ease-out);
}
.loader.is-done { opacity: 0; pointer-events: none; }
.loader__bar { width: 120px; height: 2px; background: var(--line); overflow: hidden; }
.loader__bar::after { content: ""; display: block; height: 100%; width: 40%; background: var(--accent); animation: load 1s var(--ease-out) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.fallback { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--gutter); text-align: center; color: var(--muted); }

/* List view */
.list {
  position: fixed; inset: 0; z-index: calc(var(--z-ui) - 1);
  background: rgba(8, 8, 8, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 96px var(--gutter) 120px;
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.list.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur) var(--ease-out); }
.grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1600px; display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid button { display: block; width: 100%; text-align: left; }
.grid__thumb {
  aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; position: relative;
}
.grid__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.grid button:hover .grid__thumb img { transform: scale(1.04); }
.grid__title { margin: 12px 0 4px; font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 15px; line-height: 1.15; }
.grid__meta { margin: 0; color: var(--muted); }
.grid li[hidden] { display: none; }

/* =========================================================
   Player modal
   ========================================================= */
.player {
  width: min(1180px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 32px);
  padding: 0; border: 0; background: transparent; color: var(--fg);
  overflow: visible;
}
.player::backdrop { background: rgba(5,5,5,0.86); backdrop-filter: blur(6px); }
.player[open] { animation: player-in 420ms var(--ease-out); }
.player[open]::backdrop { animation: fade-in 300ms var(--ease-out); }
@keyframes player-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.player__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.player__head { display: flex; justify-content: flex-end; }
.player__close {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(20,20,20,0.7);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.player__close:hover { background: var(--accent); border-color: var(--accent); }
.player__close:active { transform: scale(0.94); }
.player__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.player__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 48px; padding-bottom: 8px; }
.player__eyebrow { margin: 0 0 10px; color: var(--accent); }
.player__title { margin: 0; font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: 0.92; font-size: clamp(26px, 3.6vw, 56px); overflow-wrap: anywhere; }
.player__desc { margin: 0 0 18px; font-size: 16px; line-height: 1.6; max-width: 62ch; }
.player__facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; }
.player__facts dt { color: var(--muted); }
.player__facts dd { margin: 0; }
.player__nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.player__nav button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; min-height: 44px; color: var(--muted); transition: color var(--dur-fast); }
.player__nav button:hover { color: var(--fg); }

/* =========================================================
   Social page
   ========================================================= */
.page-nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(10,10,10,0.55); backdrop-filter: blur(8px); border: 1px solid var(--line); margin: 14px var(--gutter); }
.ui--tr.page-nav { padding: 4px; }
.page-nav a { padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 999px; color: var(--muted); transition: background var(--dur-fast), color var(--dur-fast); }
.page-nav a:hover { color: var(--fg); }
.page-nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.social-page .now__title { font-size: clamp(22px, 2.6vw, 44px); }
.social-page .hint { top: auto; bottom: 90px; transform: translateX(-50%); }

.player--vertical { width: min(980px, calc(100vw - 2 * var(--gutter))); }
.player__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: end; }
.player--vertical .player__frame {
  aspect-ratio: 9 / 16; height: min(78dvh, 760px); width: auto; max-width: 100%;
  border-radius: 14px; overflow: hidden;
}
/* Instagram embed: 54px white header, then a 4:5 media box with the 9:16 clip centred in it.
   Make the iframe wide enough that the clip fills the 9:16 frame, then shift header + side bars out of view. */
.player__frame--ig { container-type: size; background: #000; }
.player__frame--ig iframe {
  --ig-w: calc(100cqw * 1.4222 + 4px);           /* clip width = 0.703 x embed width */
  width: var(--ig-w); height: calc(54px + var(--ig-w) * 1.25 + 400px);
  inset: auto; left: calc((100cqw - var(--ig-w)) / 2); top: calc(-54px - 2px);
  max-width: none;
}
.player__side { display: grid; gap: 4px; padding-bottom: 8px; }
.player--vertical .player__desc { color: var(--muted); }
.player__profile { justify-self: start; padding: 10px 0; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.player__profile[hidden] { display: none; }
@media (max-width: 700px) {
  .player__body { grid-template-columns: 1fr; gap: 16px; }
  .player--vertical .player__frame { height: auto; width: 100%; max-height: 70dvh; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  .player__meta { grid-template-columns: 1fr; }
  .intro { display: none; }
}
@media (max-width: 700px) {
  .hero__nav { gap: 0 28px; }
  .hero__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .hero__cta, .hero__scroll { justify-self: center; }
  .hero__scroll { display: none; }
  .ui--bl { max-width: none; right: 0; bottom: 74px; }
  .ui--br { top: 58px; bottom: auto; padding-bottom: 0; gap: 14px; font-size: 11px; }
  .ui--bc { bottom: 14px; }
  .brand { font-size: 18px; }
}

/* =========================================================
   Simple cookie notice (js/consent.js)
   ========================================================= */
.cc {
  position: fixed; z-index: 2000; left: var(--gutter); bottom: 16px;
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: #0e0e0e; color: var(--fg); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  font-size: 13px; line-height: 1.5;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.cc.is-open { opacity: 1; transform: none; }
.cc__text { margin: 0; color: var(--muted); }
.cc a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cc a:hover { color: var(--accent); }
.cc__btn {
  flex: none; min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.cc__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 700px) {
  .cc { left: 50%; transform: translate(-50%, 12px); bottom: calc(10px + var(--nl-badge-h, 0px)); }
  .cc.is-open { transform: translate(-50%, 0); }
}
/* Room for the "Powered by Netlify" badge (bottom right), see js/common.js */
.has-nl-badge .site-footer { padding-bottom: calc(16px + var(--nl-badge-h)); }
.has-nl-badge .ui--br { bottom: calc(var(--nl-badge-h) - 10px); }
@media (max-width: 800px) {
  .has-nl-badge .ui--bc { bottom: calc(18px + var(--nl-badge-h)); }
}
@media (max-width: 700px) {
  .has-nl-badge .ui--br { bottom: auto; }
  .has-nl-badge .ui--bc { bottom: calc(10px + var(--nl-badge-h)); }
  .has-nl-badge .ui--bl { bottom: calc(70px + var(--nl-badge-h)); }}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero__grain { display: none; }
}
