/* Hallmark · shape: Showcase (hero with a real photo, the two topics, the room, the schools, the invitation) · genre: playful · theme: Hum (the site's locked system, tokens.css) · job: book (a school invites KDLY), the action in the hero and at the end
 * hero: Split (the promise left, Arif speaking right) · nav: edge-aligned, the KDLY wordmark with its name line and one action · footer: statement · imagery: Arif's own session photos, no students' faces · signature: the two topics switched in place
 * axes: light/geometric-sans/chromatic-yellow · posture: full-palette (yellow the actions, white cards) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: the room photos are of the speaker only; students stay out of frame on purpose (minors) */
/* Hallmark · dismissed F4 · the site-wide .btn recipe; the filled primary is the one invitation action, repeated at the end */
/* Hallmark · dismissed 58 · the topic screen carries four steps per topic, the substance a counsellor needs to decide; about 87 words */
/* Hallmark · motion · Arif asked for more animation (2026-11-20): scroll reveals, the topic switch, the moving school names, photo hover; all transform/opacity, all off under reduced motion, everything visible without JavaScript */

@import url("./tokens.css");
@import url("./base.css");
@import url("./site.css");

/* reveal on scroll: hidden only when the page script runs and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .photos figure[data-reveal]:nth-child(2) { transition-delay: 90ms; }
  .js .photos figure[data-reveal]:nth-child(3) { transition-delay: 180ms; }
}

/* hero: the promise beside the photo */
.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero .container { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 460px); justify-content: start; gap: var(--space-3xl); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 { font-size: var(--text-display); max-width: 12ch; }
.hero .lead { max-width: 34ch; font-size: var(--text-lead); color: var(--color-ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.hero__photo { margin: 0; border-radius: var(--radius-card); overflow: hidden; box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--color-ink) 45%, transparent); }
.hero__photo { justify-self: start; width: min(100%, 460px); }
.hero__photo img { display: block; width: 100%; height: auto; max-height: 600px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }

/* the two topics, switched in place */
.topics { padding-block: var(--section-gap-s); }
.topics h2 { font-size: var(--text-section); max-width: 18ch; margin-bottom: var(--space-xl); }
.tabs { display: inline-flex; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--grain), var(--color-paper-2); margin-bottom: var(--space-xl); }
.tab { white-space: nowrap; min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: none; color: var(--color-ink); font: 700 var(--text-md)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tab:hover { background: color-mix(in oklab, var(--color-yellow) 40%, transparent); }
.tab[aria-selected="true"] { background: var(--color-ink); color: var(--color-paper-2); }
.tab:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.panel { display: grid; gap: var(--space-xl); }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .panel.is-entering { animation: panel-in var(--dur-long) var(--ease-out); }
  .panel.is-entering .steps li { animation: panel-in var(--dur-long) var(--ease-out) backwards; }
  .panel.is-entering .steps li:nth-child(2) { animation-delay: 60ms; }
  .panel.is-entering .steps li:nth-child(3) { animation-delay: 120ms; }
  .panel.is-entering .steps li:nth-child(4) { animation-delay: 180ms; }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel__lead { font: 700 var(--text-title)/1.35 var(--font-display); max-width: 40ch; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-card); background: var(--grain), var(--fibre), var(--color-paper-2); counter-increment: step; }
.steps li::before { content: counter(step); font: 800 var(--text-2xl)/1 var(--font-display); color: var(--color-accent-3-deep); }
.steps h3 { font-size: var(--text-lg); }
.steps p { color: var(--color-ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin: 0; }
.facts div { display: grid; gap: var(--space-3xs); }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { margin: 0; font-weight: 700; }

/* the room */
.gallery { padding-block: var(--section-gap-s); }
.gallery h2 { font-size: var(--text-section); margin-bottom: var(--space-xl); }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.photos figure { margin: 0; border-radius: var(--radius-card); overflow: hidden; }
.photos figure { transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .photos figure:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px color-mix(in oklab, var(--color-ink) 50%, transparent); } }

/* the schools, moving slowly; still and wrapped when motion is off */
.schools { padding-block: var(--section-gap-s); overflow-x: clip; }
.schools h2 { font-size: var(--text-section); max-width: 20ch; margin-bottom: var(--space-xl); }
.marquee { display: flex; width: max-content; }
.marquee__row { display: flex; gap: var(--space-md); margin: 0; padding: 0 var(--space-md) 0 0; list-style: none; }
.marquee__row li { display: flex; align-items: center; justify-content: center; width: 168px; min-height: 64px; padding: 9px 16px; border-radius: var(--radius-pill); background: var(--grain), var(--color-paper-2); }
.school img { max-width: min(100%, 132px); max-height: 36px; width: auto; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .marquee { animation: marquee 48s linear infinite; }
  .marquee:hover { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; padding-inline: var(--gutter); }
  .marquee__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
  .marquee__row li { width: auto; }
  .marquee__row[aria-hidden="true"] { display: none; }
}

/* the invitation */
.invite { padding-block: var(--section-gap-s) var(--section-gap); }
.invite .container { display: grid; gap: var(--space-xl); justify-items: start; }
.invite .how { width: 100%; }
.invite h2 { font-size: var(--text-display-s); max-width: 14ch; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how li { display: grid; align-content: start; gap: var(--space-xs); padding: var(--space-xl) var(--space-lg); border-radius: var(--radius-card); background: var(--grain), var(--fibre), var(--color-paper-2); counter-increment: how; }
.how li::before { content: counter(how); font: 800 var(--text-2xl)/1 var(--font-display); color: var(--color-accent-3-deep); }
.how h3 { font-size: var(--text-lg); }
.how p { color: var(--color-ink-2); }
.contact { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-2xl); margin: 0; }
.contact div { display: grid; gap: var(--space-3xs); }
.contact dt { font-size: var(--text-sm); color: var(--color-muted); }
.contact dd { margin: 0; font: 700 var(--text-lg)/1.3 var(--font-display); }
.contact a { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; white-space: nowrap; }
.contact a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--section-gap) var(--space-2xl); }

@media (max-width: 60rem) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero__photo { max-width: 420px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .hero { padding-block: var(--space-xl) var(--space-3xl); }
  .hero h1 { font-size: var(--text-3xl); }
  .hero .lead { font-size: var(--text-md); }
  .hero .actions .btn { width: 100%; }
  .topics, .gallery, .schools, .invite { padding-block: var(--space-3xl); }
  .topics h2, .gallery h2, .schools h2 { font-size: var(--text-2xl); }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 0 var(--space-sm); font-size: var(--text-sm); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .steps li { grid-template-columns: 2rem minmax(0, 1fr); column-gap: var(--space-md); padding: var(--space-lg) var(--space-md); }
  .steps li::before { grid-row: span 2; font-size: var(--text-xl); }
  .photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .photos figure:first-child { grid-column: span 2; }
  .photos figure:first-child img { aspect-ratio: 4 / 3; object-position: center 20%; }
  .invite h2 { font-size: var(--text-2xl); }
  .contact dd { font-size: var(--text-md); }
  .invite .actions .btn { width: 100%; }
  .how { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .how li { padding: var(--space-lg) var(--space-md); }
  .footer { padding-block: var(--space-3xl) var(--space-xl); }
}
