/* Cinematic Movement Lab — styles
   Palette: near-black, logo-matched copper, muted warm greys. No build step. */

:root {
  --bg: #080909;
  --panel: #101212;
  --panel-2: #151717;
  --text: #f2f0e9;
  --text-2: #c4c3bb;       /* lead copy */
  --muted: #a5a69f;        /* body copy — 8:1 on --bg */
  --gold: #d8924c;         /* accent, sampled toward the logo copper — 7.7:1 on --bg */
  --copper: #e07b26;       /* glows and fine lines only, never body text */
  --line: rgba(242, 240, 233, .13);
  --line-strong: rgba(242, 240, 233, .24);
  --max: 1240px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: Manrope, "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: var(--gold); color: var(--bg); }

/* Keyboard focus: visible, on-brand, never removed */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--bg);
  padding: 10px 16px; font-size: 14px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header {
  height: 88px;
  max-width: var(--max);
  width: calc(100% - var(--gutter) * 2);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}
.wordmark span { white-space: nowrap; }
.wordmark {
  display: flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: .16em;
  font: 700 11px/1.35 var(--display);
}
.wordmark img {
  width: 44px; height: 44px; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(216, 146, 76, .45);
}
.site-header nav { display: flex; gap: 40px; color: var(--text-2); font-size: 13px; }
.site-header nav a, .header-link { position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.site-header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-header nav a:hover, .header-link:hover { color: var(--gold); }
.site-header nav a:hover::after { transform: scaleX(1); }
.header-link { font-size: 13px; color: var(--gold); letter-spacing: .03em; white-space: nowrap; }
.header-link span { padding-left: 8px; display: inline-block; transition: transform .25s var(--ease); }
.header-link:hover span { transform: translate(2px, -2px); }

.menu-toggle { display: none; background: none; border: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 640px;
  height: calc(100vh - 88px);
  height: calc(100svh - 88px);
  max-height: 880px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Horizon glow taken from the brand artwork (lettering cropped out) — sits low, never behind the headline */
.hero-image {
  position: absolute; inset: auto 0 0 0; height: 62%;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(8, 9, 9, 0) 45%),
    url('assets/horizon.webp') 78% 100% / cover no-repeat;
  opacity: .75;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 25%, rgba(0,0,0,.6) 50%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 0%, transparent 25%, rgba(0,0,0,.6) 50%, #000 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 28%),
              radial-gradient(ellipse 60% 50% at 72% 78%, rgba(224, 123, 38, .10), transparent 70%);
}

.hero-content {
  position: relative; z-index: 2;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin: 0 auto; padding: 48px 0 96px;
}
.eyebrow {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 0;
}
.hero .eyebrow { display: flex; align-items: center; gap: 14px; }
.hero .eyebrow span { width: 32px; height: 1px; background: var(--gold); }

h1, h2 { font-family: var(--display); letter-spacing: -.045em; font-weight: 500; line-height: 1.04; }
h1 { font-size: clamp(48px, 7.4vw, 104px); margin: 28px 0 30px; }
h1 em, h2 em { font-style: normal; color: var(--gold); }
.hero-copy { font-size: 18px; line-height: 1.7; color: var(--text-2); max-width: 30em; margin-bottom: 40px; }

.text-link {
  display: inline-flex; gap: 24px; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--gold);
  color: var(--text); font-size: 14px; letter-spacing: .04em;
  transition: gap .3s var(--ease), color .2s var(--ease);
}
.text-link span { color: var(--gold); font-size: 18px; line-height: 1; }
.text-link:hover { gap: 34px; color: var(--gold); }

.hero-index {
  position: absolute; z-index: 2;
  right: max(var(--gutter), calc((100% - var(--max)) / 2)); bottom: 28px;
  font-size: 11px; letter-spacing: .24em; color: var(--muted);
}

/* ---------- Sections ---------- */
.section { max-width: var(--max); width: calc(100% - var(--gutter) * 2); margin: auto; padding: 128px 0; }
.section-heading { max-width: 760px; margin-bottom: 56px; }
.section-heading h2, .project-grid h2 { font-size: clamp(38px, 5.4vw, 68px); margin: 20px 0 24px; }
.section-lead { font-size: 18px; line-height: 1.7; color: var(--text-2); max-width: 680px; }

/* ---------- Film ---------- */
.film-section { padding-top: 112px; }
.film-frame {
  position: relative; aspect-ratio: 16 / 9;
  background: #0c0d0d; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(224, 123, 38, .18);
}
.film-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; position: relative; z-index: 1; }
.film-placeholder {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background:
    linear-gradient(180deg, #0c0d0d 0%, rgba(12, 13, 13, .55) 35%, rgba(12, 13, 13, .1) 65%, rgba(8, 9, 9, .5) 100%),
    url('assets/horizon.webp') center 70% / cover no-repeat,
    #0c0d0d;
}
.film-placeholder[hidden] { display: none; }
.play-mark {
  width: 72px; height: 72px; border: 1px solid rgba(242, 240, 233, .55); border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px; color: var(--gold);
  background: rgba(8, 9, 9, .35); backdrop-filter: blur(4px);
}
.play-mark svg { width: 18px; height: 18px; margin-left: 3px; }
.placeholder-title { font: 600 22px/1.3 var(--display); letter-spacing: -.02em; }
.placeholder-copy { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.film-caption { font-size: 11px; letter-spacing: .22em; color: var(--muted); margin: 18px 0 0; }
.film-caption span { color: var(--gold); padding: 0 10px; }

/* ---------- Project ---------- */
.project-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-number { font-size: 11px; letter-spacing: .22em; color: var(--gold); }
.project-number span { color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin: 36px 0 96px; align-items: start; }
.project-grid h2 { margin: 0; }
.project-copy p:not(.section-lead) { color: var(--muted); font-size: 16px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillars article { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.pillars article > span, .person-number { font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.pillars h3 { font: 600 22px/1.25 var(--display); letter-spacing: -.02em; margin: 28px 0 8px; }
.pillars p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Team ---------- */
.team-section { padding-bottom: 144px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person-card {
  min-height: 320px; padding: 32px;
  background: linear-gradient(150deg, var(--panel-2), #0c0e0e);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.person-card:hover { border-color: rgba(216, 146, 76, .4); transform: translateY(-3px); }
.person-card h3 { font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--display); margin: 0 0 10px; padding-top: 48px; letter-spacing: -.035em; }
.person-role { color: var(--gold); font-size: 13px; letter-spacing: .02em; margin-bottom: 0; }
.person-card > p:last-child { color: var(--muted); font-size: 15px; margin: 18px 0 0; }

/* ---------- Partners ---------- */
.partners-section {
  max-width: none; width: auto; margin: 0;
  background: var(--panel);
  padding: 112px max(var(--gutter), calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.partners-section h2 { font-size: clamp(40px, 6vw, 72px); margin: 18px 0 20px; }
.partners-section .section-lead { max-width: 560px; }
.partner-list { margin-top: 56px; border-top: 1px solid var(--line-strong); }
.partner-list > div {
  display: grid; grid-template-columns: 64px 1fr 280px; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.partner-list > div:hover { padding-left: 10px; }
.partner-list span { font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.partner-list strong { font: 500 clamp(20px, 2.2vw, 26px)/1.2 var(--display); letter-spacing: -.02em; }
.partner-list small { font-size: 14px; color: var(--muted); text-align: right; }

/* ---------- Closing & footer ---------- */
.closing-section {
  text-align: center; padding: 144px 24px 152px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 55% 60% at 50% 100%, rgba(224, 123, 38, .16), transparent 70%);
}
.closing-section::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(320px, 50%); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
.closing-section .eyebrow { margin-bottom: 0; }
.closing-section h2 { font-size: clamp(40px, 6.6vw, 86px); margin: 28px auto 44px; }

.site-footer {
  min-height: 92px; border-top: 1px solid var(--line);
  padding: 24px max(var(--gutter), calc((100% - var(--max)) / 2));
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  color: var(--muted); font-size: 13px;
}
.footer-name { letter-spacing: .16em; color: var(--text); font-weight: 700; font-size: 12px; }
.site-footer span:last-child { white-space: nowrap; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero-image { height: 45%; -webkit-mask-image: none; mask-image: none; opacity: .55; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid .person-card:last-child { grid-column: 1 / -1; min-height: 260px; }
  .partner-list > div { grid-template-columns: 48px 1fr 220px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .site-header { height: 72px; }
  .wordmark { font-size: 10px; }
  .wordmark img { width: 38px; height: 38px; }
  .site-header nav {
    display: none; position: absolute; top: 72px; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
    background: rgba(13, 15, 15, .98); padding: 8px var(--gutter) 20px;
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); font-size: 17px;
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header nav a:last-child { border-bottom: 0; }
  .site-header nav a::after { display: none; }
  .header-link { margin-left: auto; font-size: 13px; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  }
  .menu-toggle span { grid-area: 1 / 1; width: 22px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  .menu-toggle span:first-child { transform: translateY(-4px); }
  .menu-toggle span:last-child { transform: translateY(4px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

  .hero { min-height: 560px; height: calc(100svh - 72px); max-height: 740px; }
  .hero-content { padding: 24px 0 120px; }
  .hero-image { height: 32%; background-position: 50% 100%; opacity: .5; }
  h1 { font-size: clamp(44px, 13vw, 60px); margin: 22px 0 22px; }
  .hero-copy { font-size: 16px; margin-bottom: 32px; }
  .hero-index { right: var(--gutter); left: var(--gutter); bottom: 24px; font-size: 10px; text-align: right; }

  .section { padding: 88px 0; }
  .film-section { padding-top: 80px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .project-grid h2 { font-size: clamp(34px, 9.6vw, 44px); }
  .section-lead { font-size: 16px; }
  .film-caption { font-size: 10px; }
  .play-mark { width: 60px; height: 60px; margin-bottom: 16px; }
  .placeholder-title { font-size: 18px; }
  .placeholder-copy { font-size: 13px; }

  .project-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .project-copy p:not(.section-lead) { font-size: 15px; }
  .pillars, .team-grid { grid-template-columns: 1fr; }
  .pillars { gap: 28px; }
  .pillars h3 { margin-top: 16px; }
  .team-grid .person-card:last-child { grid-column: auto; }
  .person-card { min-height: 0; padding: 28px 24px; }
  .person-card h3 { padding-top: 36px; }

  .partners-section { padding: 80px var(--gutter); }
  .partner-list > div { grid-template-columns: 36px 1fr; gap: 4px 8px; padding: 20px 0; }
  .partner-list > div:hover { padding-left: 0; }
  .partner-list small { grid-column: 2; text-align: left; }
  .closing-section { padding: 104px var(--gutter) 112px; }
  .site-footer { padding: 28px var(--gutter); flex-wrap: wrap; font-size: 12px; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; }
}

@media (hover: none) {
  .person-card:hover { transform: none; }
  .partner-list > div:hover { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
