/* Headings that JS splits must not also be balanced: balance resolves once
   on the unsplit text and again on the split spans, moving the line breaks
   at whatever moment the deferred script runs. */
[data-reveal^='split'], .hero__h1 { text-wrap: initial; }

/* ==========================================================================
   Chia Auto-Ecole — sections and motion
   Every animated property is transform, opacity or clip-path.
   Nothing animates width, height, margin, top or left.
   ========================================================================== */

.skip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: translate(-50%, 0); }

/* ==========================================================================
   Reveal primitives
   Default state is VISIBLE. Motion is only armed once JS confirms it can
   drive it (html.js), so a failed script leaves a readable page, not a
   blank one.
   ========================================================================== */

/* clip-path is only composited when the element is already promoted;
   without this every wipe frame repaints the clipped region. */
.js [data-reveal] { will-change: opacity, transform; }
.js [data-reveal='wipe'] { will-change: clip-path; }

.js [data-reveal='fade'],
.js [data-reveal='rise'] {
  opacity: 0;
  transform: translate3d(0, var(--rise, 10px), 0);
  transition:
    opacity var(--d-reveal) var(--ease-out) var(--delay, 0ms),
    transform var(--d-reveal) var(--ease-out) var(--delay, 0ms);
}
.js [data-reveal='rise'] { --rise: 20px; }

.js [data-reveal='fade'][data-visible],
.js [data-reveal='rise'][data-visible] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* clip-path wipe — the sanctioned fourth property */
.js [data-reveal='wipe'] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 820ms var(--ease-in-out) var(--delay, 0ms);
}
.js [data-reveal='wipe'][data-visible] { clip-path: inset(0 0 0 0); }

/* the photo inside a wipe settles from a slight overscale */
.js [data-reveal='wipe'] img {
  transform: scale(1.06);
  transition: transform 1200ms var(--ease-out) var(--delay, 0ms);
}
.js [data-reveal='wipe'][data-visible] img { transform: scale(1); }

/* Split text: each laid-out LINE rides up out of its own mask.
   The mask needs room for descenders (g, y, p, q) or they get clipped. */
.sp-probe { display: inline-block; }

/* The mask must be TALLER than the line box, not offset back into the next
   line: a negative margin here makes consecutive lines overlap and clips the
   cap-height of the line below. Slightly looser leading is the correct price. */
.sp-l {
  display: block;
  overflow: hidden;
  padding-top: 0.14em;
  padding-bottom: 0.16em;
}

.sp-c { display: block; }

.js [data-reveal^='split'] .sp-c {
  transform: translate3d(0, 105%, 0);
  transition: transform 760ms var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + var(--delay, 0ms));
}
.js [data-reveal^='split'][data-visible] .sp-c { transform: translate3d(0, 0, 0); }

/* once it has played, stop paying for the layer */
[data-visible] { will-change: auto; }

/* ==========================================================================
   The road line — the page's spine
   A composited red centre line whose drawn length follows scroll, with
   lane markings that march. Never repaints: scaleY on the wrapper,
   translateY on the dashes.
   ========================================================================== */

.roadline {
  display: block;
  width: 3px;
  height: clamp(46px, 7vh, 78px);
  overflow: hidden;
  opacity: 0.9;
  pointer-events: none;
  flex: 0 0 auto;
}

.roadline i {
  display: block;
  width: 100%;
  height: 200%;
  background: repeating-linear-gradient(
    to bottom,
    var(--red) 0 18px,
    transparent 18px 40px
  );
  animation: march 1.6s linear infinite;
}

@keyframes march {
  to { transform: translate3d(0, -40px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .roadline i { animation: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-top: calc(72px + var(--s-7));
  padding-bottom: var(--s-8);
  overflow: hidden;
  isolation: isolate;
}

/* Not a glow. A faint hazard-stripe field raking across the lower left —
   flat, brand-coloured, and unmistakably road furniture rather than the
   default radial haze every generated hero ships with. */
.hero__bg {
  position: absolute;
  z-index: -1;
  inset: auto -10% -12% -10%;
  height: 62%;
  background: repeating-linear-gradient(
    -58deg,
    rgba(225,6,0,0.26) 0 2px,
    transparent 2px 26px
  );
  -webkit-mask-image: radial-gradient(120% 90% at 6% 108%, #000 0%, transparent 68%);
  mask-image: radial-gradient(120% 90% at 6% 108%, #000 0%, transparent 68%);
  transform: translate3d(0, calc(var(--scroll, 0) * -32px), 0);
}

.hero__in {
  display: grid;
  gap: var(--s-7);
  align-items: end;
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .hero__in { grid-template-columns: 1.08fr 0.92fr; gap: var(--s-7); align-items: center; }
  .hero {
    padding-top: calc(72px + var(--s-6));
    padding-bottom: calc(var(--s-7) + 3.25rem); /* room for the cue rail */
    min-height: 100svh;
    display: grid;
    align-content: center;
  }
}

.hero__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--s-5);
  max-width: 46ch;
}

/* The full approval number is one unbroken token; without a break opportunity
   it sets the hero column's min-content width and pushes the page sideways.
   The markup carries <wbr> after each slash so it breaks at the separators
   instead of mid-digits, which reads as a typo. */
.hero__eyebrow-t {
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.hero__eyebrow .dot {
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex: 0 0 auto;
  animation: pulse 2.6s var(--ease-in-out) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.55); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow .dot { animation: none; }
}

.hero__h1 {
  font-size: var(--t-hero);
  font-weight: 900;
  font-stretch: 108%;
  letter-spacing: -0.038em;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}

/* nowrap keeps one line per mask; if a translation is ever too long it
   shrinks rather than wrapping out of its own reveal */
/* The mask needs headroom ABOVE as well as below: French sets accented
   capitals (CLÉ, SÛRE) whose diacritics sit above the cap height, and a
   bottom-only pad clips them. */
.hero__line {
  display: block;
  overflow: hidden;
  padding-top: 0.16em;
  padding-bottom: 0.14em;
  white-space: nowrap;
}

.hero__line-in { display: block; }

/* French runs longer than English at the same size; the width axis buys back
   most of the difference. It also needs four lines where English needs three,
   so it takes a slightly smaller cap to keep the call to action above the fold
   on a 900px laptop. */
html[lang='fr'] .hero__h1 {
  font-stretch: 94%;
  letter-spacing: -0.042em;
  font-size: clamp(2.2rem, 0.4rem + 6.2vw, 5.5rem);
}

/* The headline plays on load, but it rides the same [data-reveal] machinery
   as everything else rather than a bare keyframe. A keyframe that never runs
   leaves the base transform in place and the headline hidden forever; a
   transition driven by [data-visible] inherits the sweep and the
   reduced-motion map that guarantee the settled state. */
.js [data-reveal='lines'] .hero__line-in {
  transform: translate3d(0, 110%, 0);
  transition: transform 980ms var(--ease-out);
  transition-delay: calc(120ms + var(--i) * 105ms);
}

.js [data-reveal='lines'][data-visible] .hero__line-in {
  transform: translate3d(0, 0, 0);
}

/* the middle of the phrase carries the accent; French runs to four lines
   so it takes the last two rather than a single fixed index */
.hero__line:nth-child(2) .hero__line-in { color: var(--red); }
html[lang='fr'] .hero__line:nth-child(2) .hero__line-in { color: inherit; }
html[lang='fr'] .hero__line:nth-child(3) .hero__line-in,
html[lang='fr'] .hero__line:nth-child(4) .hero__line-in { color: var(--red); }

.hero__sub {
  max-width: 46ch;
  color: rgba(255,255,255,0.76);
  font-size: var(--t-lg);
  line-height: 1.45;
  margin-bottom: var(--s-6);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Full-width stacked buttons on a phone: bigger tap targets, and a long
   label (French runs longer) can no longer widen the whole hero column. */
@media (max-width: 29.99rem) {
  .hero__cta .btn,
  .closer__cta .btn,
  .visit__cta .btn {
    flex: 1 1 100%;
    white-space: normal;
  }
}

.hero__media {
  position: relative;
  margin: 0;
}

.hero__pic { display: block; }

.hero__pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 58% 38%;
}

/* On desktop the photo is sized to the viewport, not to its own ratio,
   so it can never push the call-to-action below the fold. */
@media (min-width: 62rem) {
  .hero__pic img {
    aspect-ratio: auto;
    height: min(62vh, 600px);
  }
}

/* The wipe has to clip the picture, not the whole figure: clip-path on the
   figure would also cut off the red rule that sits outside its box. */
.js .hero__media[data-reveal='wipe'] { clip-path: none; }

.js .hero__media[data-reveal='wipe'] .hero__pic {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 820ms var(--ease-in-out) var(--delay, 0ms);
}

.js .hero__media[data-reveal='wipe'][data-visible] .hero__pic { clip-path: inset(0 0 0 0); }

/* a red rule that draws itself down the photo's leading edge */
.hero__media::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1100ms var(--ease-out) 300ms;
}
.js [data-reveal='wipe'].hero__media[data-visible]::before { transform: scaleY(1); }

.hero__cap {
  margin-top: var(--s-3);
  font-size: var(--t-xs);
  line-height: 1.4;
  color: rgba(255,255,255,0.62);
  max-width: 42ch;
}

/* the cue rail: the lane marking, then the instruction, bottom-left,
   aligned to the same left edge the timeline spine uses further down */
.hero__foot {
  position: absolute;
  left: var(--gutter);
  bottom: var(--s-5);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  pointer-events: none;
}

.hero__foot .roadline {
  width: 34px;
  height: 3px;
}

.hero__foot .roadline i {
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(to right, var(--red) 0 14px, transparent 14px 28px);
  animation: march-x 1.6s linear infinite;
}

@keyframes march-x {
  to { transform: translate3d(-28px, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__foot .roadline i { animation: none; }
}

.hero__cue {
  margin: 0;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

@media (max-width: 61.99rem) {
  .hero__foot { display: none; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.sect {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 8rem);
}

.sect--dark { background: var(--ink); color: #fff; }
.sect--paper2 { background: var(--paper-2); }

.sect__head { max-width: 68ch; margin-bottom: clamp(2rem, 5vw, 4rem); }

.sect__t {
  font-size: var(--t-2xl);
  font-weight: 900;
  font-stretch: 104%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.sect__lead {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--muted);
  max-width: var(--measure);
}

.sect--dark .sect__lead { color: var(--muted-dark); }

.sect__notes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  font-size: var(--t-sm);
  color: var(--muted-dark);
}

.sect__notes span { display: inline-flex; align-items: center; gap: 0.5rem; }

.sect__notes span::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--red-bright);
  flex: 0 0 auto;
}

/* ==========================================================================
   Pillars
   ========================================================================== */

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--hairline-dark);
  border-block: 1px solid var(--hairline-dark);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.pillar {
  background: var(--ink);
  padding: var(--s-6) var(--s-5) var(--s-7);
  position: relative;
}

.pillar__n {
  display: block;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--red-bright);
  letter-spacing: 0.1em;
  margin-bottom: var(--s-5);
}

.pillar__t {
  font-size: var(--t-lg);
  font-weight: 800;
  font-stretch: 96%;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
}

.pillar__b { font-size: var(--t-sm); line-height: 1.6; color: var(--muted-dark); }

/* a red rule grows along the top edge as it appears */
.pillar::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms var(--ease-out) calc(var(--delay, 0ms) + 180ms);
}
.js .pillar[data-visible]::after { transform: scaleX(1); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  grid-template-columns: 1fr;
}

@media (min-width: 52rem) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gal--wide { grid-column: span 4; }
  .gal--tall { grid-column: span 2; }
  .gallery > .gal:nth-child(3) { grid-column: span 3; }
  .gallery > .gal:nth-child(4) { grid-column: span 3; }
  .gal--small { grid-column: span 2; }
  .gal--pair { grid-column: span 4; }
}

.gal { margin: 0; }

.gal picture { display: block; overflow: hidden; background: var(--paper-3); }

.gal img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.gal--tall img { aspect-ratio: 3 / 4; }
.gal--small img { aspect-ratio: 1 / 1; }

.gal figcaption {
  margin-top: var(--s-3);
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

/* ==========================================================================
   The eight weeks
   ========================================================================== */

.journey { overflow: hidden; }

.weeks {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* the spine, drawn by scroll */
.weeks__line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 3px;
  overflow: hidden;
}

.weeks__line i {
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,4,1,0.92) 0 20px,
    transparent 20px 44px
  );
  transform: scaleY(var(--draw, 1));
  transform-origin: top;
}

@media (min-width: 62rem) { .weeks__line { left: 9px; } }

.wk {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 var(--s-4);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 62rem) {
  .wk {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 0 var(--s-6);
    align-items: start;
  }
}

.wk__rail { position: relative; }

.wk__node {
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--red);
  transform: scale(0.4);
  opacity: 0;
  transition:
    transform 520ms var(--ease-out) calc(var(--delay, 0ms) + 120ms),
    opacity 320ms var(--ease-out) calc(var(--delay, 0ms) + 120ms);
}

@media (min-width: 62rem) { .wk__node { left: 1px; } }

.js .wk[data-visible] .wk__node { transform: scale(1); opacity: 1; }

.wk__k {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: var(--s-2);
}

.wk__t {
  font-size: var(--t-xl);
  font-weight: 800;
  font-stretch: 98%;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}

.wk__b { color: var(--muted-dark); line-height: 1.6; max-width: 48ch; }

/* Without an explicit column this auto-places into the 32px rail track and
   the photo blows the page out sideways. */
.wk__media {
  grid-column: 2;
  margin: var(--s-5) 0 0;
  overflow: hidden;
}

@media (min-width: 62rem) {
  .wk__media { grid-column: 3; grid-row: 1; margin-top: 0; }
  .wk__body { grid-column: 2; }
}

/* height:auto is required — the width/height attributes on <img> are
   presentational hints, and with both definite the aspect-ratio is ignored. */
.wk__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ==========================================================================
   Fees + calculator
   ========================================================================== */

.calc {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

/* every grid child here must be allowed to shrink below its content width */
.calc > * { min-width: 0; }

@media (min-width: 64rem) { .calc { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }

.calc__opts {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}

.mod { position: relative; display: block; cursor: pointer; }

.mod input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.mod__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--hairline);
  background: var(--paper);
  transition:
    border-color 200ms var(--ease-out),
    background-color 200ms var(--ease-out),
    transform var(--d-press) var(--ease-out);
}

/* grid children default to min-width:auto and refuse to shrink below their
   content, which pushed the whole card past the viewport on a 360px phone */
.mod__in > * { min-width: 0; }

@media (max-width: 29.99rem) {
  .mod__in { grid-template-columns: minmax(0, 1fr); padding: var(--s-4); }
  .mod__fee {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: var(--s-2);
  }
  .mod__fee em { margin-top: 0; }
}

.mod:active .mod__in { transform: scale(0.99); }

@media (hover: hover) and (pointer: fine) {
  .mod:hover .mod__in { border-color: rgba(10,10,10,0.34); }
}

.mod input:checked + .mod__in {
  border-color: var(--red);
  background: #fef5f5;
}

.mod input:focus-visible + .mod__in { outline: 2px solid var(--red); outline-offset: 3px; }

.mod__flag {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 0.22rem 0.55rem;
  margin-bottom: var(--s-2);
}

.mod__name {
  font-size: var(--t-xl);
  font-weight: 800;
  font-stretch: 96%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mod__fee {
  grid-column: 2;
  grid-row: span 2;
  align-self: center;
  justify-self: end;
  text-align: right;
  font-size: var(--t-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mod__fee em {
  display: block;
  font-style: normal;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.3rem;
}

.mod__meta {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.02em;
}

.mod__note {
  grid-column: 1 / -1;
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.5;
  margin-top: var(--s-2);
}

/* the per-module total only matters once you have chosen it */
.mod__total {
  grid-column: 1 / -1;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: var(--s-3);
  opacity: 0;
  transform: translate3d(0, -4px, 0);
  transition:
    opacity 240ms var(--ease-out),
    transform 240ms var(--ease-out);
}

.mod input:checked + .mod__in .mod__total { opacity: 1; transform: none; }

/* ---- the receipt --------------------------------------------------------- */

.calc__out {
  position: sticky;
  top: calc(72px + 1rem);
  background: var(--ink);
  color: #fff;
  padding: var(--s-6);
}

.calc__rows { margin: 0 0 var(--s-5); display: grid; gap: var(--s-4); }

.calc__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  align-items: baseline;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline-dark);
}

.calc__row dt { font-weight: 600; font-size: var(--t-sm); }

.calc__row dt small {
  display: block;
  font-weight: 400;
  color: var(--muted-dark);
  font-size: var(--t-xs);
  margin-top: 0.2rem;
}

.calc__row dd { margin: 0; font-weight: 700; white-space: nowrap; }

.calc__row--add label { display: flex; gap: 0.55rem; align-items: baseline; cursor: pointer; }
.calc__row--add input { accent-color: var(--red); }

.calc__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}

.calc__total-k {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.calc__total-v {
  font-size: var(--t-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.calc__total-v em {
  font-style: normal;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--red-bright);
  letter-spacing: 0.06em;
}

.calc__go { width: 100%; }

/* ==========================================================================
   Checklist
   ========================================================================== */

.ck { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
.ck > * { min-width: 0; }

@media (min-width: 60rem) { .ck { grid-template-columns: 0.85fr 1.15fr; } }

.ck__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hairline); border-block: 1px solid var(--hairline); }

.ck__list li { background: var(--paper-2); }

.ck__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) var(--s-3);
  cursor: pointer;
  transition: background-color 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .ck__row:hover { background: var(--paper); }
}

/* the real input stays in the accessibility tree and keeps keyboard support */
.ck__in {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}

.ck__box {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(10,10,10,0.28);
  border-radius: 2px;
  color: #fff;
  background: transparent;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform var(--d-press) var(--ease-out);
}

.ck__box svg {
  width: 14px;
  height: 14px;
  transform: scale(0.4);
  opacity: 0;
  transition:
    transform 220ms var(--ease-out),
    opacity 140ms var(--ease-out);
}

.ck__row:active .ck__box { transform: scale(0.92); }

.ck__in:checked + .ck__box {
  background: var(--red);
  border-color: var(--red);
}

.ck__in:checked + .ck__box svg { transform: scale(1); opacity: 1; }

.ck__in:focus-visible + .ck__box { outline: 2px solid var(--red); outline-offset: 3px; }

.ck__t {
  font-size: var(--t-sm);
  line-height: 1.45;
  transition: color 200ms var(--ease-out);
}

.ck__in:checked ~ .ck__t { color: var(--muted); }

/* ---- progress meter ------------------------------------------------- */

.ck__meter {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline);
}

.ck__count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--t-sm);
  font-weight: 600;
}

.ck__count strong {
  font-size: var(--t-2xl);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}

.ck__bar {
  height: 3px;
  background: rgba(10,10,10,0.14);
  margin: var(--s-3) 0 var(--s-4);
  overflow: hidden;
}

.ck__bar i {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
}

.ck__hint {
  font-size: var(--t-sm);
  color: var(--muted);
  margin-bottom: var(--s-4);
  max-width: 42ch;
}

.ck__send { width: 100%; }

@media (min-width: 30rem) { .ck__send { width: auto; } }

.ck__c {
  font-weight: 800;
  font-size: var(--t-sm);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Visit + map
   ========================================================================== */

.visit { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
.visit > * { min-width: 0; }

@media (min-width: 60rem) { .visit { grid-template-columns: 1fr 1fr; } }

.visit__facts { margin: var(--s-6) 0; display: grid; gap: var(--s-5); }

.visit__facts dt {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: var(--s-2);
}

.visit__facts dd { margin: 0; font-size: var(--t-lg); line-height: 1.4; }
.visit__facts dd a { text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  .visit__facts dd a:hover { color: var(--red); }
}

.visit__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-2);
  border: 1px solid var(--hairline-dark);
  overflow: hidden;
}

.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.map__btn {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-3);
  padding: var(--s-6);
  text-align: center;
  transition: background-color 240ms var(--ease-out);
}

/* a faint street grid so the placeholder is not an empty box */
.map::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, var(--hairline-dark) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 52px, var(--hairline-dark) 52px 53px);
  transform: rotate(-12deg);
  opacity: 0.7;
}

.map[data-loaded]::before { display: none; }

.map__btn svg { width: 30px; height: 30px; color: var(--red); }

.map__btn span { font-size: var(--t-sm); max-width: 30ch; color: rgba(255,255,255,0.8); }

.map__btn em {
  font-style: normal;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
  padding-bottom: 0.2rem;
}

@media (hover: hover) and (pointer: fine) {
  .map__btn:hover { background: rgba(225,6,0,0.12); }
}

/* ==========================================================================
   Closer
   ========================================================================== */

.closer {
  background: var(--red);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.closer__in { max-width: 54ch; margin-inline: auto; }

.closer__t {
  font-size: var(--t-3xl);
  font-weight: 900;
  font-stretch: 106%;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.closer__b { font-size: var(--t-lg); color: #fff; margin-bottom: var(--s-6); }

.closer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  /* escape .closer__in max-width so two buttons sit side by side */
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

.closer .btn { --btn-bg: var(--ink); --btn-fg: #fff; }
.closer .btn--ghost { --btn-bg: transparent; box-shadow: inset 0 0 0 1px currentColor; }

@media (hover: hover) and (pointer: fine) {
  .closer .btn:hover { --btn-bg: #fff; --btn-fg: var(--ink); }
  .closer .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--red); }
}

.roadline--closer i {
  background: repeating-linear-gradient(to bottom, #fff 0 18px, transparent 18px 40px);
}
