/* ==========================================================
   Design tokens — teal/amber grading wheel, film-lab palette
   ========================================================== */
:root {
  --void: #0e0f10;
  --void-2: #17181a;
  --void-3: #202224;
  --teal: #3fbfbf;
  --teal-soft: #79d6d6;
  --amber: #e2793d;
  --amber-soft: #f0a66b;
  --paper: #edeae3;
  --paper-dim: #9c9890;
  --line: rgba(237, 234, 227, 0.12);

  --acc-feature-film: #3fbfbf;
  --acc-television: #e2793d;
  --acc-branding: #79d6d6;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-soft);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 15, 16, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand span { color: var(--teal); }

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav a {
  text-decoration: none;
  color: var(--paper-dim);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover, .site-nav a.is-current { color: var(--paper); border-color: var(--amber); }

/* ---------------- Hero ---------------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }

.hero-content { position: relative; z-index: 2; padding: 108px 0 64px; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin: 0 0 22px;
}
.hero-kicker em { font-style: normal; color: var(--teal-soft); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 26px;
  max-width: 20ch;
}
.hero h1 em { font-style: normal; color: var(--amber); }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--paper-dim);
  max-width: 50ch;
  margin: 0 0 40px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 2px;
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-primary { background: var(--amber); color: var(--void); border-color: var(--amber); font-weight: 600; }
.btn-primary:hover { background: var(--amber-soft); transform: translateY(-1px); }
.btn-ghost { color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper-dim); }

/* ---- Filmstrip band (signature element) ---- */

.filmband {
  position: relative;
  height: 130px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--void-2);
}
.filmband-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: filmband-scroll 46s linear infinite;
}
.filmband-track img { height: 100%; width: auto; display: block; }
@keyframes filmband-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.filmband-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--void) 0%, transparent 8%, transparent 92%, var(--void) 100%);
}

/* ---------------- Section scaffolding ---------------- */

.section { padding: 92px 0; border-bottom: 1px solid var(--line); }
.section-tight { padding: 68px 0; }
.section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  margin: 10px 0 0;
}
.section-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--teal-soft);
  border-bottom: 1px solid rgba(63, 191, 191, 0.4);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-link:hover { border-color: var(--teal-soft); }

/* ---------------- Grid / Cards ---------------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }

.card { background: none; border: none; padding: 0; text-align: left; color: inherit; display: block; }

.card-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--void-2);
}
.card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
}
.card-play svg { width: 46px; height: 46px; fill: var(--void); background: var(--amber); border-radius: 50%; padding: 12px; box-sizing: content-box; }

.card-glow { position: absolute; inset: 0; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.25s ease; pointer-events: none; }

.card:hover .card-thumb { transform: scale(1.045); }
.card:hover .card-play { opacity: 1; }
.card:hover .card-glow { box-shadow: inset 0 0 0 1px rgba(226, 121, 61, 0.55); }
.card:focus-visible .card-frame { outline: 2px solid var(--teal-soft); outline-offset: 3px; }

.card-meta { padding-top: 14px; }
.card-title { display: block; font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 4px; }
.card-sub { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--paper-dim); }

/* ---------------- Before / after slider ---------------- */

.breakdowns { display: grid; gap: 56px; }
.breakdown-item { display: grid; grid-template-columns: 1fr; gap: 18px; }
.breakdown-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.breakdown-caption h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; margin: 0; }
.breakdown-caption p { color: var(--paper-dim); font-size: 14px; margin: 0; font-family: var(--font-mono); }

.slider {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  background: var(--void-2);
}
.slider img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slider-before, .slider-after { position: absolute; inset: 0; }
.slider-after { clip-path: inset(0 50% 0 0); }
.slider-label {
  position: absolute; top: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(14,15,16,0.7); padding: 6px 12px; border-radius: 2px; border: 1px solid var(--line);
}
.slider-label.before-label { left: 16px; }
.slider-label.after-label { right: 16px; }
.slider-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: var(--paper);
  transform: translateX(-50%);
}
.slider-handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  background-image:
    linear-gradient(var(--void) 2px, transparent 0),
    linear-gradient(90deg, var(--void) 2px, transparent 0);
  background-size: 8px 100%, 100% 8px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ---------------- Notes ---------------- */

.notes-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.note { border-top: 1px solid var(--line); padding-top: 20px; }
.note .eyebrow { display: block; margin-bottom: 10px; }
.note h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 19px; font-weight: 500; margin: 0 0 10px; }
.note p { color: var(--paper-dim); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------------- Skills & Talents ---------------- */

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
  margin-top: 36px;
}
.skill-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.skill-emoji { font-size: 20px; }
.skill-item strong { font-weight: 600; }
.skill-item span.detail { color: var(--paper-dim); font-size: 14px; }

.lede {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  max-width: 40ch;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.lede em { color: var(--amber); font-style: normal; }

/* ---------------- Filters (reel page) ---------------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line); color: var(--paper-dim);
  padding: 10px 18px; border-radius: 999px; transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--paper-dim); color: var(--paper); }
.filter-btn.is-active { background: var(--amber); border-color: var(--amber); color: var(--void); font-weight: 600; }

.page-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(34px, 5vw, 54px); font-weight: 600; margin: 12px 0 14px;
}
.page-hero p { color: var(--paper-dim); max-width: 54ch; font-size: 16px; }

/* ---------------- Footer ---------------- */

.site-footer { padding: 56px 0 48px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; }
.footer-tag { font-family: var(--font-mono); font-size: 12px; color: var(--paper-dim); letter-spacing: 0.05em; margin-top: 8px; }

.social-row { display: flex; gap: 12px; }
.social-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--paper-dim);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.social-icon:hover { border-color: var(--teal-soft); color: var(--teal-soft); }
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

.footer-fine { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--paper-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-fine a { color: var(--paper-dim); text-decoration: none; }
.footer-fine a:hover { color: var(--teal-soft); }

/* ---------------- Modal / player ---------------- */

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 7, 8, 0.86); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; z-index: 1; max-width: 980px; margin: 4vh auto; max-height: 92vh; overflow-y: auto;
  background: var(--void-2); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(14, 15, 16, 0.7); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: var(--paper); stroke-width: 2; }
.modal-close:hover { border-color: var(--paper-dim); }

.modal-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px 6px 0 0; overflow: hidden; }
.modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.modal-info { padding: 28px 30px 32px; }
.modal-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-soft); margin: 0 0 8px; }
.modal-heading h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 27px; font-weight: 600; margin: 0 0 16px; }
.modal-desc { color: var(--paper-dim); font-size: 15px; line-height: 1.6; max-width: 60ch; }

.modal-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--line); color: var(--paper);
  padding: 11px 18px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: border-color 0.2s;
}
.share-btn svg { width: 15px; height: 15px; fill: var(--teal-soft); }
.share-btn:hover { border-color: var(--teal-soft); }
.share-status { font-family: var(--font-mono); font-size: 12px; color: var(--teal); }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .notes-list { grid-template-columns: 1fr; }
  .skills-list { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero-content { padding: 84px 0 48px; }
  .filmband { height: 90px; }
  .modal-panel { margin: 0; max-height: 100vh; border-radius: 0; }
  .modal-video { border-radius: 0; }
}
