/* ============================================================
   OVERHAND FILMS — main.css
   Palette: film black / bone / Vegas gold.
   Type: Big Shoulders Display (display) · Archivo (body) · IBM Plex Mono (meta)
   ============================================================ */

/* self-hosted fonts (latin subsets, ~100 KB total) */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal; font-weight: 800; font-display: swap;
  src: url("../assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/archivo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/archivo-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --ink: #0C0B08;
  --ink-2: #14110C;
  --bone: #EDE8DF;
  --dim: #8A8578;
  --gold: #C9A34A;
  --gold-2: #E3C572;
  --line: rgba(237, 232, 223, 0.14);
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 0.61, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 400;
}
/* fine print */
.footer .mono, figcaption.mono { font-size: 0.72rem; }
.gold-text { color: var(--gold); }
.dim { color: var(--dim); }
.nowrap { white-space: nowrap; }

.skip {
  position: fixed; top: -4rem; left: 1rem; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: 0.6rem 1rem; font-family: var(--font-mono);
  transition: top 0.2s;
}
.skip:focus { top: 1rem; }

/* film grain over everything (very low, ignores modals via z-index) */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 90; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain-shift 0.9s steps(4) infinite; }
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.2%, 0.8%); }
  50% { transform: translate(0.7%, -1.1%); }
  75% { transform: translate(-0.6%, -0.7%); }
  100% { transform: translate(0, 0); }
}

/* ============================== nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--pad);
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 11, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 0.65rem; }
.nav-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.nav-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.35s;
}
/* the hero states the name; the nav repeats it only once you've scrolled past */
.nav.scrolled .nav-word { opacity: 1; }
.nav nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav nav a {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); transition: color 0.25s;
}
.nav nav a:hover, .nav nav a:focus-visible { color: var(--bone); }
.nav-cta {
  color: var(--gold) !important;
  border: 1px solid rgba(201, 163, 74, 0.45);
  padding: 0.45rem 0.9rem;
  transition: background 0.25s, color 0.25s !important;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--gold); color: var(--ink) !important; }

/* ============================== hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--pad) 5rem;
  overflow: hidden;
}
.hero-mark {
  position: absolute; z-index: 0;
  width: clamp(320px, 46vw, 720px); height: auto;
  right: -9%; top: 2%;
  color: var(--gold);
  opacity: 0.22;
}
.hero-inner { position: relative; z-index: 1; max-width: 1200px; }
.eyebrow {
  display: flex; gap: 1.5em; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone);
}
.hero-eyebrow { margin-bottom: 2.2rem; }
h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 13.5vw, 12.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.h1-line { display: block; overflow: hidden; }
.h1-line > span { display: block; }
.h1-line.gold > span { color: var(--gold); }
.hero-sub {
  margin-top: 2.4rem; max-width: 37rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--bone);
}
.hero-sub strong { font-weight: 600; white-space: nowrap; }
.hero-lanes { margin-top: 1.4rem; color: var(--dim); }
.hero-foot {
  position: absolute; z-index: 1;
  left: var(--pad); right: var(--pad); bottom: 1.6rem;
  display: flex; justify-content: space-between; color: var(--dim);
}
.hero-foot-mail { color: var(--dim); transition: color 0.25s; }
.hero-foot-mail:hover, .hero-foot-mail:focus-visible { color: var(--gold); }

/* hero load sequence */
@media (prefers-reduced-motion: no-preference) {
  .h1-line > span {
    transform: translateY(110%);
    animation: rise 0.9s var(--ease) forwards;
  }
  .h1-line:nth-child(2) > span { animation-delay: 0.12s; }
  .hero-eyebrow, .hero-sub, .hero-lanes, .hero-foot {
    opacity: 0; animation: fade-in 0.9s var(--ease) 0.55s forwards;
  }
  .hero-mark {
    opacity: 0;
    transform: translate(16%, -16%) scale(1.04);
    animation: punch-in 1.1s var(--ease) 0.25s forwards;
  }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes punch-in { to { opacity: 0.22; transform: translate(0, 0) scale(1); } }

/* hero reel button */
.reel-btn {
  margin-top: 2.4rem;
  display: inline-block;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 163, 74, 0.5);
  padding: 0.9rem 1.7rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.reel-btn:hover, .reel-btn:focus-visible {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
}

/* ============================== sections */
.section { padding: clamp(4rem, 7vw, 6.5rem) var(--pad); }
#services, #contact { border-top: 1px solid var(--line); }
#founders { background: var(--ink-2); }
.section-head { max-width: 1200px; margin: 0 auto 3rem; }
.section-head .eyebrow { margin-bottom: 1.2rem; color: var(--dim); }
h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1; text-transform: uppercase;
}
.section-note { margin-top: 1rem; color: var(--dim); max-width: 30rem; }

/* scroll reveals */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--stagger, 0s);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
}

/* ============================== looks / master frames */
.frames {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.frame {
  position: relative; display: block; width: 100%; margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  overflow: hidden;
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.frame:hover img, .frame:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.08);
}
/* diagonal reveal wipe — the overhand trajectory */
@media (prefers-reduced-motion: no-preference) {
  .frame::before {
    content: ""; position: absolute; inset: -20%;
    background: var(--ink);
    z-index: 2; pointer-events: none;
    transition: transform 1s var(--ease);
  }
  .frame.in::before { transform: translate(-125%, 88%); }
}

/* ============================== services / lanes */
.lanes { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); }
.lane {
  display: grid;
  grid-template-columns: minmax(3.5rem, 8rem) 1.2fr 1.6fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.8rem, 3.5vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.lane-tag { color: var(--gold); padding-top: 0.55rem; }
.lane h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.02; text-transform: uppercase;
  text-wrap: balance;
}
.lane-body p { color: var(--bone); max-width: 38rem; }
.lane-del { margin-top: 1.1rem; color: var(--dim); }
/* gold trajectory tick on hover */
.lane::after {
  content: ""; position: absolute; left: -1.2rem; top: 50%;
  width: 3px; height: 0;
  background: var(--gold);
  transform: translateY(-50%) rotate(35deg);
  transition: height 0.4s var(--ease);
}
.lane:hover::after { height: 46px; }

/* ============================== founders */
.founders {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.founders-photo img { width: 100%; }
.founders-photo figcaption { margin-top: 0.8rem; color: var(--dim); }
.founders-copy p + p { margin-top: 1.2rem; }
.founders-copy strong { font-weight: 600; white-space: nowrap; }
.founders-facts { margin-top: 2rem; color: var(--gold); border-top: 1px solid var(--line); padding-top: 1.4rem; }

/* ============================== contact */
.contact {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-copy { position: sticky; top: 6.5rem; }
.contact-copy p { max-width: 24rem; }
.contact-mail {
  display: inline-block; margin: 1.8rem 0 1rem;
  font-family: var(--font-mono); font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 163, 74, 0.5);
  padding-bottom: 0.35rem;
  overflow-wrap: break-word;
  transition: color 0.25s, border-color 0.25s;
}
.contact-mail:hover, .contact-mail:focus-visible { color: var(--gold-2); border-color: var(--gold-2); }
.contact-loc { color: var(--dim); }

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.fld { display: flex; flex-direction: column; gap: 0.45rem; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.fld label {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.fld .opt { color: rgba(138, 133, 120, 0.6); }
.fld input, .fld select, .fld textarea {
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--font-body); font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0;
  transition: border-color 0.25s;
  width: 100%;
}
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.fld textarea { resize: vertical; min-height: 7rem; }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none; border-color: var(--gold);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--gold); color: var(--ink);
  border: 1px solid var(--gold);
  padding: 0.95rem 2.2rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.submit:hover, .submit:focus-visible { background: var(--gold-2); border-color: var(--gold-2); }
.submit:disabled { opacity: 0.55; cursor: wait; }
.form-status { min-height: 1.2em; color: var(--dim); }
.form-status.ok { color: var(--gold); }
.form-status.err { color: #C86A4A; }

/* ============================== footer */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 2rem var(--pad) 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { color: var(--dim); transition: color 0.25s; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--gold); }

/* ============================== lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 4, 3, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-panel {
  position: relative; z-index: 1;
  width: min(1100px, 92vw);
}
.lightbox-media {
  aspect-ratio: 16 / 9; background: var(--ink-2);
  border: 1px solid var(--line);
}
.lightbox-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-note {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem;
  color: var(--dim); text-align: center; padding: 2rem;
}
.lightbox-note code { font-family: var(--font-mono); color: var(--gold); font-size: 0.85em; }
.lightbox-close {
  position: absolute; top: -2.6rem; right: 0;
  background: none; border: none; color: var(--bone);
  cursor: pointer; letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--font-mono); font-size: 0.75rem;
}
.lightbox-close:hover { color: var(--gold); }

/* ============================== focus */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================== responsive */
@media (max-width: 900px) {
  .lane { grid-template-columns: 1fr; gap: 0.8rem; }
  .lane-tag { padding-top: 0; }
  .lane::after { display: none; }
  .founders { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .frames { grid-template-columns: 1fr; }
  .fld-row { grid-template-columns: 1fr; }
  .nav nav a:not(.nav-cta):not([href="#looks"]) { display: none; }
  .hero-mark { right: -18%; top: 3%; width: 68vw; }
  .contact-copy { position: static; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .frames { grid-template-columns: 1fr 1fr; }
}
