/* ==========================================================================
   WHITE ELEPHANT ENTERPRISES: Design System v2
   ==========================================================================
   Palette: black, white, and the grays between, matched to the real mark
   (a hand-built circle-cluster elephant, line-drawn, black on white). No
   color anywhere. The site leans dark/black by default; Paper (white) is
   used sparingly, as a deliberate accent or dramatic pause, not an
   alternating section background.

   Color
   --ink         #141414   primary dark background
   --ink-raised  #202020   card / raised surface on dark
   --paper       #FAFAF7   light background, used sparingly, for accent only
   --silver      #D6D6D0   accent on dark backgrounds: links, slate stamps
   --white       #FFFFFF   hover / bright state on dark; fill buttons
   --graphite    #2A2A28   accent on light backgrounds
   --ash         #9A9A94   secondary text on dark
   --stone       #6E6E68   secondary text on light
   --line        #333333   hairline dividers on dark
   --line-light  #DDDDD6   hairline dividers on light

   Type
   Display: 'Fraunces': warm, characterful serif, used at high optical size
   Body:    'IBM Plex Sans': clean, documentary/utilitarian
   Mono:    'IBM Plex Mono': timecodes, eyebrows, slate labels

   Signature element: the "slate stamp", a small bracketed timecode-style
   tag (e.g. REEL 01) used on every project card, section eyebrow, and the
   credibility badge. Film-perforation dot rows mark section breaks.

   Logo: real mark, two colorways: img/mark-full.png (dark line, for Paper
   sections) and img/mark-full-white.png (white line, for Ink sections).
   Elephant-only and wordmark-only variants also available for compact use.
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #141414;
  --ink-raised: #202020;
  --paper: #FAFAF7;
  --silver: #D6D6D0;
  --white: #FFFFFF;
  --graphite: #2A2A28;
  --ash: #9A9A94;
  --stone: #6E6E68;
  --line: #333333;
  --line-light: #DDDDD6;

  --display: 'Fraunces', Georgia, serif;
  --body: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ---------- Slate stamp / eyebrow ---------- */
.slate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid var(--silver);
  padding: 6px 12px;
  border-radius: 2px;
}
.slate::before { content: "▮"; font-size: 9px; color: var(--silver); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 14px;
  display: block;
}

/* ---------- Perforation divider ---------- */
.perf {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 48px 0;
}
.perf span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
}

/* ---------- Header / Nav ---------- */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(20,20,20,0.92), rgba(20,20,20,0));
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
header.site.scrolled {
  background: rgba(20,20,20,0.96);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }

nav.primary { display: flex; gap: 30px; }
nav.primary a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding-bottom: 4px;
}
nav.primary a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: var(--white);
  transition: width 0.25s ease;
}
nav.primary a:hover::after,
nav.primary a.active::after { width: 100%; }
nav.primary a.active { color: var(--white); }

/* Mobile menu toggle: hidden on desktop, shown under 760px */
.nav-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 16px;
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] { border-color: var(--white); color: var(--white); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 4px 32px 16px;
  }
  nav.primary.open { display: flex; }
  nav.primary a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  nav.primary a:last-child { border-bottom: 0; }
  nav.primary a::after { display: none; }
  header.site:has(nav.primary.open) { background: var(--ink); }
  /* Scrolled header already draws the divider; avoid a doubled line */
  header.site.scrolled nav.primary { border-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,0.97) 0%, rgba(14,14,14,0.68) 45%, rgba(14,14,14,0.35) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 88px; }
.hero-eyebrow { margin-bottom: 22px; }
h1.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.03;
  max-width: 15ch;
  letter-spacing: -0.01em;
}
.hero-title em { font-style: normal; color: var(--white); }
.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 19px;
  color: var(--ash);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid var(--silver);
  transition: all 0.2s ease;
}
.btn-fill { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-fill:hover { background: var(--silver); border-color: var(--silver); }
.btn-outline { color: var(--paper); border-color: var(--line); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }

section.paper .btn-fill { background: var(--graphite); color: var(--paper); border-color: var(--graphite); }
section.paper .btn-fill:hover { background: #000; border-color: #000; }
section.paper .btn-outline { color: var(--graphite); border-color: var(--line-light); }
section.paper .btn-outline:hover { border-color: var(--graphite); color: var(--graphite); }

/* ---------- Sections ---------- */
section { padding: 108px 0; }
section.tight { padding: 72px 0; }
section.paper {
  background: var(--paper);
  color: var(--ink);
}
section.paper .eyebrow, section.paper .slate { color: var(--graphite); border-color: var(--graphite); }
section.paper .muted { color: var(--stone); }

h2.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  max-width: 20ch;
}

p.lede {
  font-size: 19px;
  color: var(--ash);
  max-width: 62ch;
  margin-top: 18px;
}
section.paper p.lede { color: var(--stone); }

.muted { color: var(--ash); }

/* ---------- Credibility strip ---------- */
.credibility {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.credibility .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.credibility p {
  font-size: 15px;
  color: var(--paper);
}
.credibility strong { color: var(--white); font-weight: 600; }

/* ---------- Featured project ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.featured img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
}
@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
}

/* ---------- Reel grid (portfolio) ---------- */
.reel-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
@media (max-width: 860px) {
  .reel-grid { grid-template-columns: 1fr; }
}
.reel-card {
  background: var(--ink);
  padding: 34px 30px;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease;
}
a.reel-card:hover { background: var(--ink-raised); }
.reel-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--silver);
}
.reel-card h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  margin-top: 20px;
  line-height: 1.15;
}
.reel-card p { margin-top: 12px; font-size: 14.5px; color: var(--ash); }
.reel-card .go {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}
.reel-card .go::after { content: " →"; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 50px;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
.stat .n {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 600;
  color: var(--white);
}
section.paper .stat .n { color: var(--graphite); }
.stat .l {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}
section.paper .stat .l { color: var(--stone); }

/* ---------- Quote block ---------- */
.quote {
  border-left: 2px solid var(--silver);
  padding-left: 32px;
  max-width: 60ch;
}
section.paper .quote { border-left-color: var(--graphite); }
.quote p {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  font-weight: 500;
}
.quote cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--silver);
}
section.paper .quote cite { color: var(--graphite); }

/* ---------- Timeline (recognition) ---------- */
.timeline { margin-top: 50px; }
.tl-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-date {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--silver);
}
.tl-body h4 { font-family: var(--display); font-size: 19px; font-weight: 600; }
.tl-body p { margin-top: 6px; font-size: 14.5px; color: var(--ash); }

/* ---------- Cast & crew ---------- */
.credits-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
@media (max-width: 760px) { .credits-grid { grid-template-columns: 1fr; } }
.credits-col .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 26px;
  margin-bottom: 8px;
}
.credits-col .role:first-child { margin-top: 0; }
.credits-col .names { font-family: var(--display); font-size: 18px; line-height: 1.5; }

/* ---------- Conversion tiers ---------- */
.tiers {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--ink);
  padding: 36px 30px;
}
.tier h4 { font-family: var(--display); font-size: 21px; font-weight: 600; }
.tier p { margin-top: 10px; font-size: 14.5px; color: var(--ash); min-height: 60px; }
.tier .btn { margin-top: 18px; }
.tier p.tier-email {
  min-height: 0;
  margin-top: 14px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ---------- Toast (mailto copy fallback) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink-raised);
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
footer.site .fmark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}
footer.site .fsocial { display: flex; gap: 18px; }
footer.site .fsocial a { font-family: var(--mono); font-size: 12px; color: var(--paper); }
footer.site .fsocial a:hover { color: var(--white); }

/* ---------- About teaser split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
