/* ==========================================================================
   Mexico Live Surgery — BITES Institute
   Palette sampled from bites_simbol_circle.png:
     indigo #342C58 · gold #E2AB24 · olive #58662D
   Dark, cinematic base to match the Keynote deck's full-bleed video slides.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  /* brand, straight off the logo */
  --brand-indigo: #342C58;
  --brand-gold:   #E2AB24;
  --brand-olive:  #58662D;
  --brand-maroon: #6E2038;   /* BITES scrubs — supporting accent, used sparingly */
  --sold: #C62828;           /* sold-out rule and label — 5.2:1 on the light surface */

  /* surfaces: indigo pulled down to near-black so video reads as the hero */
  --ink-900: #0A0B14;
  --ink-800: #101227;
  --ink-700: #171935;
  --ink-600: #221F42;
  --surface-light: #F6F5F2;
  --surface-light-2: #ECEAE4;

  /* text */
  --text-on-dark:       #F3F2EF;
  --text-on-dark-muted: #A9A7BC;
  --text-on-light:       #14152A;
  --text-on-light-muted: #55566E;

  --gold-hover: #F2BE3E;
  --gold-ink:   #1A1405;   /* text on gold — 11.7:1 */

  --hairline-dark:  rgba(243, 242, 239, 0.14);
  --hairline-light: rgba(20, 21, 42, 0.14);

  /* type */
  --font-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.75vw, 2rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.7rem + 3vw, 4.2rem);
  --step-5:  clamp(2.9rem, 1.8rem + 5.4vw, 6.5rem);

  /* spacing — density 4/10 */
  --space-2xs: 6px;  --space-xs: 12px; --space-sm: 20px;
  --space-md:  32px; --space-lg: 52px; --space-xl: 84px; --space-2xl: 128px;

  --measure: 62ch;
  --container: 1240px;
  --radius: 4px;
  --radius-lg: 10px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 240ms;

  /* z-index scale */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-header: 60; --z-modal: 100;
}

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.04; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: var(--space-sm); top: -100px;
  background: var(--brand-gold); color: var(--gold-ink);
  padding: 12px 20px; border-radius: var(--radius);
  font-weight: 600; z-index: var(--z-modal); transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-sm); }

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

/* --- layout --------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--space-sm), var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 2 * var(--space-lg), var(--container)); } }

.section { padding-block: var(--space-xl); position: relative; }
@media (min-width: 900px) { .section { padding-block: var(--space-2xl); } }

.section--light { background: var(--surface-light); color: var(--text-on-light); }
.section--indigo { background: var(--brand-indigo); }
.section--ink { background: var(--ink-800); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: var(--space-xs);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-gold); flex: none; }
.section--light .eyebrow { color: var(--brand-olive); }
.section--light .eyebrow::before { background: var(--brand-olive); }

.section-title { font-size: var(--step-3); max-width: 20ch; }
.section-intro { margin-top: var(--space-sm); max-width: var(--measure); color: var(--text-on-dark-muted); font-size: var(--step-1); line-height: 1.55; }
.section--light .section-intro { color: var(--text-on-light-muted); }

/* --- buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-gold); --btn-fg: var(--gold-ink); --btn-bd: var(--brand-gold);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-display); font-size: var(--step-0); font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text-on-dark); --btn-bd: var(--hairline-dark); }
.btn--ghost:hover { --btn-bg: rgba(243,242,239,0.08); --btn-bd: var(--text-on-dark); background: rgba(243,242,239,0.08); border-color: var(--text-on-dark); }
.section--light .btn--ghost { --btn-fg: var(--text-on-light); --btn-bd: var(--hairline-light); }
.section--light .btn--ghost:hover { background: rgba(20,21,42,0.06); border-color: var(--text-on-light); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }

/* --- header --------------------------------------------------------------- */
.header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: var(--z-header);
  padding-block: var(--space-xs);
  transition: background var(--dur) var(--ease-out), backdrop-filter var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(10, 11, 20, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hairline-dark);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.header__logo img { width: 172px; height: auto; }
@media (max-width: 480px) { .header__logo img { width: 138px; } }
.header__nav { display: none; align-items: center; gap: var(--space-md); }
@media (min-width: 900px) { .header__nav { display: flex; } }
.header__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--text-on-dark-muted);
  transition: color var(--dur) var(--ease-out);
}
.header__nav a:hover { color: var(--text-on-dark); }
.header .btn { min-height: 44px; padding: 10px 22px; font-size: var(--step--1); }
@media (max-width: 620px) { .header__cta { display: none; } }

/* --- hero ----------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10,11,20,0.96) 0%, rgba(10,11,20,0.76) 34%, rgba(10,11,20,0.42) 62%, rgba(10,11,20,0.60) 100%),
    linear-gradient(to right, rgba(10,11,20,0.60) 0%, rgba(10,11,20,0.10) 65%);
}
.hero__body { padding-block: 132px var(--space-lg); }
.hero__title { font-size: var(--step-5); font-weight: 700; letter-spacing: -0.035em; max-width: 15ch; text-wrap: balance; }
.hero__title span { display: block; }
.hero__title .accent { color: var(--brand-gold); }
.hero__sub { margin-top: var(--space-sm); max-width: 48ch; font-size: var(--step-1); color: var(--text-on-dark); }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-md); padding-top: var(--space-sm);
  border-top: 1px solid var(--hairline-dark);
  list-style: none; padding-inline: 0;
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts dt, .hero__facts .k {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-on-dark-muted);
}
.hero__facts .v { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Short viewports (phone landscape): a full-height hero pushes the facts and the
   CTA off-screen entirely. Let the hero size to its content and tighten the type. */
@media (orientation: landscape) and (max-height: 560px) {
  .hero { min-height: auto; }
  .hero__body { padding-block: 92px var(--space-md); }
  .hero__title { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
  .hero__sub { font-size: var(--step-0); margin-top: var(--space-xs); max-width: 60ch; }
  .hero__facts { margin-top: var(--space-sm); padding-top: var(--space-xs); }
  .hero__facts .v { font-size: var(--step-0); }
  .btn-row { margin-top: var(--space-sm); }
}

/* --- statement bands ------------------------------------------------------ */
.statement { position: relative; isolation: isolate; overflow: hidden; }
.statement__bg { position: absolute; inset: 0; z-index: -2; }
.statement__bg img { width: 100%; height: 100%; object-fit: cover; }
.statement::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(10,11,20,0.94) 0%, rgba(10,11,20,0.78) 48%, rgba(52,44,88,0.55) 100%);
}
.statement__text {
  font-family: var(--font-display); font-size: var(--step-4); font-weight: 700;
  line-height: 1.06; letter-spacing: -0.03em; max-width: 18ch; text-wrap: balance;
}
.statement__text .accent { color: var(--brand-gold); }
.statement__body { margin-top: var(--space-sm); max-width: 54ch; font-size: var(--step-1); color: var(--text-on-dark-muted); line-height: 1.55; }

/* --- expect grid ---------------------------------------------------------- */
.grid { display: grid; gap: var(--space-sm); }
.grid--expect { grid-template-columns: 1fr; margin-top: var(--space-lg); }
@media (min-width: 640px) { .grid--expect { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--expect { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--ink-700); border: 1px solid var(--hairline-dark); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-4px); border-color: rgba(226,171,36,0.45); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-600); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--space-sm); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__index {
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.16em;
  color: var(--brand-gold); font-variant-numeric: tabular-nums;
}
.card__title { font-size: var(--step-1); line-height: 1.2; }
.card__text { color: var(--text-on-dark-muted); font-size: var(--step--1); line-height: 1.6; }

/* --- film / video sections ------------------------------------------------ */
/* the player sits outside .container, so it already spans the section's full
   width — no 100vw calc, so a scrollbar can't push the page sideways */
.film { margin-top: var(--space-lg); }
.film .player {
  border-radius: 0; border-inline: 0;
  width: 100%;         /* definite width, or aspect-ratio re-derives it from the
                          capped height and the frame stops reaching the edges */
  max-height: 86vh;
  max-height: 86svh;   /* 16:9 at full width is taller than the viewport on wide
                          screens; cap it so the whole frame stays visible */
}
/* with the height capped the frame is wider than 16:9, so contain letterboxes
   onto the black backing instead of cropping the picture */
.film .player video,
.film .player .player__poster img { object-fit: contain; }

.player {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--hairline-dark);
}
.player video, .player iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }
.player__poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.player__poster img { width: 100%; height: 100%; object-fit: cover; }
.player__play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(rgba(10,11,20,0.30), rgba(10,11,20,0.62));
  border: 0; cursor: pointer; color: var(--text-on-dark);
  font-family: var(--font-display); font-size: var(--step-0); font-weight: 600; letter-spacing: 0.04em;
  transition: background var(--dur) var(--ease-out);
}
.player__play:hover { background: linear-gradient(rgba(10,11,20,0.18), rgba(10,11,20,0.52)); }
.player__play .disc {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--brand-gold); color: var(--gold-ink);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease-out);
}
.player__play:hover .disc { transform: scale(1.07); }
.player__play svg { width: 28px; height: 28px; margin-left: 4px; }
.player.is-playing .player__play, .player.is-playing .player__poster { display: none; }

/* unmute control — sits clear of the native controls at the bottom */
.player__sound {
  position: absolute; inset-block-start: 16px; inset-inline-end: 16px;
  z-index: var(--z-raised);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  background: rgba(10, 11, 20, 0.72); color: var(--text-on-dark);
  border: 1px solid var(--hairline-dark); border-radius: 999px;
  font-family: var(--font-display); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.player__sound svg { width: 18px; height: 18px; flex: none; }
.player__sound:hover { background: var(--brand-gold); color: var(--gold-ink); border-color: var(--brand-gold); }
.player__sound[hidden] { display: none; }
@media (max-width: 560px) {
  .player__sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .player__sound { padding: 10px; width: 44px; justify-content: center; }
}


/* --- format / timeline ---------------------------------------------------- */
.format { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
@media (min-width: 900px) { .format { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); } }

.phase { border-top: 2px solid var(--brand-gold); padding-top: var(--space-sm); }
.phase__kicker { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-gold); font-weight: 600; }
/* gold only clears 1.9:1 on the light surface — olive is the brand's light-surface accent (5.7:1) */
.section--light .phase { border-top-color: var(--brand-olive); }
.section--light .phase__kicker { color: var(--brand-olive); }
.phase__title { font-size: var(--step-2); margin-top: 8px; }
.phase__text { margin-top: 12px; color: var(--text-on-light-muted); max-width: 46ch; }
.phase ul { margin: var(--space-sm) 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.phase li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--step--1); line-height: 1.55; }
.phase li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--brand-olive); flex: none; }

/* --- faculty -------------------------------------------------------------- */
.faculty-grid { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); grid-template-columns: 1fr; }
@media (min-width: 620px) { .faculty-grid { grid-template-columns: repeat(3, 1fr); } }

.person { display: flex; flex-direction: column; }
.person__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-600); border: 1px solid var(--hairline-dark);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; margin-top: var(--space-xs); }
.person__role { font-size: var(--step--1); color: var(--text-on-dark-muted); letter-spacing: 0.04em; }

.faculty-wide { margin-top: var(--space-lg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline-dark); }

/* --- quote ---------------------------------------------------------------- */
.quote { max-width: 100%; }
.quote blockquote { margin: 0; max-width: 13em; font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.quote figcaption { margin-top: var(--space-sm); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-gold); }

/* --- details / tuition ---------------------------------------------------- */
.detail-grid { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); } }

.facts { display: grid; gap: 0; border-top: 1px solid var(--hairline-light); }
.facts div { display: grid; grid-template-columns: 1fr auto; gap: var(--space-sm); padding-block: 14px; border-bottom: 1px solid var(--hairline-light); align-items: baseline; }
.facts dt { color: var(--text-on-light-muted); font-size: var(--step--1); letter-spacing: 0.04em; }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* --- cohort list ---------------------------------------------------------- */
.cohorts { list-style: none; margin: var(--space-lg) 0 0; padding: 0; border-top: 1px solid var(--hairline-light); }
.cohort {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-sm); padding-block: 16px;
  border-bottom: 1px solid var(--hairline-light);
}
.cohort__date {
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* the strike is drawn by the <s>, so the date itself stays full-contrast and legible */
.cohort--sold .cohort__date s {
  text-decoration: line-through;
  text-decoration-color: var(--sold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0;
  color: var(--text-on-light-muted);
}
.cohort__status {
  flex: none;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--sold);
  border: 1px solid currentColor; border-radius: 999px; padding: 4px 11px;
}
/* not a failure state, so it must not read as one */
.cohort__status--tba { color: var(--text-on-light-muted); }

.pill--sold { background: rgba(198, 40, 40, 0.18); color: #FF9BA8; }

@media (max-width: 420px) {
  .cohort { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.tuition { background: var(--ink-800); color: var(--text-on-dark); border-radius: var(--radius-lg); padding: var(--space-md); }
.tuition__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-xs); border-bottom: 1px solid var(--hairline-dark); }
.tuition__row:last-of-type { border-bottom: 0; }
.tuition__label { font-size: var(--step--1); color: var(--text-on-dark-muted); }
.tuition__price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.tuition__price--hero { color: var(--brand-gold); }
.tuition__note { font-size: var(--step--1); color: var(--text-on-dark-muted); margin-top: var(--space-xs); }
.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: rgba(226,171,36,0.16); color: var(--brand-gold);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}

.included { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: 10px; }
.included li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--step--1); line-height: 1.55; }
.included svg { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.included .yes { color: var(--brand-olive); }
.included .no { color: var(--brand-maroon); }

/* --- form ----------------------------------------------------------------- */
.apply { display: grid; gap: var(--space-lg); margin-top: var(--space-lg); }
@media (min-width: 900px) { .apply { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-xl); align-items: start; } }

.form { display: grid; gap: var(--space-sm); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; }
.field .req { color: var(--brand-gold); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  background: rgba(255,255,255,0.05); color: var(--text-on-dark);
  border: 1px solid var(--hairline-dark); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; /* 16px — stops iOS zoom-on-focus */
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9A7BC' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(169,167,188,0.7); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243,242,239,0.3); }
.field input:focus, .field select:focus, .field textarea:focus { background: rgba(255,255,255,0.08); }
.field .hint { font-size: 0.8rem; color: var(--text-on-dark-muted); }
.field .error { font-size: 0.82rem; color: #FF9BA8; display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #FF9BA8; }
.field.is-invalid .error { display: block; }
.form__row { display: grid; gap: var(--space-sm); }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__status { font-size: var(--step--1); min-height: 1.5em; }
.form__status.is-error { color: #FF9BA8; }
.form__status.is-ok { color: #9BE8A8; }
.form__legal { font-size: 0.8rem; color: var(--text-on-dark-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: flex; align-items: center; min-height: 44px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-gold); text-decoration: none; border-bottom: 1px solid rgba(226,171,36,0.4); }
.contact-list a:hover { border-bottom-color: var(--brand-gold); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { margin-top: var(--space-lg); max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--hairline-light); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-sm) 0; min-height: 60px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; color: inherit;
}
.faq__icon { flex: none; width: 22px; height: 22px; transition: transform var(--dur) var(--ease-out); color: var(--brand-olive); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
/* height is measured at open time — a fixed max-height clips at some breakpoint */
.faq__a { overflow: hidden; height: 0; transition: height var(--dur) var(--ease-out); }
.faq__a > div { padding-bottom: var(--space-sm); max-width: var(--measure); color: var(--text-on-light-muted); }
@media (prefers-reduced-motion: reduce) { .faq__a { transition: none; } }

/* --- sticky mobile CTA ---------------------------------------------------- */
.sticky-cta {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-sticky);
  padding: 10px var(--space-sm) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,11,20,0.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline-dark);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs);
  transform: translateY(110%); transition: transform 320ms var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__text { font-size: 0.8rem; line-height: 1.3; color: var(--text-on-dark-muted); }
.sticky-cta__text b { display: block; color: var(--text-on-dark); font-family: var(--font-display); font-size: 0.95rem; }
.sticky-cta .btn { min-height: 46px; padding: 10px 20px; font-size: var(--step--1); white-space: nowrap; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
/* reserve room so the fixed bar never sits on top of the last footer line */
@media (max-width: 899px) { body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }

/* --- footer --------------------------------------------------------------- */
.footer { background: var(--ink-900); padding-block: var(--space-lg); border-top: 1px solid var(--hairline-dark); }
.footer__inner { display: grid; gap: var(--space-md); }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1fr auto; align-items: start; } }
.footer img { width: 178px; }
.footer__tag { margin-top: var(--space-xs); color: var(--text-on-dark-muted); font-size: var(--step--1); max-width: 40ch; }
.footer__meta { color: var(--text-on-dark-muted); font-size: 0.8rem; margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--hairline-dark); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); justify-content: space-between; }
.footer nav { display: grid; }
.footer nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-on-dark-muted); text-decoration: none; font-size: var(--step--1);
}
.footer nav a:hover { color: var(--text-on-dark); }

/* --- scroll reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card__media img, .btn { transition: none; }
}

/* --- case slideshow ------------------------------------------------------- */
.slideshow { position: relative; margin-top: var(--space-lg); }

.slideshow__viewport {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;              /* must match the track's padding-left, or
                                          scroll-snap-align rests off zero and the
                                          "at the start" check never fires */
  padding: 0; margin: 0;
  align-items: flex-start;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-dark);
  background: #000;
  scrollbar-width: none;
}
.slideshow__viewport::-webkit-scrollbar { display: none; }
.slideshow__viewport:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 3px; }

.slide {
  flex: 0 0 100%;
  width: 100%; min-width: 0;           /* without this a flex child sizes to
                                          max-content and blows past the viewport */
  margin: 0; scroll-snap-align: start;
}
.slide picture { display: block; }
.slide img {
  width: 100%; height: auto;
  aspect-ratio: 2048 / 1074;           /* every case shares this ratio, so cover
                                          never actually crops anything */
  object-fit: cover; display: block;
}

.slideshow__btn {
  position: absolute; top: calc(50% - 22px); transform: translateY(-50%);
  z-index: var(--z-raised);
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  background: rgba(10, 11, 20, 0.72); color: var(--text-on-dark);
  border: 1px solid var(--hairline-dark);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.slideshow__btn svg { width: 22px; height: 22px; }
.slideshow__btn:hover { background: var(--brand-gold); color: var(--gold-ink); border-color: var(--brand-gold); }
.slideshow__btn:disabled { opacity: 0.25; cursor: not-allowed; background: rgba(10,11,20,0.72); color: var(--text-on-dark); border-color: var(--hairline-dark); }
.slideshow__btn--prev { inset-inline-start: 12px; }
.slideshow__btn--next { inset-inline-end: 12px; }
@media (min-width: 1100px) {
  .slideshow__btn--prev { inset-inline-start: -24px; }
  .slideshow__btn--next { inset-inline-end: -24px; }
}

.slideshow__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-sm); margin-top: var(--space-sm); flex-wrap: wrap;
}
.slideshow__count {
  font-family: var(--font-display); font-size: var(--step--1);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-muted);
  font-variant-numeric: tabular-nums;
}
.slideshow__dots { display: flex; gap: 4px; }
.slideshow__dots button {
  width: 32px; height: 44px; padding: 0;   /* 44px tall keeps the tap target legal
                                              while the visible dot stays small */
  background: none; border: 0; cursor: pointer;
  display: grid; place-items: center;
}
.slideshow__dots button::before {
  content: ""; width: 100%; height: 3px; border-radius: 2px;
  background: var(--hairline-dark);
  transition: background var(--dur) var(--ease-out);
}
.slideshow__dots button:hover::before { background: var(--text-on-dark-muted); }
.slideshow__dots button[aria-selected="true"]::before { background: var(--brand-gold); }

@media (prefers-reduced-motion: reduce) {
  .slideshow__viewport { scroll-behavior: auto; }
  .slideshow__btn, .slideshow__dots button::before { transition: none; }
}
