/* ============================================================
   Hollywood Drift Orlando opening date (Desk feature)
   Page uses _Layout (site.css Nightfall tokens: --paper, --paper-2, --ink, --ink-soft,
   --muted, --hair, --gold, --display, --text, --space-*). Scoped under .hwd; page links
   use `.hwd :where(a)` so classed controls keep their own ink.
   Signature: a build-progress tachometer. One mark per construction stage, the needle
   at the stage the ride is in now, opening day in the redline. It revs once on load,
   the only motion on the page, and never sits behind type.
   ============================================================ */

.hwd {
  --hwd-asphalt: oklch(19% 0.012 260);
  --hwd-asphalt-2: oklch(25% 0.014 260);
  --hwd-sodium: oklch(78% 0.16 62);        /* street light orange */
  --hwd-red: oklch(62% 0.22 27);           /* redline */
  --hwd-chalk: oklch(95% 0.008 250);       /* gauge numerals */
  --hwd-paper: oklch(96% 0.012 90);        /* thermal timing slip */
  --hwd-paper-ink: oklch(26% 0.02 260);
  --hwd-cond: 'Saira Condensed', var(--text);
  --hwd-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --hwd-ease: cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) var(--space-3xl);
}
.hwd :where(a) { color: var(--gold); text-decoration: none; border-bottom: 1px solid oklch(84% 0.13 86 / 0.35); }
.hwd :where(a:hover) { border-bottom-color: var(--gold); }
.hwd :where(a:focus-visible),
.hwd :where(summary:focus-visible) { outline: 2px solid var(--hwd-sodium); outline-offset: 3px; border-radius: 3px; }

/* ---- hero -------------------------------------------------------------- */
.hwd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 78% 45%, oklch(78% 0.16 62 / 0.16), transparent 70%),
    linear-gradient(160deg, var(--hwd-asphalt-2), var(--hwd-asphalt));
  border: 1px solid oklch(100% 0 0 / 0.06);
}
.hwd-kicker {
  margin: 0; font-family: var(--hwd-cond); font-weight: 600; font-size: 15px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--hwd-sodium);
}
.hwd-h1 {
  margin: var(--space-md) 0 0;
  font-family: var(--hwd-cond); font-weight: 600; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 80px); line-height: 0.92; letter-spacing: 0.005em;
  color: var(--hwd-chalk); text-wrap: balance;
}
.hwd-answer {
  margin: var(--space-lg) 0 0; max-width: 58ch;
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--ink-soft);
}
.hwd-answer strong { color: var(--ink); }
.hwd-spec { display: flex; flex-wrap: wrap; margin: var(--space-xl) 0 0; gap: var(--space-sm) 0; }
.hwd-spec > div { padding: 0 var(--space-lg); border-left: 1px solid oklch(100% 0 0 / 0.14); }
.hwd-spec > div:first-child { padding-left: 0; border-left: 0; }
.hwd-spec dt { font-size: 13px; color: var(--muted); }
.hwd-spec dd { margin: 2px 0 0; font-family: var(--hwd-cond); font-weight: 600; font-size: 24px; color: var(--hwd-chalk); letter-spacing: 0.02em; }
.hwd-byline { margin: var(--space-lg) 0 0; font-size: 14px; color: var(--muted); }

.hwd-tach { margin: 0; justify-self: center; width: min(100%, 440px); }
.hwd-tach-svg { display: block; width: 100%; height: auto; }
.hwd-bezel { fill: oklch(32% 0.01 260); stroke: oklch(55% 0.01 260); stroke-width: 2; }
.hwd-face { fill: oklch(14% 0.01 260); }
.hwd-track { fill: none; stroke: oklch(100% 0 0 / 0.08); stroke-width: 14; }
.hwd-done { fill: none; stroke: var(--hwd-sodium); stroke-width: 14; stroke-linecap: butt; }
.hwd-red { fill: none; stroke: var(--hwd-red); stroke-width: 14; }
.hwd-mark { stroke: var(--hwd-chalk); stroke-width: 4; }
.hwd-mark.is-next, .hwd-mark.is-later { stroke: oklch(95% 0.008 250 / 0.45); }
.hwd-minor { stroke: oklch(95% 0.008 250 / 0.35); stroke-width: 2; }
.hwd-mark-n { font-family: var(--hwd-cond); font-weight: 600; font-size: 22px; fill: var(--hwd-chalk); }
.hwd-mark-n.is-next, .hwd-mark-n.is-later { fill: oklch(95% 0.008 250 / 0.5); }
.hwd-mark-n.is-now { fill: var(--hwd-sodium); }
.hwd-face-label { font-family: var(--hwd-cond); font-weight: 500; font-size: 13px; letter-spacing: 0.3em; fill: oklch(95% 0.008 250 / 0.55); }
.hwd-face-now { font-family: var(--hwd-cond); font-weight: 600; font-size: 22px; letter-spacing: 0.08em; fill: var(--hwd-sodium); }
.hwd-needle { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(var(--hwd-deg)); }
.hwd-needle path { fill: var(--hwd-red); filter: drop-shadow(0 0 6px oklch(62% 0.22 27 / 0.6)); }
.hwd-hub { fill: oklch(40% 0.01 260); stroke: oklch(65% 0.01 260); stroke-width: 2; }
.hwd-hub-dot { fill: var(--hwd-asphalt); }
.hwd-tach-cap { margin-top: var(--space-sm); text-align: center; font-size: 14px; color: var(--ink-soft); }
.hwd-tach-cap span { color: var(--hwd-red); font-weight: 700; }

/* ---- body -------------------------------------------------------------- */
.hwd-body { max-width: 860px; margin: 0 auto; }
.hwd-sec { margin-top: clamp(56px, 8vw, 96px); }
.hwd-eyebrow {
  margin: 0; font-family: var(--hwd-cond); font-weight: 600; font-size: 14px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--hwd-sodium);
}
.hwd-sec h2 {
  margin: var(--space-sm) 0 0; font-family: var(--hwd-cond); font-weight: 600; text-transform: uppercase;
  font-size: clamp(30px, 4vw, 46px); line-height: 0.98; letter-spacing: 0.01em; color: var(--hwd-chalk); text-wrap: balance;
}
.hwd-sec p, .hwd-foot { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); max-width: 68ch; }
.hwd-note { font-size: 14px !important; color: var(--muted) !important; margin-top: var(--space-xs); }

/* ---- timing slip ------------------------------------------------------- */
.hwd-slip-wrap { margin: var(--space-xl) 0; display: grid; justify-items: center; }
.hwd-slip {
  width: min(100%, 560px);
  padding: 22px 22px 26px;
  background: var(--hwd-paper); color: var(--hwd-paper-ink);
  font-family: var(--hwd-mono); font-size: 13.5px;
  transform: rotate(-0.8deg);
  box-shadow: 0 24px 50px -24px oklch(0% 0 0 / 0.7);
  /* Tear-off edges, top and bottom. */
  -webkit-mask: radial-gradient(6px at 50% 0, #0000 98%, #000) 50% 0 / 14px 51% repeat-x,
                radial-gradient(6px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 51% repeat-x;
          mask: radial-gradient(6px at 50% 0, #0000 98%, #000) 50% 0 / 14px 51% repeat-x,
                radial-gradient(6px at 50% 100%, #0000 98%, #000) 50% 100% / 14px 51% repeat-x;
}
.hwd-slip-head { display: grid; gap: 2px; text-align: center; padding: 8px 0 12px; border-bottom: 1px dashed oklch(26% 0.02 260 / 0.5); }
.hwd-slip-head b { font-size: 17px; letter-spacing: 0.12em; }
.hwd-slip-head span { font-size: 11.5px; letter-spacing: 0.08em; opacity: 0.75; }
.hwd-slip-row { display: grid; grid-template-columns: 1fr auto 58px; gap: 12px; padding: 10px 0; border-bottom: 1px dotted oklch(26% 0.02 260 / 0.3); align-items: start; }
.hwd-slip-cols { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; padding: 8px 0 6px; }
.hwd-slip-what { font-weight: 700; }
.hwd-slip-what i { font-style: normal; opacity: 0.55; margin-right: 4px; }
.hwd-slip-what small { display: block; font-weight: 400; font-size: 12px; line-height: 1.45; opacity: 0.75; margin-top: 3px; font-family: var(--text); }
.hwd-slip-when { white-space: nowrap; text-align: right; }
.hwd-slip-st { text-align: right; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.hwd-slip-row.is-done .hwd-slip-st { color: oklch(45% 0.12 150); }
.hwd-slip-row.is-now { background: oklch(78% 0.16 62 / 0.22); margin: 0 -10px; padding-inline: 10px; }
.hwd-slip-row.is-now .hwd-slip-st { color: oklch(48% 0.2 35); }
.hwd-slip-row.is-next .hwd-slip-what, .hwd-slip-row.is-later .hwd-slip-what { opacity: 0.6; }
.hwd-slip-row.is-next .hwd-slip-st, .hwd-slip-row.is-later .hwd-slip-st { opacity: 0.55; }
.hwd-slip-foot { display: flex; justify-content: space-between; padding-top: 12px; font-size: 11.5px; letter-spacing: 0.1em; }

/* ---- height stick ------------------------------------------------------ */
.hwd-stick {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 16px);
  align-items: end; height: 360px; margin-top: var(--space-xl);
  padding: 20px 16px 0; border-radius: 20px;
  background:
    repeating-linear-gradient(0deg, oklch(100% 0 0 / 0.05) 0 1px, transparent 1px 25%),
    var(--hwd-asphalt);
}
.hwd-bar { position: relative; height: 100%; display: grid; grid-template-rows: 1fr auto auto auto; align-items: end; text-align: center; padding-bottom: 12px; }
.hwd-bar-col {
  align-self: end; justify-self: center; width: min(100%, 54px);
  height: var(--hwd-h); border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, oklch(70% 0.02 260), oklch(45% 0.02 260));
}
.hwd-bar.is-drift .hwd-bar-col { background: linear-gradient(180deg, var(--hwd-sodium), var(--hwd-red)); box-shadow: 0 0 24px oklch(78% 0.16 62 / 0.4); }
.hwd-bar b { font-family: var(--hwd-cond); font-weight: 600; font-size: 22px; color: var(--hwd-chalk); margin-top: 8px; }
.hwd-bar.is-drift b { color: var(--hwd-sodium); }
.hwd-bar-name { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.hwd-bar-park { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.hwd-facts { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: 12px; }
.hwd-facts li { padding: 16px 18px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--hair); color: var(--ink-soft); line-height: 1.6; }
.hwd-facts b { display: block; font-family: var(--hwd-cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; color: var(--hwd-sodium); margin-bottom: 2px; }

/* ---- license plates ---------------------------------------------------- */
.hwd-plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); margin-top: var(--space-xl); }
.hwd-plate { margin: 0; }
.hwd-plate-face {
  position: relative; aspect-ratio: 2 / 1; border-radius: 14px;
  display: grid; place-items: center; align-content: center; gap: 2px;
  background: linear-gradient(180deg, oklch(97% 0.01 250), oklch(88% 0.015 250));
  color: oklch(30% 0.12 262);
  box-shadow: inset 0 0 0 3px oklch(30% 0.12 262 / 0.9), inset 0 0 0 6px oklch(97% 0.01 250), 0 18px 34px -18px oklch(0% 0 0 / 0.8);
  filter: saturate(0.85);
}
.hwd-plate-face::before, .hwd-plate-face::after {
  content: ""; position: absolute; top: 12px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, oklch(90% 0 0), oklch(55% 0 0));
}
.hwd-plate-face::before { left: 22%; }
.hwd-plate-face::after { right: 22%; }
.hwd-plate-top { font-family: var(--hwd-cond); font-weight: 600; font-size: clamp(11px, 1.4vw, 14px); letter-spacing: 0.22em; text-transform: uppercase; color: oklch(50% 0.2 27); }
.hwd-plate-main { font-family: var(--hwd-cond); font-weight: 600; font-size: clamp(40px, 7vw, 68px); line-height: 0.95; letter-spacing: 0.06em; text-shadow: 0 2px 0 oklch(100% 0 0 / 0.7), 0 -1px 0 oklch(0% 0 0 / 0.25); }
.hwd-plate-yrs { font-family: var(--hwd-cond); font-weight: 500; font-size: 13px; letter-spacing: 0.2em; }
.hwd-plate-tag {
  position: absolute; bottom: 12px; right: 14px; padding: 3px 9px; border-radius: 4px;
  font-family: var(--hwd-cond); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--hwd-red); color: oklch(98% 0 0); transform: rotate(-4deg);
}
.hwd-plate figcaption { margin-top: var(--space-md); font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---- links + faq ------------------------------------------------------- */
.hwd-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--space-xl); }
.hwd .hwd-link {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--hair);
  transition: transform 0.25s var(--hwd-ease), border-color 0.25s;
}
.hwd .hwd-link:hover { transform: translateY(-2px); border-color: oklch(78% 0.16 62 / 0.55); }
.hwd .hwd-link:focus-visible { outline: 2px solid var(--hwd-sodium); outline-offset: 3px; }
.hwd-link b { font-size: 16px; }
.hwd-link span { font-size: 14px; color: var(--muted); }
.hwd-faq h2 { margin-bottom: var(--space-lg); }
.hwd-faq-item { border-top: 1px solid var(--hair); }
.hwd-faq-item:last-of-type { border-bottom: 1px solid var(--hair); }
.hwd-faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.hwd-faq-item summary::-webkit-details-marker { display: none; }
.hwd-faq-item summary::after { content: "+"; color: var(--hwd-sodium); font-size: 22px; line-height: 1; }
.hwd-faq-item[open] summary::after { content: "\2212"; }
.hwd-faq-item p { margin: 0 0 18px; }
.hwd-foot { margin: var(--space-2xl) auto 0; }

/* ---- motion: one rev of the needle ------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hwd.is-ready .hwd-needle { animation: hwd-rev 2.4s var(--hwd-ease) both; }
  .hwd.is-ready .hwd-done { stroke-dasharray: 1000; animation: hwd-sweep 2.4s var(--hwd-ease) both; }
}
@keyframes hwd-rev {
  0% { transform: rotate(var(--hwd-from)); }
  38% { transform: rotate(var(--hwd-rev)); }
  100% { transform: rotate(var(--hwd-deg)); }
}
@keyframes hwd-sweep { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  .hwd-hero { grid-template-columns: 1fr; }
  .hwd-tach { width: min(100%, 360px); }
  .hwd-stick { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; row-gap: 20px; }
  .hwd-bar { height: 220px; }
  .hwd-links { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hwd { padding-inline: 0; }
  .hwd-hero { border-radius: 0; padding: 28px 16px; }
  .hwd-body { padding-inline: 16px; }
  .hwd-plates { grid-template-columns: 1fr; }
  .hwd-slip { transform: none; padding-inline: 14px; }
  .hwd-slip-row { grid-template-columns: 1fr auto; }
  .hwd-slip-when { grid-column: 1; text-align: left; font-size: 12px; opacity: 0.7; }
  .hwd-slip-st { grid-row: 1; grid-column: 2; }
  .hwd-spec > div { padding: 0 var(--space-md); }
}
