/* =====================================================
   STEP1FILM — Ayman Hassdo
   ===================================================== */

/* DSEG7 Classic — 7-segment LCD display font */
@font-face {
  font-family: 'DSEG7Classic';
  src: url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DSEG7Classic';
  src: url('https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --bg:        #0c0c0c;
  --surface:   #141414;
  --surface-2: #101010;
  --line:      rgba(255,255,255,0.08);
  --line-s:    rgba(255,255,255,0.18);
  --text:      #e2e2e2;
  --text-dim:  #888;
  --white:     #f2f2f2;

  /* Accent — overridable via the Tweaks panel. Defaults to filmic red. */
  --red:       #e01c1c;
  --accent:    var(--red);
  --accent-soft: color-mix(in oklab, var(--accent) 65%, transparent);

  --ff-display: 'Bebas Neue', Impact, sans-serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --nav-h: 58px;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);

  --grain-op: 0.038;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }

/* ---- Focus ring — keyboard-only, restrained ---- */
:focus { outline: none; }
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
.h-dot:focus-visible,
.h-arrow:focus-visible,
.contact-row:focus-visible,
.film-item:focus-visible { outline-offset: 4px; }

/* ---- Skip link ---- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  background: var(--bg);
  color: var(--white);
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---- Film grain — disabled per design decision ---- */
#grain {
  display: none;
}

/* =====================================================
   LOADER
   ===================================================== */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.out { opacity: 0; visibility: hidden; pointer-events: none; }

.ld-holes {
  position: absolute; left: 0; right: 0; height: 22px;
  background: repeating-linear-gradient(
    90deg,
    var(--bg) 0, var(--bg) 8px,
    var(--line-s) 8px, var(--line-s) 12px,
    var(--bg) 12px, var(--bg) 26px
  );
}
.ld-holes.top { top: 0; border-bottom: 1px solid var(--line); }
.ld-holes.bot { bottom: 0; border-top: 1px solid var(--line); }

.ld-scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: ldScan 1.4s linear infinite;
}
@keyframes ldScan { from { top: 0 } to { top: 100% } }

.ld-body {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.6rem;
  position: relative; z-index: 1;
}

.ld-ring-wrap {
  position: relative;
  width: clamp(140px, 22vw, 200px);
  height: clamp(140px, 22vw, 200px);
}
.ld-svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ld-track    { stroke: var(--line-s); stroke-width: 1.5; }
.ld-progress {
  stroke: var(--accent); stroke-width: 1.5;
  stroke-linecap: butt;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 0.82s cubic-bezier(0.4,0,0.2,1);
}
.ld-ch, .ld-cv { stroke: var(--line-s); stroke-width: 0.75; }
.ld-dot { fill: var(--accent); }

.ld-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--white);
  animation: ldFlicker 0.82s steps(1) infinite;
}
@keyframes ldFlicker { 0%,87%{opacity:1} 88%,100%{opacity:.55} }

.ld-label {
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.ld-skip {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  right: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line-s);
  color: var(--text-dim);
  font-family: var(--ff-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.ld-skip:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.03); }
.ld-skip svg { width: 12px; height: 12px; }
/* =====================================================
   PAGE
   ===================================================== */
#page { position: relative; z-index: 1; display: block; }

/* Floating logo */
#logo-mark {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  z-index: 700;
  pointer-events: none;
}
.logo-text {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--white);
  pointer-events: auto;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.logo-text span { color: var(--accent); }

/* Butikslänk + språkväxlare till höger i toppen */
.logo-store {
  margin-left: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  transition: color 0.25s ease;
}
.logo-store:hover, .logo-store:focus-visible { color: var(--white); }

.lang-toggle {
  margin-left: auto;
  display: inline-flex;
  border: 1px solid var(--line-s);
  border-radius: 40px;
  overflow: hidden;
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  background: rgba(12, 12, 12, 0.35);
}
.lang-toggle button {
  padding: 0.25rem 0.6rem;
  color: var(--text-dim);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lang-toggle button:hover { color: var(--white); }
.lang-toggle button.active { color: #fff; background: var(--accent); }

@media (max-width: 560px) {
  .logo-store { letter-spacing: 0.14em; margin-left: 0.6rem; }
  .lang-toggle { font-size: 0.66rem; }
  .lang-toggle button { padding: 0.22rem 0.5rem; }
}

/* ---- Hero ---- */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-video-wrap {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-video-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  border: none;
}

/* Poster shown until video is requested — plain dark fill, no stage image */
.hero-poster {
  position: absolute; inset: 0;
  background: #050402;
  transition: none;
}
.hero-video-wrap.playing .hero-poster { opacity: 0; pointer-events: none; }

/* Play button — only visible until the video is requested */
.hero-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 14vh));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
  font-family: var(--ff-display);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  pointer-events: auto;
  z-index: 3;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.hero-play svg { width: 56px; height: 56px; transition: transform 0.3s var(--ease); }
.hero-play:hover { opacity: 1; }
.hero-play:hover svg { transform: scale(1.06); }
.hero-video-wrap.playing .hero-play,
.hero-video-wrap.no-video .hero-play[hidden] { display: none; }
.hero-video-wrap.no-video .hero-play { /* keep visible as a static cue */ }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(12,12,12,0.9) 0%, rgba(12,12,12,0.25) 50%, rgba(12,12,12,0.5) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 2rem;
  z-index: 2;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }

.hero-eyebrow {
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 10vw, 9rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 400;
}

.hero-sub {
  margin-top: 0.9rem;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-down {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  color: var(--text-dim);
  animation: heroPulse 2.2s ease-in-out infinite;
}
.hero-down svg { width: 28px; height: 28px; }
@keyframes heroPulse { 0%,100%{opacity:0.4;transform:translateX(-50%) translateY(0)} 50%{opacity:1;transform:translateX(-50%) translateY(5px)} }

/* =====================================================
   WIPE PANEL SYSTEM (desktop)
   ===================================================== */
#h-wrapper { height: calc(5 * 100vh); position: relative; }

#h-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

#h-track { position: relative; width: 100%; height: 100%; }

.h-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: clip-path;
}

#films   { z-index: 1; background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.72)), url('Bild01') center / cover no-repeat; clip-path: inset(0 0 0 0%);   }
#about   { z-index: 2; background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.72)), url('Bild02') center / cover no-repeat; clip-path: inset(0 0 0 100%); }
#awards  { z-index: 3; background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.72)), url('Bild03') center / cover no-repeat; clip-path: inset(0 0 0 100%); }
#press   { z-index: 4; background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.72)), url('Bild04') center / cover no-repeat; clip-path: inset(0 0 0 100%); }
#contact { z-index: 5; background: linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.72)), url('Bild05') center / cover no-repeat; clip-path: inset(0 0 0 100%); }

.panel-inner {
  height: 100%;
  padding: calc(var(--nav-h) + clamp(2rem,4vh,3.5rem))
           clamp(1.5rem, 7vw, 7rem)
           clamp(2rem, 4vh, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  overflow: hidden;
}

.panel-inner--about {
  flex-direction: row;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: var(--nav-h);
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.panel-num {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  user-select: none;
}

.panel-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  color: var(--white);
  font-weight: 400;
}

.panel-meta {
  margin-left: auto;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  align-self: end;
  padding-bottom: 0.5rem;
}

/* =====================================================
   SIDE NAVIGATION
   ===================================================== */
#h-nav {
  position: absolute;
  right: clamp(1rem, 2.5vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.h-nav-counter {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
#hCur { color: var(--white); font-size: 1rem; }
.h-nav-sep { color: var(--line-s); }

.h-nav-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0;
}

.h-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  padding: 0;
  transition: background 0.3s, transform 0.3s, height 0.35s var(--ease);
}
.h-dot.active { background: var(--white); height: 20px; border-radius: 3px; }
.h-dot:hover:not(.active) { background: var(--text); transform: scale(1.3); }

.h-nav-label {
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}

.h-arrows {
  position: absolute;
  bottom: clamp(1.5rem, 3vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.h-arrow {
  width: 42px; height: 42px;
  border: 1px solid var(--line-s);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.h-arrow:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.04); }
.h-arrow svg { width: 18px; height: 18px; }
.h-arrow:disabled { opacity: 0.2; cursor: default; pointer-events: none; }

/* =====================================================
   FILMS PANEL — side thumbnail + meta
   ===================================================== */
.panel-inner--films { gap: clamp(0.8rem, 1.8vh, 1.4rem); }
.films-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.film-item {
  display: grid;
  grid-template-columns: clamp(96px, 12vw, 150px) 1fr;
  gap: 0 clamp(1rem, 2.2vw, 2rem);
  padding: clamp(0.5rem, 1vh, 0.85rem) 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: border-color 0.3s;
}
.film-item:last-child { border-bottom: 1px solid var(--line); }
.film-item:hover,
.film-item:focus-within { border-color: var(--line-s); }

/* Store entry — reads as a call-to-action link */
.film-item--store .film-title { color: var(--accent); transition: letter-spacing 0.35s var(--ease), color 0.25s ease; }
.film-item--store:hover .film-title { color: var(--white); }
.film-item--store .film-syn { color: var(--text); }

.film-thumb {
  --slot-bg: #161616;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  background: #161616;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.45s var(--ease);
}
.film-item:hover .film-thumb,
.film-item:focus-within .film-thumb { border-color: var(--line-s); }
.film-thumb::before {
  /* Tiny corner tick — a 'frame' suggestion when no still is dropped */
  content: '';
  position: absolute;
  top: 6px; left: 6px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--accent-soft);
  border-left: 1px solid var(--accent-soft);
  z-index: 1;
  pointer-events: none;
}
.film-thumb::after {
  content: '';
  position: absolute;
  bottom: 6px; right: 6px;
  width: 10px; height: 10px;
  border-bottom: 1px solid var(--accent-soft);
  border-right: 1px solid var(--accent-soft);
  z-index: 1;
  pointer-events: none;
}

/* -----------------------------------------------------
   FILMRUTOR — fyra varianter av .film-thumb
----------------------------------------------------- */

/* 001 — inbäddad trailer */
.film-embed { display: grid; place-items: center; }
.film-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fe-play {
  color: var(--white);
  opacity: 0.75;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.fe-play svg { width: clamp(28px, 3.4vw, 42px); height: clamp(28px, 3.4vw, 42px); display: block; }
.film-item:hover .fe-play { opacity: 1; transform: scale(1.06); }
.film-embed.is-playing .fe-play,
.film-embed.is-playing .fe-soon { display: none; }
/* Utan video-id: visa "trailer kommer" i stället för en död knapp */
.film-embed.no-video .fe-play { display: none; }
.fe-soon {
  display: none;
  font-family: var(--ff-display);
  font-size: clamp(0.5rem, 0.72vw, 0.62rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.film-embed.no-video .fe-soon { display: block; }

/* 002 — samarbetslogotyper */
.film-logos {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: clamp(0.4rem, 0.9vw, 0.9rem);
  padding: 0.6rem;
}
.film-logos img {
  max-width: 40%;
  max-height: 38%;
  object-fit: contain;
  /* Logotyperna kommer i alla färger — gör dem enhetligt ljusa */
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.3s;
}
.film-item:hover .film-logos img { opacity: 0.9; }
.fl-empty, .fs-empty {
  font-family: var(--ff-display);
  font-size: clamp(0.5rem, 0.72vw, 0.62rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.film-logos:not(.is-empty) .fl-empty { display: none; }

/* 003 — affischbildspel */
.film-slides {
  display: grid; place-items: center;
  /* Affischer är stående — mörk botten så de får stå hela i den liggande rutan */
  background: #0e0e0e;
}
.film-slides img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  /* contain, inte cover: en beskuren affisch säger ingenting */
  object-fit: contain;
  padding: 3px 3px 10px;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.film-slides img.is-on { opacity: 1; }
.film-slides:not(.is-empty) .fs-empty { display: none; }
.fs-dots {
  position: absolute;
  bottom: 5px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 4px;
  z-index: 2;
}
.fs-dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s;
}
.fs-dots span.is-on { background: var(--accent); }

/* 004 + 005 — skylt i stället för stillbild */
.film-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.06), transparent 70%),
    #131313;
  transition: border-color 0.3s, background 0.4s;
}
.film-sign::before, .film-sign::after { border-color: var(--accent-soft); }
.fsign-mark {
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 2.1vw, 1.7rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
}
/* Ettan i rött — samma lockup som i hero, footern och butiken */
.fsign-mark em { color: var(--accent); font-style: normal; }
.fsign-word {
  font-family: var(--ff-display);
  font-size: clamp(0.46rem, 0.82vw, 0.66rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--text-dim);
  transition: color 0.3s;
}
.film-item:hover .film-sign,
.film-item:focus-within .film-sign { background: #171717; }
.film-item:hover .fsign-word,
.film-item:focus-within .fsign-word { color: var(--text); }
.film-item--store:hover .fsign-word { color: var(--accent); }

.film-body { min-width: 0; }
.film-num {
  font-family: var(--ff-display);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.film-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.75rem; margin-bottom: 0.25rem; }
.film-year  { font-size: 0.56rem; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.film-type, .film-fest { font-size: 0.56rem; letter-spacing: 0.12em; color: var(--text-dim); text-transform: uppercase; }
.film-title {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
  transition: letter-spacing 0.4s var(--ease);
  font-weight: 400;
}
.film-item:hover .film-title,
.film-item:focus-within .film-title { letter-spacing: 0.09em; }
.film-syn {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 56ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   ABOUT PANEL
   ===================================================== */
.about-portrait {
  flex-shrink: 0;
  width: clamp(180px, 24vw, 300px);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.portrait-slot {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #161616;
  border: 1px solid var(--line);
  display: block;
}
.portrait-cap {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.about-content { display: flex; flex-direction: column; gap: clamp(0.9rem, 2vh, 1.4rem); flex: 1; overflow: hidden; min-width: 0; }
.about-lead { font-size: clamp(0.95rem, 1.5vw, 1.1rem); color: var(--white); line-height: 1.75; max-width: 60ch; text-wrap: pretty; }
.about-body { font-size: clamp(0.78rem, 1.25vw, 0.9rem); color: var(--text); line-height: 1.85; max-width: 64ch; text-wrap: pretty; }
.about-body--quiet { color: var(--text-dim); }
.about-nums { display: flex; gap: clamp(1.2rem, 3vw, 2.5rem); padding-top: clamp(0.8rem, 2vh, 1.2rem); border-top: 1px solid var(--line); margin-top: auto; flex-wrap: wrap; }
.about-num-item { display: flex; flex-direction: column; gap: 3px; }
.annum { font-family: var(--ff-display); font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--white); line-height: 1; letter-spacing: 0.02em; }
.anlabel { font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); }

/* =====================================================
   PRACTICE PANEL (was AWARDS — now disciplines list)
   ===================================================== */
.panel-intro {
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  color: var(--text-dim);
  max-width: 58ch;
  line-height: 1.8;
  text-wrap: pretty;
  margin-top: calc(-1 * clamp(0.8rem, 1.6vh, 1.4rem));
}

.awards-list { display: flex; flex-direction: column; flex: 1; justify-content: space-between; overflow: hidden; min-height: 0; }
.award-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 1.6fr;
  gap: 0 2rem;
  align-items: center;
  padding: clamp(0.7rem, 1.4vh, 1rem) 0;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.award-row:last-child { border-bottom: 1px solid var(--line); }
.award-row:hover { border-color: var(--line-s); }
.aw-year   { font-family: var(--ff-display); font-size: 0.78rem; letter-spacing: 0.18em; color: var(--accent); }
.aw-name   { font-family: var(--ff-display); font-size: clamp(0.95rem, 1.6vw, 1.3rem); color: var(--white); letter-spacing: 0.04em; }
.aw-detail { font-size: 0.78rem; color: var(--text-dim); line-height: 1.7; }

/* =====================================================
   PRESS / QUOTES PANEL
   ===================================================== */
.panel-inner--press { gap: clamp(1.5rem, 3vh, 2.5rem); }
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2.2vw, 2rem);
  flex: 1;
  min-height: 0;
  align-content: start;
}
.press-quote {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
  transition: border-color 0.3s, transform 0.4s var(--ease);
  position: relative;
}
.press-quote::before {
  content: '“';
  position: absolute;
  top: -0.4rem;
  left: 0.9rem;
  font-family: var(--ff-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}
.press-quote:hover { border-color: var(--line-s); }
.press-quote blockquote {
  font-family: var(--ff-body);
  font-size: clamp(0.85rem, 1.25vw, 1rem);
  line-height: 1.7;
  color: var(--white);
  font-style: italic;
  text-wrap: pretty;
}
.press-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}
.pq-author { font-family: var(--ff-display); font-size: 0.8rem; letter-spacing: 0.18em; color: var(--white); }
.pq-meta { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); }
.press-note {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* =====================================================
   CONTACT PANEL
   ===================================================== */
.panel-inner--contact { justify-content: center; gap: clamp(1.5rem, 3vh, 2.5rem); }
.contact-intro { font-size: clamp(0.85rem, 1.4vw, 1rem); color: var(--text); max-width: 52ch; line-height: 1.8; text-wrap: pretty; }
.contact-list { display: flex; flex-direction: column; }
.contact-row { display: grid; grid-template-columns: 9rem 1fr; align-items: center; padding: clamp(0.8rem, 1.5vh, 1.1rem) 0; border-top: 1px solid var(--line); gap: 1rem; transition: border-color 0.3s; }
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row:hover { border-color: var(--line-s); }
.cr-label { font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); }
.cr-val { font-size: clamp(0.85rem, 1.4vw, 1rem); color: var(--white); transition: opacity 0.25s; }
.contact-row:hover .cr-val { opacity: 0.65; }
.contact-row--static:hover { border-color: var(--line); }
.contact-row--static:hover .cr-val { opacity: 1; }

/* =====================================================
   FOOTER
   ===================================================== */
#footer { background: var(--bg); border-top: 1px solid var(--line); padding: 2.5rem clamp(1.25rem, 7vw, 7rem); position: relative; z-index: 2; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }
.foot-col { display: flex; flex-direction: column; gap: 0.4rem; }
.foot-col--right { align-items: flex-end; }
.foot-brand { font-family: var(--ff-display); font-size: 1.1rem; letter-spacing: 0.08em; color: var(--text-dim); }
.foot-brand em { color: var(--accent); font-style: normal; }
.foot-copy { font-size: 0.6rem; letter-spacing: 0.15em; color: var(--text-dim); text-transform: uppercase; }
.foot-link { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); transition: color 0.25s; }
.foot-link:hover { color: var(--white); }

/* =====================================================
   FILM REEL CURSOR — custom logo (cursor.png).
   Inverted to white so it reads on the dark site.
   ===================================================== */
#film-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transform: translate3d(-200px, -200px, 0);
  opacity: 0;
  transition: opacity 0.3s;
  background: url('cursor.png') center / contain no-repeat;
  filter: invert(1);
}
#film-cursor.visible { opacity: 1; }

/* =====================================================
   TWEAKS PANEL (accent color)
   ===================================================== */
#tweaks {
  position: fixed;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
  z-index: 10000;
  background: rgba(12,12,12,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-s);
  padding: 1.1rem 1.2rem 1.2rem;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  font-family: var(--ff-body);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
#tweaks.is-open { display: flex; }
.tw-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--white);
}
.tw-close { font-size: 1rem; line-height: 1; color: var(--text-dim); padding: 0 0.25rem; }
.tw-close:hover { color: var(--white); }
.tw-label {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}
.tw-swatches { display: flex; gap: 0.5rem; }
.tw-swatch {
  width: 36px; height: 36px;
  border: 1px solid var(--line-s);
  padding: 0;
  position: relative;
  transition: border-color 0.2s;
}
.tw-swatch:hover { border-color: var(--white); }
.tw-swatch[aria-pressed="true"] { border-color: var(--white); }
.tw-swatch[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--white);
  pointer-events: none;
}
.tw-swatch .sw-dot { position: absolute; inset: 6px; }

/* =====================================================
   RESPONSIVE — Mobile takes a vertical-snap track instead of horizontal wipe
   ===================================================== */
@media (max-width: 900px) {
  /* Disable horizontal-wipe math entirely */
  #h-wrapper { height: auto; }
  #h-sticky { position: static; height: auto; overflow: visible; }
  #h-track { height: auto; }

  .h-panel {
    position: relative;
    inset: auto;
    min-height: 100svh;
    clip-path: none !important;
    will-change: auto;
  }

  .panel-inner {
    height: auto;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 5vw, 2rem) 3rem;
    gap: 1.4rem;
    overflow: visible;
  }

  /* About: vertical stack on phones */
  .panel-inner--about { flex-direction: column; align-items: stretch; padding-top: calc(var(--nav-h) + 1.5rem); gap: 1.5rem; }
  .about-portrait { width: min(220px, 60vw); }

  /* Films: thumb stays as a small inline frame */
  .films-list { gap: 0; flex: none; }
  .film-item {
    grid-template-columns: 92px 1fr;
    gap: 0 1rem;
    flex: none;
  }

  /* Practice list: collapse the detail column under the name on small screens */
  .award-row { grid-template-columns: 2.5rem 1fr; gap: 0.25rem 1rem; padding: 0.9rem 0; }
  .aw-detail { grid-column: 2; font-size: 0.72rem; }

  /* Contact: stacked rows */
  .contact-row { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.9rem 0; }
  .cr-label { margin-bottom: 0.1rem; }

  /* Hide side-nav arrows; rely on scroll + dots */
  .h-arrows { display: none; }
  #h-nav {
    right: 0.6rem;
    top: 50%;
    gap: 0.6rem;
  }
  .h-nav-counter, .h-nav-label { display: none; }

  /* Footer wrap */
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .foot-col--right { align-items: flex-start; }


  /* Hero: pull play button up so it doesn't collide with the dock */
  .hero-play { transform: translate(-50%, calc(-50% + 9vh)); }
  .hero-play svg { width: 48px; height: 48px; }

  /* Press: 1 column */
  .press-grid { grid-template-columns: 1fr; }

  /* Tweaks: pin bottom-center */
  #tweaks { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; min-width: 0; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(2.4rem, 12vw, 6rem); }
  .hero-eyebrow, .hero-sub { letter-spacing: 0.3em; }
  .film-item { grid-template-columns: 78px 1fr; }
  .film-thumb { aspect-ratio: 4 / 3; }

}

/* Hover-capable / pointer guard for mobile (no custom cursor on touch) */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  button, a, .h-dot, .h-arrow { cursor: pointer; }
  #film-cursor { display: none; }
}

/* =====================================================
   REDUCED-MOTION — strip every cinematic flourish
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ld-scan, .ld-num, .hero-down, #grain { animation: none !important; }
  #grain { display: none; }
  /* On reduced motion we also bypass the boot sequence entirely */
  body.reduced-motion #loader { display: none !important; }
  body.reduced-motion { overflow: auto !important; }
}

/* Body-level reduced-motion flag (set in JS — covers user choice via tweak too) */
body.reduced-motion #grain { display: none; }
body.reduced-motion .hero-down,
body.reduced-motion .ld-scan,
body.reduced-motion .ld-num { animation: none !important; }
