/* ==========================================================================
   Public site
   ========================================================================== */

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 48rem; }

/* Focus rings that stay visible on dark backgrounds */
.hero :focus-visible,
.site-header :focus-visible,
.steps :focus-visible,
.page-hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent); }

/* Type helpers -------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--primary { color: var(--primary); }

.section-title,
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
}
.section-title { font-size: var(--step-4); margin-top: var(--space-2); }
.page-title { font-size: var(--step-4); margin-top: var(--space-3); color: var(--on-dark); }

.script {
  display: inline-block;
  font-family: var(--font-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  line-height: 1;
  padding-inline: 0.04em 0.12em;
  transform: rotate(-4deg);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  margin-top: var(--space-4);
  max-width: 40rem;
}
.lead--light { color: var(--on-dark-muted); }

/* Buttons ------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 7px;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn--primary { --btn-bg: var(--primary); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--primary-strong); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  border: 1.5px solid rgb(255 255 255 / 0.5);
}
.btn--ghost:hover { --btn-bg: rgb(255 255 255 / 0.08); border-color: var(--on-dark); }

.btn--lg { min-height: 3.5rem; padding: 1rem 1.8rem; font-size: 1.0625rem; }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn[disabled],
.btn[aria-disabled="true"] { cursor: progress; opacity: 0.85; }

.spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.is-loading .spinner { display: inline-block; }

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

/* Header -------------------------------------------------------------------- */
.site-header { color: var(--on-dark); z-index: 10; }
.site-header--overlay { position: absolute; inset: 0 0 auto; padding-block: var(--space-5); }
.site-header--solid {
  position: relative;
  background: var(--ink);
  padding-block: var(--space-4);
  border-bottom: 0;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.site-header__cta { display: none; }
@media (min-width: 34rem) { .site-header__cta { display: inline-flex; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--on-dark);
}
.brand:hover { text-decoration: none; }
.brand__logo { width: auto; height: 2.6rem; transition: transform 0.3s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.04); }
.brand__sub {
  padding-left: 0.85rem;
  border-left: 1px solid rgb(255 255 255 / 0.35);
  max-width: 5.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
}
@media (min-width: 48rem) { .site-header .brand__logo { height: 3.1rem; } }
.brand--footer .brand__logo { height: 3.4rem; }

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 640px;
  min-height: max(640px, min(100svh, 1000px));
  padding-block: 7.5rem var(--space-8);
  color: var(--on-dark);
  background-color: var(--ink);
  overflow: hidden;
}

.hero__backdrop {
  --sun-x: 80%;
  --sun-y: 80%;
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* low sun */
    radial-gradient(circle at var(--sun-x) var(--sun-y), rgb(255 214 140 / 0.95) 0, rgb(255 150 70 / 0.8) 7%, rgb(239 63 54 / 0.35) 24%, transparent 46%),
    /* warm haze along the horizon */
    radial-gradient(ellipse 130% 50% at 65% 100%, rgb(245 110 60 / 0.75) 0%, transparent 70%),
    /* evening sky: navy -> plum -> Welsh red */
    linear-gradient(180deg, #0D1B3E 0%, #1F2456 26%, #4A2360 50%, #93243F 74%, #CF3A2E 100%);
}
@media (max-width: 47.99rem) {
  .hero__backdrop { --sun-x: 92%; --sun-y: 12%; }
}
/* Fine diagonal pinstripes */
.hero__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgb(255 255 255 / 0.05) 46px 47px);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 75% 60%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 80% at 75% 60%, #000 25%, transparent 80%);
}
/* Gentle scrim behind the headline so text stays readable (WCAG AA) */
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(12 14 34 / 0.55) 0%, rgb(12 14 34 / 0.3) 45%, transparent 75%),
    linear-gradient(0deg, rgb(28 10 24 / 0.35) 0%, transparent 40%);
}

.hero--photo .hero__backdrop {
  background: var(--ink) var(--hero-image) center 60% / cover no-repeat;
}
.hero--photo .hero__backdrop::before { display: none; }
.hero--photo .hero__backdrop::after {
  background:
    linear-gradient(0deg, rgb(13 27 62 / 0.94) 0%, rgb(13 27 62 / 0.35) 55%, rgb(13 27 62 / 0.6) 100%),
    linear-gradient(90deg, rgb(13 27 62 / 0.7) 0%, transparent 70%);
}

.hero__numeral {
  position: absolute;
  right: -0.06em;
  top: 5.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 36vw, 30rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: rgb(255 255 255 / 0.06);
  -webkit-text-stroke: 1.5px rgb(255 235 205 / 0.4);
  user-select: none;
  pointer-events: none;
  animation: fade 1.6s var(--ease) 0.2s both;
}
.hero--photo .hero__numeral { display: none; }

.hero__inner { position: relative; max-width: 76rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-5);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  max-width: 17ch;
}
.hero__title .script { font-size: 1.1em; margin-right: 0.08em; }
.hero__title-line { display: block; }
.hero__sub {
  margin-top: var(--space-5);
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.9);
}
.hero__title { text-shadow: 0 2px 24px rgb(12 14 34 / 0.35); }
.hero .deadline__label { color: rgb(255 255 255 / 0.85); }
/* On the colorful sky a cream button stands out better than red-on-red. */
.hero .btn--primary { --btn-bg: #FFFFFF; --btn-fg: var(--ink); }
.hero .btn--primary:hover { --btn-bg: #E8ECF4; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-6);
}

.deadline { display: flex; align-items: center; gap: 0.85rem; }
.deadline__text { display: flex; flex-direction: column; line-height: 1.2; }
.deadline__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.deadline__date { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.02em; }

.date-badge {
  display: flex;
  flex-direction: column;
  width: 3.6rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.date-badge__month {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0 0.15rem;
}
.date-badge__day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  padding: 0.3rem 0 0.35rem;
}

.reveal { animation: rise 0.9s var(--ease) both; }
.hero__inner > .reveal:nth-child(2) { animation-delay: 0.08s; }
.hero__inner > .reveal:nth-child(3) { animation-delay: 0.16s; }
.hero__inner > .reveal:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Portrait tablets: don't leave a tall empty band above the headline. */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .hero { min-height: max(640px, min(80svh, 820px)); }
}

@media (min-width: 48rem) {
  .hero { padding-bottom: var(--space-9); }
  .hero__numeral { top: auto; bottom: 0.4rem; }
}

/* How it works -------------------------------------------------------------- */
.steps {
  position: relative;
  background:
    radial-gradient(ellipse 60% 120% at 100% 0%, rgb(74 35 96 / 0.55), transparent 70%),
    var(--ink);
  color: var(--on-dark);
  padding-block: var(--space-7) var(--space-8);
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.steps::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--sunset-wide);
}
.steps__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}
.steps__list { display: grid; gap: var(--space-5); counter-reset: step; }
.step {
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) 4.75rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.02));
}
.step__num {
  position: absolute;
  left: var(--space-5);
  top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.25px var(--accent);
}
.step__icon { display: none; }
.step__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.step p { margin-top: var(--space-2); color: var(--on-dark-muted); font-size: 0.98rem; }

@media (min-width: 48rem) {
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .step { padding: var(--space-6) var(--space-5) var(--space-5); }
  .step__num { position: static; display: block; font-size: 3.4rem; margin-bottom: var(--space-3); }
  .step__icon {
    display: block;
    position: absolute;
    top: var(--space-6);
    right: var(--space-5);
    width: 1.75rem;
    height: 1.75rem;
    color: var(--on-dark-muted);
  }
}

/* Submission section -------------------------------------------------------- */
.submit { padding-block: var(--space-8) var(--space-9); }
/* Anchor jumps land 1px inside the cream section, so no sub-pixel sliver of the dark band above shows. */
.submit { scroll-margin-top: -1px; }
.submit__grid { display: grid; gap: var(--space-7); }
.submit__intro .lead { font-size: var(--step-0); }
.submit__help { margin-top: var(--space-5); color: var(--muted); font-size: 0.95rem; }
.submit__help a { color: var(--primary); font-weight: 600; overflow-wrap: anywhere; }

.checklist { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: 0.65rem; align-items: flex-start; }
.checklist .icon {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0.2rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--sunset);
  color: #fff;
  stroke-width: 3;
}

@media (min-width: 64rem) {
  .submit__grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
  .submit__intro { position: sticky; top: var(--space-6); }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  box-shadow: 0 1px 2px rgb(13 27 62 / 0.04), 0 12px 32px -16px rgb(13 27 62 / 0.18);
  overflow: hidden;
}
.form-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--sunset-wide);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  text-transform: uppercase;
  line-height: 1;
}
.closed-card h3 { font-family: var(--font-display); font-size: var(--step-2); text-transform: uppercase; }
.closed-card p { margin-top: var(--space-3); color: var(--muted); }

/* Form ---------------------------------------------------------------------- */
.entry-form { display: grid; gap: var(--space-5); }

.form-section__legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.form-section__legend + * { clear: both; }
.form-section__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 1.75rem;
  padding-inline: 0.5rem;
  border-radius: 999px;
  background: var(--sunset);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}
.form-section__intro { color: var(--muted); font-size: 0.95rem; margin: calc(var(--space-2) * -1) 0 var(--space-5); }

.grid-2 { display: grid; gap: var(--space-5) var(--space-5); grid-template-columns: minmax(0, 1fr); }
.grid-2--tight { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-3); }
@media (min-width: 40rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2--tight { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.field--wide { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field__label { font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.req { color: var(--primary); margin-left: 0.15em; font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.9em; }
.field__hint { font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.field__hint--note { margin-top: var(--space-2); color: var(--warn); }

.input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 1rem; /* >=16px prevents iOS zoom on focus */
  line-height: 1.4;
  color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}
.input::placeholder { color: #7A849B; opacity: 1; }
.input:hover { border-color: #9AA5BD; }
.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent);
}
.textarea { min-height: 13rem; resize: vertical; line-height: 1.55; }

.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select .input { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }

.has-error .input { border-color: var(--danger); background: #FFF8F7; }
.has-error .input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--danger);
  font-weight: 500;
  font-size: 0.93rem;
  line-height: 1.4;
}
.field__error .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.1rem; }
.field__error ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.field__error--block {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  background: var(--danger-soft);
}

.field__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.counter {
  margin-left: auto;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.counter.is-short { color: var(--muted); }
.counter.is-ok { color: var(--success); }
.counter.is-near { color: var(--warn); }
.counter.is-over { color: var(--danger); font-weight: 600; }

/* Honeypot: invisible to people, tempting to bots */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Checkbox */
.field--check + .field--check { margin-top: var(--space-4); }
.check { position: relative; }
.check__input { position: absolute; top: 1.1rem; left: 1.1rem; width: 1.5rem; height: 1.5rem; margin: 0; opacity: 0; }
.check__label {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: var(--space-4);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 60%, white);
  cursor: pointer;
  line-height: 1.5;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.check__label:hover { border-color: var(--line-strong); }
.check__label a { color: var(--primary); font-weight: 600; }
.check__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.check__box svg { width: 1rem; height: 1rem; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.6); transition: 0.15s var(--ease); }
.check__input:checked + .check__label { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); background: var(--primary-soft); }
.check__input:checked + .check__label .check__box { background: var(--primary); border-color: var(--primary); }
.check__input:checked + .check__label .check__box svg { opacity: 1; transform: none; }
.check__input:focus-visible + .check__label { outline: 3px solid var(--ink); outline-offset: 2px; }
.has-error .check__label { border-color: var(--danger); }
.has-error .check__box { border-color: var(--danger); }
.field--check .field__error { margin-top: var(--space-2); }

/* Photo tips */
.photo-tips {
  margin-bottom: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  background: var(--paper-2);
  border-left: 4px solid var(--orange);
}
.photo-tips__title { font-weight: 600; }
.photo-tips__list { display: grid; gap: 0.6rem; margin-top: var(--space-3); font-size: 0.95rem; }
.photo-tips__list li { display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.45; }
.photo-tips__list .icon { color: var(--primary); width: 1.2rem; height: 1.2rem; margin-top: 0.1rem; }

/* Dropzone */
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: var(--space-6) var(--space-4);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgb(239 90 54 / 0.07), transparent 70%),
    var(--paper-2);
  text-align: center;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.dropzone:hover { border-color: var(--primary); }
.dropzone:focus-within { border-color: var(--ink); border-style: solid; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); }
.dropzone.is-dragover { border-color: var(--primary); border-style: solid; background: var(--primary-soft); transform: scale(1.01); }
.has-error .dropzone { border-color: var(--danger); }
.dropzone.has-files { min-height: 0; padding-block: var(--space-5); }
.dropzone.has-files .dropzone__icon { display: none; }
.dropzone.is-full { opacity: 0.6; }
.dropzone.is-full .dropzone__input { cursor: not-allowed; }

.dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}
.dropzone__body { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.dropzone__icon { width: 2.6rem; height: 2.6rem; color: var(--primary); margin-bottom: var(--space-2); }
.dropzone__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.dropzone__or { color: var(--muted); font-size: 0.95rem; }
.dropzone__btn {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 7px;
  background-color: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 0.9rem;
}
.dropzone:hover .dropzone__btn { background-color: var(--primary); }
.dropzone__status { margin-top: var(--space-3); font-size: 0.92rem; color: var(--muted); }
.dropzone__status:empty { display: none; }

/* Previews */
.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.previews:empty { display: none; }
.preview {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  animation: rise 0.35s var(--ease) both;
}
.preview__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.preview__media img { width: 100%; height: 100%; object-fit: cover; }
.preview__placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.78rem; padding: var(--space-2); text-align: center; }
.preview__placeholder .icon { width: 1.8rem; height: 1.8rem; }
.preview__index {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  min-width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(13 27 62 / 0.82);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.preview__body { padding: 0.5rem 0.65rem 0.6rem; min-width: 0; }
.preview__name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview__meta { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.preview__note { margin-top: 0.2rem; font-size: 0.76rem; font-weight: 600; color: var(--warn); }
/* Per-photo upload status */
.preview__upload { margin-top: 0.4rem; display: grid; gap: 0.25rem; font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.preview__bar { display: block; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.preview__bar > span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: inherit; transition: width 0.2s var(--ease); }
.preview__upload[data-state="done"] { color: var(--success); font-weight: 600; }
.preview__upload[data-state="done"] .preview__bar { display: none; }
.preview__upload[data-state="done"] .preview__state::before { content: "✓ "; }
.preview__upload[data-state="failed"] { color: var(--danger); font-weight: 600; }
.preview__upload[data-state="failed"] .preview__bar > span { background: var(--danger); }
.preview__remove {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgb(13 27 62 / 0.82);
  color: #fff;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.preview__remove:hover { background: var(--danger); transform: scale(1.06); }
.preview__remove .icon { width: 1.1rem; height: 1.1rem; }
.preview.is-checking .preview__media::after {
  content: "";
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  border: 2.5px solid var(--muted);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* Error summary */
.error-summary {
  display: flex;
  gap: 0.85rem;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-soft);
}
.error-summary:focus { outline: 3px solid var(--ink); outline-offset: 3px; }
.error-summary { scroll-margin-top: var(--space-5); }
.error-summary > .icon { color: var(--danger); width: 1.6rem; height: 1.6rem; margin-top: 0.1rem; }
.error-summary__title { font-size: 1.05rem; font-weight: 700; }
.error-summary__message { margin-top: 0.15rem; }
.error-summary__list { margin-top: var(--space-2); display: grid; gap: 0.3rem; font-size: 0.95rem; }
.error-summary__list:empty { display: none; }
.error-summary__list a { color: var(--danger); font-weight: 600; }

/* Saved-draft notice */
.draft-note {
  display: flex;
  gap: 0.85rem;
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid color-mix(in srgb, var(--success) 45%, var(--line));
  border-radius: var(--radius);
  background: var(--success-soft);
}
.draft-note > .icon { color: var(--success); width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; flex: none; }
.draft-note__title { font-weight: 700; }
.draft-note__clear {
  font: inherit;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Address: state (US) or region (elsewhere) share one grid cell */
.address-region, .address-region > div { display: grid; min-width: 0; }

/* Cloudflare Turnstile */
.turnstile-field { gap: var(--space-2); }
.turnstile-field .cf-turnstile { min-height: 65px; }
.turnstile-field:focus { outline: none; }

/* Submit bar & progress */
.submit-bar { display: grid; gap: var(--space-4); margin-top: var(--space-2); }
.submit-bar__fine { font-size: 0.88rem; color: var(--muted); text-align: center; }
.submit-bar__fine a { color: var(--text); }

.progress { display: grid; gap: var(--space-2); }
.progress__track {
  height: 0.65rem;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.08);
}
.progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--sunset-wide);
  transition: width 0.25s linear;
}
.progress.is-processing .progress__fill {
  width: 100% !important;
  background: repeating-linear-gradient(-45deg, var(--primary) 0 12px, color-mix(in srgb, var(--primary) 70%, white) 12px 24px);
  background-size: 34px 34px;
  animation: stripes 0.8s linear infinite;
}
@keyframes stripes { to { background-position: 34px 0; } }
.progress__text { font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }

/* Sub-page hero ------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  color: var(--on-dark);
  background:
    radial-gradient(circle at 85% 100%, rgb(255 190 110 / 0.75) 0, rgb(255 140 70 / 0.5) 12%, transparent 45%),
    var(--sky);
  overflow: hidden;
}
.page-hero--center { text-align: center; }
.page-hero--center .lead { margin-inline: auto; }
.page-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.page-thanks .page-hero { padding-bottom: clamp(6rem, 4rem + 6vw, 8.5rem); }

.success-mark {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  box-shadow: 0 0 0 8px rgb(29 111 71 / 0.25);
  animation: pop 0.6s var(--ease) both;
}
.success-mark .icon { width: 2.4rem; height: 2.4rem; stroke-width: 3; }
@keyframes pop {
  0% { opacity: 0; transform: scale(0.4); }
  70% { transform: scale(1.08); }
  100% { opacity: 1; transform: none; }
}

.error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 3rem + 14vw, 11rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.section { padding-block: var(--space-8); }
.page-thanks .section { padding-top: 0; }
.page-thanks .section .container { margin-top: -4.5rem; position: relative; }

/* Thank-you ticket */
.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise 0.7s var(--ease) 0.15s both;
}
.ticket__main { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); min-width: 0; }
.ticket__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket__ref {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1rem + 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ticket__note { margin-top: var(--space-3); color: var(--muted); font-size: 0.95rem; }
.ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: var(--space-4) clamp(0.9rem, 0.5rem + 2vw, 1.75rem);
  background: var(--sunset);
  color: #fff;
  border-left: 2px dashed rgb(255 255 255 / 0.55);
  text-align: center;
}
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  left: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
}
.ticket__stub::before { top: -12px; }
.ticket__stub::after { bottom: -12px; }
.ticket__stub-year { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; }
.ticket__stub-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; max-width: 6rem; line-height: 1.3; }

/* On phones the stub tears off along the bottom instead of the side. */
@media (max-width: 29.99rem) {
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket__ref { white-space: nowrap; font-size: clamp(1.7rem, 0.6rem + 7.4vw, 2.4rem); }
  .ticket__stub { flex-direction: row; gap: 0.75rem; border-left: 0; border-top: 2px dashed rgb(255 255 255 / 0.55); }
  .ticket__stub-year { font-size: var(--step-2); }
  .ticket__stub-label { max-width: none; }
  .ticket__stub::before,
  .ticket__stub::after { top: -13px; bottom: auto; }
  .ticket__stub::before { left: -12px; }
  .ticket__stub::after { left: auto; right: -12px; }
}

.next-steps { margin-top: var(--space-6); }
.next-steps__list { margin-top: var(--space-5); display: grid; gap: var(--space-4); counter-reset: next; }
.next-steps__list li { position: relative; padding-left: 2.75rem; counter-increment: next; color: var(--muted); }
.next-steps__list li strong { color: var(--text); }
.next-steps__list li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: -0.05rem;
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--sunset);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}
.next-steps__more { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.next-steps__more a { color: var(--primary); font-weight: 600; }

/* Prose (terms/privacy) */
.prose { font-size: 1.05rem; }
.prose h2 {
  margin-top: var(--space-6);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  text-transform: uppercase;
  line-height: 1.1;
}
.prose p,
.prose ul { margin-top: var(--space-3); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--primary); font-weight: 600; }

/* Footer -------------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(ellipse 50% 100% at 100% 100%, rgb(74 35 96 / 0.5), transparent 70%),
    var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.97rem;
}
.site-footer__stripe {
  height: 5px;
  background: var(--sunset-wide);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-8) var(--space-7);
}
@media (min-width: 40rem) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .site-footer__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }

.site-footer__heading {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.site-footer__links { display: grid; gap: 0.45rem; }
.site-footer__link { color: var(--on-dark-muted); text-decoration: none; }
.site-footer__link:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer__email { display: inline-flex; align-items: center; gap: 0.5rem; overflow-wrap: anywhere; }
.site-footer__email .icon { color: var(--orange); }
.site-footer__note { margin-top: var(--space-3); font-size: 0.9rem; }

.social { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social__link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.25);
  color: var(--on-dark);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social__link:hover { background-color: var(--primary); border-color: var(--primary); color: #fff; }
.icon--social { width: 1.25rem; height: 1.25rem; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-5);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.87rem;
}
