/* ============================================================================
 * GARNER · The500 Supporter Graphic — Landing Page Styles
 * ----------------------------------------------------------------------------
 * Styling mirrors garnermovie.com: near-black poster ground, gold #ecb021
 * accents, condensed display type (Six Caps), uppercase tracked headings,
 * thin gold rules and the film's wordmark lockup.
 * ==========================================================================*/

:root {
  --gold: #ecb021;
  --gold-deep: #dba321;
  --amber: #cc9602;
  --ink: #0b0b0b;
  --ink-2: #121212;
  --ink-3: #191919;
  --line: rgba(236, 176, 33, 0.28);
  --paper: #f6f2e8;
  --muted: rgba(246, 242, 232, 0.66);
  --font-display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font-head: 'Montserrat', 'Gotham', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* subtle film grain over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.5'/></svg>");
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: var(--gold); }

.wrap {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.brand__tag {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 242, 232, 0.6);
  display: none;
}

@media (min-width: 720px) { .brand__tag { display: block; } }

.site-nav {
  display: none;
  gap: 1.75rem;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 980px) { .site-nav { display: flex; } }

.site-nav a {
  color: rgba(246, 242, 232, 0.82);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover { color: #fff; border-bottom-color: var(--gold); }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 520px at 72% -10%, rgba(236, 176, 33, 0.20), transparent 62%),
    radial-gradient(700px 420px at 12% 110%, rgba(204, 150, 2, 0.14), transparent 60%),
    linear-gradient(160deg, #0d0d0d 0%, #070707 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: '';
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.2vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.35em;
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--gold);
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.9rem;
}

.lede strong { color: var(--paper); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1.05;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat__label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 242, 232, 0.55);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: #14100a;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn[disabled] { opacity: 0.42; cursor: not-allowed; transform: none; }

.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: rgba(236, 176, 33, 0.12); color: var(--gold); }

.btn--quiet {
  background: transparent;
  color: var(--paper);
  border-color: rgba(246, 242, 232, 0.35);
}
.btn--quiet:hover { border-color: var(--paper); background: rgba(246, 242, 232, 0.08); }

.btn--lg { padding: 1.15rem 2.1rem; font-size: 13px; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------ sample cards */
.sample-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.sample-card {
  position: relative;
  border: 1px solid var(--line);
  background: #0e0e0e;
  overflow: hidden;
}

.sample-card canvas { display: block; width: 100%; height: auto; }

.sample-card__tag {
  position: absolute;
  left: 0; bottom: 0;
  right: 0;
  padding: 0.4rem 0.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

.sample-note {
  font-size: 12.5px;
  color: rgba(246, 242, 232, 0.5);
  text-align: center;
  margin: 0;
}

/* ----------------------------------------------------------------- studio */
.studio { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.section-head p { color: var(--muted); margin: 0; }

.studio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 1000px) {
  .studio__grid { grid-template-columns: 1fr 1fr; }
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), #0a0a0a);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.panel + .panel { margin-top: 1.35rem; }

.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}

.step__num {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid var(--gold);
  font-size: 12px;
  letter-spacing: 0;
}

/* --------------------------------------------------------------- dropzone */
.dropzone {
  position: relative;
  border: 2px dashed rgba(236, 176, 33, 0.45);
  background: rgba(236, 176, 33, 0.04);
  padding: 2.25rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dropzone:hover, .dropzone.is-over {
  background: rgba(236, 176, 33, 0.1);
  border-color: var(--gold);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone__icon {
  font-size: 2.1rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.dropzone__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.dropzone__hint { font-size: 12.5px; color: var(--muted); margin-top: 0.3rem; }

/* The UA stylesheet's [hidden] rule loses to a display declaration, so the
   empty photo thumbnail would otherwise leak into the page before any upload.
   This must stay above the layout rule that follows. */
[hidden] { display: none !important; }

.thumb-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.1rem;
}

.thumb {
  width: 108px;
  height: 108px;
  flex: none;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: #000;
}

.thumb-meta { font-size: 12.5px; color: var(--muted); }
.thumb-meta strong { color: var(--paper); display: block; font-size: 13.5px; }

/* ---------------------------------------------------------------- controls */
.field { margin-bottom: 1.05rem; }

.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 242, 232, 0.72);
  margin-bottom: 0.45rem;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  background: #000;
  border: 2px solid rgba(236, 176, 33, 0.55);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
}

.field textarea { resize: vertical; min-height: 74px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(236, 176, 33, 0.2);
}

.field input::placeholder, .field textarea::placeholder { color: rgba(246, 242, 232, 0.32); }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.05rem;
}

@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.counter {
  font-size: 11.5px;
  color: rgba(246, 242, 232, 0.42);
  text-align: right;
  margin-top: 0.3rem;
}

.counter.is-full { color: var(--gold); }

/* ------------------------------------------------------------ option tiles */
.tile-group {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 680px) { .tile-group--grades { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tile {
  position: relative;
  display: block;
  border: 2px solid rgba(246, 242, 232, 0.16);
  background: #000;
  padding: 0.7rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.tile:hover { border-color: rgba(236, 176, 33, 0.6); }

.tile input { position: absolute; opacity: 0; pointer-events: none; }

.tile__name {
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  display: block;
}

.tile__sub { font-size: 11.5px; color: var(--muted); display: block; line-height: 1.35; }

.tile.is-active { border-color: var(--gold); background: rgba(236, 176, 33, 0.1); }

.tile--format { padding-top: 0.8rem; }

.tile__ratio {
  display: block;
  margin-bottom: 0.5rem;
  background: rgba(236, 176, 33, 0.16);
  border: 1px solid rgba(236, 176, 33, 0.5);
}

.tile__ratio--square { width: 46px; height: 46px; }
.tile__ratio--portrait { width: 36px; height: 46px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  margin-top: 0.25rem;
  width: 17px; height: 17px;
  accent-color: var(--gold);
  flex: none;
}

/* ---------------------------------------------------------------- preview */
.preview-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #131313, #080808);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

/* Sticky only makes sense once the preview sits in its own column. In the
   stacked mobile layout it would chase the scroll and cover the controls. */
@media (min-width: 1000px) {
  .preview-panel { position: sticky; top: 96px; }
}

.preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  background:
    repeating-conic-gradient(#141414 0% 25%, #0d0d0d 0% 50%) 0 0 / 22px 22px;
  border: 1px solid rgba(246, 242, 232, 0.12);
  padding: 0.75rem;
}

.preview-stage canvas,
.preview-stage img.preview-fallback {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 242, 232, 0.5);
  padding: 0.75rem 0.2rem 1.1rem;
}

.preview-actions { display: grid; gap: 0.6rem; }

@media (min-width: 480px) { .preview-actions { grid-template-columns: 1fr 1fr; } }

.preview-actions .btn--wide { grid-column: 1 / -1; }

.status {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(236, 176, 33, 0.07);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.9rem;
}

.status.is-visible { display: flex; }
.status.is-error { border-color: #d4574a; background: rgba(212, 87, 74, 0.1); color: #ffb3aa; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(236, 176, 33, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------- wall */
.wall { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }

.wall__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.9rem;
}

.wall__card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #131313, #0a0a0a);
  padding: 1.1rem;
}

.wall__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #fff;
  text-transform: uppercase;
  word-break: break-word;
}

.wall__meta {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}

.wall__msg { font-size: 12.5px; color: var(--muted); margin-top: 0.6rem; }

.empty-note {
  border: 1px dashed var(--line);
  padding: 1.5rem;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* -------------------------------------------------------------- how / cta */
.how {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0a0a0a, #0d0d0d);
}

.how__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) { .how__grid { grid-template-columns: repeat(3, 1fr); } }

.how__item { border-top: 2px solid var(--gold); padding-top: 1.1rem; }

.how__item h3 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.how__item p { font-size: 13.5px; color: var(--muted); margin: 0; }

.cta-band {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(236, 176, 33, 0.18), transparent 65%),
    #070707;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
}

.cta-band p { color: var(--muted); max-width: 40rem; margin: 0 auto 1.75rem; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  background: #050505;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a { color: rgba(246, 242, 232, 0.6); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

.footnote { font-size: 12px; color: rgba(246, 242, 232, 0.38); width: 100%; }

/* --------------------------------------------------------- share fallback */
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.82);
  padding: 1.25rem;
}

.share-sheet.is-open { display: grid; }

.share-sheet__box {
  width: min(430px, 100%);
  border: 1px solid var(--line);
  background: #101010;
  padding: 1.6rem;
}

.share-sheet__box h3 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.share-sheet__list { display: grid; gap: 0.55rem; margin-top: 1.1rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
