/* Production polish layer: MTO AI exercise guide */
:root {
  --surface-0: oklch(12.5% 0.007 265);
  --surface-1: oklch(16.5% 0.009 265);
  --surface-2: oklch(21% 0.01 265);
  --surface-3: oklch(27% 0.012 265);
  --ink: oklch(96% 0.006 95);
  --ink-dim: oklch(78% 0.008 95);
  --ink-faint: oklch(64% 0.008 95);
  --gold: oklch(84% 0.15 91);
  --gold-deep: oklch(66% 0.13 85);
  --wrap: min(1320px, calc(100vw - 3rem));
  --section: clamp(5rem, 4rem + 6vw, 10rem);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-head { min-height: 68px; }
.site-head__brand img { filter: saturate(.92) contrast(1.08); }
.site-nav a { font-weight: 600; }
.site-nav a[data-cta] { background: var(--gold); color: var(--surface-0); border-color: var(--gold); }
.site-nav a[data-cta]:hover { background: var(--ink); border-color: var(--ink); }

.hero {
  min-height: min(100dvh, 900px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { transform: scale(1.015); }
.hero__bg img { object-position: 58% 32%; filter: saturate(.72) contrast(1.08); }
.hero__bg::after {
  background:
    linear-gradient(90deg, oklch(12.5% 0.007 265 / .94) 0%, oklch(12.5% 0.007 265 / .69) 42%, transparent 76%),
    linear-gradient(0deg, var(--surface-0) 0%, transparent 35%),
    linear-gradient(180deg, oklch(12.5% 0.007 265 / .48), transparent 32%);
}
.hero__inner { padding-top: clamp(7rem, 12vh, 9rem); padding-bottom: clamp(3.5rem, 8vh, 6.5rem); }
.hero__kicker { letter-spacing: .14em; }
.hero__title { max-width: 16ch; font-size: clamp(3rem, 2rem + 4.6vw, 5.8rem); text-wrap: balance; }
.hero__sub { max-width: 34ch; text-wrap: pretty; }
.btn { min-height: 48px; justify-content: center; white-space: nowrap; }
.btn:active, .guide-cta__link:active, .site-nav a[data-cta]:active { transform: translateY(1px); }

.facts { background: var(--surface-0); }
.fact { min-width: 0; }
.fact b { color: var(--ink); }

.guide-cta { padding-block: clamp(4.5rem, 7vw, 8rem); background: var(--surface-1); }
.guide-cta__inner {
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}
.guide-cta__shot {
  justify-self: center;
  width: min(100%, 430px);
  aspect-ratio: 9 / 13;
  min-height: 0;
  background: var(--surface-0);
  box-shadow: 0 36px 90px oklch(5% 0.01 265 / .42);
}
.guide-cta__shot video { width: 100%; height: 100%; object-fit: cover; }
.guide-cta__shot::after {
  background: linear-gradient(to top, oklch(12.5% 0.007 265 / .5), transparent 35%);
}
.guide-cta__body { padding: 0; }
.guide-cta__body h2 { max-width: 9ch; font-size: clamp(2.5rem, 2rem + 3vw, 5.4rem); }
.guide-cta__body p:not(.label) { max-width: 31ch; font-size: var(--text-lead); }
.guide-cta__link { width: fit-content; white-space: nowrap; }

.prog__row { grid-template-columns: minmax(0, 1fr) minmax(16rem, .75fr); }
.prog__desc { justify-self: end; }
.prog__name { letter-spacing: .005em; }

#hall { background: var(--surface-1); }
.hall__pair { grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 6rem); }
.hall__pair + .hall__pair { margin-top: clamp(4rem, 7vw, 8rem); }
.hall__shot { aspect-ratio: 16 / 11; }
.hall__pair--flip { grid-template-columns: .75fr 1.25fr; }
.hall__pair--flip > .shot { order: 2; }
.hall__list li { padding-block: 1rem; }

.price__grid { gap: 1px; background: oklch(30% 0.008 265); border: var(--rule); }
.price { min-height: 240px; display: flex; flex-direction: column; border: 0; background: var(--surface-1); }
.price__amount { margin-top: auto; }
.banners__grid { grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.banners__grid img { transition: transform var(--dur-2) var(--ease), filter var(--dur-2) var(--ease); filter: saturate(.78); }
.banners__grid img:hover { transform: scale(1.02); filter: saturate(1); }

#branches { background: var(--surface-1); }
.branch { transition: color var(--dur-1) var(--ease), padding-inline var(--dur-1) var(--ease); }
.branch:hover { padding-inline: .75rem; color: var(--gold); }

.visit__grid { grid-template-columns: 1.15fr .85fr; gap: clamp(3rem, 8vw, 9rem); }
.site-foot__legal { margin-top: 1.4rem; max-width: 70ch; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  :root { --wrap: min(100% - 2rem, 1320px); --wrap-narrow: min(100% - 2rem, 760px); }
  .hero { min-height: 92dvh; }
  .hero__bg img { object-position: 58% 42%; }
  .hero__bg::after {
    background:
      linear-gradient(0deg, var(--surface-0) 1%, oklch(12.5% 0.007 265 / .88) 42%, oklch(12.5% 0.007 265 / .18) 78%),
      linear-gradient(180deg, oklch(12.5% 0.007 265 / .45), transparent 28%);
  }
  .hero__inner { padding-top: 7.5rem; padding-bottom: 3.5rem; }
  .hero__title { max-width: 10ch; font-size: clamp(2.75rem, 12vw, 4.6rem); }
  .hero__sub { max-width: 27ch; }
  .hero__cta { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 29rem; }
  .btn { padding-inline: 1rem; letter-spacing: .12em; }
  .guide-cta__inner, .hall__pair, .hall__pair--flip, .visit__grid { grid-template-columns: 1fr; }
  .guide-cta__shot { width: min(78vw, 390px); }
  .guide-cta__body { padding-inline: 0; }
  .hall__pair--flip > .shot { order: 0; }
  .prog__row { grid-template-columns: 1fr auto; }
  .banners__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .site-head { padding-inline: 1rem; }
  .site-head__branch { display: none; }
  .site-nav a[data-cta] { padding: .72em 1em; letter-spacing: .08em; }
  .hero__kicker { font-size: .72rem; }
  .hero__cta { grid-template-columns: 1fr; }
  .fact { padding-block: 1.5rem; }
  .fact b { font-size: 2.4rem; }
  .fact em { letter-spacing: .12em; }
  .guide-cta { padding-block: 4rem 5rem; }
  .guide-cta__shot { width: min(84vw, 360px); }
  .guide-cta__body h2 { font-size: 2.8rem; }
  .prog__row { grid-template-columns: 1fr; }
  .prog__desc { display: block; text-align: left; justify-self: start; }
  .hall__pair + .hall__pair { margin-top: 4rem; }
  .branch { align-items: flex-start; }
  .branch__meta { width: 100%; margin-left: 0; }
  .visit dl { grid-template-columns: 1fr; gap: .2rem; }
  .visit dd + dt { margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
