:root {
  --paper: oklch(97.6% 0.014 86);
  --paper-2: oklch(94.2% 0.022 84);
  --ink: oklch(24% 0.05 262);
  --ink-2: oklch(42% 0.04 262);
  --line: oklch(84% 0.03 250);
  --grid: oklch(88% 0.035 245 / 0.55);
  --accent: oklch(55% 0.18 37);
  --accent-dk: oklch(47% 0.17 36);
  --sun: oklch(88% 0.165 95);
  --sky: oklch(62% 0.12 245);

  --f-head: "Shantell Sans", "Comic Neue", "Trebuchet MS", sans-serif;
  --f-text: "Geologica", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.05rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-4: clamp(2.35rem, 1.6rem + 3.6vw, 4.6rem);

  --gut: clamp(16px, 4vw, 44px);
  --max: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
html { scrollbar-color: var(--accent) var(--paper-2); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--f-text);
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.04; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.u-link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.u-link:hover { color: var(--accent-dk); }

.kicker {
  font: 500 var(--step--1)/1.3 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 0.6em;
}
.kicker .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px oklch(55% 0.18 37 / 0.18); }

/* demo ribbon — only in the proposal demo */
.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
  padding: 8px var(--gut);
  background: var(--ink); color: oklch(92% 0.02 86);
  font-size: 13.5px; line-height: 1.35;
}
.demo-bar b { color: var(--sun); font-weight: 600; }
.demo-bar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.demo-bar a, .demo-log-btn {
  color: inherit; text-decoration: none; padding: 4px 10px; border-radius: 3px;
  font: inherit; background: none; border: 1px solid oklch(100% 0 0 / 0.22); cursor: pointer;
}
.demo-bar a[aria-current] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.demo-log-btn span { font-family: var(--f-mono); font-size: 12px; background: var(--sun); color: var(--ink); padding: 0 5px; border-radius: 2px; margin-left: 3px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gut);
  background: oklch(97.6% 0.014 86 / 0.94);
  border-bottom: 1.5px solid var(--ink);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo span { display: grid; line-height: 1.1; }
.logo b { font: 700 1.25rem/1 var(--f-head); }
.logo small { font: 400 11px/1.4 var(--f-mono); color: var(--ink-2); letter-spacing: 0.02em; margin-top: 3px; }
.top-nav { display: flex; gap: 22px; font-weight: 500; font-size: 15px; }
.top-nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top-nav a:hover { border-color: var(--accent); }
.top-phone { font: 500 14px/1 var(--f-mono); text-decoration: none; white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 24px;
  font: 600 1.05rem/1.15 var(--f-text);
  text-decoration: none; text-align: center;
  border-radius: 10px; border: 2px solid var(--ink); cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.3s ease;
}
.btn-wa { background: var(--accent); color: oklch(99% 0.005 86); box-shadow: 4px 4px 0 var(--ink); }
.btn-wa:hover { background: var(--accent-dk); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-wa:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--sun); }
.wa-ico { width: 24px; height: 24px; flex: none; }

/* hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px);
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--gut) clamp(48px, 6vw, 88px);
}
.hero::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px;
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero h1 { font-size: var(--step-4); font-weight: 560; margin: 18px 0 18px; }
.hero h1 span { display: block; }
.hl { width: fit-content; color: var(--accent); position: relative; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: 0.06em; height: 0.3em; z-index: -1;
  background: var(--sun); border-radius: 2px 8px 3px 6px; transform: rotate(-1.2deg);
}
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 30ch; }

.offer { display: flex; align-items: center; gap: 16px; margin: 26px 0 24px; }
.sticker {
  flex: none;
  background: var(--sun); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 6px;
  padding: 8px 16px 9px; transform: rotate(-3.5deg);
  font-family: var(--f-head); line-height: 1; text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}
.sticker span { display: block; font-size: 0.95rem; font-weight: 600; }
.sticker b { display: block; font-size: 2.05rem; font-weight: 800; letter-spacing: 0.01em; }
.offer-note { font-size: var(--step--1); color: var(--ink-2); max-width: 26ch; }

.book { display: grid; gap: 14px; justify-items: start; }
.ages { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ages legend { float: left; font: 500 13px/1.3 var(--f-mono); color: var(--ink-2); margin-right: 8px; padding: 0; }
.ages label { position: relative; }
.ages input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ages span {
  display: grid; place-items: center; width: 44px; height: 44px;
  font: 600 1rem/1 var(--f-mono);
  border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper);
  transition: background-color 0.25s;
}
.ages label:hover span { background: var(--paper-2); }
.ages input:checked + span { background: var(--ink); color: var(--paper); }
.ages input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.book-note { font-size: 13.5px; color: var(--ink-2); }
.hero .btn-wa { font-size: 1.15rem; min-height: 58px; padding-inline: 28px; }

.where { display: flex; gap: 8px; align-items: flex-start; margin-top: 26px; font-size: 15px; color: var(--ink-2); }
.where svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 1px; }

.hero-media { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: auto auto auto; gap: 14px; align-content: start; }
.fig { margin: 0; position: relative; }
.fig img { width: 100%; height: 100%; object-fit: cover; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper-2); }
.fig figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font: 500 11.5px/1 var(--f-mono); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink); padding: 6px 8px; border-radius: 2px;
}
.fig figcaption span { color: var(--accent-dk); margin-right: 4px; }
.fig-main { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.fig-a { grid-column: 1 / 4; aspect-ratio: 4 / 3; }
.fig-b { grid-column: 4 / 7; aspect-ratio: 4 / 3; }
.parts {
  position: absolute; right: -10px; top: 18px;
  list-style: none; margin: 0; padding: 12px 14px;
  background: var(--paper); border: 1.5px dashed var(--ink); border-radius: 3px;
  font: 400 12px/1.75 var(--f-mono);
  transform: rotate(2deg);
  box-shadow: 0 6px 18px -8px oklch(24% 0.05 262 / 0.35);
}
.parts b { color: var(--accent-dk); font-weight: 600; display: inline-block; min-width: 2.2em; }

/* section heads */
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(26px, 4vw, 44px); max-width: 40rem; }
.sec-head h2 { font-size: var(--step-3); font-weight: 700; }
.sec-head > p:last-child { color: var(--ink-2); font-size: var(--step-1); max-width: 34ch; }

/* learn */
.learn { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 136px) var(--gut) clamp(40px, 6vw, 72px); }
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.skills li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 8px; align-content: start;
  padding: 26px 26px 30px 0;
  border-bottom: 1.5px solid var(--line);
}
.skills li:nth-child(odd) { border-right: 1.5px solid var(--line); }
.skills li:nth-child(even) { padding-left: 26px; }
.skills picture { grid-column: 1 / -1; aspect-ratio: 16 / 7; overflow: hidden; border: 1.5px solid var(--ink); border-radius: 3px; margin-bottom: 14px; clip-path: polygon(0 0, 100% 0, 100% 86%, 94% 100%, 0 100%); }
.skills picture img { width: 100%; height: 100%; object-fit: cover; }
.skills .n { grid-row: 2 / 5; font: 600 2.1rem/1 var(--f-mono); color: var(--accent); letter-spacing: -0.04em; }
.skills h3 { font-size: var(--step-2); font-weight: 650; }
.skills p { color: var(--ink-2); max-width: 44ch; }
.skills .tag { font: 500 12px/1.3 var(--f-mono); color: var(--ink); margin-top: 4px; }

.class-flow { margin: 36px 0 0; }
.class-flow figcaption { font: 500 13px/1.3 var(--f-mono); color: var(--ink-2); margin-bottom: 10px; }
.flow { display: flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.flow span { flex: var(--w) 1 0; padding: 12px 14px; font-size: 15px; line-height: 1.3; min-width: 0; }
.flow span + span { border-left: 2px dashed var(--ink); }
.flow span:nth-child(1) { background: var(--paper-2); }
.flow span:nth-child(2) { background: oklch(92% 0.06 95); }
.flow span:nth-child(3) { background: oklch(91% 0.04 240); }
.flow b { display: block; font: 600 12px/1.4 var(--f-mono); }

/* teachers */
.teachers { background: var(--paper-2); border-block: 1.5px solid var(--ink); }
.teachers > * { max-width: var(--max); margin-inline: auto; }
.teachers { padding: clamp(44px, 5vw, 66px) var(--gut) clamp(56px, 7vw, 90px); }
.crew { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; padding: 10px 10px 18px; display: grid; align-content: start; gap: 4px; position: relative; }
.card picture { display: block; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 3px; margin-bottom: 10px; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: var(--step-1); font-weight: 700; padding-inline: 6px; }
.card .role { font: 500 11.5px/1.4 var(--f-mono); color: var(--accent-dk); padding-inline: 6px; }
.card p:last-child { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); padding-inline: 6px; margin-top: 4px; }
.card .sample {
  position: absolute; top: 18px; left: 18px;
  font: 500 10.5px/1 var(--f-mono); background: var(--ink); color: var(--paper); padding: 5px 7px; border-radius: 2px;
}

/* pricing */
.pricing { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 100px) var(--gut) clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(28px, 5vw, 72px); align-items: start; }
.price-fig { margin-top: 18px; aspect-ratio: 4 / 3; max-width: 340px; transform: rotate(-1.5deg); }
.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ticket {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: 24px 24px 26px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper);
}
.ticket-free { background: var(--sun); box-shadow: 5px 5px 0 var(--ink); transform: rotate(-1deg); }
.t-label { font: 600 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.t-price { display: flex; align-items: baseline; gap: 8px; padding-bottom: 14px; border-bottom: 2px dashed var(--ink); }
.t-price b { font: 800 3.4rem/0.9 var(--f-head); }
.t-price span { font: 500 14px/1 var(--f-mono); color: var(--ink-2); }
.ticket ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15.5px; }
.ticket li { padding-left: 22px; position: relative; }
.ticket li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 2px; transform: rotate(45deg); }
.ticket .btn { margin-top: 8px; width: 100%; }

/* location */
.visit {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 3vw, 36px) var(--gut) clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px clamp(28px, 5vw, 72px); align-items: stretch;
}
.visit-info { display: grid; gap: 18px; align-content: start; justify-items: start; }
.visit h2 { font-size: var(--step-3); }
.visit address { font-style: normal; font-size: var(--step-1); line-height: 1.45; }
.hours { margin: 0; display: grid; gap: 0; width: 100%; border-top: 1.5px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1.5px solid var(--line); font-size: 15px; }
.hours dt { font: 500 13px/1.6 var(--f-mono); color: var(--ink-2); }
.hours dd { margin: 0; text-align: right; }
.map { border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; min-height: 340px; background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* contact */
.contact {
  background: var(--ink); color: var(--paper);
  padding: clamp(48px, 6vw, 80px) max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: 28px 48px; align-items: center;
}
.contact h2 { font-size: var(--step-3); color: var(--paper); }
.contact p { color: oklch(86% 0.025 86); margin-top: 10px; max-width: 36ch; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ways li { display: grid; gap: 2px; }
.ways span { font: 500 12px/1.3 var(--f-mono); color: var(--sun); text-transform: uppercase; letter-spacing: 0.06em; }
.ways a { font-size: var(--step-1); font-weight: 500; text-decoration: none; }
.ways a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact .btn-wa { border-color: var(--paper); box-shadow: 4px 4px 0 var(--sun); }
.btn-big { font-size: 1.15rem; min-height: 60px; padding-inline: 28px; }

.foot { padding: 22px var(--gut) 28px; font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; max-width: var(--max); margin: 0 auto; }

.sticky-cta { display: none; }

/* demo preview */
.wa-preview {
  width: min(440px, calc(100vw - 32px)); padding: 22px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.wa-preview::backdrop { background: oklch(24% 0.05 262 / 0.55); }
.pv-k { font: 600 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); margin-bottom: 8px; }
.pv-chat { background: oklch(92% 0.03 150); padding: 14px; border-radius: 8px; margin-bottom: 18px; display: grid; gap: 8px; }
.pv-to { font: 500 11.5px/1 var(--f-mono); color: oklch(38% 0.06 155); }
.pv-bubble { justify-self: end; max-width: 92%; background: oklch(90% 0.09 145); padding: 10px 12px; border-radius: 10px 10px 2px 10px; font-size: 15px; line-height: 1.4; }
.pv-event { margin: 0 0 18px; padding: 12px; background: var(--ink); color: oklch(92% 0.06 95); font: 400 12px/1.6 var(--f-mono); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pv-actions .btn { min-height: 46px; padding: 10px 18px; font-size: 15px; }
.pv-note { font-size: 13px; color: var(--ink-2); margin-top: 14px; }

.log {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: min(360px, calc(100vw - 32px)); max-height: 46vh; overflow: auto;
  background: var(--ink); color: var(--paper); border-radius: 8px; padding: 12px 14px;
  font: 400 12px/1.55 var(--f-mono); box-shadow: 0 12px 32px -10px oklch(24% 0.05 262 / 0.6);
}
.log-h { display: flex; justify-content: space-between; align-items: center; color: var(--sun); margin-bottom: 6px; }
.log-h button { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.log ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; }
.log-empty { list-style: none; margin-left: -18px; color: oklch(80% 0.02 86); }

/* reveal: only when JS marks the page, so content stays visible without it */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .fig-main img { clip-path: inset(0 100% 0 0); transition: clip-path 0.9s cubic-bezier(.65,0,.25,1) 0.1s; }
.js .fig-main.in img { clip-path: inset(0 0 0 0); }

@media (max-width: 1020px) {
  .top-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; }
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing, .visit { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr 1fr; }
  .contact .btn-big { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 64px; }
  .demo-bar { font-size: 12.5px; }
  .top { padding-block: 10px; gap: 12px; }
  .logo svg { width: 34px; height: 34px; }
  .logo b { font-size: 1.08rem; }
  .top-phone { font-size: 12.5px; }
  .hero { padding-top: 22px; }
  .hero h1 { margin: 14px 0; }
  .offer { margin: 20px 0; gap: 14px; }
  .sticker b { font-size: 1.7rem; }
  .book, .hero .btn-wa { width: 100%; }
  .ages legend { float: none; width: 100%; margin-bottom: 4px; }
  .hero-media { gap: 10px; }
  .parts { position: static; grid-column: 1 / -1; transform: none; box-shadow: none; }
  .skills { grid-template-columns: 1fr; }
  .skills li, .skills li:nth-child(even) { padding: 22px 0 24px; border-right: 0; }
  .skills li:nth-child(odd) { border-right: 0; }
  .skills .n { font-size: 1.6rem; }
  .flow { flex-direction: column; }
  .flow span + span { border-left: 0; border-top: 2px dashed var(--ink); }
  .crew { gap: 12px; }
  .card { padding: 8px 8px 14px; }
  .card h3 { font-size: 1.05rem; padding-inline: 2px; }
  .card .role, .card p:last-child { padding-inline: 2px; }
  .card p:last-child { font-size: 13.5px; }
  .tickets { grid-template-columns: 1fr; }
  .ticket-free { transform: none; }
  .price-fig { display: none; }
  .map, .map iframe { min-height: 280px; }
  .contact { grid-template-columns: 1fr; }
  .contact .btn-big { width: 100%; }
  .foot { padding-bottom: 96px; }
  .sticky-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25;
    min-height: 54px; translate: 0 140%; transition: translate 0.3s ease;
  }
  .sticky-cta.on { translate: 0 0; }
}

@media (max-width: 400px) {
  .crew { grid-template-columns: 1fr; }
  .card { grid-template-columns: 112px 1fr; column-gap: 12px; }
  .card picture { grid-row: 1 / 5; margin: 0; aspect-ratio: 1; }
}

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

@media print {
  .demo-bar, .top, .sticky-cta, .log, .map { display: none; }
}
