/* shared/tokens.css */
/* Design tokens: change colours, fonts and spacing here and they update everywhere. */
:root {
  /* Colours */
  --bg: #0E100E;
  --panel: #161916;
  --panel-2: #151814;
  --panel-3: #1A1D19;
  --border: #2B302A;
  --border-strong: #3A4038;
  --text: #EDEFE8;
  --muted: #B4BAAE;
  --faint: #8E968A;
  --accent: #9CAF88;
  --accent-hover: #B9C7A8;

  /* Fonts (Impact is a close fallback for Anton while it loads, to avoid jumps) */
  --font-display: "Anton", Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type sizes */
  --fs-hero: clamp(40px, 12.6vw, 168px);
  --fs-h2: clamp(44px, 6vw, 64px);
  --fs-door: clamp(36px, 5vw, 56px);
  --fs-contact: clamp(52px, 8vw, 120px);

  /* Layout */
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(64px, 9vw, 96px);
  --radius-card: 14px;
}


/* shared/base.css */
/* Base styles shared by every section */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section[id] { scroll-margin-top: 16px; }

.eyebrow { margin: 0; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: 1; text-transform: uppercase; }
.section-note { margin: 0; color: var(--muted); font-size: 15px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.logo { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.site-nav a { display: inline-block; padding: 6px 0; }
.site-nav .is-accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 24px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--text); font: 500 15px var(--font-body); cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent-hover); }


/* shared/lightbox.css */
/* Shared video lightbox (see shared/lightbox.js) */
html.lightbox-open { overflow: hidden; }
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(8, 9, 8, 0.95); color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 9, 8, 0.95); }
.lightbox-stage {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 64px 16px 88px;
}
.lightbox-video {
  --ar: 9 / 16;
  aspect-ratio: var(--ar);
  height: min(100%, calc((100vw - 32px) * 16 / 9));
  width: auto; max-width: 100%;
  background: #000; border-radius: 10px; object-fit: contain;
}
.lb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 24px; border: 1px solid var(--border-strong);
  background: rgba(14, 16, 14, 0.8); color: var(--text); cursor: pointer;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.lb-close { position: absolute; top: 12px; right: 12px; }
.lb-nav {
  position: absolute; left: 0; right: 0; bottom: 20px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.lb-count { margin: 0; min-width: 64px; text-align: center; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .lightbox-stage { padding: 40px 120px; }
  .lb-close { top: 24px; right: 24px; }
  .lb-nav { position: static; }
  .lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 28px; }
  .lb-prev { left: 32px; }
  .lb-next { right: 32px; }
  .lb-count { position: absolute; left: 0; right: 0; bottom: 12px; }
}


/* sections/hero/style.css */
.hero { padding-top: clamp(12px, 3vw, 40px); padding-bottom: clamp(48px, 7vw, 72px); }
.hero-eyebrow { margin-bottom: 16px; letter-spacing: 0.18em; font-size: clamp(11px, 2.8vw, 14px); }
.hero-title {
  margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-hero);
  line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase;
}
.hero-line { display: block; }
.hero-line.is-accent { color: var(--accent); }

.showreel {
  position: relative; margin-top: clamp(28px, 5vw, 48px); aspect-ratio: 16 / 9;
  background: var(--panel-3); border: 1px solid var(--border); overflow: hidden;
}
.showreel-video { width: 100%; height: 100%; object-fit: cover; background: var(--panel-3); }
.showreel-shade {
  position: absolute; inset: auto 0 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 16, 14, 0.7), rgba(14, 16, 14, 0));
}
.showreel-play {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text);
}
.showreel-play-circle {
  display: flex; align-items: center; justify-content: center;
  width: clamp(64px, 10vw, 96px); height: clamp(64px, 10vw, 96px); border-radius: 50%;
  background: var(--accent); color: var(--bg); transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.showreel-play-circle svg { width: 40%; height: 40%; margin-left: 6%; }
.showreel-play:hover .showreel-play-circle { transform: scale(1.06); background: var(--accent-hover); }
.showreel-play-text {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.showreel-label {
  position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(10px, 1.6vw, 20px); margin: 0;
  font-size: clamp(11px, 2.6vw, 14px); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
  pointer-events: none;
}
.showreel-mute {
  position: absolute; right: clamp(10px, 1.6vw, 20px); bottom: clamp(8px, 1.4vw, 16px);
  width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(237, 239, 232, 0.25); background: rgba(14, 16, 14, 0.6); color: var(--text); cursor: pointer;
}
.showreel-mute:hover { border-color: var(--accent); color: var(--accent-hover); }
.showreel-mute .icon-sound { display: none; }
.showreel-mute[aria-pressed="true"] .icon-sound { display: block; }
.showreel-mute[aria-pressed="true"] .icon-muted { display: none; }

/* While watching with sound, the native controls take over */
.showreel[data-state="sound"] .showreel-play,
.showreel[data-state="sound"] .showreel-label,
.showreel[data-state="sound"] .showreel-mute,
.showreel[data-state="sound"] .showreel-shade { display: none; }

@media (max-width: 560px) {
  .showreel-play-text { display: none; }
  .showreel-label { display: none; }
}


/* sections/doors/style.css */
.doors { display: grid; grid-template-columns: 1fr; gap: 16px; padding-bottom: var(--section-gap); }
@media (min-width: 820px) { .doors { grid-template-columns: 1fr 1fr; gap: 24px; } }
.door {
  min-height: clamp(200px, 24vw, 260px); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  background: var(--panel); border: 1px solid var(--border); transition: border-color 0.2s ease;
}
.door:hover { border-color: var(--accent); color: var(--text); }
.door-title { font-family: var(--font-display); font-size: var(--fs-door); line-height: 1; text-transform: uppercase; }
.door-text { font-size: 16px; color: var(--muted); }
.door-arrow { display: inline-block; transition: transform 0.2s ease; color: var(--accent); }
.door:hover .door-arrow { transform: translateX(4px); }


/* sections/reels/style.css */
.reels-band { background: var(--panel-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(56px, 8vw, 80px) 0; }
.reel-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(10px, 1.4vw, 16px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px)  { .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .reel-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.reel-card {
  position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 9 / 16;
  border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden;
  background: var(--panel-3); cursor: pointer; transition: border-color 0.2s ease;
}
.reel-card:hover { border-color: var(--accent); }
.reel-card img, .reel-card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.reel-card video { opacity: 0; transition: opacity 0.25s ease; }
.reel.is-playing .reel-card video { opacity: 1; }
.reel-icon {
  position: absolute; top: 12px; right: 12px; color: var(--text); z-index: 1;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6)); transition: opacity 0.2s ease;
}
.reel.is-playing .reel-icon { opacity: 0; }
.reel-title {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; text-align: left;
  font-size: 14px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.reels-more { margin-top: 32px; display: flex; justify-content: center; }
.reels-count { color: var(--muted); font-variant-numeric: tabular-nums; }


/* sections/writing/style.css */
.writing { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.writing-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.writing-row {
  display: grid; gap: 6px 32px; padding: 22px 0; border-top: 1px solid var(--border);
  grid-template-columns: 1fr auto;
  grid-template-areas: "title open" "type type" "desc desc";
  transition: background 0.2s ease;
}
.writing-row:hover { color: var(--text); }
.writing-row:hover .writing-title { color: var(--accent-hover); }
.writing-title { grid-area: title; font-size: clamp(20px, 2.2vw, 22px); font-weight: 600; line-height: 1.3; transition: color 0.2s ease; }
.writing-desc { grid-area: desc; font-size: 15px; color: var(--muted); line-height: 1.55; }
.writing-type { grid-area: type; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.writing-open { grid-area: open; font-size: 13px; color: var(--faint); white-space: nowrap; align-self: center; }
.writing-row:hover .writing-open { color: var(--accent-hover); }
@media (min-width: 900px) {
  .writing-row {
    grid-template-columns: minmax(220px, 280px) 1fr minmax(160px, 220px) auto;
    grid-template-areas: "title desc type open";
    align-items: baseline;
  }
  .writing-type { text-align: right; }
}


/* sections/contact/style.css */
.contact { padding-top: var(--section-gap); padding-bottom: 56px; }
.contact-title {
  margin: 0 0 32px; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-contact);
  line-height: 0.95; text-transform: uppercase;
}
.contact-title span { display: block; }
.contact-title span:last-child { color: var(--accent); }
.contact-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: clamp(17px, 2vw, 20px); }
.contact-links a { display: inline-block; padding: 6px 0; border-bottom: 1px solid var(--border-strong); overflow-wrap: anywhere; }
.contact-links a:hover { border-color: var(--accent); }
.contact-foot { margin: 64px 0 0; font-size: 13px; color: var(--faint); }
