@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --bg:        #f0efeb;
  --surface:   #e4e3de;
  --border:    #0d0d0d;
  --text:      #0d0d0d;
  --muted:     #555;
  --accent:    #d4000d;
  --font-head: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w:     860px;
  --nav-h:     60px;
}

html { font-size: 16px; scroll-behavior: smooth; }

/* subtle dot-grid paper texture */
body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(0,0,0,0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

img { display: block; max-width: 100%; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.0;
  color: var(--text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  max-width: 65ch;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  line-height: 1.78;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ── Nav ────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 3px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-logo:hover { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 560px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 3px solid var(--border);
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links li a {
    display: block;
    padding: 1rem 2rem;
    border-top: 1px solid var(--surface);
  }
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 3px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 3px solid var(--border);
  margin: 3rem 0;
}

/* ── Video embed ────────────────────────────────────────── */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border: 2px solid var(--border);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--text);
  border: none;
  border-radius: 0;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  -webkit-appearance: none;
}
.btn:hover { background: var(--accent); color: #fff; }

/* ── Form ───────────────────────────────────────────────── */
label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.4rem;
}

input, textarea {
  width: 100%;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem; /* must be ≥16px to prevent iOS auto-zoom */
  font-weight: 400;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #aaa; }

textarea { min-height: 150px; resize: vertical; }

.form-success {
  display: none;
  padding: 1.2rem 1.4rem;
  background: #fff;
  border: 2px solid var(--border);
  border-left: 5px solid var(--accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════════════════════ */
.hero-video-section {
  width: 100%;
  background: #000;
  border-bottom: 3px solid var(--border);
  flex-shrink: 0;
}
.hero-video-section .video-wrap { border: none; }

.home-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 7rem;
  text-align: center;
}

.home-film-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.0;
  margin-bottom: 3rem;
}

.home-desc { margin-bottom: 3rem; }

.home-desc p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.82;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: none;
  margin-bottom: 1.6rem;
}
.home-desc p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   RESEARCH PAGE
══════════════════════════════════════════════════════════ */
.research-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 7rem;
  flex: 1;
}

.research-wrap > h1 {
  border-bottom: 3px solid var(--border);
  padding-bottom: 1.2rem;
  margin-bottom: 3.5rem;
}

.source {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 3px solid var(--border);
}
.source:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (max-width: 660px) {
  .source { grid-template-columns: 1fr; gap: 2rem; }
  .source .source-media { order: 2; }
  .source .source-text  { order: 1; }
}

.source-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  line-height: 1.05;
}

.source-text h2 a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.2);
  text-underline-offset: 4px;
}
.source-text h2 a:hover { color: var(--accent); text-decoration-color: var(--accent); }

.source-text p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  max-width: none;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin-bottom: 1.1rem;
}
.source-text p:last-child { margin-bottom: 0; }

.source-text a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.25);
  text-underline-offset: 2px;
  font-weight: 600;
}
.source-text a:hover { color: var(--accent); }

.source-text .btn-source,
.btn-source {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--text);
  border: none;
  border-radius: 0;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  transition: background 0.15s;
}
.source-text .btn-source:hover,
.btn-source:hover { background: var(--accent); color: #fff; }

.source-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border: 2px solid var(--border);
}
.source-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.source-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border: 2px solid var(--border);
  min-height: 160px;
}
.source-logo img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ══════════════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════════════ */
.about-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 7rem;
  flex: 1;
}

.about-wrap > h1 {
  margin-bottom: 2.5rem;
}

/* portrait + bio side by side */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

@media (max-width: 620px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
  display: block;
}

.about-body p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.82;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: none;
  margin-bottom: 1.5rem;
}
.about-body p:last-child { margin-bottom: 0; }

/* action shot below bio */
.about-skate {
  border-top: 3px solid var(--border);
  padding-top: 3rem;
}

.about-skate img {
  width: 100%;
  display: block;
  border: 2px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════════ */
.contact-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 7rem;
  flex: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 620px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-intro h1 { margin-bottom: 1rem; }

.contact-intro > p {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  max-width: none;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

form { display: flex; flex-direction: column; gap: 1.4rem; }

/* ══════════════════════════════════════════════════════════
   MOBILE  (≤ 480px)
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* tighter page padding */
  .home-content  { padding: 2.5rem 1.2rem 4rem; }
  .research-wrap { padding: 2.5rem 1.2rem 4rem; }
  .about-wrap    { padding: 2.5rem 1.2rem 4rem; }
  .contact-wrap  { padding: 2.5rem 1.2rem 4rem; }

  /* slightly smaller h1 floor so long titles don't wrap awkwardly */
  h1 { font-size: clamp(2.6rem, 9vw, 7rem); }

  /* home */
  .home-film-title { font-size: clamp(2rem, 8vw, 5.5rem); margin-bottom: 2rem; }
  .home-desc { margin-bottom: 2rem; }
  .home-desc p { font-size: 1rem; }

  /* research sources */
  .source { gap: 1.5rem; padding-bottom: 2.5rem; margin-bottom: 2.5rem; }

  /* about — cap portrait width so it doesn't fill the whole screen */
  .about-grid { gap: 2rem; margin-bottom: 2rem; }
  .about-portrait { max-width: 160px; }
  .about-skate { padding-top: 2rem; }

  /* contact */
  .contact-layout { gap: 2rem; }

  /* bigger tap targets on buttons */
  .btn, .btn-source { padding-top: 1rem; padding-bottom: 1rem; }
}
