/* ============================================================
   SEBASTIAN HADL — sebastianhadl.com
   Design system: "console" — near-black, warm ink, VU amber.
   Type: Clash Display / General Sans / JetBrains Mono
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/clash-display-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/clash-display-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/general-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/general-sans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0c0c0b;
  --bg-2: #111110;
  --ink: #ece9e2;
  --ink-65: rgba(236, 233, 226, 0.65);
  --ink-55: rgba(236, 233, 226, 0.55);
  --ink-35: rgba(236, 233, 226, 0.35);
  --line: rgba(236, 233, 226, 0.14);
  --line-soft: rgba(236, 233, 226, 0.08);
  --accent: #ffb020;
  --accent-ink: #0c0c0b;
  --display: 'Clash Display', 'Arial Narrow', sans-serif;
  --body: 'General Sans', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --gutter: clamp(1.25rem, 3.4vw, 3.5rem);
  --section-gap: clamp(6rem, 14vh, 11rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis { height: auto; }
/* Lenis drives scrolling itself — native smooth scrolling must be off, or the
   browser animates every position Lenis sets and the two fight (Chrome jank). */
.lenis, .lenis body { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--accent-ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 1.5px dashed var(--accent); outline-offset: 4px; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -60px; z-index: 70; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.055;
  animation: grain 0.9s steps(4) infinite;
  will-change: transform;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-14px, 9px); }
  50% { transform: translate(11px, -6px); }
  75% { transform: translate(-6px, -12px); }
  100% { transform: translate(0, 0); }
}

/* ---------- Preloader ---------- */
.loader { display: none; }
html.js .loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 0% 0);
}
.loader__inner { width: min(420px, 78vw); }
.loader__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  margin-bottom: 0.9rem; text-transform: uppercase;
}
.loader__row--sub { margin: 0.9rem 0 0; color: var(--ink-55); }
.loader__db { font-size: 0.85rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.loader__meter { height: 2px; background: var(--line); overflow: hidden; }
.loader__meter-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ink) 78%, var(--accent));
}
.loader__rec { display: inline-flex; align-items: center; gap: 0.5em; }
.rec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: blink 1.1s steps(2) infinite;
}
.rec-dot--live { width: 6px; height: 6px; margin-right: 0.55em; }
@keyframes blink { 50% { opacity: 0.15; } }
.loader.is-done { pointer-events: none; }

/* ---------- Cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 110;
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--ink);
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  mix-blend-mode: difference;
  opacity: 0;
  transition: width 0.32s var(--ease-out), height 0.32s var(--ease-out),
              background-color 0.32s, mix-blend-mode 0s;
}
.cursor__label {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--accent-ink);
  opacity: 0; transition: opacity 0.2s;
  white-space: nowrap;
}
.cursor.is-hover { width: 56px; height: 56px; }
.cursor.has-label {
  width: 74px; height: 74px;
  background: var(--accent);
  mix-blend-mode: normal;
}
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.is-down { transform: translate(-50%, -50%) scale(0.82); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  /* no mix-blend-mode here: a full-width fixed blended layer forces Chrome to
     re-composite the page beneath it on every scroll frame */
  color: var(--ink);
  text-shadow: 0 1px 14px rgba(12, 12, 11, 0.75);
  transition: transform 0.55s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo {
  font-family: var(--display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.04em;
}
.nav__links { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav__link {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-flex; gap: 0.5em; align-items: baseline;
  position: relative; padding-block: 0.2em;
}
.nav__idx { color: var(--ink-35); font-size: 0.6rem; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__meta { color: var(--ink-55); font-variant-numeric: tabular-nums; }
.nav__burger { display: none; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 75;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(env(safe-area-inset-top) + 5.5rem) var(--gutter) 2.2rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-expo), visibility 0s 0.7s;
}
.menu.is-open { clip-path: inset(0 0 0% 0); visibility: visible; transition-delay: 0s, 0s; }
.menu__links { display: flex; flex-direction: column; margin-block: auto; }
.menu__link {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.12;
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.35em 0; border-bottom: 1px solid var(--line-soft);
  transform: translateY(40px); opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s;
}
.menu__link .mono { color: var(--accent); font-size: 0.7rem; }
.menu.is-open .menu__link { transform: none; opacity: 1; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.06s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.12s; }
.menu__foot { display: flex; justify-content: space-between; color: var(--ink-55); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) 1.4rem;
  overflow: clip;
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  margin: 0; overflow: hidden;
  opacity: 0.34;
  transition: opacity 1.3s var(--ease-out);
}
html.js .hero__photo.is-in { opacity: 0.34; }
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 18% 46%;
  filter: grayscale(1) contrast(1.06) brightness(0.68);
}
.hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 10%, rgba(12, 12, 11, 0.12) 58%),
    linear-gradient(to bottom, var(--bg) 4%, rgba(12, 12, 11, 0) 32%),
    linear-gradient(to right, var(--bg) 2%, rgba(12, 12, 11, 0) 34%),
    linear-gradient(to left, var(--bg) 3%, rgba(12, 12, 11, 0) 30%);
}

/* ROOM fader: a working channel fader that rides the room light */
.fader {
  position: absolute; right: var(--gutter); top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.8rem;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.fader__label, .fader__db { font-size: 0.6rem; color: var(--ink-35); transition: color 0.3s; }
.fader__db { font-variant-numeric: tabular-nums; min-width: 6ch; text-align: center; }
.fader__track {
  position: relative;
  width: 2px; height: clamp(130px, 20vh, 190px);
  background: var(--line);
}
.fader__track::before {
  content: ''; position: absolute; left: -7px; right: -7px; top: 0; bottom: 0;
  background: repeating-linear-gradient(to bottom, var(--line-soft) 0 1px, transparent 1px 25%);
  pointer-events: none;
}
.fader__cap {
  position: absolute; left: 50%; bottom: calc(50% - 7px);
  transform: translateX(-50%);
  width: 30px; height: 14px;
  background: var(--ink);
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.fader__cap::after {
  content: ''; position: absolute; left: 3px; right: 3px; top: 50%;
  height: 1.5px; margin-top: -0.75px;
  background: var(--accent);
}
.fader:hover .fader__label, .fader:hover .fader__db,
.fader:focus-visible .fader__label, .fader:focus-visible .fader__db { color: var(--ink-55); }
.hero__top {
  position: absolute; top: 4.6rem; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--ink-55);
  z-index: 2;
}
.hero__title {
  position: relative; z-index: 2;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.9rem, 13.5vw, 16rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero__line { display: flex; align-items: flex-end; justify-content: space-between; overflow: hidden; padding-top: 0.05em; }
.hero__word { display: inline-block; white-space: nowrap; }
.hero__word .ch { display: inline-block; will-change: transform; }
.hero__roles {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 0.35em;
  color: var(--ink-55);
  font-size: clamp(0.6rem, 0.9vw, 0.8rem);
  padding-bottom: 0.14em;
  line-height: 1;
}
.hero__bottom {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  color: var(--ink-55);
}
.hero__scroll { display: inline-flex; gap: 0.6em; align-items: baseline; color: var(--ink); }
.hero__scroll-arrow { display: inline-block; animation: bob 1.6s var(--ease-out) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- Section head ---------- */
section { position: relative; }
.section-head {
  display: flex; align-items: baseline; gap: clamp(1rem, 2.5vw, 2rem);
  padding: 1.2rem var(--gutter) 0;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section-head__ch { color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.section-head__title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.6rem, 7.4vw, 7.5rem);
  line-height: 0.95; letter-spacing: -0.01em;
  overflow: hidden;
}
.section-head__title .ch { display: inline-block; }
.section-head__count { margin-left: auto; color: var(--ink-55); white-space: nowrap; flex-shrink: 0; }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

/* ---------- Work ---------- */
.work { padding-top: 0; margin-top: var(--section-gap); }
.work__hint { padding: 0 var(--gutter); color: var(--ink-35); margin-bottom: 1.6rem; }
.work__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 20vw, 300px);
  gap: clamp(1.25rem, 2.6vw, 3rem);
  align-items: start;
  padding-right: var(--gutter);
}
.work__list { border-bottom: 1px solid var(--line-soft); }
.work-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1.6fr) minmax(0, 0.85fr) 6.5rem 3.5rem;
  align-items: baseline;
  gap: clamp(0.8rem, 2vw, 2rem);
  padding: 1.15rem 0.5rem 1.15rem var(--gutter);
  border-top: 1px solid var(--line-soft);
  position: relative;
  opacity: 0.58;
  transition: opacity 0.3s;
}
.work-row__idx { color: var(--ink-35); transition: color 0.3s; }
.work-row__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.3rem, 2.15vw, 1.95rem);
  line-height: 1.05;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform 0.45s var(--ease-out);
}
.work-row__artist {
  color: var(--ink-55);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-row__roles { display: flex; gap: 0.4rem; justify-self: start; }
.role-chip {
  color: var(--ink-35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32em 0.7em;
  font-size: 0.6rem;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.work-row__dur { color: var(--ink-35); justify-self: end; font-variant-numeric: tabular-nums; }
.work-row::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  z-index: 1;
}
@media (hover: hover) {
  .work-row:hover { opacity: 1; }
  .work-row:hover .work-row__title { transform: translateX(10px); }
  .work-row:hover .work-row__idx { color: var(--accent); }
  .work-row:hover .role-chip { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
  .work-row:hover::after { transform: scaleX(1); }
}

/* row reveal (JS adds .in when scrolled into view) */
html.js .work-row:not(.in) { opacity: 0; transform: translateY(22px); }
html.js .work-row.in { transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
html.js .work-row.in:hover { transition: opacity 0.25s; }

/* docked artwork monitor */
.work__dock { position: sticky; top: 7.5rem; }
.work__dock-frame {
  position: relative; aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.work__dock-frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.work__dock-badge {
  position: absolute; top: 0.7rem; left: 0.7rem;
  background: var(--bg); color: var(--ink);
  padding: 0.35em 0.6em; font-size: 0.62rem;
}
.work__dock-caption {
  margin-top: 0.85rem; color: var(--ink-35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* mobile cards */
.work__grid { display: none; }

.work__cta { display: flex; justify-content: center; padding: 3.2rem var(--gutter) 0; }

/* ---------- Pills ---------- */
.pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.8em;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1.05em 1.9em;
  overflow: hidden;
  transition: color 0.4s var(--ease-out), border-color 0.4s;
}
.pill > * { position: relative; z-index: 1; }
.pill::before {
  content: ''; position: absolute; inset: -1px;
  background: var(--ink);
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform 0.5s var(--ease-expo);
  z-index: 0;
}
.pill:hover { color: var(--bg); border-color: var(--ink); }
.pill:hover::before { transform: translateY(0); }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill__arrow { font-family: var(--body); }
.pill--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.pill--accent .pill__dot { background: var(--accent-ink); }
.pill--accent:hover { color: var(--bg); }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: var(--section-gap);
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.marquee__label { padding: 0 var(--gutter); color: var(--ink-35); margin-bottom: 1.6rem; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track + .marquee__track { margin-top: 0.5em; }
.marquee__inner {
  display: flex; align-items: center; flex-shrink: 0;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.4vw, 4.6rem);
  line-height: 1;
  padding-right: 0.8em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink-55);
}
.marquee__track--rev .marquee__inner { -webkit-text-stroke-color: var(--ink-35); }
.marquee__inner span { padding: 0.1em 0.8em 0.16em 0; white-space: nowrap; transition: color 0.4s, -webkit-text-stroke-color 0.4s; }
.marquee__inner span:hover { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
.marquee__inner i {
  font-style: normal; font-size: 0.16em;
  color: var(--accent); -webkit-text-stroke: 0;
  padding-right: 5em;
  align-self: center;
}

/* ---------- About ---------- */
.about { margin-top: var(--section-gap); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 6rem);
  padding: 0 var(--gutter);
  align-items: start;
}
.about__media { position: relative; padding-bottom: clamp(3rem, 8vw, 5rem); }
.about__img { overflow: hidden; position: relative; }
.about__img img { will-change: transform; transform: scale(1.12); }
.about__img--main { width: 84%; aspect-ratio: 4 / 5; }
.about__img--main img { height: 100%; object-fit: cover; }
.about__img--accent {
  position: absolute;
  right: 0; bottom: 0;
  width: 52%;
  aspect-ratio: 3 / 2;
  outline: 6px solid var(--bg);
}
.about__img--accent img { height: 100%; object-fit: cover; }
.about__body { max-width: 40rem; }
.about__lede {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.7rem, 3.1vw, 2.9rem);
  line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: clamp(1.8rem, 4vh, 3rem);
}
.about__text p { color: var(--ink-65); max-width: 34rem; }
.about__text p + p { margin-top: 1.2em; }
.about__text strong { color: var(--ink); font-weight: 500; }
.about__services { list-style: none; margin-top: clamp(2.2rem, 5vh, 3.4rem); border-bottom: 1px solid var(--line-soft); }
.about__services li {
  display: flex; align-items: baseline; gap: 1.2rem;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  padding: 0.75em 0;
  border-top: 1px solid var(--line-soft);
}
.about__services .mono { color: var(--accent); font-size: 0.66rem; }
.about__facts {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.6em 1.8em;
  margin-top: 2rem; color: var(--ink-35);
}

/* ---------- Contact ---------- */
.contact { margin-top: var(--section-gap); padding-bottom: clamp(4rem, 9vh, 7rem); }
.contact__lede {
  padding: 0 var(--gutter);
  font-family: var(--body); font-weight: 400;
  color: var(--ink-55);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  margin-bottom: clamp(1.4rem, 3.5vh, 2.6rem);
}
.contact__email {
  display: block;
  padding: 0 var(--gutter);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 6.6vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  overflow: hidden;
  width: fit-content;
  position: relative;
  transition: color 0.4s;
}
.contact__email::after {
  content: ''; position: absolute; left: var(--gutter); right: 0; bottom: 0.04em;
  height: 0.045em; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-expo);
}
.contact__email:hover { color: var(--accent); }
.contact__email:hover::after { transform: scaleX(1); }
.contact__row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  padding: 0 var(--gutter);
  margin-top: clamp(2.4rem, 6vh, 4rem);
}
.contact__socials {
  display: flex; flex-wrap: wrap; gap: 1.6em 2.4em;
  padding: 0 var(--gutter);
  margin-top: clamp(2.6rem, 6vh, 4.2rem);
  color: var(--ink-55);
}
.contact__socials a { display: inline-flex; gap: 0.5em; position: relative; padding-block: 0.2em; transition: color 0.3s; }
.contact__socials a span { transition: transform 0.35s var(--ease-out); display: inline-block; }
.contact__socials a:hover { color: var(--ink); }
.contact__socials a:hover span { transform: translate(3px, -3px); color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem var(--gutter) calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--ink-55);
}
.footer__time { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.footer__top { color: var(--ink); }
.footer__top span { display: inline-block; transition: transform 0.35s var(--ease-out); }
.footer__top:hover span { transform: translateY(-3px); }

/* ---------- Reveal primitives (JS-gated) ---------- */
html.js .fade-up { opacity: 0; transform: translateY(30px); }
html.js .fade-up.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
html.js [data-split] .ch { transform: translateY(115%); }
html.js .hero__top, html.js .hero__bottom, html.js .hero__roles { opacity: 0; }
html.js .hero__photo { opacity: 0; }
html.js .img-reveal { clip-path: inset(100% 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .work-row { grid-template-columns: 2.6rem minmax(0, 1.3fr) minmax(0, 1fr) 6.5rem; }
  .work-row__dur { display: none; }
}

@media (max-width: 900px) {
  .nav__links, .nav__meta { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 7px;
    padding: 0.6rem 0.2rem;
  }
  .nav__burger span {
    width: 26px; height: 1.5px; background: var(--ink);
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

  .hero__title { font-size: clamp(2.9rem, 13.2vw, 16rem); }
  .hero__top { flex-direction: column; gap: 0.5em; top: 5.6rem; }
  .section-head { flex-wrap: wrap; row-gap: 0.4rem; }
  .hero__top-right { display: none; }
  .hero__coords { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: 2; margin-top: 1rem; }
  .about__img--main { width: 88%; }

  /* list → grid swap */
  .work__layout { display: block; padding-right: 0; }
  .work__list, .work__hint, .work__dock { display: none; }
  .hero__photo { opacity: 0.28; }
  html.js .hero__photo.is-in { opacity: 0.28; }
  .work__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem clamp(0.9rem, 3vw, 1.6rem);
    padding: 0 var(--gutter);
  }
  .work-card { position: relative; }
  .work-card__imgwrap { display: block; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); }
  .work-card__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
  .work-card__meta { display: flex; flex-direction: column; gap: 0.1em; margin-top: 0.75em; }
  .work-card__title {
    font-family: var(--display); font-weight: 500;
    font-size: 1.05rem; line-height: 1.2;
  }
  .work-card__artist { color: var(--ink-55); font-size: 0.85rem; }
  .work-card__idx {
    position: absolute; top: 0.6rem; left: 0.6rem;
    background: var(--bg); color: var(--ink);
    padding: 0.3em 0.55em; font-size: 0.6rem;
  }
}

@media (max-width: 560px) {
  .footer { flex-wrap: wrap; row-gap: 0.6rem; }
  .contact__row .pill { width: 100%; justify-content: center; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .hero__bottom { font-size: 0.62rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
  html.js [data-split] .ch { transform: none; }
  html.js .fade-up { opacity: 1; transform: none; }
  html.js .hero__top, html.js .hero__bottom, html.js .hero__roles { opacity: 1; }
  html.js .img-reveal { clip-path: none; }
  html.js .work-row:not(.in) { opacity: 0.58; transform: none; }
  html.js .hero__photo { opacity: 0.34; }
  .about__img img { transform: none; }
  .grain { animation: none; }
  .marquee__track { transform: none !important; }
}
