/* shared.css — Amygdala Productions website */

/* ─── Tokens ─── */
:root {
  --nav-h:   68px;
  --bg:      #161616;
  --bg-2:    #1e1e1e;
  --text:    #f2f2f0;
  --text-2:  #e8e6df;
  --text-3:  #c8c6bf;
  --text-4:  #a8a6a0;
  --text-5:  #888888;
  --rule:    rgba(255,255,255,0.12);
  --accent:  #00ff87;
  --serif:   "Cinzel", "Times New Roman", serif;
  --sans:    "DM Sans", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Skip navigation ─── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: #111;
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.1s;
}
.skip-nav:focus { top: 16px; }

/* ─── Film-still placeholder ─── */
.still {
  background:
    radial-gradient(ellipse 80% 60% at 25% 35%, rgba(0,255,135,0.04), transparent 55%),
    radial-gradient(ellipse 50% 70% at 80% 75%, rgba(255,255,255,0.025), transparent 50%),
    linear-gradient(160deg, #1c1c1c 0%, #0e0e0e 55%, #151515 100%);
  position: relative;
  overflow: hidden;
}
.still::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.055) 3px 4px);
  pointer-events: none;
}
.still-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 1;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px; white-space: nowrap;
}
.still-corner {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

/* ─── Layout ─── */
.wrap { max-width: 1380px; margin: 0 auto; padding: 0 56px; }
.section { padding: 80px 0; border-bottom: 1px solid var(--rule); }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; padding: 13px 26px;
  text-decoration: none; cursor: pointer;
  transition: opacity 0.18s;
}
.btn-green  { background: var(--accent); color: #111; border: 1.5px solid var(--accent); }
.btn-ghost  { background: transparent; color: var(--text-2); border: 1.5px solid var(--text-2); }
.btn-green:hover, .btn-ghost:hover { opacity: 0.8; }

/* ─── Focus styles ─── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Navbar ─── */
#nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(22,22,22,0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-row {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px; padding: 20px 56px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand-name {
  font-family: var(--sans); font-size: 15px;
  letter-spacing: 0.22em; color: var(--text);
}
.nav-brand-sub {
  font-family: var(--serif); font-size: 9px;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--text-5);
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-3); text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav-links a:hover  { color: var(--accent); border-color: var(--accent); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-badge {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.2em; color: var(--text-5);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 10px;
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-3);
  transition: transform 0.22s, opacity 0.22s;
}

/* ─── Mobile nav drawer ─── */
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(22,22,22,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99;
  padding: 28px 28px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}
.nav-drawer a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.18s;
}
.nav-drawer a:hover { color: var(--accent); }
.nav-drawer a.active { color: var(--accent); }
.nav-drawer.open { display: flex; }

/* ─── Page hero (inner pages) ─── */
.page-hero { padding: 88px 0 72px; border-bottom: 1px solid var(--rule); }
.page-hero-grid {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 48px; align-items: end;
}
.page-hero-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent);
}
.page-hero-title {
  font-family: var(--sans);
  font-size: clamp(36px, 9.5vw, 132px);
  font-weight: 700; color: var(--text);
  line-height: 0.95; letter-spacing: -0.025em;
  margin-bottom: 28px;
  overflow-wrap: break-word;
}
.page-hero-title em { font-style: italic; color: var(--accent); }
.page-hero-body {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(16px, 1.7vw, 22px);
  color: var(--text-3); line-height: 1.45; max-width: 720px;
}
.page-hero-body em { color: var(--text-2); font-style: italic; }
.page-hero-note {
  font-family: var(--mono); font-size: 10px;
  color: var(--text-5); letter-spacing: 0.18em;
  text-transform: uppercase; text-align: right; line-height: 1.85;
}

/* ─── Typography helpers ─── */
.mono-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.section-h2 {
  font-family: var(--sans); font-weight: 700; color: var(--text-2);
  letter-spacing: -0.02em;
}
.section-h2 em { font-style: italic; color: var(--text-5); }

/* ─── "More soon" placeholder (used while slate films are hidden) ─── */
.more-soon {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-5);
  border: 1px dashed var(--rule);
  border-radius: 4px;
}

/* ─── Philosophy pillars ─── */
.pillars { display: grid; grid-template-columns: repeat(5,1fr); gap: 36px; }
.pillar { border-top: 1px solid var(--accent); padding-top: 16px; }
.pillar-num { font-family: var(--serif); font-size: 22px; color: var(--accent); margin-bottom: 10px; }
.pillar-title { font-family: var(--sans); font-size: 14px; color: var(--text-2); font-weight: 500; line-height: 1.3; margin-bottom: 12px; }
.pillar-body { color: var(--text-5); font-size: 13px; line-height: 1.65; font-weight: 300; }

/* ─── Page-end CTA block ─── */
.page-cta { padding: 88px 0; }
.page-cta-inner {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 48px; align-items: center;
}
.page-cta-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent);
}
.page-cta-h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700; color: var(--text);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.page-cta-h2 em { font-style: italic; color: var(--accent); }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Footer ─── */
footer { border-top: 1px solid var(--rule); }
.footer-inner { padding: 56px 56px 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 44px; padding-bottom: 48px;
}
.footer-brand-name { font-family: var(--sans); font-size: 14px; letter-spacing: 0.22em; color: var(--text-2); }
.footer-brand-sub { font-family: var(--serif); font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-5); margin-top: 2px; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--text-4); font-size: 13px; line-height: 1.55; margin-top: 16px; }
.partner-logo { overflow: hidden; }
.partner-logo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.footer-col-label { font-family: var(--mono); font-size: 9px; color: var(--accent); letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links a { display: block; font-family: var(--sans); font-size: 13px; color: var(--text-4); text-decoration: none; padding: 4px 0; font-weight: 300; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-links a.bl-link { font-family: var(--mono); font-size: 11px; color: #ff2bd6; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-links a.bl-link:hover { color: #fff; }
.footer-links a.pw-link { font-family: var(--mono); font-size: 11px; color: #e23c3a; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-links a.pw-link:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding: 18px 56px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom span { font-family: var(--mono); font-size: 10px; color: var(--text); letter-spacing: 0.15em; }
.footer-bottom .copy { text-transform: uppercase; }
.footer-bottom .credit { text-transform: uppercase; }
.footer-bottom a { color: inherit; text-decoration: none; transition: opacity 0.15s; }
.footer-bottom a:hover { opacity: 0.7; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .page-hero-grid { grid-template-columns: 180px 1fr; }
  .page-hero-grid .page-hero-note { display: none; }
  .page-cta-inner { grid-template-columns: 180px 1fr; }
  .page-cta-inner > :last-child { display: none; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
  .nav-row { padding: 18px 28px; }
  .nav-badge { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-cta-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .page-cta { padding: 64px 0; }
  .pillars { grid-template-columns: repeat(3,1fr); }
  .footer-inner { padding: 48px 28px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .footer-bottom { padding: 18px 28px; flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
