/* =========================================================
   Anthony Paesano — Composer
   Built from the Claude Design export "Home — one-page site"
   ========================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../assets/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/ibmplexmono/v23/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/ibmplexmono/v23/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgg.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-alt: #0f0f10;
  --bg-deep: #070708;
  --panel: #111112;
  --ink: #ebe7df;
  --text: #b3afa7;
  --soft: #d9d5cc;
  --muted: #8c887f;
  --dim: #a9a59d;
  --accent: #c2302a;
  --line-06: rgba(235,231,223,.06);
  --line-08: rgba(235,231,223,.08);
  --line-10: rgba(235,231,223,.10);
  --line-12: rgba(235,231,223,.12);
  --line-14: rgba(235,231,223,.14);
  --line-18: rgba(235,231,223,.18);
  --line-20: rgba(235,231,223,.20);
  --serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --sans: 'Jost', Futura, 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(88px, 10vw, 140px);
  --film-w: clamp(300px, 60vw, 860px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --grain: .08;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
a:hover { color: #fff; }
::selection { background: var(--ink); color: var(--bg); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
h1, h2, h3, p, figure, ol { margin: 0; }
section[id] { scroll-margin-top: 80px; }

.page { position: relative; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px; line-height: 1.4;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.section-title {
  font-family: var(--serif); font-size: clamp(56px, 6.6vw, 96px); font-weight: 500;
  line-height: .95; letter-spacing: -.01em; color: var(--ink);
}
.section-head {
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.section-head p { max-width: 52ch; text-wrap: balance; }
.section-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }

.monogram {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  border: 1px solid rgba(235,231,223,.55); border-radius: 50%;
  font-family: var(--serif); font-size: 20px; font-style: italic; font-weight: 500;
  line-height: 1; letter-spacing: .02em; color: var(--ink);
  transition: border-color .35s ease, background-color .35s ease;
}

/* ---------- Buttons, chips, links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 36px;
  font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, scale .2s ease;
}
.btn:active { scale: .98; }
.btn-solid { background: var(--ink); color: var(--bg); border: 0; cursor: pointer; }
.btn-solid:hover { background: #fff; color: var(--bg); }
.btn-ghost { border: 1px solid rgba(235,231,223,.4); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(235,231,223,.06); }

.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-18); color: var(--soft);
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.chip:hover { color: #fff; border-color: rgba(235,231,223,.6); }
.chip svg { flex: none; transition: transform .35s var(--ease); }
.chip:hover .i-out { transform: translate(2px, -2px); }
.chip--mail { gap: 12px; padding: 0 18px; font-size: 15px; font-weight: 400; letter-spacing: .04em; text-transform: none; }

/* Text link with an arrow and a drawn underline */
.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--soft);
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 30px; bottom: 8px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .45s var(--ease);
}
.link-arrow:hover { color: #fff; }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { flex: none; transition: transform .45s var(--ease); }
.link-arrow:hover .i-next { transform: translateX(5px); }
.link-arrow:hover .i-out { transform: translate(3px, -3px); }

/* Magnetic elements follow the cursor a few pixels (see main.js) */
[data-magnetic] { transition-property: background-color, color, border-color, scale, translate, opacity; transition-duration: .25s, .25s, .25s, .2s, .45s, .25s; transition-timing-function: ease, ease, ease, ease, var(--ease), ease; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,.78);
  border-bottom: 1px solid var(--line-08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .4s ease, border-color .4s ease;
}
.site-header.is-scrolled { background: rgba(10,10,11,.92); border-bottom-color: var(--line-10); }
.site-header__inner {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px;
}
.brand { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.brand:hover .monogram { border-color: var(--ink); background: rgba(235,231,223,.05); }
.brand__name {
  font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .32em;
  text-transform: uppercase; color: var(--ink);
}
.main-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(18px, 2.6vw, 40px); }

.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 48px;
  font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--soft);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: .24em; bottom: 11px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .35s ease;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px;
  background: transparent; border: 0; color: var(--ink); cursor: pointer;
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.menu-toggle__icon { position: relative; display: block; width: 22px; height: 10px; }
.menu-toggle__icon i {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: 9px; }
.site-header.is-open .menu-toggle__icon i:first-child { top: 5px; transform: rotate(45deg); }
.site-header.is-open .menu-toggle__icon i:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Ambient layers (fog, torch light) ---------- */
.hero__layer, .hero__vignette, .hero__stage, .torch { position: absolute; pointer-events: none; }
.hero__layer { inset: 0; }
.hero__fog {
  position: absolute; left: -12%; top: -6%; width: 78%; height: 92%;
  background: radial-gradient(closest-side, rgba(235,231,223,.085), rgba(235,231,223,0));
  animation: drift 38s ease-in-out infinite alternate;
}
.hero__fog-2 {
  position: absolute; right: -16%; bottom: -14%; width: 82%; height: 96%;
  background: radial-gradient(closest-side, rgba(160,172,190,.07), rgba(160,172,190,0));
  animation: drift-2 46s ease-in-out infinite alternate;
}
.hero__vignette { inset: 0; background: radial-gradient(ellipse 75% 65% at 50% 42%, rgba(10,10,11,0) 30%, rgba(10,10,11,.9) 100%); }

/* A soft light that follows the cursor, like a torch in the dark */
.torch {
  inset: 0; opacity: 0; transition: opacity .9s ease;
  background: radial-gradient(circle 340px at var(--mx, 50%) var(--my, 45%), rgba(235,231,223,.055), rgba(235,231,223,0) 70%);
}
.torch-on .torch { opacity: 1; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 820px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px var(--gutter) 220px; text-align: center; background: var(--bg);
}
/* Light under a door, with a presence passing behind it */
.hero__stage { left: 50%; bottom: 36px; width: min(1120px, 92%); height: 210px; transform: translateX(-50%); }
.hero__light { position: absolute; inset: 0; animation: flicker 11s linear infinite; }
.hero__light span { position: absolute; display: block; }
.hero__light .l1 { left: 4%; right: 4%; top: 36px; height: 84px; background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255,224,188,.05), rgba(255,224,188,0) 72%); }
.hero__light .l2 { left: -8%; right: -8%; top: 122px; height: 88px; background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(255,224,188,.075), rgba(255,224,188,0) 74%); }
.hero__light .l3 { left: 0; right: 0; top: 114px; height: 14px; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,232,206,.16), rgba(255,232,206,0) 100%); }
.hero__light .l4 {
  left: 0; right: 0; top: 120px; height: 2px; border-radius: 2px;
  background: linear-gradient(to right, rgba(255,236,214,0), rgba(255,236,214,.4) 10%, rgba(255,236,214,.48) 50%, rgba(255,236,214,.4) 90%, rgba(255,236,214,0));
  box-shadow: 0 0 20px 2px rgba(255,222,180,.12);
}
.hero__presence {
  position: absolute; top: 92px; left: -30%; width: 20%; height: 96px;
  display: flex; justify-content: space-between;
  animation: presence 19s ease-in-out infinite;
}
.hero__presence span {
  width: 38%; height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,11,0) 0%, var(--bg) 26%, var(--bg) 42%, rgba(10,10,11,0) 100%);
  filter: blur(5px);
}
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; max-width: 1240px; }
.hero__title {
  padding-left: .14em; font-family: var(--serif); font-size: clamp(44px, 6.6vw, 100px); font-weight: 300;
  line-height: 1.02; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-wrap: balance;
}
.hero__tagline {
  padding-left: .42em; font-size: 14px; line-height: 1.6; letter-spacing: .42em;
  text-transform: uppercase; color: var(--text); text-wrap: balance;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 18px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--bg);
  padding: clamp(110px, 13vw, 190px) var(--gutter) clamp(80px, 9vw, 128px);
  text-align: center;
}
.page-hero__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; max-width: 980px; margin: 0 auto; }
.page-title {
  font-family: var(--serif); font-size: clamp(64px, 9vw, 136px); font-weight: 500;
  line-height: .92; letter-spacing: -.01em; color: var(--ink); text-wrap: balance;
}
.page-hero__lead { max-width: 54ch; font-size: 18px; text-wrap: balance; }

/* ---------- Work (film reel, home) ---------- */
.work {
  position: relative; overflow: hidden; background: var(--bg-alt);
  border-top: 1px solid var(--line-06);
  padding: var(--section-y) 0 clamp(80px, 9vw, 120px);
}
.work__head {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 56px;
}
.work__intro { display: flex; flex-direction: column; gap: 18px; }
.work__title {
  font-family: var(--serif); font-size: clamp(52px, 5.8vw, 84px); font-weight: 600;
  line-height: .94; letter-spacing: -.01em; color: var(--ink);
}
.work__intro p { max-width: 46ch; text-wrap: pretty; }
.work__controls { display: flex; align-items: center; gap: 20px; }
.work__foot { max-width: 1280px; margin: clamp(36px, 4vw, 56px) auto 0; padding: 0 var(--gutter); display: flex; justify-content: center; }
.reel-counter { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--ink); white-space: nowrap; }
.reel-counter b { font-weight: inherit; }
.reel-counter span { color: var(--muted); }
.reel-progress { position: relative; display: block; width: clamp(80px, 12vw, 160px); height: 1px; background: rgba(235,231,223,.16); }
.reel-progress__bar { position: absolute; left: 0; top: 0; display: block; height: 1px; width: 20%; background: var(--ink); transition: width .5s ease; }
.reel-arrows { display: flex; gap: 10px; }

.icon-btn {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0;
  background: transparent; border: 1px solid rgba(235,231,223,.24); border-radius: 50%;
  color: var(--ink); cursor: pointer;
  transition: border-color .25s ease, color .25s ease, opacity .25s ease, translate .45s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); color: #fff; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn:disabled:hover { border-color: rgba(235,231,223,.24); }

.reel {
  display: flex; margin-top: clamp(40px, 5vw, 64px);
  padding: 0 calc((100% - var(--film-w)) / 2) 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab; user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.reel.has-cursor, .reel.has-cursor a { cursor: none; }

/* Cursor label shown over the reel: "Drag" or "Watch" */
.reel-cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(235,231,223,.55); border-radius: 50%;
  background: rgba(10,10,11,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  opacity: 0; scale: .4; transition: opacity .3s ease, scale .4s var(--ease), background-color .3s ease;
}
.reel-cursor.is-on { opacity: 1; scale: 1; }
.reel-cursor.is-down { scale: .82; }
.reel-cursor.is-watch { background: rgba(235,231,223,.9); color: var(--bg); }

.film { flex: 0 0 auto; width: var(--film-w); scroll-snap-align: center; display: flex; flex-direction: column; gap: 22px; }
.film__strip { background: var(--bg-deep); padding: 0 12px; border-top: 1px solid var(--line-06); border-bottom: 1px solid var(--line-06); }
.sprockets { display: block; width: 100%; height: 16px; }
.film__frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #141415;
  box-shadow: none; transition: box-shadow .6s ease;
}
.film__shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: filter .6s ease, transform .7s var(--ease);
}
.film .film__shot { filter: grayscale(.85) brightness(.5); }
.film__frame:hover .film__shot { transform: scale(1.04); }
.film__play {
  position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid rgba(235,231,223,.7); border-radius: 50%;
  background: rgba(10,10,11,.45); color: var(--ink);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .45s var(--ease);
}
.film__frame:hover .film__play { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: scale(1.08); }
.film__edge {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 2px 0; overflow: hidden; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,186,120,.45);
}
.film__meta { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.film__heading { display: flex; align-items: baseline; gap: 14px; }
.film__num { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.film__title {
  font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); font-weight: 600; line-height: 1.05;
  color: var(--muted); transition: color .5s ease;
}
.film__credits {
  font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.film.is-active .film__shot { filter: none; }
.film.is-active .film__frame { box-shadow: 0 0 90px rgba(255,214,170,.1); }
.film.is-active .film__title { color: var(--ink); }

/* ---------- Work page (film list) ---------- */
.film-list {
  position: relative; background: var(--bg-alt); border-top: 1px solid var(--line-06);
  padding: var(--section-y) var(--gutter);
}
.film-list__wrap { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(88px, 10vw, 150px); }
.film-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.film-row:nth-child(even) .film-row__media { order: 2; }
.film-row__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.film-row__title {
  font-family: var(--serif); font-size: clamp(40px, 4.6vw, 68px); font-weight: 600; line-height: 1;
  color: var(--ink); transition: color .4s ease;
}
.film-row:hover .film-row__title { color: #fff; }
.film-row .film__frame:hover { box-shadow: 0 0 90px rgba(255,214,170,.1); }
/* Each film "develops" from grey to colour as it enters the screen */
html.js .film-row:not(.is-visible) .film__shot { filter: grayscale(.85) brightness(.5); }
.film-row .film__shot { transition: filter 1.6s ease .35s, transform .7s var(--ease); }

/* ---------- About ---------- */
.about {
  position: relative; overflow: hidden; background: var(--bg);
  border-top: 1px solid var(--line-06); padding: var(--section-y) var(--gutter);
}
.about__wrap { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(64px, 8vw, 104px); }
.about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 88px; align-items: center; }

.portrait { position: relative; width: 100%; max-width: 520px; padding: 0; }
.portrait__ring, .portrait__ripple {
  position: absolute; left: 6%; top: 2%; width: 88%; height: auto; aspect-ratio: 1 / 1;
  overflow: visible; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 76%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 76%);
}
.portrait__ripple { opacity: 0; transform-origin: 50% 50%; animation: ripple 10s cubic-bezier(.2,.6,.3,1) infinite; }
.portrait__img {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 58% 56% at 58% 44%, #000 55%, rgba(0,0,0,.55) 78%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse 58% 56% at 58% 44%, #000 55%, rgba(0,0,0,.55) 78%, rgba(0,0,0,0) 100%);
  mix-blend-mode: lighten;
}
.portrait__candle {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 42% 34% at 66% 40%, rgba(255,186,120,.14), rgba(255,186,120,0) 70%);
  animation: candle 3.9s linear infinite;
}

.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.about__body { display: flex; flex-direction: column; gap: 20px; max-width: 60ch; }
.about__body p { text-wrap: pretty; }
.signature { font-family: var(--serif); font-size: 28px; font-style: italic; line-height: 1.2; color: var(--ink); }

.pull-quote {
  position: relative; background: var(--bg-alt); border-top: 1px solid var(--line-06);
  padding: var(--section-y) var(--gutter); text-align: center; overflow: hidden;
}
.pull-quote blockquote {
  position: relative; max-width: 22ch; margin: 0 auto;
  font-family: var(--serif); font-size: clamp(36px, 4.6vw, 68px); font-style: italic; font-weight: 400;
  line-height: 1.12; color: var(--ink); text-wrap: balance;
}

.skills { display: flex; flex-direction: column; gap: 28px; }
.skills__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.skills .eyebrow { font-size: 12px; }
.skills__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px 40px; }
.skill { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-14); }
.skill::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left center; transition: transform .7s var(--ease);
}
.skill:hover::before { transform: scaleX(1); }
.skill__num { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); transition: color .4s ease; }
.skill:hover .skill__num { color: var(--ink); }
.skill h3 { font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.skill p { font-size: 15px; line-height: 1.65; color: var(--dim); }

/* ---------- Listen ---------- */
.listen { position: relative; background: var(--bg-alt); border-top: 1px solid var(--line-06); padding: var(--section-y) var(--gutter); }
.listen__wrap { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.tracks { padding: 0; list-style: none; border-top: 1px solid var(--line-12); }
.track { position: relative; border-bottom: 1px solid var(--line-12); }
.track__btn {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; align-items: center; gap: 18px;
  width: 100%; min-height: 78px; padding: 12px 10px 12px 18px;
  background: transparent; border: 0; border-left: 2px solid transparent;
  color: inherit; text-align: left; cursor: pointer; transition: background-color .25s ease, border-color .25s ease;
}
.track__btn:hover { background: rgba(235,231,223,.04); }
.track__num { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); transition: color .3s ease; }
.track__title {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; line-height: 1.2; color: var(--soft);
  transition: color .3s ease, translate .45s var(--ease);
}
.track__btn:hover .track__title { translate: 6px 0; color: #fff; }
.track__btn:hover .track__num { color: var(--ink); }
.track__icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid rgba(235,231,223,.22); border-radius: 50%; color: var(--ink);
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}
.track__btn:hover .track__icon { border-color: rgba(235,231,223,.6); }
.track__icon .i-pause { display: none; }
.track__progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--ink); pointer-events: none; }

.track.is-current .track__btn { background: rgba(235,231,223,.05); border-left-color: var(--accent); }
.track.is-current .track__num { color: var(--ink); }
.track.is-current .track__title { color: #fff; }
.track.is-playing .track__icon { border-color: rgba(235,231,223,.7); }
.track.is-playing .i-play { display: none; }
.track.is-playing .i-pause { display: block; }
.track.is-loading .track__icon { animation: pulse 1.2s ease-in-out infinite; }

.sc-frame { position: absolute; width: 1px; height: 1px; left: -9999px; top: 0; border: 0; opacity: 0; }

/* ---------- Contact ---------- */
.contact {
  position: relative; background: var(--bg-alt); border-top: 1px solid var(--line-06);
  padding: var(--section-y) var(--gutter) clamp(80px, 9vw, 120px);
}
.contact__wrap { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.contact__card { background: var(--panel); border: 1px solid var(--line-10); }
.contact__direct {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px;
  padding: clamp(24px, 3.4vw, 40px) clamp(22px, 4vw, 48px); border-bottom: 1px solid var(--line-10);
}
.contact__group { display: flex; flex-direction: column; gap: 14px; }
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; }

.form { display: flex; flex-direction: column; gap: 34px; padding: clamp(28px, 4vw, 48px) clamp(22px, 4vw, 48px); }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 34px 40px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { transition: color .3s ease; }
.field:focus-within label { color: var(--ink); }
.field__control {
  width: 100%; min-height: 48px; padding: 8px 0 12px;
  border: 0; border-bottom: 1px solid var(--line-20); border-radius: 0;
  /* the focus line is drawn from the left */
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left bottom / 0% 1px;
  color: var(--ink); font-size: 17px; transition: background-size .6s var(--ease), border-color .25s ease;
}
.field__control::placeholder { color: var(--muted); opacity: 1; }
.field__control:focus { outline: none; background-size: 100% 1px; }
.field__control[aria-invalid="true"] { border-bottom-color: var(--accent); }
textarea.field__control { min-height: 150px; line-height: 1.6; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap select { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer; }
.select-wrap select option { background: var(--panel); color: var(--ink); }
.select-wrap svg { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.form .btn-solid { width: 100%; min-height: 60px; padding: 0 24px; font-size: 14px; letter-spacing: .3em; }
.form__status {
  font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.4;
  color: var(--soft); text-align: center;
}
.form__status:empty { display: none; }
.form .btn-solid:disabled { opacity: .6; cursor: progress; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Call to action band (home) ---------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line-06);
  padding: clamp(110px, 12vw, 170px) var(--gutter); text-align: center;
}
.cta-band__glow {
  position: absolute; left: 50%; top: 50%; width: min(900px, 120%); height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,214,170,.06), rgba(255,214,170,0));
  pointer-events: none;
}
.cta-band__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-band__title {
  font-family: var(--serif); font-size: clamp(48px, 6.4vw, 96px); font-weight: 500; line-height: .98;
  letter-spacing: -.01em; color: var(--ink); text-wrap: balance;
}
.cta-band .btn { margin-top: 12px; }

/* ---------- Next page link ---------- */
.next-page {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: clamp(88px, 10vw, 140px) var(--gutter);
  background: var(--bg); border-top: 1px solid var(--line-06); text-align: center; overflow: hidden;
}
.next-page__title {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--serif); font-size: clamp(52px, 7.6vw, 116px); font-weight: 500; line-height: 1;
  color: var(--soft); transition: color .5s ease;
}
.next-page__title svg { width: .5em; height: .5em; transition: transform .6s var(--ease); }
.next-page:hover .next-page__title { color: #fff; }
.next-page:hover .next-page__title svg { transform: translateX(.18em); }
.next-page::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 40%; height: 1px; margin-left: -20%;
  background: linear-gradient(to right, rgba(235,231,223,0), rgba(235,231,223,.5), rgba(235,231,223,0));
  transform: scaleX(0); transition: transform .8s var(--ease);
}
.next-page:hover::after { transform: scaleX(1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line-08); padding: 56px var(--gutter) 32px; }
.site-footer__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.site-footer__brand { display: flex; align-items: center; gap: 16px; }
.site-footer__brand > div { display: flex; flex-direction: column; gap: 4px; }
.site-footer__brand .brand__name { line-height: 1.4; }
.site-footer__brand .muted { font-size: 14px; line-height: 1.5; color: var(--muted); }
.social-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.social-nav .nav-link { min-height: 44px; font-size: 12px; letter-spacing: .22em; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 22px; border-top: 1px solid var(--line-08);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.quiet-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); }
.quiet-link:hover { color: var(--ink); }
.quiet-link svg { transition: transform .45s var(--ease); }
.quiet-link:hover svg { transform: translateY(-3px); }

/* ---------- Film grain ---------- */
.grain {
  position: absolute; inset: 0; z-index: 60; width: 100%; height: 100%;
  pointer-events: none; opacity: var(--grain);
}

/* =========================================================
   Motion
   ========================================================= */

/* Reveal on scroll: only hidden when JS is running (see main.js) */
html.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Soft page fade between pages */
html.js body { animation: page-in .6s ease backwards; }
html.is-leaving body { opacity: 0; transition: opacity .25s ease; }

@keyframes page-in { from { opacity: 0; } }
@keyframes drift   { from { transform: translate3d(-6%,-3%,0) scale(1); } to { transform: translate3d(7%,4%,0) scale(1.15); } }
@keyframes drift-2 { from { transform: translate3d(6%,4%,0) scale(1.1); } to { transform: translate3d(-8%,-4%,0) scale(1); } }
@keyframes presence { 0%, 20% { left: -30%; } 38%, 56% { left: 40%; } 76%, 100% { left: 112%; } }
@keyframes flicker { 0%, 61%, 64.5%, 67%, 100% { opacity: 1; } 62% { opacity: .5; } 63% { opacity: .9; } 64% { opacity: .4; } 66% { opacity: .8; } }
@keyframes candle { 0% { opacity: .9; } 12% { opacity: .7; } 19% { opacity: 1; } 31% { opacity: .78; } 42% { opacity: .95; } 55% { opacity: .68; } 63% { opacity: .9; } 74% { opacity: .8; } 86% { opacity: 1; } 100% { opacity: .9; } }
@keyframes ripple { 0% { transform: scale(.86); opacity: 0; } 8% { opacity: .6; } 60%, 100% { transform: scale(1.32); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .portrait { margin: 0 auto; }
}
@media (max-width: 900px) {
  .film-row { grid-template-columns: minmax(0, 1fr); }
  .film-row:nth-child(even) .film-row__media { order: 0; }

  /* Compact menu */
  html.js .menu-toggle { display: inline-flex; }
  html.js .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: rgba(10,10,11,.97); border-bottom: 1px solid var(--line-10);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s ease, transform .45s var(--ease), visibility 0s linear .45s;
  }
  html.js .site-header.is-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  html.js .main-nav .nav-link {
    min-height: 56px; font-size: 14px; border-bottom: 1px solid var(--line-06);
    opacity: 0; translate: 0 6px; transition: opacity .4s ease, translate .5s var(--ease), color .25s ease;
  }
  html.js .site-header.is-open .main-nav .nav-link { opacity: 1; translate: 0 0; }
  html.js .site-header.is-open .main-nav .nav-link:nth-child(2) { transition-delay: .04s; }
  html.js .site-header.is-open .main-nav .nav-link:nth-child(3) { transition-delay: .08s; }
  html.js .site-header.is-open .main-nav .nav-link:nth-child(4) { transition-delay: .12s; }
  html.js .site-header.is-open .main-nav .nav-link:nth-child(5) { transition-delay: .16s; }
  html.js .main-nav .nav-link::after { bottom: 16px; right: auto; width: 2em; }
}
@media (max-width: 720px) {
  .hero { min-height: 640px; padding-top: 96px; padding-bottom: 200px; }
  .hero__tagline { letter-spacing: .3em; padding-left: .3em; }
}
@media (max-width: 420px) {
  .brand__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__fog, .hero__fog-2, .hero__presence, .hero__light, .portrait__candle, .portrait__ripple { animation: none !important; }
  .film__shot { transition: none !important; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.js body { animation: none; }
  [data-parallax] { translate: none !important; }
}
