/* ==========================================================================
   RC GRID
   Built to the RC GRID Brand Identity Guidelines (Approved Concept-Aligned
   Edition, Aug 2026). Restrained luxury-motorsport: black, warm ivory,
   metal silver, champagne gold used only as a hairline accent.
   Mobile-first. Breakpoints at 640px, 960px and 1100px.
   ========================================================================== */

:root {
  /* Brand palette — do not add colours outside this set. */
  --carbon:   #090A0B;
  --graphite: #15191E;
  --ivory:    #F4F1EB;
  --silver:   #E5E5E3;
  --gold:     #B89A6B;

  --ink-dim:  rgba(229, 229, 227, .62);
  --ink-mute: rgba(229, 229, 227, .40);
  --rule:     rgba(184, 154, 107, .28);
  --rule-soft:rgba(229, 229, 227, .10);

  --display: "Michroma", "Saira", ui-sans-serif, system-ui, sans-serif;
  --text:    "Saira", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Wide tracking is essential to the identity. */
  --track-wide: .34em;
  --track-mid:  .18em;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --band-y: clamp(4.5rem, 11vw, 9.5rem);
  --maxw: 1440px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--silver);
  font-family: var(--text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ivory); color: var(--carbon); padding: .75rem 1.25rem;
  font-family: var(--display); font-size: .7rem; letter-spacing: var(--track-mid);
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* --------------------------------------------------------------- shared -- */

.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(.56rem, 1.6vw, .68rem);
  letter-spacing: var(--track-wide);
  color: var(--gold);
  text-transform: uppercase;
}
.eyebrow__num { color: var(--ink-mute); }
.eyebrow__verb { position: relative; padding-left: 3.25rem; }
.eyebrow__verb::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 2.25rem; height: 1px; background: var(--gold); opacity: .55;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.9rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--carbon);
  font-family: var(--display);
  font-size: .64rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  text-decoration: none;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn--ghost { background: transparent; color: var(--silver); border-color: var(--rule-soft); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { padding: .7rem 1.15rem; font-size: .56rem; }

.muted { color: var(--ink-mute); }

/* --------------------------------------------------------------- header -- */

.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 10, 11, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.hdr__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .8rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.hdr__logo { flex: 0 0 auto; line-height: 0; }
.hdr__logo img { width: clamp(104px, 22vw, 148px); }

.hdr__nav { display: none; }
.hdr__nav a {
  font-family: var(--display); font-size: .6rem;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  text-decoration: none; color: var(--ink-dim);
  transition: color .3s ease;
}
.hdr__nav a:hover { color: var(--gold); }

.hdr .btn { margin-left: auto; }

@media (min-width: 800px) {
  .hdr__nav { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); margin-left: auto; }
  .hdr .btn { margin-left: clamp(1.5rem, 3vw, 2.75rem); }
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: 88svh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(4rem, 14vh, 8rem) var(--gutter) clamp(5rem, 14vh, 8rem);
  text-align: center;
  /* A faint champagne wash off-centre — the only gradient on the page. */
  background:
    radial-gradient(120% 85% at 50% 8%, rgba(184,154,107,.10), transparent 62%),
    radial-gradient(90% 60% at 50% 100%, rgba(229,229,227,.045), transparent 70%),
    var(--carbon);
}
.hero__inner { max-width: 46rem; }
.hero__mark { width: min(80vw, 30rem); margin: 0 auto; }

.hero__line {
  margin: clamp(2.25rem, 6vw, 3.25rem) 0 0;
  font-size: clamp(.94rem, 2.6vw, 1.12rem);
  font-weight: 200;
  line-height: 1.85;
  letter-spacing: .05em;
  color: var(--ink-dim);
}

/* The hero's centre stage belongs to the three tracks, not to booking —
   booking lives in the header and in the Visit section. */
.hero__tracks {
  margin: clamp(2.5rem, 7vw, 3.5rem) auto 0;
  max-width: 26rem;
  display: grid;
  text-align: left;
}
.hero__tracks a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.05rem .25rem;
  border-top: 1px solid var(--rule-soft);
  text-decoration: none;
  transition: border-color .35s ease;
}
.hero__tracks a:last-child { border-bottom: 1px solid var(--rule-soft); }
.hero__tracks a:hover { border-color: var(--rule); }
.hero__tracks .n {
  flex: 0 0 auto;
  min-width: 6.75rem;          /* aligns the three names into a column */
  font-family: var(--display);
  font-size: .54rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--gold);
}
.hero__tracks .t {
  font-size: 1.02rem;
  font-weight: 200;
  letter-spacing: .03em;
  color: var(--silver);
  transition: color .35s ease;
}
.hero__tracks a:hover .t { color: var(--ivory); }

@media (min-width: 640px) {
  .hero__tracks {
    max-width: none;
    grid-auto-flow: column; justify-content: center;
    text-align: center;
  }
  .hero__tracks a {
    flex-direction: column; align-items: center; gap: .6rem;
    padding: .4rem clamp(1.5rem, 4vw, 2.75rem);
    border-top: 0; border-left: 1px solid var(--rule-soft);
  }
  .hero__tracks .n { min-width: 0; }
  .hero__tracks a:first-child { border-left: 0; }
  .hero__tracks a:last-child { border-bottom: 0; }
  .hero__tracks a:hover { border-color: var(--rule-soft); }
}

.hero__where {
  margin: clamp(2.5rem, 7vw, 3.5rem) 0 0;
  font-family: var(--display);
  font-size: .58rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; translate: -50% 0;
  width: 1px; height: 3.5rem; background: var(--rule-soft);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; inset: 0; background: var(--gold);
  animation: trace 2.8s cubic-bezier(.7,0,.3,1) infinite;
}
@keyframes trace {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* --------------------------------------------------------------- bands --- */

.band { padding: var(--band-y) 0; border-top: 1px solid var(--rule-soft); }
.band--crawl { background: var(--graphite); }

.band__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: clamp(2.5rem, 6vw, 4rem);
}
.band__text, .band__grid { min-width: 0; }

.band__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 6.5vw, 2.9rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--ivory);
}
.band__kit {
  margin: .9rem 0 0;
  font-size: .78rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--gold);
}
.band__lede {
  margin: 1.6rem 0 0;
  max-width: 34ch;
  font-size: clamp(.96rem, 2.4vw, 1.06rem);
  font-weight: 200;
  line-height: 1.8;
  color: var(--ink-dim);
}

.chips { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .5rem .9rem;
  border: 1px solid var(--rule);
  font-family: var(--display);
  font-size: .54rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* photo grid — hero frame, then four supporting frames */
/* minmax(0,1fr) — a bare 1fr floors at min-content, which lets large images
   push the track wider than the viewport. */
.band__grid { display: grid; gap: clamp(.5rem, 1.4vw, .85rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f { margin: 0; min-width: 0; overflow: hidden; background: var(--graphite); }
.f--a { grid-column: 1 / -1; }
.f img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: scale .8s cubic-bezier(.2,.6,.2,1); }
.f--a img { aspect-ratio: 16 / 10; }
.f:hover img { scale: 1.035; }
/* Studio shots are already tinted to Warm Ivory — give them a matching field
   and breathing room instead of cropping the machine. */
.f.is-studio { background: var(--ivory); }
.f.is-studio img { object-fit: contain; padding: clamp(.5rem, 2vw, 1.25rem); }

@media (min-width: 640px) {
  .band__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .f--a { grid-column: span 4; }
  .f--b { grid-column: span 2; }
  .f--c, .f--d, .f--e { grid-column: span 2; }
  .f--b img { aspect-ratio: 4 / 5; }
}

@media (min-width: 1100px) {
  .band__inner {
    grid-template-columns: minmax(17rem, 24rem) minmax(0, 1fr);
    align-items: start;
    gap: clamp(3rem, 5vw, 5.5rem);
  }
  .band__text { position: sticky; top: 7rem; }
  /* Alternate the text column so the three bands do not read as a list.
     The column widths have to flip with the order, or the photo grid lands
     in the narrow track. */
  .band:nth-of-type(even) .band__inner { grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem); }
  .band:nth-of-type(even) .band__text { order: 2; }
  .band:nth-of-type(even) .band__grid { order: 1; }
}

/* ---------------------------------------------------------------- visit -- */

.visit {
  padding: var(--band-y) 0;
  border-top: 1px solid var(--rule-soft);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(184,154,107,.07), transparent 65%),
    var(--carbon);
}
.visit__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visit__h {
  margin: 0 0 clamp(2.5rem, 6vw, 3.5rem);
  font-family: var(--display);
  font-size: clamp(1.5rem, 6vw, 2.6rem);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ivory);
}
.visit__cols { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }

.facts { margin: 0; display: grid; gap: 0; }
.facts dt {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--display);
  font-size: .56rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold);
}
.facts dd {
  margin: .55rem 0 1.5rem;
  font-size: 1rem;
  font-weight: 200;
  line-height: 1.7;
  color: var(--silver);
}

.maplink {
  display: inline-block;
  margin-top: .7rem;
  font-family: var(--display);
  font-size: .54rem;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .3s ease, border-color .3s ease;
}
.maplink:hover { color: var(--ivory); border-color: var(--ivory); }

.visit__note {
  margin: 0 0 1.75rem;
  max-width: 30ch;
  font-weight: 200;
  line-height: 1.8;
  color: var(--ink-dim);
}
.visit__act { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.visit__act .btn { width: 100%; max-width: 22rem; }

@media (min-width: 860px) {
  .visit__cols { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); align-items: start; }
}

/* --------------------------------------------------------------- footer -- */

.ftr { border-top: 1px solid var(--rule-soft); padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 3.5rem); }
.ftr__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.ftr__logo { width: clamp(140px, 34vw, 190px); margin: 0 auto 2rem; opacity: .82; }
.ftr__verbs {
  margin: 0 0 2.25rem;
  font-family: var(--display);
  font-size: .58rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold);
}
.ftr__social {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: flex; justify-content: center; gap: clamp(.5rem, 2vw, 1rem);
}
.ftr__social a {
  display: inline-flex;
  padding: .55rem;              /* keeps the tap target ~36px on a phone */
  color: var(--ink-dim);
  transition: color .3s ease;
}
.ftr__social a:hover { color: var(--gold); }
.ftr__social svg { width: 20px; height: 20px; display: block; }

.ftr__sister { margin: 0 0 .6rem; font-size: .88rem; font-weight: 200; color: var(--ink-dim); }
.ftr__sister a { color: var(--silver); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.ftr__sister a:hover { color: var(--gold); border-color: var(--gold); }
.ftr__legal { margin: 0; font-size: .74rem; color: var(--ink-mute); }
