/* =========================================================================
   朱安中英文家教 — mobile-first stylesheet
   Palette: deep navy + champagne gold on warm ivory.
   Type: Noto Serif TC for display, the platform's CJK sans for body text.
   Base styles target phones; wider layouts are added with min-width queries.
   ========================================================================= */

:root {
  --navy-950: #0a1426;
  --navy-900: #0e1a30;
  --navy-800: #15243f;
  --navy-700: #1f3253;
  --navy-600: #2d4470;

  --ink: #172031;
  --muted: #586274;
  --subtle: #8a92a1;

  --paper: #fbf9f5;
  --paper-2: #f4efe6;
  --surface: #ffffff;
  --line: #e9e3d8;
  --line-strong: #d8cfbf;

  --gold: #b8925a;
  --gold-deep: #8a6631;      /* gold text on light backgrounds (AA) */
  --gold-light: #dcc08f;     /* gold text on navy (AA) */
  --gold-tint: #f4ebdc;
  --gold-gradient: linear-gradient(135deg, #e1c48f 0%, #c6a066 55%, #b08850 100%);

  --before: #b3432e;
  --after: #23764f;
  --line-green: #06c755;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 48, 0.06), 0 2px 8px rgba(14, 26, 48, 0.04);
  --shadow: 0 2px 6px rgba(14, 26, 48, 0.05), 0 12px 32px -8px rgba(14, 26, 48, 0.12);
  --shadow-lg: 0 24px 60px -16px rgba(10, 20, 38, 0.35);

  --header-h: 60px;
  --gutter: 20px;
  --container: 1160px;
  --section-y: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; color: var(--ink); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-flip { transform: scaleX(-1); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-light);
  color: var(--navy-950);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.section-dark :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-light); }


/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy-950);
  box-shadow: 0 8px 22px -10px rgba(184, 146, 90, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 28px -10px rgba(184, 146, 90, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35); }

.btn-primary,
.btn-primary-light {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(14, 26, 48, 0.8);
}
.btn-primary:hover { background: var(--navy-700); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--navy-900); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, 0.5); }

.btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(6, 199, 85, 0.9);
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy-900);
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}
.round-btn:hover { border-color: var(--navy-900); }
.round-btn[disabled] { opacity: 0.35; cursor: default; }

/* ---------- Shared section parts ---------- */

.section { padding-block: var(--section-y); }
.section-tint { background: var(--paper-2); }
.section-dark {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}
.section-dark strong { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.eyebrow-light { color: var(--gold-light); }
.eyebrow-dot { display: none; }

.section-header { max-width: 720px; margin-bottom: 36px; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 6.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: var(--navy-900);
  text-wrap: balance;
}
.section-dark .section-title { color: #fff; }

.section-desc {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--muted);
}

/* Scroll reveal: only when JS is running, and never under reduced motion. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: box-shadow 0.3s;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself
   would become the containing block of the fixed mobile menu and clip it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(14, 26, 48, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
body.nav-open .site-header::before { background: var(--navy-900); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, #e7cf9f, #b8925a);
  box-shadow: 0 0 0 1px rgba(220, 192, 143, 0.5);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand-subtitle {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  white-space: nowrap;
}

.nav-toggle {
  position: relative;
  display: grid;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu: a full-height sheet under the header. */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--navy-900);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}
.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--gold-light);
  border-right: 1.5px solid var(--gold-light);
  transform: rotate(45deg);
}
.nav-cta { margin-top: 28px; min-height: 54px; }

body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 36px) 0 44px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(184, 146, 90, 0.18) 0%, transparent 55%),
    radial-gradient(90% 50% at 0% 100%, rgba(45, 68, 112, 0.55) 0%, transparent 60%),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.76);
  overflow: hidden;
}
.hero::after {
  /* Fine hairline grid for texture. */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 7.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0.01em;
  color: #fff;
}
.hero-heading em {
  font-style: normal;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.85;
}
.hero-lead strong { color: #fff; font-weight: 600; }

.hero-cta-group {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero-media { display: flex; justify-content: center; }

.portrait {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1.02;
  border-radius: 200px 200px 28px 28px;
  background: linear-gradient(180deg, rgba(220, 192, 143, 0.28) 0%, rgba(220, 192, 143, 0.05) 100%);
  border: 1px solid rgba(220, 192, 143, 0.28);
  isolation: isolate;
}
.portrait-glow {
  position: absolute;
  inset: 12% 10% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(225, 196, 143, 0.55), transparent 65%);
  filter: blur(10px);
}
.portrait-img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88%;
  height: auto;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.portrait-badge {
  position: absolute;
  left: -6px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  color: var(--navy-900);
  text-align: left;
  cursor: zoom-in;
}
.portrait-badge-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: var(--navy-950);
}
.portrait-badge-icon .icon { width: 22px; height: 22px; }
.portrait-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.portrait-badge-top {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}
.portrait-badge-main {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.metric {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 16px 8px;
  text-align: center;
}
.metric + .metric { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.metric-number {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold-light);
}
.metric-number small { font-size: 14px; font-weight: 600; margin-left: 1px; }
.metric-label {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- School strip ---------- */

.school-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.school-strip-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.school-strip-inner::-webkit-scrollbar { display: none; }
.school-strip-label {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}
.school-list {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.school-list li {
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-700);
}
.school-list li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin: 0 14px;
  background: var(--gold);
}

/* ---------- Methodology ---------- */

.method-grid { display: grid; gap: 16px; }

.method-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.method-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--gold-light);
}
.method-icon .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.method-index {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--line-strong);
}
.method-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy-900);
}
.method-text {
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
}
.method-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  counter-reset: m;
}
.method-list li {
  position: relative;
  padding-left: 34px;
  counter-increment: m;
}
.method-list li::before {
  content: counter(m);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.method-note {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.method-note-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
}

.method-details {
  margin-top: auto;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.method-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.method-details summary::-webkit-details-marker { display: none; }
.method-details summary .icon { color: var(--gold-deep); transition: transform 0.3s var(--ease); }
.method-details[open] summary .icon { transform: rotate(45deg); }
.method-details p {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- Credentials ---------- */

.proof-grid { display: grid; gap: 36px; align-items: center; }

.cert-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
}
.cert-frame {
  display: block;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease);
}
.cert-card:hover .cert-frame { transform: rotate(0); }
.cert-frame img { width: 100%; border-radius: 12px; }
.cert-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.cert-caption strong { display: block; font-size: 15px; color: var(--navy-900); }

.zoom-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.zoom-chip .icon { width: 15px; height: 15px; }

.proof-lead { margin-top: 16px; font-size: 15.5px; color: var(--muted); }

.check-list {
  display: grid;
  gap: 4px;
  margin: 24px 0 30px;
}
.check-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.check-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.check-list .icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-light);
  stroke-width: 2.4;
}
.check-list strong { display: block; margin-bottom: 2px; font-size: 15.5px; color: var(--navy-900); }

/* ---------- Cases ---------- */

.case-tabs-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 20px;
}
.case-tabs-wrap::-webkit-scrollbar { display: none; }
.case-tabs {
  display: flex;
  gap: 8px;
  width: max-content;
  padding-inline: var(--gutter);
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tab-btn.active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #fff;
}
.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-size: 11.5px;
  font-weight: 700;
}
.tab-btn.active .tab-count { background: var(--gold-light); color: var(--navy-950); }

.case-track {
  display: flex;
  gap: 14px;
  padding: 4px var(--gutter) 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.case-track::-webkit-scrollbar { display: none; }
.case-track:focus-visible { outline-offset: -2px; }

.case-card {
  flex: 0 0 min(86%, 380px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.case-card[hidden] { display: none; }

.case-head { display: flex; align-items: center; gap: 12px; }
.case-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
}
.case-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-900);
}
.case-school { font-size: 13px; color: var(--subtle); line-height: 1.4; }

.case-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.case-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.case-point { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.case-point:last-child { text-align: right; }
.case-point-label { font-size: 11.5px; color: var(--subtle); line-height: 1.35; }
.case-point-value { font-size: 15px; font-weight: 700; line-height: 1.35; }
.case-point-value.is-before { color: var(--before); }
.case-point-value.is-after { color: var(--after); }
.case-result-arrow { width: 20px; height: 20px; color: var(--gold); }

.case-result-single { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.case-result-label { font-size: 11.5px; color: var(--subtle); }
.case-result-value { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--navy-900); }

.case-quote {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.case-doc {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  margin-top: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
  cursor: zoom-in;
}
.case-doc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}
.case-doc:hover img { transform: scale(1.03); }
.case-doc-label {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(10, 20, 38, 0.86), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.case-foot {
  display: flex;
  align-items: center;
  gap: 16px;
}
.case-counter {
  flex: none;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.case-counter-current { color: var(--navy-900); }
.case-progress {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.case-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--navy-900);
  transition: width 0.3s var(--ease);
}
.case-nav { display: flex; gap: 8px; }

/* ---------- Diagnostic ---------- */

#diagnostic {
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(184, 146, 90, 0.16), transparent 60%),
    var(--navy-900);
}
.diagnostic-grid { display: grid; gap: 28px; }
.diagnostic-desc { margin-top: 14px; font-size: 15.5px; }

.quiz-title {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.quiz-option:hover { border-color: rgba(220, 192, 143, 0.5); }
.quiz-option-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(220, 192, 143, 0.12);
  color: var(--gold-light);
}
.quiz-option-text { flex: 1; }
.quiz-option-radio {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quiz-option.selected {
  border-color: var(--gold-light);
  background: rgba(220, 192, 143, 0.1);
}
.quiz-option.selected .quiz-option-radio {
  border-color: var(--gold-light);
  box-shadow: inset 0 0 0 4px var(--navy-900), inset 0 0 0 10px var(--gold-light);
}

.quiz-result {
  margin-top: 18px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--muted);
  box-shadow: var(--shadow-lg);
  animation: rise 0.45s var(--ease);
}
.quiz-result[hidden] { display: none; }
.quiz-result { scroll-margin-bottom: 90px; }
.quiz-result-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.quiz-result-title {
  margin: 12px 0 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy-900);
}
.quiz-result-body { margin-bottom: 20px; font-size: 14.5px; line-height: 1.8; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Courses ---------- */

.course-grid { display: grid; gap: 16px; }

.course-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.course-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}
.course-flag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: var(--navy-950);
  font-size: 12px;
  font-weight: 700;
}
.course-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-900);
}
.course-target {
  display: flex;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.course-target .icon { margin-top: 3px; color: var(--gold); }
.course-list { display: grid; gap: 14px; margin-bottom: 8px; }
.course-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.course-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}
.course-list strong { display: block; font-size: 15px; color: var(--navy-900); }
.course-card .btn { margin-top: auto; }

.course-card.is-featured {
  border-color: transparent;
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(184, 146, 90, 0.22), transparent 60%),
    var(--navy-900);
  box-shadow: var(--shadow-lg);
}
.is-featured .course-kicker { color: var(--gold-light); }
.is-featured .course-title,
.is-featured .course-list strong { color: #fff; }
.is-featured .course-target,
.is-featured .course-list li { color: rgba(255, 255, 255, 0.7); }
.is-featured .course-target { border-color: rgba(255, 255, 255, 0.12); }
.is-featured .course-list li::before { border-color: var(--gold-light); }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q-wrap { font-size: inherit; font-weight: inherit; }
.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.faq-num {
  flex: none;
  padding-top: 2px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-deep);
}
.faq-q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy-900);
}
.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.3s, border-color 0.3s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: var(--navy-900);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon { background: var(--navy-900); border-color: var(--navy-900); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--gold-light); }
.faq-item.open .faq-icon::after { transform: rotate(0); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > p {
  min-height: 0;
  overflow: hidden;
  padding-left: 32px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.faq-answer > p::after { content: ""; display: block; height: 22px; }

/* ---------- Contact ---------- */

.contact-section {
  background:
    radial-gradient(90% 50% at 0% 0%, rgba(45, 68, 112, 0.7), transparent 60%),
    radial-gradient(80% 40% at 100% 100%, rgba(184, 146, 90, 0.14), transparent 60%),
    var(--navy-900);
}
.contact-grid { display: grid; gap: 36px; }
.contact-lead { margin-top: 14px; font-size: 15.5px; }

.channel-list { display: grid; gap: 10px; margin-top: 28px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}
.channel-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(220, 192, 143, 0.14);
  color: var(--gold-light);
}
.channel-icon.is-line { background: var(--line-green); color: #fff; }
.channel-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.channel-label { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.channel-label em {
  margin-left: 8px;
  font-style: normal;
  font-weight: 700;
  color: var(--line-green);
}
.channel-value {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.channel-value .highlight-line-id { color: var(--gold-light); }
.channel-value .copy-hint { display: block; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.5); }

.teacher-facts {
  display: grid;
  margin-top: 24px;
  padding: 6px 18px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}
.teacher-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 14px;
}
.teacher-facts > div + div { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.teacher-facts dt { color: rgba(255, 255, 255, 0.5); flex: none; }
.teacher-facts dd { color: #fff; font-weight: 600; text-align: right; }

.booking {
  padding: 28px 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.booking-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-900);
}
.booking-desc { margin: 8px 0 24px; font-size: 14.5px; color: var(--muted); }

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
}
.req { color: var(--before); }
.form-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: #a3a9b4; }
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 146, 90, 0.18);
}
.form-input.is-invalid { border-color: var(--before); box-shadow: 0 0 0 4px rgba(179, 67, 46, 0.12); }
.form-textarea { min-height: 120px; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.form-select { padding-right: 44px; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--subtle);
}
.form-privacy .icon { margin-top: 2px; color: var(--gold); }
.form-privacy strong { color: var(--muted); }

.form-feedback { margin-top: 16px; font-size: 14px; }
.form-feedback[hidden] { display: none; }
.form-feedback .fb-status { text-align: center; color: var(--muted); }
.fb-box {
  padding: 18px;
  border: 1px solid;
  border-radius: var(--radius);
  text-align: left;
}
.fb-success { border-color: #b7dcc6; background: #eff8f2; }
.fb-error { border-color: #ecc2b8; background: #fbf0ed; }
.fb-title { margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.fb-success .fb-title { color: #1c5e3e; }
.fb-error .fb-title { color: #8c2f1e; }
.fb-text { margin-bottom: 14px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.fb-actions { display: grid; gap: 8px; }
.fb-actions .btn { min-height: 46px; font-size: 14.5px; }
.fb-copy-status { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: #1c5e3e; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 calc(28px + 76px + env(safe-area-inset-bottom));
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}
.footer-grid { display: grid; gap: 32px; }
.footer-title {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.footer-heading {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
}
.footer-nav ul { display: grid; gap: 8px; }
nav.footer-nav ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-nav a { text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-nav a[data-protected="email"] { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Mobile quick-contact bar ---------- */

.sticky-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 249, 245, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.js .sticky-bar { display: grid; }
.sticky-bar.is-visible { transform: none; }
.sticky-bar .btn { min-height: 50px; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: rgba(8, 14, 26, 0.96);
  animation: fade 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 12px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lightbox-caption {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.lightbox-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}
.lightbox-close .icon { width: 20px; height: 20px; }
.lightbox-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 404 page ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}
.error-code {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
}
.error-title {
  margin: 16px 0 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  color: #fff;
}
.error-text { margin-bottom: 28px; }

/* =========================================================================
   Larger phones and tablets
   ========================================================================= */

@media (min-width: 600px) {
  :root { --gutter: 32px; --section-y: 88px; }

  .hero-cta-group { display: flex; flex-wrap: wrap; }
  .case-card { flex-basis: 360px; }
  .fb-actions { display: flex; flex-wrap: wrap; }
  .booking { padding: 36px 32px 30px; }
}

/* =========================================================================
   Desktop
   ========================================================================= */

@media (min-width: 960px) {
  :root { --header-h: 72px; --section-y: 112px; }

  /* Header becomes a single row of links. */
  .nav-toggle { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-title { font-size: 17px; }
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links { display: flex; gap: 26px; }
  .nav-links li { border: 0; }
  .nav-links a {
    padding: 6px 0;
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { color: #fff; }
  .nav-cta { margin: 0; min-height: 42px; padding: 0 20px; font-size: 14px; }

  .hero { padding: calc(var(--header-h) + 72px) 0 88px; }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "content media"
      "metrics media";
    column-gap: 64px;
    row-gap: 48px;
    align-items: center;
  }
  .hero-content { grid-area: content; }
  .hero-media { grid-area: media; }
  .hero-metrics { grid-area: metrics; align-self: start; }
  .hero-lead { font-size: 16.5px; max-width: 580px; }
  .portrait { width: 100%; max-width: 440px; }
  .portrait-badge { left: -28px; bottom: 40px; }
  .metric { padding: 20px 12px; }
  .metric-number { font-size: 36px; }
  .metric-label { font-size: 13px; }

  .school-strip-inner { justify-content: center; }

  .section-header { margin-bottom: 52px; }
  .section-desc { font-size: 16.5px; }

  .method-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .method-card { padding: 34px 32px; }
  .method-title { font-size: 21px; }

  .proof-grid { grid-template-columns: 1fr 1fr; gap: 72px; }

  /* Cases: a regular grid instead of the swipe track. */
  .case-tabs { padding-inline: 0; margin-inline: auto; }
  .case-tabs-wrap { margin-bottom: 32px; }
  .case-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding: 4px var(--gutter) 0;
    overflow: visible;
  }
  .case-card { padding: 26px 24px 24px; }
  .case-doc { height: 180px; }
  .case-foot { display: none; }

  .diagnostic-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
  .diagnostic-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .quiz-option { padding: 16px 20px; }
  .quiz-result { padding: 32px; }

  .course-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .course-card { padding: 34px 32px 30px; }

  .faq-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 72px; align-items: start; }
  .faq-layout .section-header { position: sticky; top: calc(var(--header-h) + 40px); }
  .faq-question { padding: 24px 0; }
  .faq-q-text { font-size: 17px; }

  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
  .booking { padding: 44px 40px 36px; }

  .site-footer { padding-bottom: 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
  nav.footer-nav ul { grid-template-columns: 1fr; }

  .sticky-bar { display: none !important; }

  .lightbox-stage { padding: 32px; }
}

/* ---------- Motion & print ---------- */

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

@media print {
  .site-header,
  .sticky-bar,
  .lightbox,
  .case-foot,
  .svg-sprite { display: none !important; }
  .hero,
  .section-dark { background: #fff !important; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
