/* Stoner Casting, LLC · v2 · Emerald Screening Room system
   Palette and type locked by the design panel consensus (2026-11-01). */

:root {
  --noir: #070A08;
  --stage: #111814;
  --band: #101914;
  --emerald-deep: #163D29;
  --emerald: #24583E;
  --smoke: #5F8F58;
  --smoke-core: #A1C17E;
  --gold: #C5A55D;
  --gold-light: #E0C27A;
  --gold-deep: #785F27;
  --ivory: #F1EDE4;
  --ink: #171815;
  --sage: #8FA396;
  --ember: #E25822;
  --hairline: rgba(197, 165, 93, 0.28);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#thread-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .footer { position: relative; z-index: 2; }

::selection { background: var(--emerald); color: var(--ivory); }

a { color: var(--gold-light); }
a:hover { color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--smoke-core);
  outline-offset: 3px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }

h1 em, h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-light);
}

.slug {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}

section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6.5rem 1.5rem;
}

/* Reveal on scroll (JS adds .anim to body; without JS everything is visible) */
body.anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.anim .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-gold { background: var(--gold); color: var(--noir); }
.btn-gold:hover { background: var(--gold-light); color: var(--noir); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--gold); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.88rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(17, 24, 20, 0.94);
  border-bottom-color: var(--hairline);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.nav-wordmark {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
.nav.scrolled .nav-wordmark { opacity: 1; }
.nav-wordmark:hover { color: var(--gold-light); }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

.pause-toggle {
  background: none;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  cursor: pointer;
}
.pause-toggle:hover { color: var(--ivory); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 6rem;
  text-align: center;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 95% 58% at 50% 16%, rgba(36, 88, 62, 0.36), rgba(22, 61, 41, 0.12) 52%, transparent 72%),
    var(--noir);
}
.hero-frame {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.hero-frame picture { position: relative; display: block; }
.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 42%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 11%, #000 85%, transparent), linear-gradient(to right, transparent, #000 11%, #000 89%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 11%, #000 85%, transparent), linear-gradient(to right, transparent, #000 11%, #000 89%, transparent);
  mask-composite: intersect;
}
html:not(.motion-paused) .hero-frame img {
  animation: hero-drift 34s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.09) translateY(-1.4%); }
}
.hero-copy { max-width: 780px; margin: 2.6rem auto 0; }
.hero-sub { color: var(--sage); font-size: 1.12rem; max-width: 620px; margin: 0 auto; }
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.booking {
  margin-top: 1.8rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}
.ember-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ember);
  margin-right: 0.55rem;
  vertical-align: 1px;
  animation: ember-breathe 3.2s ease-in-out infinite;
}
@keyframes ember-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 88, 34, 0.0); opacity: 0.85; }
  50% { box-shadow: 0 0 10px 2px rgba(226, 88, 34, 0.45); opacity: 1; }
}

/* ---------- Trust strip ---------- */
.trust { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust-item {
  padding: 1.6rem 1.2rem;
  border-left: 1px solid var(--hairline);
}
.trust-item:first-child { border-left: none; }
.trust-fact {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0 0 0.5rem;
}
.trust-note { color: var(--sage); font-size: 0.92rem; margin: 0; }

/* ---------- Formats ---------- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.format-card {
  background: var(--stage);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.8rem;
}
.format-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}
.format-card p { color: var(--sage); margin: 0; }

.comedy-panel {
  margin-top: 1.2rem;
  background: var(--emerald-deep);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 2.4rem;
}
.comedy-panel h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.6rem;
}
.comedy-lede { max-width: 640px; margin: 0 0 2rem; color: var(--ivory); }
.tone-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
}
.tone-cell { background: var(--band); padding: 1.4rem; }
.tone-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.4rem;
}
.tone-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0 0 0.3rem; }
.tone-desc { color: var(--sage); font-size: 0.94rem; margin: 0; }
.tone-caption { color: var(--sage); font-size: 0.95rem; margin: 1.4rem 0 0; max-width: 640px; }

/* ---------- Paper cards (facts sit on opaque paper) ---------- */
.paper-card {
  background: var(--ivory);
  color: var(--ink);
  border-radius: 10px;
  padding: 2.6rem;
  margin-top: 2.4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { padding: 1.5rem 0; border-top: 1px solid rgba(120, 95, 39, 0.35); }
.steps li:first-child { border-top: none; padding-top: 0; }
.steps li:last-child { padding-bottom: 0; }
.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.45rem;
}
.steps p { margin: 0; max-width: 640px; }

/* ---------- Rates ---------- */
.rates-sub { color: var(--sage); margin: 0; }
.rate-group {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 1.8rem 0 0.6rem;
}
.rate-group:first-child { margin-top: 0; }
.rate-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 0;
  font-size: 1.05rem;
}
.rate-leader { flex: 1; border-bottom: 2px dotted rgba(120, 95, 39, 0.45); transform: translateY(-4px); }
.rate-price { font-family: var(--mono); font-size: 0.98rem; white-space: nowrap; }
.rate-terms { color: #4c4a41; font-size: 0.95rem; margin: 1.8rem 0 0; max-width: 660px; }
.rates-cta { margin-top: 2.2rem; }

/* ---------- Founder ---------- */
.founder-card {
  background: var(--stage);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 2.8rem;
  max-width: 860px;
}
.founder-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 0.8rem;
}
.founder-card p { color: var(--sage); max-width: 640px; }
.founder-card h2 { color: var(--ivory); }
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ivory);
  margin: 2rem 0 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2rem; border-bottom: 1px solid var(--hairline); }
.faq-list details { border-top: 1px solid var(--hairline); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2.2rem 1.25rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.28s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--sage); margin: 0; padding: 0 2.2rem 1.4rem 0; max-width: 680px; }

/* ---------- Brief form ---------- */
.brief-sub { color: var(--sage); margin: 0; }
.brief-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-top: 2.4rem;
  max-width: 860px;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input, .field select, .field textarea {
  background: var(--stage);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--smoke-core);
  box-shadow: 0 0 0 2px rgba(161, 193, 126, 0.25);
}
.btn-submit { align-self: flex-start; position: relative; }
.form-status { color: var(--smoke-core); margin: 0.9rem 0 0; min-height: 1.2em; }
.form-note { color: var(--sage); font-size: 0.9rem; margin: 0.6rem 0 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  background: var(--band);
}
.footer-wordmark {
  font-family: var(--mono);
  letter-spacing: 0.34em;
  color: var(--gold);
  margin: 0 0 1rem;
}
.footer-line { color: var(--sage); margin: 0.3rem 0; }
.footer-small { font-size: 0.85rem; }
.footer-boundary {
  color: var(--ivory);
  font-size: 0.95rem;
  margin: 1.4rem auto 0.8rem;
  max-width: 560px;
}
.footer .pause-toggle { margin-top: 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-left: none; border-top: 1px solid var(--hairline); }
  .trust-item:nth-child(-n+2) { border-top: none; }
  .nav-links { display: none; }
}
@media (max-width: 700px) {
  section { padding: 4.2rem 1.2rem; }
  .hero { padding-top: 5rem; }
  .hero-frame { margin: 0 -1.2rem; }
  .nav { padding: 0.7rem 1rem; gap: 0.8rem; }
  .nav-wordmark { display: none; }
  .nav.scrolled .nav-wordmark { display: block; }
  .btn-small { white-space: nowrap; padding: 0.45rem 0.95rem; }
  .format-grid, .tone-matrix, .brief-form { grid-template-columns: 1fr; }
  .paper-card, .comedy-panel, .founder-card { padding: 1.7rem; }
  .rate-row { font-size: 0.98rem; }
  .rate-price { font-size: 0.9rem; }
}
@media (max-width: 460px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-top: 1px solid var(--hairline); }
  .trust-item:first-child { border-top: none; }
  .pause-toggle { display: none; }
  .footer .pause-toggle { display: inline-block; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.anim .reveal { opacity: 1; transform: none; }
  .ember-dot { animation: none; }
}
