/* ==========================================================================
   Eross Dwi Putra — portfolio
   Palette: wine #722f37 · crimson #8b1538 · rust #a0522d · cream #f5f5dc

   Golden-ratio system
   - Spacing follows the Fibonacci run 5 · 8 · 13 · 21 · 34 · 55 · 89 · 144 (each ≈ φ × the last).
   - Type steps by √φ (1.272) from a 15px base: 11.8 · 15 · 19 · 24 · 31 · 39 · 50 · 64.
   - Two-part layouts split 1 : φ (38.2% / 61.8%).
   ========================================================================== */

@font-face { font-family: "Anton"; src: url("../fonts/anton-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Mrs Saint Delafield"; src: url("../fonts/mrs-saint-delafield-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --phi: 1.618;

  /* Palette */
  --wine: #722f37;
  --crimson: #8b1538;
  --rust: #a0522d;
  --cream: #f5f5dc;

  /* Surfaces */
  --ink: #0d0506;
  --ink-2: #150a0c;
  --ink-3: #1d0e11;
  --text: var(--cream);
  --muted: rgba(245, 245, 220, 0.66);
  --faint: rgba(245, 245, 220, 0.42);
  --line: rgba(245, 245, 220, 0.1);
  --line-2: rgba(245, 245, 220, 0.18);
  --frame: rgba(160, 82, 45, 0.55);
  --accent: #e0647a;          /* crimson lifted for small text on ink (5.6:1) */
  --accent-2: #d9875a;        /* rust lifted for small text on ink (6.9:1) */

  /* Type */
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;

  --t-xs: 0.7375rem;   /* 11.8 */
  --t-sm: 0.8125rem;   /* 13   */
  --t-md: 0.9375rem;   /* 15   */
  --t-lg: 1.1875rem;   /* 19   */
  --t-xl: 1.5rem;      /* 24   */
  --t-2xl: 1.9375rem;  /* 31   */
  --t-3xl: 2.4375rem;  /* 39   */
  --t-4xl: 3.125rem;   /* 50   */

  /* Space (Fibonacci) */
  --s1: 5px; --s2: 8px; --s3: 13px; --s4: 21px; --s5: 34px; --s6: 55px; --s7: 89px; --s8: 144px;

  /* Layout */
  --gutter: clamp(21px, 4vw, 55px);
  --maxw: 1200px;
  --header-h: 68px;
  --radius: 3px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --fast: 200ms;
  --mid: 500ms;
  --slow: 1100ms;

  /* Layers */
  --z-header: 100;
  --z-menu: 90;
  --z-grain: 500;
  --z-loader: 2000;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  background: var(--ink);
}
html:not(.motion-off) { scroll-behavior: smooth; }

body {
  margin: 0;
  /* Transparent so the fixed ambient layer (z-index -1) shows through; html carries the ink. */
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.618;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg use { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

::selection { background: var(--crimson); color: var(--cream); }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: calc(var(--z-loader) + 1);
  padding: var(--s2) var(--s3); background: var(--cream); color: var(--ink); border-radius: var(--radius);
}
.skip-link:focus { top: var(--s3); }

section[id] { scroll-margin-top: var(--header-h); }
.section { padding-block: clamp(var(--s7), 10vw, var(--s8)); }

/* Small caps labels: the reference language for meta text */
.eyebrow,
.section-head__note,
.card__meta p,
.card__link,
.piece figcaption em,
.chips li,
.site-footer,
.loader__meta {
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); margin-bottom: var(--s3); }
.eyebrow--accent { color: var(--accent); }

.star { width: 0.7em; height: 0.7em; color: var(--accent); }
.star use { fill: currentColor; stroke: none; }

/* Film grain over everything, very low contrast */
.grain {
  position: fixed;
  inset: -50%;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Ambient: drifting light, golden-ratio guides, embers, cursor glow
   -------------------------------------------------------------------------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* Living gradient (WebGL, see velaris.js). Fades in once the first frame is drawn. */
.ambient__velaris {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1600ms var(--ease);
}
.ambient.has-velaris .ambient__velaris { opacity: 1; }
.ambient.has-velaris .ambient__orb { display: none; }

.ambient__orb {
  position: absolute;
  width: 62vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  will-change: transform;
}
.ambient__orb--a {
  top: -24vmax; left: -18vmax;
  background: radial-gradient(circle, rgba(139, 21, 56, 0.26), transparent 62%);
  animation: drift-a 38s ease-in-out infinite alternate;
}
.ambient__orb--b {
  top: 28vh; right: -28vmax;
  background: radial-gradient(circle, rgba(160, 82, 45, 0.16), transparent 62%);
  animation: drift-b 46s ease-in-out infinite alternate;
}
.ambient__orb--c {
  bottom: -34vmax; left: 18vw;
  background: radial-gradient(circle, rgba(114, 47, 55, 0.26), transparent 62%);
  animation: drift-c 52s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(14vw, 21vh, 0) scale(1.13); } }
@keyframes drift-b { to { transform: translate3d(-21vw, -13vh, 0) scale(0.92); } }
@keyframes drift-c { to { transform: translate3d(13vw, -21vh, 0) scale(1.08); } }

/* Two faint verticals on the golden section of the screen */
.ambient__guide {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(245, 245, 220, 0.045) 21%, rgba(245, 245, 220, 0.045) 79%, transparent);
}
.ambient__guide--a { left: 38.2%; }
.ambient__guide--b { left: 61.8%; }

.ambient__embers { position: absolute; inset: 0; width: 100%; height: 100%; }

.ambient__spot {
  position: absolute;
  left: 0; top: 0;
  width: 55vmax;
  aspect-ratio: 1;
  margin: -27.5vmax 0 0 -27.5vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 100, 122, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 800ms var(--ease);
  will-change: transform;
}
.ambient__spot.is-on { opacity: 1; }

/* --------------------------------------------------------------------------
   Section heads: title — hairline — note
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s6);
}
.section-head--tight { margin-bottom: var(--s5); }
.section-title {
  font-family: var(--display);
  font-size: clamp(var(--t-2xl), 3vw, var(--t-3xl));
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.section-head__rule { flex: 1; height: 1px; background: var(--line-2); }
.section-head__note { color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .section-head__note { display: none; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--mid) var(--ease), border-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(13, 5, 6, 0.78);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s4);
}

.brand { display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px; justify-self: start; }
.brand img { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__text strong { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.brand__text span { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (max-width: 420px) { .brand__text span { font-size: 0.5625rem; letter-spacing: 0.1em; } }

.nav__list { display: flex; gap: var(--s5); }
.nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--fast) linear;
}
.nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 11px; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--mid) var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--cream); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.site-header__status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--fast) linear;
}
.site-header__status span { border-bottom: 1px solid transparent; transition: border-color var(--mid) var(--ease); }
.site-header__status:hover { color: var(--cream); }
.site-header__status:hover span { border-bottom-color: var(--accent); }
.site-header__status .star { transition: transform var(--mid) var(--ease); }
.site-header__status:hover .star { transform: rotate(90deg) scale(1.2); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before {
  display: block; width: 21px; height: 1px; background: currentColor;
  transition: transform var(--mid) var(--ease);
}
.nav-toggle__bars { position: relative; transform: translateY(-3px); }
.nav-toggle__bars::before { content: ""; position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__status { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav__list {
    position: fixed; inset: 0; z-index: var(--z-menu);
    flex-direction: column; justify-content: center; gap: var(--s2);
    padding: var(--header-h) var(--gutter) var(--s6);
    background: var(--ink);
    opacity: 0; visibility: hidden;
    transition: opacity var(--mid) var(--ease), visibility 0s linear var(--mid);
  }
  .nav__list a { font-family: var(--display); font-size: var(--t-4xl); letter-spacing: 0.01em; color: var(--cream); line-height: 1.1; }
  .nav__list a::after { bottom: 4px; height: 2px; }
  .site-header[data-open] .nav__list { opacity: 1; visibility: visible; transition: opacity var(--mid) var(--ease), visibility 0s; }
  .site-header[data-open] { background: var(--ink); transform: none; }
  .site-header .brand, .site-header .nav-toggle { position: relative; z-index: calc(var(--z-menu) + 1); }
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader { display: none; }
.has-loader .loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  display: block;
  background:
    radial-gradient(40% 40% at 50% 46%, rgba(139, 21, 56, 0.22), transparent 70%),
    var(--ink);
  transition: transform 1000ms var(--ease-io);
}
.has-loader body { overflow: hidden; }
.loader.is-done { transform: translateY(-100%); }
.loader__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__meta {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: var(--s5);
  display: flex; align-items: flex-end; justify-content: space-between;
  color: var(--muted);
}
.loader__count {
  font-family: var(--display);
  font-size: var(--t-3xl);
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  /* "PORTFOLIO" in Anton is 3.78em wide: size it to fill the content width,
     then stretch it vertically like a film title. */
  --wfs: min(calc((100vw - var(--gutter) * 2) / 3.84), 335px);
  --stretch: 2.1;
  --word-h: calc(var(--wfs) * 0.86 * var(--stretch));
  --word-top: calc(var(--header-h) + var(--s3));

  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  /* Tall enough to fill a 1080p screen; capped so very tall monitors don't stretch the stage */
  max-height: 1180px;
  overflow: hidden;
  isolation: isolate;
}
/* Stage light behind the portrait. It lives on its own layer so it can dissolve
   before the hero's bottom edge and melt into the ambient gradient, leaving no seam. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 55% at 50% 58%, rgba(139, 21, 56, 0.3), transparent 72%),
    radial-gradient(120% 70% at 50% 100%, rgba(114, 47, 55, 0.26), transparent 62%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  pointer-events: none;
}

.hero__word {
  position: absolute;
  left: 0; right: 0;
  top: var(--word-top);
  z-index: 0;
  height: var(--word-h);
  overflow: hidden;
  font-family: var(--display);
  font-size: var(--wfs);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  transform: translate3d(0, var(--py, 0px), 0);
  /* Solid at the top, dissolving towards the bottom */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, rgba(0, 0, 0, 0.38) 58%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, rgba(0, 0, 0, 0.38) 58%, transparent 90%);
}
.hero__word-inner {
  display: flex;
  justify-content: center;
  transform: scaleY(var(--stretch));
  transform-origin: 50% 0;
}
.hero__word span {
  display: inline-block;
  padding-top: 0.04em;
  background: linear-gradient(180deg, #c42645 0%, var(--crimson) 46%, rgba(114, 47, 55, 0.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Frosted dissolve over the lower half of the word: the blur grows downwards */
.hero__veil {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--word-top) + var(--word-h) * 0.42);
  height: calc(var(--word-h) * 0.62);
  z-index: 1;
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  /* Fades in and back out, so the blur never ends on a hard line */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 72%, transparent);
  pointer-events: none;
}

/* Viewfinder */
.hero__frame {
  position: absolute;
  inset: calc(var(--header-h) + var(--s2)) var(--s3) var(--s3);
  z-index: 3;
  pointer-events: none;
}
.hero__corner {
  position: absolute;
  width: 21px; height: 21px;
  border: 0 solid rgba(245, 245, 220, 0.32);
}
.hero__corner--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero__corner--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero__corner--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero__corner--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hero__portrait {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  height: min(90%, 1000px);
  aspect-ratio: 2 / 3;
  transform: translate3d(-50%, var(--py, 0px), 0);
  pointer-events: none;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  /* The photo is colour-graded to the palette; CSS adds the rim and back light */
  filter: drop-shadow(0 0 4px rgba(224, 100, 122, 0.3)) drop-shadow(0 0 34px rgba(139, 21, 56, 0.45));
  /* The figure sinks into the floor */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 97%);
}

/* Three columns in a 1 : φ : 1 rhythm; the portrait owns the middle */
.hero__grid {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1.618fr 1fr;
  align-items: end;
  /* Leaves room for the running line of skills at the very bottom */
  padding-bottom: calc(var(--s6) + var(--s5));
}
.hero__intro { grid-column: 1; max-width: 300px; }
.hero__side { grid-column: 3; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s5); }

.hero__hello { font-family: var(--script); font-size: var(--t-3xl); line-height: 1; color: var(--accent-2); margin-bottom: var(--s1); }
.hero__name {
  font-family: var(--display);
  font-size: clamp(var(--t-2xl), 3.6vw, var(--t-4xl));
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero__role { margin-top: var(--s3); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hero__text { margin-top: var(--s3); font-size: var(--t-sm); line-height: 1.618; color: var(--muted); }
.hero__loc {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: var(--s4);
  font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.hero__loc svg { width: 15px; height: 15px; color: var(--accent); }

.stats { display: flex; flex-direction: column; min-width: 190px; }
.stats > div {
  display: grid;
  grid-template-columns: 89px 1fr;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s3);
  border-top: 1px solid var(--line);
}
.stats dd { order: -1; font-family: var(--display); font-size: var(--t-2xl); line-height: 1; color: var(--accent); white-space: nowrap; }
.stats dt { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .hero {
    --stretch: 2;
    --word-top: calc(var(--header-h) + var(--s4));
    height: auto; min-height: 0; max-height: none;
    padding-top: var(--header-h);
  }
  .hero__word {
    position: relative; top: auto; margin-top: var(--s4);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0, 0, 0, 0.5) 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0, 0, 0, 0.5) 85%, transparent 100%);
  }
  .hero__veil {
    top: calc(var(--word-top) + var(--word-h) * 0.6);
    height: calc(var(--word-h) * 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .hero__portrait {
    position: relative; left: auto; transform: none;
    width: min(78vw, 420px); height: auto;
    margin: calc(var(--word-h) * -0.4) auto 0;
  }
  .hero__grid {
    height: auto;
    grid-template-columns: 1fr;
    gap: var(--s5);
    margin-top: -21vw;
    padding-bottom: var(--s5);
  }
  .hero__intro, .hero__side { grid-column: 1; max-width: none; }
  .hero__side { justify-self: stretch; flex-direction: row; align-items: center; gap: var(--s4); }
  .stats { flex: 1; flex-direction: row; min-width: 0; }
  .stats > div { flex: 1; grid-template-columns: 1fr; gap: var(--s1); padding: var(--s3) 0 0; }
  .stats > div + div { padding-left: var(--s3); border-left: 1px solid var(--line); }
  .stats dd { font-size: var(--t-xl); }
}

/* --------------------------------------------------------------------------
   Running line of skills: plain type at the foot of the first screen
   -------------------------------------------------------------------------- */
.marquee {
  position: absolute;
  left: 0; right: 0; bottom: var(--s3);
  z-index: 3;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--s4);
  width: max-content;
  padding-block: var(--s2);
  font-family: var(--display);
  font-size: var(--t-lg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 220, 0.78);
  animation: marquee 48s linear infinite;
}
.marquee__track i { font-style: normal; font-size: var(--t-xs); color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 900px) {
  .marquee { position: relative; bottom: auto; padding-bottom: var(--s4); }
}

/* --------------------------------------------------------------------------
   Selected work: pinned horizontal track on large screens
   -------------------------------------------------------------------------- */
.work { position: relative; }
.work__sticky {
  position: relative;
  padding-block: var(--s7) var(--s5);
  overflow: hidden;
}
.is-pinned .work__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-block: var(--header-h) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work__ghost {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 0;
  font-family: var(--display);
  font-size: 17vw;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 220, 0.07);
  transform: translate3d(calc(var(--p, 0) * -21%), -50%, 0);
  pointer-events: none;
  user-select: none;
}
.motion-off .work__ghost { transform: translate3d(0, -50%, 0); }
.work .section-head { position: relative; z-index: 1; }
.is-pinned .section-head { margin-bottom: var(--s5); }

.work__viewport {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.work__viewport::-webkit-scrollbar { display: none; }
.is-pinned .work__viewport { overflow: visible; scroll-snap-type: none; }
.work:not(.is-pinned) .work__viewport { cursor: grab; }
.work__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.work__viewport.is-dragging .card__media { pointer-events: none; }

.work__track {
  /* Whatever height is left after header, title, captions and controls (≈360px) */
  --card-h: clamp(200px, calc(100vh - 360px), 440px);
  --card-w: calc(var(--card-h) * 0.8);   /* 4:5 */
  display: flex;
  align-items: flex-start;
  gap: var(--s6);
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  padding-block: var(--s4);
  will-change: transform;
}

/* Every card gets an explicit width. Left to size itself, Safari measures a
   card by its image file (900px) instead of the frame, which opened a screen-
   wide empty gap after each card on iPhone. */
.card { flex: none; width: var(--card-w); min-width: 0; scroll-snap-align: center; }
.card--reel { width: calc(var(--card-h) * 1.6); }   /* 16:10 */

/* A print in a thin passe-partout, with the viewfinder corners just outside it */
.card__media {
  --corner: rgba(217, 135, 90, 0.5);
  position: relative;
  display: block;
  width: 100%;
  height: var(--card-h);
  padding: var(--s2);
  border: 1px solid rgba(217, 135, 90, 0.22);
  border-radius: 2px;
  background: var(--ink-2);
  box-shadow: 0 34px 55px -21px rgba(0, 0, 0, 0.75);
  transition: transform var(--slow) var(--ease), border-color var(--mid) var(--ease), box-shadow var(--slow) var(--ease);
}
.card__media::before {
  content: "";
  position: absolute;
  inset: -9px;
  pointer-events: none;
  background:
    linear-gradient(var(--corner), var(--corner)) left top / 13px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left top / 1px 13px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right top / 13px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right top / 1px 13px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left bottom / 13px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left bottom / 1px 13px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right bottom / 13px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right bottom / 1px 13px no-repeat;
}
.card__media picture { display: block; width: 100%; height: 100%; }
.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
  filter: saturate(0.82) brightness(0.86);
  transition: filter var(--mid) var(--ease);
}
.card .card__media:hover,
.card .card__media:focus-visible {
  --corner: rgba(224, 100, 122, 0.95);
  transform: translateY(-8px);
  border-color: rgba(217, 135, 90, 0.5);
  box-shadow: 0 55px 89px -34px rgba(139, 21, 56, 0.55);
}
.card__media:hover img,
.card__media:focus-visible img { filter: none; }

.card__play {
  position: absolute;
  left: 50%; top: 50%;
  width: 55px; height: 55px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(13, 5, 6, 0.45);
  border: 1px solid rgba(245, 245, 220, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0.85;
  transition: transform var(--mid) var(--ease), opacity var(--mid) var(--ease), background-color var(--mid) var(--ease);
}
.card__play svg { width: 18px; height: 18px; margin-left: 3px; color: var(--cream); }
.card__media:hover .card__play,
.card__media:focus-visible .card__play { transform: translate(-50%, -50%) scale(1); opacity: 1; background: var(--crimson); }

/* Caption: N° · TITLE, then details. One typeface (Jost small caps) throughout;
   the title is larger and cream, the number rust. */
.card__meta {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-top: var(--s4);
}
.card__num {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  white-space: nowrap;
}
.card__num::before { content: "N° "; }
.card__meta h3 {
  font-family: var(--sans);
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.card__meta p { margin-top: var(--s1); color: var(--muted); }
.card__link {
  margin-top: var(--s2);
  min-height: 34px;
  color: var(--accent-2);
  border-bottom: 1px solid currentColor;
  line-height: 1.6;
  transition: color var(--fast) linear;
}
.card__link:hover { color: var(--cream); }

/* Progress line + arrows, shared by the pinned and the swipe layouts */
.work__controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s4);
}
.work__progress { flex: 1; }
.work__progress span {
  display: block; height: 1px; background: var(--line-2);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: calc(max(var(--p, 0), 0.04) * 100%) 100%;
}
.work__arrows { display: flex; gap: var(--s2); }
.arrow {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--cream);
  transition: background-color var(--mid) var(--ease), border-color var(--mid) var(--ease), opacity var(--mid) var(--ease);
}
.arrow svg { width: 18px; height: 18px; }
.arrow--prev svg { transform: rotate(180deg); }
.arrow:hover { background: var(--crimson); border-color: var(--crimson); }
.arrow:disabled { opacity: 0.3; cursor: default; background: none; border-color: var(--line-2); }

@media (max-width: 900px) {
  /* Swipe row: equal 4:5 cards, the next one peeking in as a cue. */
  .work__viewport { scroll-padding-inline: var(--gutter); }
  .work__track {
    --card-w: min(74vw, 320px);
    --card-h: calc(var(--card-w) * 1.25);
    gap: var(--s4);
    padding-inline: var(--gutter);
  }
  .card, .card--reel { width: var(--card-w); scroll-snap-align: start; }
}

/* --------------------------------------------------------------------------
   Featured design: an exhibition. Transparent artworks stand under a soft
   stage light, framed only by viewfinder corners (the hero's motif).
   Rows split on the golden ratio: 4 | 4 | 4, then 5 | 7 (≈ 1 : φ).
   -------------------------------------------------------------------------- */
.design { padding-top: var(--s6); }

.exhibit {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s6) var(--s5);
  align-items: start;
}
.exhibit__intro { grid-column: 1 / span 4; align-self: center; }
.piece--logo { grid-column: 5 / span 4; }
.piece--card { grid-column: 9 / span 4; }
/* Apparel: front and back side by side, in matching frames (same as the jersey) */
.piece--uniform { grid-column: 1 / span 6; }
.piece--shirt { grid-column: 7 / span 6; }

/* Private client: its own row, mirrored, set off by a rust hairline */
.exhibit--private {
  position: relative;
  margin-top: var(--s7);
  padding-top: var(--s7);
}
.exhibit--private::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rust) 38.2%, transparent);
  opacity: 0.6;
}
.piece--jersey { grid-column: 1 / span 8; }
.exhibit--private .exhibit__intro { grid-column: 9 / span 4; }
.exhibit--private .eyebrow { color: var(--accent-2); }

.exhibit__index {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s3);
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent-2);
}
.exhibit__index::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.6; }
.exhibit__client {
  font-family: var(--display);
  font-size: var(--t-2xl);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}
.exhibit__text { margin-top: var(--s3); font-size: var(--t-sm); color: var(--muted); max-width: 30em; }
.exhibit__intro .chips { margin-top: var(--s4); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li {
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--cream);
  line-height: 1.4;
}

/* The stage */
.piece__stage {
  --corner: rgba(217, 135, 90, 0.5);
  --spot: radial-gradient(52% 48% at 50% 52%, rgba(139, 21, 56, 0.3), transparent 72%);
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: var(--s5);
  isolation: isolate;
  /* Four viewfinder corners, drawn as hairlines */
  background:
    linear-gradient(var(--corner), var(--corner)) left top / 21px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left top / 1px 21px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right top / 21px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right top / 1px 21px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left bottom / 21px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) left bottom / 1px 21px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right bottom / 21px 1px no-repeat,
    linear-gradient(var(--corner), var(--corner)) right bottom / 1px 21px no-repeat;
}
/* Stage light */
.piece__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--spot);
  opacity: 0.75;
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
/* Floor line the piece stands on */
.piece__stage::after {
  content: "";
  position: absolute;
  left: 21%; right: 21%; bottom: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 245, 220, 0.2), transparent);
}
.piece__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 21px 21px rgba(0, 0, 0, 0.55));
  transition: transform var(--slow) var(--ease);
}
.piece__stage:hover,
.piece__stage:focus-visible { --corner: rgba(224, 100, 122, 0.95); }
.piece__stage:hover::before,
.piece__stage:focus-visible::before { opacity: 1; transform: scale(1.08); }
.piece__stage:hover img,
.piece__stage:focus-visible img { transform: translate3d(0, -5px, 0) scale(1.02); }

/* Per piece: framing and light */
.piece--logo .piece__stage { padding: var(--s6); }
.piece--card .piece__stage { padding: var(--s5) var(--s6); }
/* Both pair images share one canvas (1173×378), so the garments render at the same size;
   a 2:1 frame lets them fill it instead of floating in empty space. */
.piece--uniform .piece__stage,
.piece--shirt .piece__stage { aspect-ratio: 2 / 1; padding: var(--s5) var(--s4); }
.piece--jersey .piece__stage {
  aspect-ratio: 1.618 / 1;
  padding: var(--s5) var(--s6);
  /* Charcoal jersey: a cooler, brighter key light so it lifts off the dark page */
  --spot:
    radial-gradient(46% 42% at 50% 50%, rgba(245, 245, 220, 0.09), transparent 72%),
    radial-gradient(60% 55% at 50% 55%, rgba(160, 82, 45, 0.26), transparent 74%);
}

/* Caption: N° · title · discipline */
/* Same layout as the Selected Work captions: N° beside the title, discipline beneath it */
.piece figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: var(--s3);
  row-gap: var(--s1);
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.piece__no {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  white-space: nowrap;
}
.piece__no::before { content: "N° "; }
.piece figcaption strong {
  font-family: var(--sans);
  font-size: var(--t-md);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.piece figcaption em { grid-column: 2; font-style: normal; color: var(--muted); }

@media (max-width: 900px) {
  .exhibit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
  .exhibit__intro,
  .exhibit--private .exhibit__intro { grid-column: 1 / -1; }
  .exhibit--private .exhibit__intro { order: -1; }
  .piece--logo, .piece--card { grid-column: span 1; }
  .piece--uniform, .piece--shirt, .piece--jersey { grid-column: 1 / -1; }
  .piece--logo .piece__stage,
  .piece--card .piece__stage { padding: var(--s4); }
  .exhibit--private { margin-top: var(--s6); padding-top: var(--s6); }
  /* Half-width captions: number on its own line so the title gets the full width */
  .piece--logo figcaption,
  .piece--card figcaption { grid-template-columns: 1fr; }
  .piece--logo figcaption em,
  .piece--card figcaption em { grid-column: 1; }
  .piece--logo figcaption strong,
  .piece--card figcaption strong { font-size: var(--t-sm); letter-spacing: 0.08em; }
}

/* --------------------------------------------------------------------------
   Band: education & skills · process · quote  (1 : 1 : 1/φ)
   -------------------------------------------------------------------------- */
.band {
  border-block: 1px solid var(--line);
  background: rgba(21, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  padding-inline: 0;
}
.band__col { padding: var(--s6) var(--s5); }
.band__col:first-child { padding-left: var(--gutter); }
.band__col + .band__col { border-left: 1px solid var(--line); }
.band__title {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--s5);
}
.edu {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.edu strong { display: block; font-size: var(--t-md); font-weight: 500; }
.edu p span { font-size: var(--t-sm); color: var(--muted); }
.edu__year { font-size: var(--t-xs); letter-spacing: 0.12em; color: var(--accent); white-space: nowrap; }

.steps { position: relative; display: grid; gap: var(--s4); }
.steps::before {
  content: "";
  position: absolute;
  left: 17px; top: 17px; bottom: 17px;
  width: 1px;
  background: linear-gradient(var(--crimson), rgba(139, 21, 56, 0.2));
}
.steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: var(--s3); align-items: center; }
.steps__icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--crimson);
  background: var(--ink-2);
  color: var(--accent);
}
.steps__icon svg { width: 15px; height: 15px; }
.steps strong { display: block; font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.steps p { font-size: var(--t-sm); color: var(--muted); line-height: 1.5; }

.quote {
  display: flex;
  flex-direction: column;
  padding: var(--s6) var(--s5);
  background:
    radial-gradient(100% 70% at 100% 0%, rgba(160, 82, 45, 0.35), transparent 60%),
    linear-gradient(160deg, var(--crimson), #3d0b17);
}
.quote__mark { font-family: var(--serif); font-size: 89px; line-height: 0.6; color: rgba(245, 245, 220, 0.85); height: 34px; }
.quote blockquote p {
  margin-top: var(--s4);
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 500;
  line-height: 1.25;
}
.quote__sign { margin-top: var(--s4); font-family: var(--script); font-size: var(--t-4xl); line-height: 1; color: var(--cream); }
.quote__cta {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: auto; padding-top: var(--s5);
  font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245, 245, 220, 0.85);
}
.quote__cta svg { width: 11px; height: 11px; color: var(--cream); }
.quote__cta use { fill: currentColor; stroke: none; }

@media (max-width: 1000px) {
  .band__grid { grid-template-columns: 1fr 1fr; padding-inline: var(--gutter); }
  .band__col { padding: var(--s6) 0; }
  .band__col:first-child { padding-left: 0; padding-right: var(--s5); }
  .band__col + .band__col { padding-left: var(--s5); }
  .quote { grid-column: 1 / -1; margin-inline: calc(var(--gutter) * -1); }
}
@media (max-width: 640px) {
  .band__grid { grid-template-columns: 1fr; }
  .band__col, .band__col:first-child, .band__col + .band__col { padding: var(--s6) 0; border-left: 0; }
  .band__col + .band__col { border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   About (1 : φ)
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  gap: var(--s7);
  align-items: start;
}

.about__photo figcaption { margin-top: var(--s3); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.about__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--frame);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 60% at 60% 35%, #b3203f 0%, var(--crimson) 35%, #3d0b17 75%, var(--ink) 100%);
}
.about__frame::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 34%;
  background: linear-gradient(to bottom, transparent, rgba(13, 5, 6, 0.85));
}
.about__frame img {
  /* The cutout has empty space above the head; size by height so the head clears the frame. */
  position: absolute;
  left: 50%;
  bottom: -14%;
  height: 112%;
  width: auto;
  max-width: none;
  transform: translate3d(-50%, var(--py, 0px), 0);
  filter: drop-shadow(0 0 4px rgba(224, 100, 122, 0.28)) drop-shadow(0 0 21px rgba(0, 0, 0, 0.45));
}

.about__lead { font-size: var(--t-lg); font-weight: 300; line-height: 1.5; max-width: 34em; }

.traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s2) var(--s4);
  margin-top: var(--s5);
}
.traits li { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); color: var(--muted); }
.traits li::before { content: "✦"; font-size: 9px; color: var(--accent); }

.about__cols {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: var(--s6);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.xp li {
  display: grid;
  grid-template-columns: 89px 1fr;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
}
.xp li:first-child { padding-top: 0; }
.xp span { font-size: var(--t-xs); letter-spacing: 0.1em; color: var(--accent); padding-top: 2px; }
.xp p { font-size: var(--t-sm); color: var(--muted); line-height: 1.5; }
.xp strong { display: block; font-size: var(--t-md); font-weight: 500; color: var(--cream); }

.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3) var(--s2); margin-bottom: var(--s5); }
.tools li { display: flex; flex-direction: column; align-items: center; gap: var(--s1); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--muted); }
.tools span {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--frame);
  border-radius: 8px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  font-family: var(--display);
  font-size: var(--t-lg);
  color: var(--accent-2);
}
.langs { font-size: var(--t-sm); color: var(--muted); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .about__photo { max-width: 380px; }
  .about__cols { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 480px) { .traits { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Contact (1 : 1 : 1/φ)
   -------------------------------------------------------------------------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.618fr;
  gap: var(--s6);
  align-items: center;
}
.contact__title {
  font-family: var(--display);
  font-size: clamp(var(--t-3xl), 4vw, var(--t-4xl));
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.contact__title .star { display: inline-block; vertical-align: top; width: 0.42em; height: 0.42em; margin-left: 4px; }
.contact__intro > p { margin-top: var(--s4); font-size: var(--t-sm); color: var(--muted); max-width: 30em; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  margin-top: var(--s5);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.cta__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--crimson);
  border-radius: 50%;
  transition: background-color var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.cta__icon svg { width: 18px; height: 18px; color: var(--cream); }
.cta:hover .cta__icon { background: var(--crimson); transform: rotate(-45deg); }

/* Secondary action: quieter cream outline, the arrow drops instead of turning */
.cta--cv { color: var(--cream); }
.cta--cv .cta__icon { border-color: var(--line-2); }
.cta--cv:hover .cta__icon { background: rgba(245, 245, 220, 0.08); border-color: var(--cream); transform: translateY(3px); }

.contact__list li > a,
.contact__list li > span:first-child:not(.ci) { display: flex; }
.contact__list li > a,
.contact__list li:last-child {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--line);
}
.contact__list li:first-child > a { border-top: 1px solid var(--line); }
.contact__list a { transition: color var(--fast) linear; }
.contact__list a:hover { color: var(--accent-2); }
.contact__list small { display: block; font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); line-height: 1.4; }
.contact__list span:last-child { font-size: var(--t-md); line-height: 1.4; overflow-wrap: anywhere; }
.ci {
  flex: none;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--crimson);
  border-radius: 50%;
  color: var(--accent);
}
.ci svg { width: 15px; height: 15px; }

.contact__logo { position: relative; aspect-ratio: 1; }
.contact__logo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (max-width: 1000px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__logo { display: none; }
}
@media (max-width: 640px) { .contact__grid { grid-template-columns: 1fr; gap: var(--s5); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); color: var(--faint); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s3) var(--s5);
  padding-block: var(--s4);
}
.site-footer__logo { width: 120px; height: auto; opacity: 0.85; }
.site-footer__links { display: flex; align-items: center; gap: var(--s5); }
.site-footer__top,
.site-footer__motion { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; color: var(--muted); transition: color var(--fast) linear; }
.site-footer__top:hover,
.site-footer__motion:hover { color: var(--cream); }
/* A small live dot: breathing while motion plays, dim when paused. */
.site-footer__motion i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(217, 135, 90, 0.5);
  animation: live 2.6s ease-in-out infinite;
}
.motion-off .site-footer__motion i { background: var(--faint); box-shadow: none; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(217, 135, 90, 0); opacity: 0.55; } }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0;
  padding: var(--s7) var(--gutter) var(--s4);
  border: 0; background: transparent; color: var(--cream); overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3); }
.lightbox::backdrop { background: rgba(8, 3, 4, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open] .lightbox__stage { animation: lb-in var(--mid) var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.lightbox__stage { display: grid; place-items: center; width: 100%; min-height: 0; }
.lightbox__stage video,
.lightbox__stage img {
  max-width: min(100%, 1200px);
  max-height: calc(100svh - 160px);
  width: auto; height: auto;
  border-radius: var(--radius);
  background: #000;
}
/* Transparent artwork: shown on the dark backdrop under the same stage light */
.lightbox__stage img.is-design {
  background: radial-gradient(50% 50% at 50% 50%, rgba(139, 21, 56, 0.28), transparent 72%);
  padding: clamp(13px, 3vw, 34px);
  filter: drop-shadow(0 21px 34px rgba(0, 0, 0, 0.6));
}
.lightbox__stage video.is-landscape { width: min(100%, 1200px); }
.lightbox__stage video.is-portrait { height: calc(100svh - 160px); aspect-ratio: 9 / 16; }
.lightbox__caption { font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lightbox__close {
  position: absolute; top: var(--s3); right: max(var(--s3), calc(var(--gutter) - 13px));
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line-2);
  transition: background-color var(--fast) linear, border-color var(--fast) linear;
}
.lightbox__close:hover { background: rgba(245, 245, 220, 0.08); border-color: var(--cream); }
.lightbox__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   Motion (only with .anim: JS on and motion allowed)
   -------------------------------------------------------------------------- */
.anim .hero__word span {
  transform: translate3d(0, 105%, 0);
  transition: transform 1300ms var(--ease);
}
.anim .hero__word span:nth-child(1) { transition-delay: 0ms; }
.anim .hero__word span:nth-child(2) { transition-delay: 55ms; }
.anim .hero__word span:nth-child(3) { transition-delay: 110ms; }
.anim .hero__word span:nth-child(4) { transition-delay: 165ms; }
.anim .hero__word span:nth-child(5) { transition-delay: 220ms; }
.anim .hero__word span:nth-child(6) { transition-delay: 275ms; }
.anim .hero__word span:nth-child(7) { transition-delay: 330ms; }
.anim .hero__word span:nth-child(8) { transition-delay: 385ms; }
.anim .hero__word span:nth-child(9) { transition-delay: 440ms; }

.anim .hero__portrait img {
  opacity: 0;
  transform: translate3d(0, 5%, 0) scale(1.04);
  transition: opacity 1400ms var(--ease) 350ms, transform 1600ms var(--ease) 350ms;
}
.anim [data-intro] {
  opacity: 0;
  transform: translate3d(0, 21px, 0);
  transition: opacity 1000ms var(--ease) 800ms, transform 1000ms var(--ease) 800ms;
}
.anim[data-ready] .hero__word span,
.anim[data-ready] .hero__portrait img,
.anim[data-ready] [data-intro] { opacity: 1; transform: none; }

.anim [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
  transition-delay: var(--rd, 0ms);
}
.anim [data-reveal].is-in { opacity: 1; transform: none; }

/* "Pause motion" in the footer. The site does not follow the system's
   reduce-motion flag on its own: Windows raises it whenever "Animation
   effects" is off, which left the whole page still on many PCs. */
.motion-off *, .motion-off *::before, .motion-off *::after {
  animation-play-state: paused !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0ms !important;
}
.motion-off .lightbox__stage { animation: none !important; }   /* would freeze at opacity 0 */
