/* ════════════════════════════════════════════════════════════════
   ENDURANCE — cinematographer portfolio
   Mobile-first. No frameworks, no build step.
   1. Tokens   2. Base   3. Utilities   4. Nav   5. Hero
   6. Ticker   7. Work   8. About       9. Contact 10. Footer
   11. Cursor  12. Motion
   ════════════════════════════════════════════════════════════════ */

/* ─── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* surface */
  --black:   #050506;
  --ink:     #0A0A0C;
  --surface: #121013;
  --raise:   #1A1719;
  --line:    #262227;

  /* text */
  --bone:    #EDEDEF;
  --ash:     #9A9AA4;
  --smoke:   #63636D;

  /* accent — flare orange (change these two lines to re-skin the site) */
  --accent:    #FF5A00;
  --accent-dim:#C74400;
  --alert:     #FF3355;

  /* type */
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* rhythm */
  --pad:     clamp(1.25rem, 5vw, 6rem);
  --gap:     clamp(1rem, 2.2vw, 2rem);
  --sec:     clamp(5.5rem, 14vh, 11rem);
  --radius:  2px;

  /* motion */
  --ease:    cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
}

/* ─── 2. BASE ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 300;
  padding: .6rem 1rem; background: var(--accent); color: var(--black);
  font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ─── 3. UTILITIES ──────────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ash);
}
.eyebrow .idx { color: var(--accent); }
.eyebrow em { font-style: normal; color: var(--accent); }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.dot--live { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%,100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(255,90,0,.5); }
  70%     { opacity: .7;  box-shadow: 0 0 0 7px rgba(255,90,0,0); }
}

.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .16; pointer-events: none; mix-blend-mode: overlay;
  animation: grain 700ms steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%,1%); }
  50%  { transform: translate(1%,-2%); }
  75%  { transform: translate(-1%,-1%); }
  100% { transform: translate(2%,1%); }
}

/* buttons — magnetic wrapper moves the <a>, inner span counter-moves */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 1rem 1.6rem;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; will-change: transform;
  transition: transform .35s var(--ease-out), border-color .3s var(--ease), color .3s var(--ease);
}
.btn > span { position: relative; z-index: 2; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--black); border-color: var(--accent); }

.btn--accent { background: var(--accent); color: var(--black); border-color: var(--accent); }
.btn--accent::after { background: var(--bone); }
.btn--accent:hover, .btn--accent:focus-visible { color: var(--black); border-color: var(--bone); }

.btn--ghost { color: var(--bone); border-color: #33333C; }
.btn--sm  { padding: .7rem 1.1rem; font-size: .66rem; }
.btn--lg  { padding: 1.15rem 2.2rem; }

/* section shell */
.section { padding: var(--sec) var(--pad); position: relative; }
.section__head { max-width: 62rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 7.2vw, 5.6rem);
  font-weight: 800; font-stretch: 108%;
  line-height: .95; letter-spacing: -0.035em;
  margin: 1.4rem 0 0;
  text-wrap: balance;
}
.section__lede {
  max-width: 34rem; margin-top: 1.5rem;
  color: var(--ash); font-size: clamp(.95rem, 1.7vw, 1.08rem);
}

/* ─── 4. NAV ────────────────────────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 210;
  background: transparent; pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 0%;
  background: var(--accent); box-shadow: 0 0 12px rgba(255,90,0,.6);
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5,5,6,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); transition: transform .4s var(--ease); }

.nav__logo { display: flex; align-items: center; gap: .6rem; }
.nav__logo-mark {
  width: 10px; height: 10px; background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.nav__logo-text {
  font-family: var(--f-display); font-weight: 800; font-stretch: 112%;
  font-size: .95rem; letter-spacing: -.02em; text-transform: uppercase;
}
.nav__logo-text em { font-style: normal; color: var(--accent); }

.nav__links { display: none; gap: 2rem; }
.nav__links a {
  position: relative;
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ash);
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__cta { display: none; }

.nav__burger {
  width: 42px; height: 42px; display: grid; place-content: center; gap: 6px;
  margin-right: -.6rem;
}
.nav__burger span {
  display: block; width: 22px; height: 1.5px; background: var(--bone);
  transition: transform .35s var(--ease-out), opacity .2s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--black);
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--pad) 2.5rem;
  opacity: 0; transition: opacity .35s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__links { display: flex; flex-direction: column; gap: .4rem; }
.menu__links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--f-display); font-weight: 800; font-stretch: 108%;
  font-size: clamp(2.4rem, 13vw, 4rem); line-height: 1.1;
  letter-spacing: -.03em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding: .6rem 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .12s; }
.menu__num { font-family: var(--f-mono); font-size: .7rem; color: var(--accent); font-weight: 400; }
.menu__foot {
  margin-top: auto; padding-top: 2rem;
  display: flex; flex-direction: column; gap: .35rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--smoke);
}
.menu__foot a { color: var(--accent); }

/* ─── 5. HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--pad) 1.5rem;
  overflow: hidden;
}
.hero__media { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.hero__video, .hero__media > img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__video {
  background: var(--ink) center/cover no-repeat;
  filter: saturate(.85) contrast(1.05);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,6,.86) 0%, rgba(5,5,6,.35) 35%, rgba(5,5,6,.72) 72%, var(--black) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 30%, rgba(5,5,6,.7) 100%);
}
.hero__inner { position: relative; z-index: 2; margin-bottom: auto; padding-top: 12vh; }

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 12.4vw, 11rem);
  font-weight: 900; font-stretch: 103%;
  line-height: .85; letter-spacing: -.045em;
  text-transform: uppercase;
  margin: 1.2rem 0 1.6rem;
}
/* per-character reveal */
.hero__title .char, .split .char { display: inline-block; }
.split .cword { display: inline-block; white-space: nowrap; }
.split .line { display: block; }
[data-fit] .line { width: max-content; max-width: none; white-space: nowrap; }
.split .word { display: inline-block; overflow: hidden; vertical-align: top; }
.split .word > i { display: inline-block; font-style: inherit; }
/* hidden only while JS is present and has yet to split it — no JS, no blank text */
.js [data-split]:not(.split-ready) { visibility: hidden; }
[data-split].split-ready { visibility: visible; }

.hero__sub {
  max-width: 34rem;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.5; color: #C8C8CE;
}
.hero__sub em { font-style: normal; color: var(--accent); }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.09);
}
.reel {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ash);
  transition: color .25s var(--ease);
}
.reel:hover { color: var(--bone); }
.reel__icon { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.reel__icon i { width: 2px; background: var(--accent); height: 40%; }
.reel[aria-pressed="true"] .reel__icon i { animation: eq .9s ease-in-out infinite alternate; }
.reel__icon i:nth-child(2) { animation-delay: .15s !important; height: 90%; }
.reel__icon i:nth-child(3) { animation-delay: .3s  !important; height: 60%; }
.reel__icon i:nth-child(4) { animation-delay: .45s !important; height: 100%; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.reel__sound { color: var(--accent); }
.reel__label { display: none; }

.scroll-cue {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--smoke);
}
.scroll-cue__line {
  width: 44px; height: 1px; background: var(--line); position: relative; overflow: hidden;
}
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  animation: sweep 2.2s var(--ease) infinite;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  60%,100% { transform: translateX(100%); }
}

/* ─── 6. TICKER ─────────────────────────────────────────────── */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--ink); padding: .9rem 0;
}
.ticker__track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 34s linear infinite;
}
.ticker__track span {
  font-family: var(--f-display); font-weight: 700; font-stretch: 105%;
  font-size: clamp(1.1rem, 3.4vw, 2rem);
  text-transform: uppercase; letter-spacing: -.02em; color: #2C2C34;
  white-space: nowrap;
  margin-right: 2.5rem;          /* margin, not gap: keeps the -50% loop seamless */
}
.ticker__track .ticker__dot { color: var(--accent); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── 7. WORK ───────────────────────────────────────────────── */
.filters {
  display: flex; gap: .5rem; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: .35rem;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; position: relative;
  padding: .6rem 1.05rem;
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ash);
  border: 1px solid var(--line); border-radius: 100px;
  white-space: nowrap;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.filter sup { font-size: .55em; color: var(--smoke); margin-left: .3em; vertical-align: super; }
.filter:hover { color: var(--bone); border-color: #3A3A44; }
.filter.is-active {
  background: var(--accent); border-color: var(--accent); color: var(--black); font-weight: 500;
}
.filter.is-active sup { color: rgba(0,0,0,.5); }

.grid { display: grid; gap: var(--gap) ; grid-template-columns: 1fr; align-items: start; }
.grid__empty {
  padding: 4rem 0; text-align: center;
  font-family: var(--f-mono); font-size: .8rem; color: var(--smoke);
  letter-spacing: .1em; text-transform: uppercase;
}

.card {
  position: relative; outline-offset: 6px; min-width: 0;
  opacity: 1; transform: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.card.is-hidden { display: none; }
.card.is-filtering { opacity: 0; transform: translateY(14px) scale(.985); }

.card__media {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ratio, 16/9);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card__poster, .card__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), opacity .5s var(--ease);
}
.card__video { opacity: 0; }
.card.is-playing .card__video { opacity: 1; }
.card.is-playing .card__poster { opacity: 0; }
.card:hover .card__poster, .card:focus-visible .card__poster { transform: scale(1.045); }

.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,6,.25) 0%, transparent 30%, transparent 55%, rgba(5,5,6,.9) 100%);
  opacity: .8;
  transition: opacity .4s var(--ease);
}

.card__tag, .card__runtime {
  position: absolute; top: .8rem; z-index: 3;
  font-family: var(--f-mono); font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 100px;
  background: rgba(5,5,6,.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1); color: var(--bone);
}
.card__tag { left: .8rem; }
.card__runtime { right: .8rem; color: var(--accent); }

.card__play {
  position: absolute; z-index: 3; inset: auto auto 50% 50%;
  transform: translate(-50%, 50%) scale(.9);
  display: grid; place-content: center;
  width: 82px; height: 82px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); background: rgba(5,5,6,.35);
  backdrop-filter: blur(4px);
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transition: opacity .35s var(--ease), transform .45s var(--ease-out);
  pointer-events: none;
}
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: translate(-50%,50%) scale(1); }
.card.is-playing .card__play { opacity: 0; }

.card__meta { padding: 1rem .1rem 0; }
.card__num {
  font-family: var(--f-mono); font-size: .62rem; color: var(--accent); letter-spacing: .12em;
}
.card__title {
  font-family: var(--f-display); font-weight: 700; font-stretch: 106%;
  font-size: clamp(1.35rem, 4.6vw, 2rem); line-height: 1.05;
  letter-spacing: -.03em; text-transform: uppercase; margin: .35rem 0 .45rem;
}
.card__client { font-size: .92rem; color: var(--bone); }
.card__role {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--smoke); margin-top: .2rem;
}
.card__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid rgba(255,90,0,.3); padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.card__link:hover { border-color: var(--accent); gap: .7rem; }

/* ─── 8. ABOUT ──────────────────────────────────────────────── */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }

.about__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); will-change: transform;
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.about__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(255,90,0,.07), transparent 45%);
  pointer-events: none;
}
.about__caption {
  margin-top: .8rem;
  font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--smoke);
}
.about__caption span { color: var(--accent); margin-right: .4rem; }

.about__copy { margin-top: 1.8rem; display: grid; gap: 1.1rem; max-width: 36rem; }
.about__copy p { color: var(--ash); font-size: clamp(.95rem, 1.8vw, 1.05rem); }
.about__copy em { font-style: normal; color: var(--bone); border-bottom: 1px solid var(--accent); }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; margin: 2.2rem 0;
  padding: 1.4rem 0; border-block: 1px solid var(--line);
}
.stat__num {
  display: block;
  font-family: var(--f-display); font-weight: 800; font-stretch: 108%;
  font-size: clamp(1.8rem, 5.5vw, 2.9rem); line-height: 1; letter-spacing: -.04em;
  color: var(--bone);
}
.stat__num::after { content: "+"; color: var(--accent); font-size: .5em; vertical-align: super; }
.stat__label {
  display: block; margin-top: .4rem;
  font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--smoke);
}

.kit { display: grid; gap: 2rem; }
.kit__head {
  font-family: var(--f-mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.kit__head--sp { margin-top: 1.8rem; }
.kit__list { list-style: none; display: grid; gap: .1rem; }
.kit__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.kit__list em {
  font-style: normal; font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--smoke); flex: none;
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 100px;
  font-family: var(--f-mono); font-size: .64rem;
  letter-spacing: .08em; color: var(--ash);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.tags li:hover { border-color: #3A3A44; color: var(--bone); }
.tags--accent li { border-color: rgba(255,90,0,.35); color: var(--accent); }

/* ─── 9. CONTACT ────────────────────────────────────────────── */
.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(255,90,0,.05), transparent 60%),
    var(--black);
}
.contact__head { max-width: 62rem; min-width: 0; }
.contact__title {
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 15vw, 11rem);
  font-weight: 900; font-stretch: 105%;
  line-height: .84; letter-spacing: -.05em; text-transform: uppercase;
  margin: 1.2rem 0 1.5rem;
}
.contact__lede { max-width: 32rem; color: var(--ash); font-size: clamp(.95rem, 1.8vw, 1.08rem); }
.contact__meta {
  list-style: none; display: grid; gap: .9rem;
  margin: 2.5rem 0 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.contact__meta li { display: flex; flex-direction: column; gap: .25rem; font-size: .95rem; }
.contact__meta span {
  font-family: var(--f-mono); font-size: .6rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--smoke);
}
.contact__meta a { color: var(--accent); }

.form { display: grid; gap: 1.6rem; max-width: 62rem; }
.field { display: grid; gap: .5rem; position: relative; }
.field label {
  font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--smoke);
  transition: color .25s var(--ease);
}
.field:focus-within label { color: var(--accent); }

.field input, .field textarea, .select select {
  width: 100%; padding: .9rem 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  font-size: 1rem; font-weight: 300; color: var(--bone);
  border-radius: 0; /* iOS */
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: #4A4A52; }
.field input:focus, .field textarea:focus, .select select:focus {
  outline: none; border-bottom-color: var(--accent);
}
.field.has-error input, .field.has-error textarea, .field.has-error .select select {
  border-bottom-color: var(--alert);
}
.field__err {
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em;
  color: var(--alert); min-height: 0; opacity: 0;
  transition: opacity .25s var(--ease);
}
.field.has-error .field__err { opacity: 1; }

.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 2rem;
}
.select select:invalid { color: #4A4A52; }
.select option { background: var(--surface); color: var(--bone); }
.select::after {
  content: ""; position: absolute; right: .35rem; top: 50%;
  width: 7px; height: 7px; margin-top: -6px;
  border-right: 1px solid var(--ash); border-bottom: 1px solid var(--ash);
  transform: rotate(45deg); pointer-events: none;
}

.form__foot {
  display: flex; flex-direction: column; gap: 1.2rem;
  align-items: flex-start; margin-top: .5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.form__note { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; color: var(--smoke); }
.form__status {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; color: var(--alert);
}
.form.is-sending { opacity: .6; pointer-events: none; }

.form__success {
  max-width: 34rem; padding: 2.2rem;
  border: 1px solid rgba(255,90,0,.3); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,90,0,.05), transparent);
}
.form__success[hidden] { display: none; }
.form__success-mark {
  display: grid; place-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--black); font-size: 1.1rem; margin-bottom: 1.2rem;
}
.form__success h3 {
  font-family: var(--f-display); font-weight: 800; font-stretch: 106%;
  font-size: 1.8rem; letter-spacing: -.03em; text-transform: uppercase;
}
.form__success p { color: var(--ash); margin: .6rem 0 1.5rem; }
.form__success a { color: var(--accent); }

/* ─── 10. FOOTER ────────────────────────────────────────────── */
.footer {
  padding: clamp(3rem, 8vw, 6rem) var(--pad) 2rem;
  border-top: 1px solid var(--line); background: var(--ink);
}
.footer__top { display: grid; gap: 1rem; padding-bottom: 2.5rem; }
.footer__mail {
  display: inline-block; width: fit-content;
  font-family: var(--f-display); font-weight: 800; font-stretch: 104%;
  font-size: clamp(1.5rem, 6.5vw, 3.4rem); line-height: 1;
  letter-spacing: -.04em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.footer__mail:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer__loc {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--smoke);
}

.footer__mid {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center;
  padding: 1.8rem 0; border-block: 1px solid var(--line);
}
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.socials a {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ash);
  transition: color .25s var(--ease);
}
.socials em { font-style: normal; color: var(--accent); transition: transform .25s var(--ease-out); }
.socials a:hover { color: var(--bone); }
.socials a:hover em { transform: translate(2px,-2px); }
.footer__top-btn {
  font-family: var(--f-mono); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--smoke);
  transition: color .25s var(--ease);
}
.footer__top-btn:hover { color: var(--accent); }

.footer__base {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
  padding-top: 1.5rem;
  font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .08em; color: #45454E;
}

/* ─── 11. CUSTOM CURSOR (pointer:fine only) ─────────────────── */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity .3s var(--ease);
}
.cursor-dot { width: 5px; height: 5px; background: var(--accent); margin: -2.5px 0 0 -2.5px; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(255,90,0,.5);
  transition: opacity .3s var(--ease), width .3s var(--ease-out), height .3s var(--ease-out),
              margin .3s var(--ease-out), background .3s var(--ease), border-color .3s var(--ease);
}
.cursor-ready .cursor-dot, .cursor-ready .cursor-ring { opacity: 1; }
.cursor-ring.is-lg {
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  background: rgba(255,90,0,.1); border-color: var(--accent);
}

/* ─── 12. MOTION / REVEAL ───────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* ═══ BREAKPOINTS ═══════════════════════════════════════════ */
@media (min-width: 600px) {
  .contact__meta { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem 2rem; }
  .field--full { grid-column: 1 / -1; }
  .form__foot { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .form__status { grid-column: 1 / -1; }
  .reel__label { display: inline; }
  .footer__top { grid-template-columns: 1fr auto; align-items: end; }
  .kit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
}

@media (min-width: 900px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__burger { display: none; }
  .menu { display: none !important; }

  .hero { padding-bottom: 2rem; }
  .hero__inner { padding-top: 0; margin-bottom: clamp(3rem, 8vh, 7rem); }

  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2.4rem); }
  .card { grid-column: span var(--span, 6); margin-top: var(--offset, 0); }

  /* meta becomes an on-hover overlay */
  .card__meta {
    position: absolute; inset: auto 0 0 0; z-index: 3;
    padding: 1.5rem; pointer-events: none;
    opacity: 0; transform: translateY(14px);
    transition: opacity .45s var(--ease-out), transform .5s var(--ease-out);
  }
  .card__media { overflow: hidden; }
  .card:hover .card__meta,
  .card:focus-visible .card__meta,
  .card:focus-within .card__meta { opacity: 1; transform: none; pointer-events: auto; }
  .card:hover .card__media::after,
  .card:focus-within .card__media::after { opacity: 1; }
  .card__link { pointer-events: auto; }

  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .about__media { position: sticky; top: 6rem; }

  .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .contact__head { position: sticky; top: 6rem; }
  .contact__meta { margin-bottom: 0; }
  .form__success { grid-column: 2; }
}

@media (min-width: 1400px) {
  .hero__sub { font-size: 1.45rem; }
}

/* touch devices: no hover previews, meta always visible */
@media (hover: none) {
  .card__meta { position: static; opacity: 1; transform: none; padding: 1rem .1rem 0; pointer-events: auto; }
  .card__play { opacity: 1; transform: translate(-50%,50%) scale(1); width: 64px; height: 64px; }
  .card.is-playing .card__play { opacity: 0; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .grain { display: none; }
  .ticker__track { animation: none; }
}

/* ─── split-text reveal states (generated by js/main.js) ────── */
.split .word { padding-bottom: .08em; margin-bottom: -.08em; }
.split .char {
  opacity: 0; transform: translateY(.35em) rotate(2deg);
  transition: opacity .55s var(--ease-out), transform .75s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 24ms);
}
.split.is-in .char { opacity: 1; transform: none; }
.split .word > i {
  transform: translateY(105%);
  transition: transform .85s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.split.is-in .word > i { transform: none; }

/* ─── 13. STILLS ────────────────────────────────────────────── */
.stills { border-top: 1px solid var(--line); }

.stills__grid { columns: 2; column-gap: var(--gap); }   /* mobile-first 2-up masonry */

.shot {
  display: block; width: 100%; padding: 0; margin: 0 0 var(--gap);
  break-inside: avoid; -webkit-column-break-inside: avoid;
  position: relative; overflow: hidden; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer;
  transition: border-color .35s var(--ease);
}
.shot img {
  width: 100%; height: auto;
  filter: grayscale(.2) contrast(1.03);
  transition: transform .9s var(--ease-out), filter .5s var(--ease);
}
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(5,5,6,.88) 100%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.shot:hover, .shot:focus-visible { border-color: var(--accent); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.045); filter: none; }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }

.shot__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  padding: 1rem;
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--bone);
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .45s var(--ease-out);
}
.shot__meta em { font-style: normal; color: var(--accent); }
.shot__meta i { font-style: normal; font-size: .62rem; color: var(--ash); }
.shot:hover .shot__meta, .shot:focus-visible .shot__meta { opacity: 1; transform: none; }

.stills__note {
  margin-top: .5rem;
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .08em; color: var(--smoke);
}
.stills__note a { color: var(--accent); border-bottom: 1px solid rgba(255,90,0,.35); }
.stills__note a:hover { border-color: var(--accent); }

/* touch: captions always readable, no hover state to wait for */
@media (hover: none) {
  .shot__meta { opacity: 1; transform: none; }
  .shot::after { opacity: 1; }
  .shot img { filter: none; }
}

@media (min-width: 1000px) { .stills__grid { columns: 3; } }
@media (min-width: 1500px) { .stills__grid { columns: 4; } }

/* ─── 14. LIGHTBOX ──────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(3.5rem, 8vw, 5rem) clamp(1rem, 5vw, 4rem);
  background: rgba(5,5,6,.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__fig {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  max-width: min(1200px, 100%); max-height: 100%;
}
.lightbox__fig img {
  max-width: 100%; max-height: 72vh; width: auto; height: auto;
  object-fit: contain;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.lightbox__fig figcaption {
  font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ash);
  text-align: center;
}

.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--bone);
  background: rgba(5,5,6,.6);
  font-size: .95rem; line-height: 1;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover {
  border-color: var(--accent); color: var(--accent); background: rgba(255,90,0,.08);
}
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav--prev { left: clamp(.6rem, 3vw, 2rem);  top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

.lightbox__count {
  position: absolute; bottom: clamp(1rem, 3vw, 2rem); left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .16em; color: var(--smoke);
}
.lightbox__count b { color: var(--accent); font-weight: 400; }

@media (max-width: 640px) {
  .lightbox__nav { top: auto; bottom: clamp(1rem, 3vw, 2rem); transform: none; }
  .lightbox__nav--prev { left: 22%; }
  .lightbox__nav--next { right: 22%; }
  .lightbox__fig img { max-height: 62vh; }
}
