/* Glow Studio — glowstudiofilms.com
   Palette is shared with the internal studio design system:
   #141519 base · #1d1f25 panel · #e8e6e1 text · amber glow accents. */

:root {
  --bg: #141519;
  --bg-2: #1a1b21;
  --panel: #1d1f25;
  --panel-2: #23262e;
  --line: #2c2f38;
  --line-soft: #24262d;

  --text: #e8e6e1;
  --muted: #a2a5ad;
  --muted-2: #7c8089;

  --amber: #f0a94a;
  --amber-lit: #ffd79a;
  --amber-deep: #b9762a;

  --wrap: 68rem;
  --radius: 12px;
  --radius-lg: 18px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Helvetica Neue", sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.16;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber-lit);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.375rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--panel-2);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.25rem 1.375rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.wordmark .mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  filter: drop-shadow(0 0 10px rgba(240, 169, 74, 0.35));
}

.head-cta {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.head-cta:hover {
  color: var(--amber-lit);
  border-bottom-color: rgba(240, 169, 74, 0.5);
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 11vw, 7.5rem) 0 clamp(3.5rem, 10vw, 6.5rem);
  overflow: hidden;
}

/* Warm glow: a low sun behind the fold. Pure CSS, no images. */
.hero-glow {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(52% 42% at 50% 34%, rgba(240, 169, 74, 0.20) 0%, rgba(240, 169, 74, 0.07) 42%, rgba(240, 169, 74, 0) 72%),
    radial-gradient(38% 30% at 76% 12%, rgba(255, 215, 154, 0.10) 0%, rgba(255, 215, 154, 0) 70%),
    radial-gradient(60% 46% at 22% 78%, rgba(185, 118, 42, 0.13) 0%, rgba(185, 118, 42, 0) 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 22%, var(--line) 78%, transparent);
}

.hero-inner { max-width: 46rem; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.125rem, 7.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.lede {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease,
    border-color 0.22s ease, color 0.22s ease;
}

.btn-primary {
  color: #1a1206;
  background: linear-gradient(175deg, var(--amber-lit) 0%, var(--amber) 62%, #e0943a 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 30px -12px rgba(240, 169, 74, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 16px 38px -12px rgba(240, 169, 74, 0.7);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(29, 31, 37, 0.6);
}
.btn-ghost:hover {
  border-color: rgba(240, 169, 74, 0.45);
  color: var(--amber-lit);
}

.btn-lg {
  min-height: 3.25rem;
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ----------------------------------------------------------- trust strip */

.trust {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(29, 31, 37, 0.55), rgba(20, 21, 25, 0));
  padding: clamp(2.25rem, 6vw, 3.25rem) 0;
}

.trust-grid {
  display: grid;
  gap: 1.75rem;
}

.trust-item { position: relative; padding-left: 1.125rem; }

.trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px 2px rgba(240, 169, 74, 0.55);
}

.trust-item h2 {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.trust-item p {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- sections */

.section { padding: clamp(3.5rem, 10vw, 6.5rem) 0; }

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.875rem;
}

.section-title {
  font-size: clamp(1.625rem, 4.6vw, 2.375rem);
  max-width: 22em;
}

/* ----------------------------------------------------------------- steps */

.steps {
  list-style: none;
  margin: clamp(2.25rem, 6vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.625rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(29, 31, 37, 0.35) 100%);
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 169, 74, 0.45), transparent);
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  opacity: 0.85;
  margin-bottom: 0.875rem;
}

.step h3 {
  font-size: 1.25rem;
  letter-spacing: -0.008em;
}

.step p {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------------ demo */

.section-demo { background: linear-gradient(180deg, rgba(29, 31, 37, 0.4), rgba(20, 21, 25, 0) 60%); }

.demo { margin: clamp(2rem, 5vw, 3rem) 0 0; }

.demo-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f1013;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9),
    0 0 60px -30px rgba(240, 169, 74, 0.28);
  aspect-ratio: 16 / 9;
}

.demo-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* contain, not cover: a vertical or 4:5 cut letterboxes rather than gets clipped. */
.demo-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* When a real film is present the poster is the video's own poster attribute. */
.demo[data-state="ready"] .demo-poster,
.demo[data-state="ready"] .demo-pending { display: none; }

.demo-pending {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.5rem 1.25rem 1.125rem;
  background: linear-gradient(0deg, rgba(15, 16, 19, 0.92), rgba(15, 16, 19, 0));
  font-size: 0.875rem;
  color: var(--text);
}

.demo-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(240, 169, 74, 0.5);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 169, 74, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(240, 169, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 169, 74, 0); }
}

/* Shown instead of an embed when demo.json points at YouTube/Vimeo — we link
   out rather than load a third-party player. */
.demo-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9375rem;
  background: radial-gradient(60% 60% at 50% 50%, rgba(15, 16, 19, 0.55), rgba(15, 16, 19, 0.75));
  transition: background 0.25s ease;
}
.demo-link:hover { background: rgba(15, 16, 19, 0.45); }

.demo-play {
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(175deg, var(--amber-lit), var(--amber));
  box-shadow: 0 0 40px -8px rgba(240, 169, 74, 0.75);
  clip-path: circle(50%);
  position: relative;
}
.demo-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.8rem;
  border-color: transparent transparent transparent #1a1206;
}

.demo figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 44em;
}

.note {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.25rem 1.375rem;
  border-left: 2px solid rgba(240, 169, 74, 0.4);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(29, 31, 37, 0.5);
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 46em;
}
.note strong { color: var(--text); font-weight: 600; }
.note em { color: var(--amber-lit); font-style: italic; }

/* --------------------------------------------------------------- founder */

.section-founder { border-top: 1px solid var(--line-soft); }

.founder { position: relative; max-width: 44rem; }

.founder-mark {
  width: 2.25rem;
  height: 1px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--amber), rgba(240, 169, 74, 0));
}

.founder blockquote { margin: 0; }

.founder blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 3.2vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--text);
}

.founder-sig {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--text);
}
.founder-sig span {
  display: block;
  color: var(--muted-2);
  margin-top: 0.125rem;
}

/* ------------------------------------------------------------------- cta */

.section-cta {
  position: relative;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(240, 169, 74, 0.12), rgba(240, 169, 74, 0) 70%);
}

.cta h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }

.cta p {
  margin: 1rem auto 2rem;
  max-width: 32em;
  color: var(--muted);
}

.cta .btn { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }

/* ---------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 2.75rem 0 3.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.foot-inner > * + * { margin-top: 0.5rem; }

.foot-brand {
  font-family: var(--serif);
  letter-spacing: 0.06em;
  color: var(--text);
  font-size: 1rem;
}

.foot-quiet { max-width: 34em; color: var(--muted-2); }

.site-foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-foot a:hover { color: var(--amber-lit); border-bottom-color: rgba(240, 169, 74, 0.5); }

/* --------------------------------------------------------------- reveals */

/* Reveals are opt-in: the .js-anim class is only added when JS is running,
   IntersectionObserver exists, and motion is not reduced. Without it every
   .reveal is simply visible — no JS, no flash, no content held hostage. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-anim .reveal.is-in { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------ responsive */

@media (min-width: 40em) {
  .wrap, .site-head { padding-inline: 2rem; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .steps { gap: 1.125rem; }
  .step { padding: 2rem 1.875rem 1.875rem; }
  .demo-pending { padding: 2rem 1.75rem 1.5rem; font-size: 0.9375rem; }
}

@media (min-width: 60em) {
  .wrap, .site-head { padding-inline: 2.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .step { padding: 2.25rem 2rem 2rem; }
}
