/* Double Impact. One shape: the strip of green turf on the black floor of the room. */
:root {
  --ground: #0f1110;
  --raised: #1a1d1b;
  --ink: #f4f5f1;
  --muted: #b9beb7;
  --turf: #4dd86d;
  --on-turf: #0b0d0c;

  --font-display: 'Libre Franklin', 'Arial Narrow', Arial, sans-serif;
  --font-text: 'Source Serif 4', Georgia, serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-display: clamp(2.25rem, 4.6vw, 6.25rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gap: 12px;
  --section: clamp(5rem, 11vw, 11rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font-text);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
h1 { font-size: var(--step-display); text-transform: uppercase; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--turf); color: var(--on-turf); }

.btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: var(--on-turf);
  color: var(--turf);
  font: 700 var(--step-body)/1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
.btn:hover { background: var(--ink); color: var(--on-turf); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.dark { background: var(--turf); color: var(--on-turf); }
.btn.dark:hover { background: var(--ink); }
.visit .btn.dark { background: var(--on-turf); color: var(--turf); }
.visit .btn.dark:hover { background: var(--ink); color: var(--on-turf); }

/* ---------- hero: the turf card beside the room ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: var(--margin);
  min-height: 100svh;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--turf);
  color: var(--on-turf);
}
.plates {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding-inline: clamp(1.25rem, 3vw, 3rem);
  background: var(--on-turf);
}
.plates i { display: block; width: 14px; background: var(--turf); }
.plates i:nth-child(6n+1) { height: 16px; }
.plates i:nth-child(6n+2) { height: 28px; }
.plates i:nth-child(6n+3) { height: 40px; }
.plates i:nth-child(6n+4) { height: 40px; }
.plates i:nth-child(6n+5) { height: 28px; }
.plates i:nth-child(6n) { height: 16px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.25rem clamp(1.25rem, 3vw, 3rem) 0;
}
.mark { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font: 800 var(--step-body)/1 var(--font-display); letter-spacing: -0.02em; }
.mark img { width: 48px; height: 48px; border-radius: 50%; }
.links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.links a { font: 700 1rem/1.6 var(--font-display); letter-spacing: -0.01em; text-decoration: none; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.pitch {
  margin-top: auto;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 3vw, 3rem) clamp(1.75rem, 3.5vw, 3.5rem);
}
.pitch .lead { margin-top: 2rem; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.open { font: 700 1rem/1.3 var(--font-display); letter-spacing: -0.01em; }

.room { position: relative; min-height: 100%; overflow: hidden; background: var(--raised); }
.room img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.room img.on { opacity: 1; }

/* ---------- the station ---------- */
.kit {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  align-items: center;
  padding-block: var(--section);
  padding-right: var(--margin);
}
.kit-photo { grid-column: 1 / 6; background: var(--turf); padding: 0 1.5rem 1.5rem 0; }
.kit-photo img { width: 100%; height: min(80svh, 44rem); object-fit: cover; object-position: 50% 60%; }
.kit-text { grid-column: 7 / 13; }
.kit-text > p { margin-top: 1.5rem; max-width: 52ch; }
.points { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; font: 700 var(--step-body)/1.25 var(--font-display); letter-spacing: -0.01em; }
.points li { position: relative; padding-left: 1.75rem; }
.points li::before { content: ''; position: absolute; left: 0; top: 0.32em; width: 1.05rem; height: 0.55rem; background: var(--turf); }

/* ---------- where you start ---------- */
.start { padding: var(--section) var(--margin); background: var(--raised); }
.start-head { max-width: 46rem; }
.start-head p { margin-top: 1.25rem; font-size: var(--step-lead); line-height: 1.35; }
.start-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.choices { display: flex; flex-direction: column; gap: var(--gap); }
.choices button {
  appearance: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.35rem 1.5rem;
  min-height: 48px;
  background: var(--ground);
  color: var(--ink);
  font: 700 var(--step-lead)/1.1 var(--font-display);
  letter-spacing: -0.02em;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.choices button:hover { transform: translateX(6px); }
.choices button:active { transform: translateX(2px); }
.choices button[aria-pressed='true'] { background: var(--turf); color: var(--on-turf); }
.answer { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; background: var(--ground); }
.answer + .answer { margin-top: var(--gap); }
.answer img { width: 100%; height: 100%; min-height: 20rem; max-height: 27rem; object-fit: cover; }
.answer div { padding: 1.5rem 1.5rem 1.5rem 0; align-self: center; }
.answer p { margin: 1rem 0 1.5rem; }
.js .answer { display: none; }
.js .answer.on { display: grid; animation: arrive 320ms var(--ease) both; }
.js .answer + .answer { margin-top: 0; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }

/* ---------- courses ---------- */
.courses {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  padding: var(--section) 0 var(--section) var(--margin);
  align-items: center;
}
.courses-text { grid-column: 1 / 8; }
.names { margin-top: 2.5rem; font: 800 var(--step-head)/1.08 var(--font-display); letter-spacing: -0.035em; color: var(--turf); }
.courses-text > p { margin-top: 2rem; max-width: 46ch; }
.courses-photo { grid-column: 8 / 13; background: var(--turf); padding: 0 0 1.5rem 1.5rem; }
.courses-photo img { width: 100%; height: min(80svh, 44rem); object-fit: cover; object-position: 50% 70%; }

/* ---------- outside ---------- */
.outside { padding: 0 var(--margin) var(--section); }
.outside-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); margin-top: clamp(2rem, 4vw, 4rem); align-items: end; }
.outside img { width: 100%; height: clamp(22rem, 62svh, 40rem); object-fit: cover; }
.outside figure:first-child img { object-position: 50% 62%; }
figcaption { margin-top: 0.75rem; font-size: 1rem; color: var(--muted); }

/* ---------- visit ---------- */
.visit {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 6rem) var(--margin);
  background: var(--turf);
  color: var(--on-turf);
}
.address { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.3; }
.address a { text-underline-offset: 4px; }
.open.big { margin-top: 1.25rem; font-size: 1.125rem; }
.contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.plain { font: 700 1rem/1.3 var(--font-display); text-underline-offset: 4px; overflow-wrap: anywhere; }
.hours { width: 100%; align-self: center; border-collapse: collapse; font: 700 var(--step-body)/1.2 var(--font-display); letter-spacing: -0.01em; }
.hours caption { text-align: left; padding-bottom: 0.75rem; font: 800 var(--step-lead)/1.1 var(--font-display); letter-spacing: -0.02em; }
.hours th, .hours td { padding: 0.6rem 0; text-align: left; font-weight: 700; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { background: var(--on-turf); color: var(--turf); }
.hours tr.today th { padding-left: 0.75rem; }
.hours tr.today td { padding-right: 0.75rem; }

/* ---------- footer ---------- */
.foot { padding: clamp(5rem, 8vw, 8rem) var(--margin) 2rem; }
.wordmark {
  display: flex;
  gap: 0.18em;
  font: 800 clamp(2.4rem, 11.6vw, 13.5rem)/0.86 var(--font-display);
  letter-spacing: -0.045em;
}
.wordmark .g { color: var(--turf); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2rem; font-size: var(--step-small); color: var(--muted); }
.tag { color: var(--turf); font-weight: 600; text-underline-offset: 3px; }
.tag:hover { color: var(--ink); }

/* ---------- entrances, only when the script runs ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: 70ms; }
.js .reveal:nth-child(3) { transition-delay: 140ms; }
.js .reveal:nth-child(4) { transition-delay: 210ms; }

/* ---------- tablet and phone ---------- */
@media (max-width: 900px) {
  :root { --step-display: clamp(2rem, 8.6vw, 5.5rem); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .room { order: -1; height: 40svh; min-height: 15rem; }
  .card { margin-top: -24px; margin-inline: 8px; }
  .plates { height: 40px; }
  .plates i:nth-child(n+11) { display: none; }
  .pitch { margin-top: 1.5rem; }
  .kit { display: block; padding-right: 0; }
  .kit-photo { width: 84vw; }
  .kit-photo img { height: 60svh; }
  .kit-text { padding: 2.5rem var(--margin) 0; }
  .start-grid { grid-template-columns: 1fr; }
  .courses { display: block; padding-right: 0; }
  .courses-text { padding-right: var(--margin); }
  .courses-photo { width: 84vw; margin: 2.5rem 0 0 auto; }
  .courses-photo img { height: 60svh; }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .points { grid-template-columns: 1fr; gap: 1rem; }
  .answer { grid-template-columns: 1fr; }
  .answer img { min-height: 0; height: 15rem; }
  .answer div { padding: 0 1.25rem 1.5rem; }
  .outside-grid { grid-template-columns: 1fr; }
  .links { display: none; }
  .room { height: 26svh; min-height: 11rem; }
  .pitch { padding-top: 0.5rem; }
  .pitch .lead { margin-top: 1rem; font-size: 1.125rem; }
  .actions { margin-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
