/* ==========================================================================
   Shared foundation: the palette, the type scale, buttons and form controls.
   Both the public page and the studio load this. Everything that makes the
   pitch look the way it looks lives in app.css instead, which is behind the
   access gate.
   ========================================================================== */

:root {
  /* Every film Fonzo shoots is on a pure black sweep, so the page is pure
     black too. Anything lighter shows a seam around the video. */
  --ink: #000;
  --ink-2: #08080a;
  --ink-3: #0d0d10;
  --ink-4: #131316;

  --bone: #efebe3;
  --bone-2: #cdc7bc;
  --bone-dim: #9a948a;
  --mute: #6b6660;

  --gold: #c9a44c;
  --gold-lt: #e8ce92;
  --gold-dp: #8a6b28;

  --line: rgba(201, 164, 76, 0.22);
  --line-2: rgba(201, 164, 76, 0.1);
  --line-soft: rgba(239, 235, 227, 0.09);

  --display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gut: clamp(20px, 4vw, 64px);
  --wide: 1320px;
  --mid: 1080px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

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

/* Buttons and flex items set their own display, which otherwise beats [hidden]. */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: #000; }

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

/* ------------------------------------------------------------- primitives */

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

.wrap-mid { max-width: var(--mid); }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.eyebrow-dim { color: var(--mute); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.lede {
  color: var(--bone-2);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.72;
  max-width: 54ch;
}

.small {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mute);
}

.rule {
  height: 1px;
  background: var(--line-2);
  border: 0;
  margin: 0;
}

/* Reveal on scroll. Elements start hidden only once JS has confirmed it is
   running, so the page is fully readable if anything fails to load. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal][data-d="1"] { transition-delay: 0.09s; }
.js [data-reveal][data-d="2"] { transition-delay: 0.18s; }
.js [data-reveal][data-d="3"] { transition-delay: 0.27s; }
.js [data-reveal][data-d="4"] { transition-delay: 0.36s; }
.js [data-reveal][data-d="5"] { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: linear-gradient(160deg, var(--gold-lt), var(--gold) 46%, var(--gold-dp));
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), filter 0.3s;
  box-shadow: 0 0 0 rgba(201, 164, 76, 0);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -14px rgba(201, 164, 76, 0.55);
  filter: brightness(1.06);
}

.btn:active { transform: none; }

.btn-ghost {
  background: none;
  border-color: var(--line);
  color: var(--bone);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 164, 76, 0.06);
  box-shadow: none;
  filter: none;
}

.btn-sm { height: 44px; padding: 0 20px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ----------------------------------------------------------- form controls */

.field { margin-top: 24px; }
.field > label,
.field > .lab {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 11px;
}
.field .hint { font-size: 12.5px; color: var(--mute); margin: -5px 0 11px; }

.opts { display: flex; flex-wrap: wrap; gap: 7px; }

/* Longer answers read better stacked, and they are far easier to tap. */
.opts-col { display: grid; gap: 7px; }
@media (min-width: 640px) {
  .opts-col { grid-template-columns: 1fr 1fr; }
}
.opts-col .opt { justify-content: flex-start; }

.opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--ink-3);
  color: var(--bone-2);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.opt:hover { border-color: var(--line); color: var(--bone); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 164, 76, 0.1);
  color: var(--bone);
}
.opt:has(input:checked)::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -1px;
  width: 0;
  height: 0;
  border-top: 12px solid var(--gold);
  border-left: 12px solid transparent;
}
.opt em { font-style: normal; color: var(--mute); font-size: 12px; }

input:not([type='radio']):not([type='checkbox']):not([type='file']),
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: var(--ink-3);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.3s;
}
textarea { min-height: 124px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #55514c; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 44px;
}


/* ------------------------------------------------------------ shared bits */

.chip {
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  color: var(--bone-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.chip:hover { border-color: var(--line); color: var(--bone); }
.chip[aria-pressed='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}


.grid2 { display: grid; gap: 20px; }
@media (min-width: 700px) { .grid2 { grid-template-columns: 1fr 1fr; } }


.enq-err {
  margin: 0;
  font-size: 13px;
  color: #e0a0a0;
}
