/* ==========================================================================
   EV Gold
   ========================================================================== */

:root {
  --gold: #cda463;        /* champagne gold sampled from the card */
  --gold-deep: #b38c4f;
  --gold-bright: #e2c386;
  --gold-ink: #8a6a2f;    /* gold dark enough to read on the cream surfaces */
  --cream-2: #faf3e6;
  --ivory: #ffffff;
  --ink: #241a16;
  --ink-2: #3a2c25;
  --muted: #6d5d50;
  --line: rgba(36, 26, 22, 0.14);


  --display: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --space: 24px;   /* single outer spacing unit: page gutter, gaps, section padding */
  --wrap: 1160px;
}

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

html {
  background: #241a16;
  scrollbar-color: #6d5d50 #241a16;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(205, 164, 99, .25);
}
::selection { background: var(--gold); color: var(--ink); }
input, textarea { caret-color: var(--gold-ink); }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space); }
@media (max-width: 600px) { :root { --space: 16px; } }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 4px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 8px; }

/* Focus ring: gold on the dark surfaces, ink on the cream ones (gold disappears there). */
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }
.section :focus-visible:not(input, select, textarea) { outline-color: var(--ink); }

/* ---------- Logo ---------- */
.logo-link { display: inline-block; line-height: 0; }
.logo-link img { width: 150px; height: auto; }
.page-head__home { margin-bottom: var(--space); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  font: 600 13px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--block { width: 100%; padding: 16px; }
.btn--dark { background: #33261f; color: #f2e9da; }
.btn--dark:hover { background: var(--ink); }
.btn--ghost { border: 2px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: 15px 26px; color: var(--ivory); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--ivory); }
.btn--ghost:active { background: rgba(255, 255, 255, .18); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Headings ---------- */
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(34px, 4.4vw, 52px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }


/* ---------- Photo background ---------- */
/* Graded East Village street photo (color grade is baked into hero-bg.webp). */
.hero__bg {
  position: absolute; inset: 0;
  background: url("/hero-bg.webp") center 35% / cover no-repeat;
  pointer-events: none;
}
/* Overlays: dark on the left so the headline reads, a warm gold glow behind
   the card, and a fade at the bottom. */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 420px at 74% 50%, rgba(205, 164, 99, .30), transparent 70%),
    linear-gradient(90deg, rgba(36, 26, 22, .92) 0%, rgba(36, 26, 22, .78) 38%, rgba(36, 26, 22, .45) 70%, rgba(36, 26, 22, .35) 100%),
    linear-gradient(180deg, #241a16 0%, transparent 35%, transparent 70%, rgba(36, 26, 22, .85) 100%);
}
@media (max-width: 960px) {
  .hero__bg { background-position: 30% center; }
  .hero__bg::after {
    background:
      linear-gradient(180deg, #241a16 0%, rgba(36, 26, 22, .72) 50%, rgba(36, 26, 22, .6) 75%, rgba(36, 26, 22, .9) 100%);
  }
}
/* ---------- Scroll sequence (home) ----------
   A tall section with a sticky, full-screen stage. app.js maps scroll
   progress through the section to: scroll cue fading out, the card fading
   in, and the card's rotation frame. */
.scrolly { position: relative; height: 340vh; background: #241a16; }
.scrolly__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
}
.scrolly .hero__bg { background-position: center; }
/* Sharp copy of the photo layered over the blurred one; app.js fades it out
   as scrolling starts, so the background loses focus. */
.scrolly .hero__bg--sharp { background-image: url("/hero-bg-sharp.webp"); will-change: opacity; }
.scrolly .hero__bg::after {
  background:
    radial-gradient(60vmin 45vmin at 50% 50%, rgba(205, 164, 99, .14), transparent 70%),
    linear-gradient(180deg, #241a16 0%, rgba(36, 26, 22, .66) 22%, rgba(36, 26, 22, .66) 65%, #241a16 100%);
}
.scrolly__card {
  position: relative;
  /* Frames are 762×646: the 642×466 card plus a transparent margin holding its
     baked-in shadow. Scale the canvas so the card itself still spans min(88vw, 640px). */
  width: calc(min(88vw, 640px) * 762 / 642);
  max-width: none;
  aspect-ratio: 762 / 646;
  height: auto;
  opacity: 0;
  will-change: opacity, transform;
}
.scrolly__logo {
  position: absolute; left: 50%; top: 50%;
  width: min(76vw, 640px); height: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .9)) drop-shadow(0 2px 6px rgba(0, 0, 0, .7));
  will-change: opacity, transform;
}
.scroll-cue {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  color: #ffffff;
  will-change: opacity;
}
.scroll-cue span {
  font-size: 13px; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  margin: 0 0 8px .24em; /* optically centre the letter-spaced word */
}
.scroll-cue svg { display: block; width: 34px; height: 34px; animation: cue 1.6s ease-in-out infinite; }
.scroll-cue svg + svg { margin-top: -20px; opacity: .5; animation-delay: .15s; }
@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* ---------- Intro (after the sequence) ---------- */
.intro { position: relative; z-index: 1; background: #241a16; color: var(--ivory); padding: calc(var(--space) * 2) 0; }
.intro:focus { outline: none; }
.intro h1 { color: #ffffff; font-size: clamp(34px, 12.2vw, 150px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; text-transform: uppercase; margin: 0; }
.intro h1 span { display: block; white-space: nowrap; }
.intro h1 em { font-style: normal; color: #d4af37; }
.intro__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space); margin-top: calc(var(--space) * 2); }
.text-link {
  color: #ffffff; font-weight: 600; font-size: 17px;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
  padding: 12px 0;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.text-link:hover { color: var(--gold-bright); }
.intro__ctas a { text-transform: uppercase; letter-spacing: .1em; font-size: 15px; }
@media (max-width: 600px) { .intro__ctas { flex-direction: column; align-items: flex-start; gap: 12px; } }
.page-head .intro__ctas { justify-content: center; align-items: center; }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; background: var(--cream-2); }

.section__head { max-width: 720px; margin: 0 auto var(--space); text-align: center; }

/* ---------- Form pages ---------- */
.page-head {
  position: relative; overflow: hidden;
  background: #241a16; color: var(--ivory);
  padding: var(--space) 0;
}
.page-head__inner { position: relative; text-align: center; }
.page-head h1 {
  font-size: clamp(26px, 8.6vw, 64px); line-height: 1.05; font-weight: 300; letter-spacing: .08em; text-transform: uppercase;
  color: #f2e9da; /* warm off-white, tinted toward the page's browns and golds */
}
/* Even wash behind the centred title. */
.page-head .hero__bg::after {
  background: linear-gradient(180deg, #241a16 0%, rgba(36, 26, 22, .3) 45%, rgba(36, 26, 22, .3) 70%, rgba(36, 26, 22, .7) 100%);
}

/* ---------- Forms ---------- */
.form-wrap { max-width: 860px; }
.faq-wrap { max-width: 860px; }
#faq { padding: calc(var(--space) * 2) 0; }
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: calc(var(--space) * 1.5);
  box-shadow: 0 30px 60px -40px rgba(36, 26, 22, .35);
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); margin-bottom: var(--space); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 0; }
.opt { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
  background: var(--cream-2);
  border: 1.5px solid rgba(36, 26, 22, .18);
  border-radius: 4px;
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d5d50' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(205, 164, 99, .18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }

.field__error { font-size: 13.5px; color: #b3261e; font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }

/* Legal business name: type-ahead of New York State entities */
.entity__box { position: relative; }
.entity__list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px 0; list-style: none;
  background: #fff;
  border: 1.5px solid rgba(36, 26, 22, .18);
  border-radius: 4px;
  box-shadow: 0 18px 40px -18px rgba(36, 26, 22, .45);
  max-height: 268px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.entity__option { padding: 10px 14px; cursor: pointer; }
.entity__option:hover, .entity__option[aria-selected="true"] { background: var(--cream-2); }
.entity__name { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.entity__meta { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.entity__note { padding: 10px 14px; font-size: 14px; color: var(--muted); }
.entity__picked { font-size: 13.5px; color: var(--muted); }
.entity.is-picked input { border-color: var(--gold-deep); background: #fff; }


.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.check input {
  flex: none; width: 22px; height: 22px; margin: 1px 0 0;
  accent-color: var(--gold);
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin-top: 16px; text-align: center; font-weight: 500; }
.form__status.is-error { color: #b3261e; }

.form__success { text-align: center; padding: 20px 0; }
.form__success .seal {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  font-size: 34px;
  box-shadow: 0 10px 24px -10px rgba(179, 140, 79, .8);
}
.form__success h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 34px; margin-bottom: 12px; }
.form__success p { color: var(--muted); max-width: 30em; margin: 0 auto; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px;
  font-size: 19px; font-weight: 600;
  text-align: center;
  text-wrap: balance;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus drawn from two hairlines; turns into a cross when open. */
.faq summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 16px; height: 16px; margin-top: -8px;
  color: var(--gold-ink);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) { .faq summary:hover::after { color: var(--ink); } }
.faq details p { padding: 0 0 24px; color: var(--muted); margin: 0; text-align: left; text-wrap: pretty; max-width: 68ch; }
.faq details p a { color: var(--ink); text-underline-offset: 3px; }
/* Answers ease open where the browser can animate to an automatic height. */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0; overflow: clip;
      transition: block-size .4s cubic-bezier(.16, 1, .3, 1), content-visibility .4s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #ffffff; padding: calc(var(--space) * 2.5) 0 var(--space); }
.footer__inner {
  display: grid; grid-template-columns: 1fr; gap: var(--space); justify-items: center; text-align: center;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 calc(var(--space) - 8px); flex-wrap: wrap; justify-content: center; }
.footer .logo-link { opacity: .85; }
.footer .logo-link img { width: 110px; }
.footer__links a { display: inline-block; padding: 10px 4px; text-decoration: none; font-size: 15px; opacity: .7; transition: opacity .2s ease; }
.footer__links a:hover { opacity: 1; }
.footer__legal { width: 100%; max-width: 860px; }
.footer__legal ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px;
}
.footer__legal a { display: inline-block; padding: 12px 6px; text-decoration: none; font-size: 13px; opacity: .55; transition: opacity .2s ease; }
.footer__legal a:hover { opacity: 1; }
@media (max-width: 600px) {
  .footer__legal ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space); max-width: 300px; margin: 0 auto; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; text-align: left; }
.legal__updated { color: var(--muted); font-size: 15px; margin-bottom: var(--space); }
.legal h2 { font-size: 22px; letter-spacing: -.01em; margin: calc(var(--space) * 1.5) 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); }
.footer__fine { opacity: .7; width: 100%; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: var(--space); font-size: 13.5px; }
