/* Kidsangsan Language School - site styles
   Big display type, warm white paper, forest green ink, crest yellow for the click and orange reserved for phonics.
   Display: Fraunces. Text: Instrument Sans. Thai text: Noto Sans Thai. */

:root {
  --paper: #faf7f0;
  --paper-2: #f1ece1;
  --white: #ffffff;
  --ink: #015d47;
  --ink-2: #0b7259;
  --ink-soft: #1f3d33;
  --muted: #5a6b63;
  --line: #ddd7ca;
  --mark: #e0f354;
  --mark-2: #edf98f;
  --phonics: #fd550a;
  --display: "Fraunces", "Lora", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  --hand: "Caveat", "TeX Gyre Chorus", "Segoe Script", "Bradley Hand", cursive;
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}
h1 { font-size: clamp(52px, 8.4vw, 124px); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(38px, 5vw, 72px); letter-spacing: -0.03em; }
h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 0; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--ink-2); }

ul, ol { margin: 0; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--mark); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Highlighter stroke under a word */
.hl {
  background-image: linear-gradient(to top, transparent 0.1em, var(--mark) 0.1em, var(--mark) 0.56em, transparent 0.56em);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 8px 12px 7px;
  margin-bottom: 22px;
}

.lead { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; color: var(--ink-soft); }

.measure { max-width: 680px; }

/* Buttons */
.btn, a.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 19px 30px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-ink, a.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--mark); }
.btn-ink:hover, a.btn-ink:hover { background: var(--ink); color: var(--mark); border-color: var(--ink); box-shadow: 2px 2px 0 var(--mark); transform: translate(2px, 2px); }
.btn-pale, a.btn-pale { background: var(--mark); color: var(--ink); border-color: var(--mark); box-shadow: 4px 4px 0 var(--paper); }
.btn-pale:hover, a.btn-pale:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 2px 2px 0 var(--mark); transform: translate(2px, 2px); }
.btn-ghost, a.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(250, 247, 240, 0.6); }
.btn-ghost:hover, a.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-ghost-ink, a.btn-ghost-ink { background: transparent; color: var(--ink); }
.btn-ghost-ink:hover, a.btn-ghost-ink:hover { background: var(--ink); color: var(--paper); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
  padding-bottom: 4px; border-bottom: 1.5px solid var(--ink);
}
.link-arrow span { transition: transform 0.2s var(--ease); }
.link-arrow:hover { border-color: var(--mark); }
.link-arrow:hover span { transform: translateX(5px); }
.link-arrow-light { color: var(--paper); border-color: rgba(250, 247, 240, 0.5); }
.link-arrow-light:hover { color: var(--mark); border-color: var(--mark); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; transition: box-shadow 0.3s var(--ease); }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 84px; }

.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1; }
.brand-name { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variation-settings: "opsz" 48, "SOFT" 30, "WONK" 1; }
.brand-sub { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; }
.primary-nav a {
  display: inline-block; padding: 8px 12px; font-size: 15px; font-weight: 600;
  color: var(--ink); text-decoration: none; border-radius: 0;
  background-image: linear-gradient(to top, var(--mark) 0, var(--mark) 0.3em, transparent 0.3em);
  background-repeat: no-repeat; background-size: 0 100%; background-position: 12px 0;
  transition: background-size 0.25s var(--ease);
}
.primary-nav a:hover { background-size: calc(100% - 24px) 100%; }
.primary-nav a[aria-current="page"] { background-size: calc(100% - 24px) 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); white-space: nowrap; letter-spacing: 0.02em; }
.header-cta, a.header-cta { padding: 13px 18px; font-size: 12px; white-space: nowrap; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
.menu-toggle-bars { position: relative; width: 28px; height: 2px; background: var(--ink); display: block; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; width: 28px; height: 2px; background: var(--ink); }
.menu-toggle-bars::before { top: -8px; }
.menu-toggle-bars::after { top: 8px; }

/* Full screen menu */
.site-menu { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper); overflow-y: auto; }
.site-menu[hidden] { display: none; }
.site-menu-inner { display: flex; flex-direction: column; min-height: 100%; padding-top: 24px; padding-bottom: 40px; }
.site-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.site-menu-brand { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--paper); }
.site-menu-brand span { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250, 247, 240, 0.6); display: block; margin-top: 6px; }
.menu-close {
  background: none; border: 1.5px solid rgba(250, 247, 240, 0.5); color: var(--paper);
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 12px 18px; cursor: pointer;
}
.menu-close:hover { background: var(--mark); color: var(--ink); border-color: var(--mark); }
.menu-close span { font-size: 18px; margin-left: 6px; }
.site-menu-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.site-menu-group h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mark); margin-bottom: 20px; }
.site-menu-group ul { list-style: none; }
.site-menu-group li { border-top: 1px solid rgba(250, 247, 240, 0.14); }
.site-menu-group a { display: block; padding: 16px 0; font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--paper); text-decoration: none; transition: padding-left 0.2s var(--ease), color 0.2s var(--ease); }
.site-menu-group a:hover { color: var(--mark); padding-left: 10px; }
.site-menu-foot { margin-top: auto; padding-top: 56px; color: rgba(250, 247, 240, 0.7); font-size: 16px; }
.site-menu-phone { display: inline-block; font-family: var(--display); font-size: 44px; font-weight: 600; letter-spacing: -0.02em; color: var(--mark); text-decoration: none; margin-bottom: 8px; }
body.menu-open { overflow: hidden; }

/* Home hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 6vw, 96px); background: var(--paper); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 6.6vw, 96px); max-width: 13ch; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 36px; }
.hero-row .lead { max-width: 30em; }
.hero-note { position: relative; margin-top: 18px; padding-left: 52px; max-width: 24em; }
.hero-media { position: relative; padding: 24px 0 36px 0; }
.hero-tile { position: absolute; left: -22px; top: 6px; z-index: 2; }
.hero-stamp { position: absolute; right: -28px; top: -12px; z-index: 2; }

/* Photo prints */
.print {
  position: relative; display: block;
  background: var(--white); padding: 12px 12px 48px;
  box-shadow: 0 1px 2px rgba(20, 19, 17, 0.12), 0 24px 48px -24px rgba(20, 19, 17, 0.45);
  transform: rotate(-1.6deg);
}
.print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.print-wide img { aspect-ratio: 3 / 2; }
.print-r { transform: rotate(1.8deg); }
.print-0 { transform: none; }
.print .handnote { position: absolute; left: 18px; bottom: 8px; right: 18px; margin: 0; font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.print-stack { position: relative; padding-bottom: 20%; }
.print-stack .print-main { width: 82%; }
.print-stack .print-second { position: absolute; right: 0; bottom: 0; width: 46%; transform: rotate(4deg); padding-bottom: 40px; }
.print-stack .stamp-pos { position: absolute; right: 10%; top: -56px; z-index: 3; }
.print-stack .tile { position: absolute; z-index: 3; }

/* Handwritten notes */
.handnote { font-family: var(--hand); font-size: 26px; line-height: 1.15; color: var(--ink); font-weight: 500; }
.handnote-lg { font-size: clamp(30px, 3vw, 40px); }
.handnote-mark { color: var(--mark); }
.handnote-muted { color: var(--muted); }
.section-ink .handnote { color: var(--mark); }
.section-ink .print .handnote, .print .handnote-muted { color: var(--ink-soft); }
.hand-arrow { position: absolute; left: 0; top: -6px; width: 40px; height: 44px; }
.hand-arrow path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.section-ink .hand-arrow path { stroke: var(--mark); }

/* Ghost word behind a section */
.has-ghost { position: relative; overflow: hidden; }
.ghost {
  position: absolute; right: -0.08em; bottom: -0.32em; z-index: 0;
  font-family: var(--display); font-style: italic; font-weight: 500; line-height: 1;
  font-size: clamp(200px, 32vw, 520px); letter-spacing: -0.04em;
  color: var(--ink); opacity: 0.045; pointer-events: none; user-select: none; white-space: nowrap;
}
.section-ink .ghost { color: var(--paper); opacity: 0.06; }
.has-ghost > .wrap { position: relative; z-index: 1; }

/* Ruled exercise book paper */
.section-ruled {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(20, 19, 17, 0.09) 35px, rgba(20, 19, 17, 0.09) 36px);
}

/* Sound tiles */
.tile {
  display: inline-grid; place-items: center;
  min-width: 1.15em; height: 1.15em; padding: 0 0.12em;
  font-family: var(--display); font-weight: 600; font-style: italic; font-size: 96px; line-height: 1; letter-spacing: -0.03em;
  background: var(--mark); color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.tile-sm { font-size: 44px; }
.tile-lg { font-size: 132px; }
.tile-ink { background: var(--ink); color: var(--mark); }
.tile-paper { background: var(--paper); color: var(--ink); }
.tile-rot { transform: rotate(-5deg); }
.tile-rot2 { transform: rotate(4deg); }

/* Phonics marker: orange is used for phonics only */
.tile-phonics { background: var(--phonics); color: #ffffff; }
.eyebrow-phonics, .section-ink .eyebrow-phonics { background: var(--phonics); color: #ffffff; }

/* Stamp */
.stamp { width: 150px; height: 150px; display: block; animation: spin 40s linear infinite; }
.stamp text { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; fill: var(--ink); }
.stamp .stamp-year { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; text-transform: none; }
.stamp circle { fill: var(--mark); }
.stamp-dark circle { fill: var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sounds marquee */
.sounds { background: var(--ink); color: var(--paper); overflow: hidden; padding: 22px 0; border-top: 1px solid var(--ink); }
.sounds-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.sounds-track:hover { animation-play-state: paused; }
.sounds-list { display: flex; align-items: baseline; gap: 0; list-style: none; padding-right: 0; }
.sounds-list li { font-family: var(--display); font-size: clamp(34px, 3.6vw, 52px); font-weight: 500; font-style: italic; letter-spacing: -0.02em; padding: 0 28px; white-space: nowrap; font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; }
.sounds-list li:nth-child(4n) { color: var(--mark); }
.sounds-list li::after { content: "\00B7"; margin-left: 56px; color: rgba(250, 247, 240, 0.35); font-style: normal; }
.sounds-label { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mark); margin-bottom: 10px; display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 8vw, 128px) 0; }
.section-tight { padding: clamp(48px, 5vw, 80px) 0; }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink p, .section-ink .lead, .section-ink .split-body p { color: rgba(250, 247, 240, 0.82); }
.section-ink .eyebrow { background: var(--mark); color: var(--ink); }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 4vw, 64px); }
.section-head .lead { margin-top: 20px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 48px); }
.section-head-row h2 { max-width: 14ch; }
.section-head-row .lead { max-width: 24em; padding-bottom: 6px; }

/* Course list, menu style */
.course-list { list-style: none; border-top: 1.5px solid var(--ink); }
.course-list li { border-bottom: 1px solid var(--line); }
.course-list a {
  display: grid; grid-template-columns: 120px minmax(0, 1.2fr) minmax(0, 1fr) 48px; gap: 24px; align-items: center;
  padding: 28px 0; text-decoration: none; color: var(--ink);
  transition: padding-left 0.3s var(--ease), background-color 0.3s var(--ease);
}
.course-list a:hover { padding-left: 16px; background: var(--white); }
.course-num { font-family: var(--display); font-size: 56px; font-weight: 500; font-style: italic; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1; }
.course-num .tile { font-size: 46px; }
.course-name { font-family: var(--display); font-size: clamp(28px, 3vw, 44px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.course-name small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.course-who { font-size: 17px; color: var(--muted); line-height: 1.5; }
.course-arrow { font-family: var(--display); font-size: 36px; text-align: right; transition: transform 0.3s var(--ease); }
.course-list a:hover .course-arrow { transform: translateX(8px); }
.course-list a:hover .course-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--mark); }

/* Split image and text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media .tile { position: absolute; right: -22px; top: -22px; }
.split-flip .split-media { order: 2; }
.split-body h2 { margin-bottom: 24px; }
.split-body p { color: var(--ink-soft); font-size: 18px; }
.split-body .btn-group, .split-body .link-arrow { margin-top: 32px; }
.caption { font-family: var(--hand); font-size: 24px; line-height: 1.2; color: var(--muted); margin-top: 14px; }
.section-ink .caption { color: var(--mark); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1.5px solid var(--ink); }
.stats strong { display: block; font-family: var(--display); font-size: clamp(40px, 4vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.stats span { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.section-ink .stats { border-top-color: rgba(250, 247, 240, 0.3); }
.section-ink .stats strong { color: var(--mark); }
.section-ink .stats span { color: rgba(250, 247, 240, 0.7); }

/* Big statement */
.statement { max-width: 1100px; }
.statement h2 { font-size: clamp(36px, 5.6vw, 84px); font-weight: 500; line-height: 1.04; }
.statement p { margin-top: 32px; max-width: 640px; font-size: 19px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.step { padding: 36px 32px 44px 0; border-right: 1px solid var(--line); margin-right: 32px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step-num { display: block; font-family: var(--display); font-size: 64px; font-style: italic; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 22px; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1; }
.step h3 { margin-bottom: 12px; }
.step p { font-size: 17px; color: var(--muted); }
.section-ink .step { border-right-color: rgba(250, 247, 240, 0.2); }
.section-ink .step-num { color: var(--mark); }

/* Inner page hero */
.page-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { max-width: 14ch; font-size: clamp(46px, 7vw, 104px); }
.page-hero .lead { margin-top: 28px; max-width: 36em; }
.page-hero .crumbs { margin-bottom: 36px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.page-hero-media { position: relative; background: var(--white); padding: 12px 12px 44px; transform: rotate(1.6deg); box-shadow: 0 1px 2px rgba(20, 19, 17, 0.12), 0 24px 48px -24px rgba(20, 19, 17, 0.45); }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero-media .tile { position: absolute; left: -26px; top: -22px; z-index: 2; }
.page-hero-media .handnote { position: absolute; left: 18px; bottom: 8px; margin: 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.meta-row { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 40px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.meta-row div { min-width: 120px; }
.meta-row dt { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meta-row dd { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

/* Two column page layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.aside { position: sticky; top: 108px; }
.aside-card { background: var(--white); padding: 32px 28px; border: 1.5px solid var(--ink); }
.aside-card + .aside-card { border-top: 0; }
.aside-card h2 { font-size: 28px; margin-bottom: 12px; }
.aside-card p { font-size: 16px; color: var(--muted); }
.aside-card .btn { margin-top: 12px; width: 100%; }
.aside-card ul { list-style: none; }
.aside-card li { border-top: 1px solid var(--line); }
.aside-card li a { display: block; padding: 12px 0; font-size: 16px; font-weight: 600; text-decoration: none; }
.aside-card li a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; }
.aside-phone { display: block; font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; margin: 8px 0 4px; }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(32px, 3.4vw, 48px); margin: 64px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 26px; margin: 40px 0 12px; }
.prose p { color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 0; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 6px; background: var(--mark); }
.prose ol { list-style: none; counter-reset: item; }
.prose ol li { position: relative; padding-left: 52px; margin-bottom: 14px; counter-increment: item; }
.prose ol li::before { content: counter(item); position: absolute; left: 0; top: -6px; font-family: var(--display); font-style: italic; font-size: 32px; font-weight: 500; color: var(--ink); }
.prose .lead { margin-bottom: 28px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.prose td:first-child { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.prose td:first-child a { text-decoration: none; }
.prose td:first-child a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; }
.prose .note { background: var(--white); padding: 22px 26px; border-left: 4px solid var(--mark); font-size: 16px; color: var(--muted); }

.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin: 0; }
.checklist li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.45; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; background: var(--mark); border: 1.5px solid var(--ink); }
.section-ink .checklist li::before { background: var(--mark); border-color: var(--mark); }

/* FAQ */
.faq { max-width: 820px; }
.faq-item { border-top: 1px solid var(--line); padding: 30px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 24px; margin-bottom: 12px; }
.faq-item p { color: var(--muted); font-size: 17px; }

/* Quote */
.quote { max-width: 820px; }
.quote p { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.quote footer { margin-top: 16px; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; border-top: 1.5px solid var(--ink); }
.contact-list li { border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 130px 1fr; gap: 16px; font-size: 17px; }
.contact-list strong { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.contact-list a { font-weight: 700; }
.contact-list .big { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.map { margin-top: 36px; aspect-ratio: 16 / 10; background: var(--paper-2); border: 1.5px solid var(--ink); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { background: var(--white); padding: 44px 40px; border: 1.5px solid var(--ink); }
.form h2 { font-size: 34px; margin-bottom: 10px; }
.form > p { font-size: 16px; color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 17px; color: var(--ink);
  padding: 14px 14px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px var(--mark); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .btn { width: 100%; margin-top: 8px; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 20px; margin-bottom: 24px; font-size: 16px; border-left: 4px solid var(--mark); background: var(--paper); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); padding: clamp(72px, 8vw, 120px) 0; overflow: hidden; position: relative; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; }
.cta-band h2 { color: var(--paper); font-size: clamp(48px, 7vw, 104px); margin-bottom: 20px; }
.cta-band h2 em { color: var(--mark); }
.cta-band p { color: rgba(250, 247, 240, 0.75); font-size: 18px; max-width: 32em; }
.cta-band-right { text-align: right; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta-phone { display: block; font-family: var(--display); font-size: clamp(36px, 4.4vw, 64px); font-weight: 500; letter-spacing: -0.03em; color: var(--mark); text-decoration: none; margin-bottom: 24px; }
.cta-phone:hover { color: var(--paper); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(250, 247, 240, 0.75); border-top: 1px solid rgba(250, 247, 240, 0.14); padding: 72px 0 32px; font-size: 16px; position: relative; overflow: hidden; }
.site-footer .wrap { position: relative; z-index: 1; }
.site-footer .ghost { color: var(--paper); opacity: 0.05; bottom: -0.2em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: var(--paper); margin-bottom: 16px; line-height: 1; }
.footer-brand span { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mark); margin-top: 8px; }
.footer-about p { color: rgba(250, 247, 240, 0.7); max-width: 32em; }
.footer-social, a.footer-social { font-weight: 700; color: var(--mark); }
.footer-col h2 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mark); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; color: rgba(250, 247, 240, 0.65); }
.footer-col a { color: var(--paper); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(250, 247, 240, 0.14); font-size: 14px; color: rgba(250, 247, 240, 0.55); }
.footer-bottom p { margin: 0; }
.footer-sister { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-sister a { color: rgba(250, 247, 240, 0.7); }
.back-top, a.back-top { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--paper); border: 1.5px solid rgba(250, 247, 240, 0.4); padding: 10px 14px; }
.back-top:hover, a.back-top:hover { background: var(--mark); color: var(--ink); border-color: var(--mark); }

/* Reveal on scroll (visible at rest, JS adds the motion) */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* Utilities */
.mt-0 { margin-top: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Responsive */
@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 14ch; }
  .hero-media { padding: 20px 0 24px; }
  .hero-stamp { right: 4px; top: -20px; }
  .hero-tile { left: 0; top: 0; }
  .stamp { width: 120px; height: 120px; }
  .page-hero-media { transform: rotate(0deg); }
  .print-stack { padding-bottom: 22%; }
  .print-stack .stamp-pos { right: 0; top: -44px; }
  .ghost { font-size: clamp(140px, 40vw, 320px); }
  .page-hero-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .page-hero-media .tile { left: auto; right: 4px; top: -18px; }
  .split-media .tile { right: 8px; top: -18px; }
  .print-stack .print-main { width: 90%; }
  .print-stack .print-second { width: 50%; }
  .handnote { font-size: 22px; }
  .print { padding-bottom: 46px; }
  .print .handnote { font-size: 19px; }
  .course-list a { grid-template-columns: 80px minmax(0, 1fr) 40px; }
  .course-who { grid-column: 2; }
  .course-arrow { grid-row: 1 / span 2; grid-column: 3; }
  .course-num { font-size: 44px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-flip .split-media { order: 0; }
  .layout { grid-template-columns: 1fr; gap: 48px; }
  .aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band-right { text-align: left; }
  .cta-band-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-menu-groups { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .site-menu-group a { font-size: 26px; padding: 13px 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .header-row { min-height: 72px; gap: 16px; }
  .brand-name { font-size: 26px; }
  .brand-sub { display: none; }
  .header-actions a.header-cta, .header-actions .header-phone { display: none; }
  .hero-tile .tile { font-size: 56px; }
  .tile { font-size: 64px; }
  .tile-lg { font-size: 88px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .meta-row { gap: 16px 20px; }
  .meta-row div { flex: 1 1 40%; min-width: 0; }
  .course-list a { gap: 14px; padding: 22px 0; grid-template-columns: 60px minmax(0, 1fr) 30px; }
  .course-list a:hover { padding-left: 0; }
  .course-num { font-size: 36px; }
  .course-num .tile { font-size: 34px; }
  .course-arrow { font-size: 28px; }
  .sounds-list li { padding: 0 18px; }
  .sounds-list li::after { margin-left: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-menu, .menu-toggle, .cta-band, .header-cta, .sounds { display: none !important; }
}

/* Simple link cards (404, thank you) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.card { padding: 32px 28px 36px 0; border-right: 1px solid var(--line); margin-right: 28px; display: flex; flex-direction: column; }
.card:last-child { border-right: 0; margin-right: 0; }
.card h3 { margin-bottom: 12px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; }
.card p { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }
.page-hero-stamp { position: absolute; right: -20px; top: -40px; }
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0 28px; }
  .card:last-child { border-bottom: 0; }
  .page-hero-stamp { right: 12px; top: -30px; }
}
