/* ============================================================
   EDUCATION FIRST PAYROLL LTD — site styles
   Brand: navy #0f2d5e, blue #1668f0, gold #f5b41d, Geist
   ============================================================ */

:root {
  --navy: #0f2d5e;
  --navy-2: #143870;
  --blue: #1668f0;
  --blue-dark: #0d55cd;
  --gold: #f5b41d;
  --body: #5a7290;
  --muted: #8093a8;
  --chip: #dce9fa;
  --chip-ink: #14539e;
  --tint: #f4f8fe;
  --line: rgba(15, 45, 94, 0.11);
  --white: #ffffff;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 18px rgba(15, 45, 94, 0.06);
  --shadow: 0 18px 44px rgba(15, 45, 94, 0.1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 78px;
  --wrap: 1200px;
}

/* ─── Reset ──────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  text-wrap: balance;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

p { margin: 0; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid rgba(22, 104, 240, 0.4);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ─── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }

.btn-primary {
  background: linear-gradient(135deg, #2b7bf7 0%, var(--blue) 55%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 85, 205, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 85, 205, 0.34);
}

.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
  border-color: rgba(15, 45, 94, 0.14);
}

.btn-ghost:hover {
  border-color: rgba(22, 104, 240, 0.45);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover { transform: translateY(-2px); color: var(--blue); }

.btn:disabled {
  background: #a6c3ec;
  box-shadow: none;
  transform: none;
  cursor: default;
  filter: none;
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(15, 45, 94, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-block; line-height: 0; flex-shrink: 0; }

.brand img {
  width: clamp(170px, 18vw, 210px);
  height: auto;
  transition: width 0.3s var(--ease);
}

.site-header.is-scrolled .brand img { width: clamp(160px, 16vw, 186px); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--blue); }

.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta { padding: 11px 20px; font-size: 0.86rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100vh, 860px);
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 72px;
  background: var(--tint);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 92% 50%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, #fff 0%, rgba(255,255,255,0.985) 40%, rgba(255,255,255,0.94) 53%, rgba(255,255,255,0.68) 64%, rgba(255,255,255,0.22) 76%, rgba(255,255,255,0) 88%),
    linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 82%, rgba(255,255,255,0.5) 100%);
}

.hero-swoosh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #dbe8fa;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-content { max-width: 640px; }

/* Illustrative payslip: prints out of the slot, then is stamped */
.printer {
  justify-self: end;
  width: min(100%, 370px);
}

.printer-slot {
  position: relative;
  z-index: 2;
  height: 18px;
  margin: 0 -14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #24467e 0%, var(--navy) 60%, #081c3d 100%);
  box-shadow: 0 10px 24px -8px rgba(15, 45, 94, 0.5);
}

.printer-slot span {
  position: absolute;
  right: 14px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.slip-clip {
  margin-top: -9px;
  padding: 0 0 30px;
  overflow: hidden;
  filter: drop-shadow(0 18px 22px rgba(15, 45, 94, 0.18));
}

.slip {
  --zz: 12px;
  position: relative;
  padding: 26px 24px 30px;
  background: #fffdf8;
  color: var(--navy);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  /* zig-zag tear-off bottom edge */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) var(--zz) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) var(--zz) repeat-x;
}

.slip-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed rgba(15, 45, 94, 0.3);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slip-top span + span { color: var(--muted); }

.slip-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
}

.slip-meta small {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slip-lines { margin: 0; padding: 10px 0; border-block: 1.5px dashed rgba(15, 45, 94, 0.3); }

.slip-lines div { display: flex; gap: 8px; padding: 4px 0; }

.slip-lines dt { flex-shrink: 0; }

/* dotted leader between label and amount */
.slip-lines div::after {
  content: "";
  order: 1;
  flex: 1;
  margin-bottom: 5px;
  border-bottom: 1.5px dotted rgba(15, 45, 94, 0.28);
}

.slip-lines dd { order: 2; margin: 0; }

.slip-net {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 88px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.slip-net strong { font-size: 1.35rem; letter-spacing: -0.02em; }

.stamp {
  position: absolute;
  left: 26px;
  bottom: 76px;
  display: grid;
  place-items: center;
  padding: 6px 14px 7px;
  border: 3px solid currentColor;
  border-radius: 8px;
  outline: 1.5px solid currentColor;
  outline-offset: 3px;
  color: rgba(22, 104, 240, 0.82);
  font-family: "Geist", sans-serif;
  text-transform: uppercase;
  line-height: 1;
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
}

.stamp b { font-size: 1.45rem; font-weight: 800; letter-spacing: 0.08em; }

.stamp small { margin-top: 4px; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.22em; }

.js .slip { transform: translateY(-101%); }
.js .stamp { opacity: 0; }

.js.is-loaded .slip { animation: print 1.5s cubic-bezier(0.45, 0.05, 0.3, 1) 0.5s forwards; }
.js.is-loaded .stamp { animation: stamp 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) 2.2s forwards; }

@keyframes print {
  0% { transform: translateY(-101%); }
  35% { transform: translateY(-62%); }
  45% { transform: translateY(-58%); }
  100% { transform: translateY(0); }
}

@keyframes stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(2.4); }
  100% { opacity: 1; transform: rotate(-14deg) scale(1); }
}

/* Section label: a highlighter stroke, like marked-up notes */
.eyebrow {
  display: inline-block;
  padding: 0 6px;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: linear-gradient(100deg, transparent 2px, rgba(245, 180, 29, 0.5) 4px, rgba(245, 180, 29, 0.42) 96%, transparent calc(100% - 2px)) 0 62% / 100% 52% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hand { font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 600; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero h1 .accent { display: block; color: var(--blue); }

.hero-lead {
  max-width: 33em;
  margin-top: 22px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--chip-ink);
}

.tick svg { width: 12px; height: 12px; }

/* ─── Pillars band ───────────────────────────────────────── */

.pillars {
  position: relative;
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: rgba(255, 255, 255, 0.72);
}

.pillars::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, #2b7bf7 46%, var(--blue-dark) 100%);
}

/* Endless marquee of outlined motto words. Two identical
   groups; the track slides by exactly one group's width. */
.marquee {
  overflow: hidden;
  padding-block: clamp(26px, 3.4vw, 44px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }

.marquee-group { display: flex; align-items: center; flex-shrink: 0; }

.mq-word {
  padding-inline: clamp(18px, 2.6vw, 36px);
  font-size: clamp(3rem, 8vw, 6.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.75);
  transition: color 0.3s var(--ease), -webkit-text-stroke-color 0.3s var(--ease);
}

.mq-word:hover { color: #fff; -webkit-text-stroke-color: #fff; }

.mq-dot {
  flex-shrink: 0;
  width: clamp(10px, 1.1vw, 16px);
  height: clamp(10px, 1.1vw, 16px);
  border-radius: 50%;
  background: var(--gold);
}

@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ─── Sections ───────────────────────────────────────────── */

.section { padding: clamp(72px, 9vw, 120px) 0; }

.section-tint { background: var(--tint); }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(38px, 5vw, 58px);
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head.split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.section-head.split h2 { max-width: 15em; }

.section-head.split > p { max-width: 22em; margin: 0; }

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.04rem;
}

/* ─── Services (yellow legal pad) ────────────────────────── */

/* Everything here sits on a --rule grid so the handwriting
   lands on the printed lines. */
.paper,
.pad-flip span {
  --rule: 44px;
  background-color: #f9e48a;
  background-image:
    radial-gradient(ellipse 70% 90% at 45% 35%, rgba(255, 252, 225, 0.38), transparent 70%),
    linear-gradient(90deg, rgba(150, 110, 20, 0.07), transparent 12%, transparent 88%, rgba(150, 110, 20, 0.08)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .08 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, transparent calc(var(--rule) - 1px), rgba(64, 132, 222, 0.55) calc(var(--rule) - 1px));
  background-size: 100% 100%, 100% 100%, 220px 220px, 100% var(--rule);
  background-position: 0 0, 0 0, 0 0, 0 calc(var(--pad-y, 0px) + var(--rule) * -0.26);
}

.paper {
  position: relative;
  overflow: hidden;
  padding: calc(var(--rule) * 3) 0 calc(var(--rule) * 3);
  color: #23449c;
}

/* the flipping sheets start below the binding; keep their lines in step */
.pad-flip span { --pad-y: -16px; }

/* red double margin line */
.paper::before,
.pad-flip span::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(12px, calc(50% - var(--wrap) / 2 + 16px));
  width: 5px;
  border-inline: 1px solid rgba(214, 72, 62, 0.55);
}

/* perforation holes just under the binding */
.paper::after {
  content: "";
  position: absolute;
  inset: 22px 0 auto;
  z-index: 1;
  height: 4px;
  background: radial-gradient(circle, rgba(120, 90, 20, 0.22) 1.2px, transparent 1.8px) 0 50% / 9px 4px repeat-x;
}

/* gummed binding strip along the top of the pad */
.pad-binding {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 16px;
  background: linear-gradient(180deg, #a8402f 0%, #8e3324 70%, #6f271b 100%);
  box-shadow: 0 2px 4px rgba(80, 30, 10, 0.25);
}

/* ── Page-turn entrance ── */
.pad-flip {
  position: absolute;
  inset: 16px 0 0;
  z-index: 2;
  perspective: 4200px;
  perspective-origin: 50% 0;
  pointer-events: none;
}

.pad-flip span {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
  box-shadow: 0 10px 30px rgba(80, 60, 10, 0.18);
  backface-visibility: hidden;
}

/* darkens as the sheet lifts towards the light */
.pad-flip span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90, 70, 10, 0) 0%, rgba(90, 70, 10, 0.35) 100%);
  opacity: 0;
}

html:not(.js) .pad-flip { display: none; }

.paper.is-flipped .pad-flip span { animation: page-turn 0.95s cubic-bezier(0.5, 0.05, 0.4, 1) forwards; }
.paper.is-flipped .pad-flip span::after { animation: page-shade 0.95s ease-in forwards; }

@keyframes page-turn {
  0% { transform: rotateX(0); }
  100% { transform: rotateX(118deg); visibility: hidden; }
}

@keyframes page-shade { to { opacity: 1; } }

/* content settles in once the pages have turned */
.js .paper .section-head,
.js .paper .svc { opacity: 0; transform: translate3d(0, 10px, 0); }

.paper.is-flipped .section-head,
.paper.is-flipped .svc {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: 0.6s;
}

.paper.is-flipped .svc { transition-delay: calc(0.7s + var(--i) * 0.07s); }

/* handwritten content */
.paper .hand,
.paper h2,
.paper h3,
.paper p { font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; line-height: var(--rule); }

.paper .eyebrow {
  padding: 0;
  background: none;
  color: #c8352a;
  font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: var(--rule);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.paper h2 {
  margin: 0;
  color: #16285e;
  font-size: clamp(2.5rem, 4.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.svc-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--rule) clamp(32px, 6vw, 96px);
  align-items: start;
}

.svc-layout .section-head { margin-bottom: 0; }

.svc-list { margin: 0; padding: 0; list-style: none; }

/* one item = two ruled lines: title, then a short note */
.svc { position: relative; padding-left: 30px; }

.svc::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(var(--rule) * 0.48);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #23449c;
  transform: rotate(-4deg);
}

.svc h3 {
  color: #16285e;
  font-size: clamp(1.75rem, 2.4vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 0.3s var(--ease);
}

.svc:hover h3 { transform: translateX(6px) rotate(-0.6deg); }

.svc p { color: #2f55b0; font-size: 1.45rem; font-weight: 500; }

/* Highlighter stroke that sweeps across each title as it scrolls up */
.mark {
  padding: 0 0.18em;
  margin: 0 -0.18em;
  background: linear-gradient(100deg, transparent 0.15em, var(--hl) 0.3em, var(--hl) calc(100% - 0.3em), transparent calc(100% - 0.12em)) 0 72% / 0% 56% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@keyframes mark { to { background-size: 100% 56%; } }

@supports (animation-timeline: view()) {
  .mark {
    animation: mark linear both;
    animation-timeline: view();
    animation-range: cover 18% cover 48%;
  }
}

/* Fallback: sweep once when the line comes into view (script.js) */
@supports not (animation-timeline: view()) {
  .mark { transition: background-size 0.8s var(--ease); }
  .mark.is-marked { background-size: 100% 56%; }
}

/* ─── How it works (timetable) ───────────────────────────── */

.timetable {
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 60px -36px rgba(15, 45, 94, 0.35);
  overflow: hidden;
}

.tt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}

.tt-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }

.tt-sub,
.tt-period {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.tt-lesson { display: flex; flex-direction: column; gap: 12px; padding: 22px 18px 26px; }

.tt-lesson + .tt-lesson { border-left: 1px dashed var(--line); }

/* Solid lesson blocks, like a printed school timetable */
.tt-tile {
  position: relative;
  flex: 1;
  padding: 18px 18px 22px;
  border-radius: 4px;
  background: var(--c);
  color: rgba(255, 255, 255, 0.86);
}

.tt-tile h3 { color: #fff; font-size: 1.12rem; margin-bottom: 6px; }

.tt-tile p { font-size: 0.9rem; }

.tt-lesson:first-child .tt-tile { color: rgba(15, 45, 94, 0.8); }

.tt-lesson:first-child .tt-tile h3 { color: var(--navy); }

.tt-note {
  position: absolute;
  right: 12px;
  bottom: -16px;
  padding: 0 8px;
  border-radius: 3px;
  background: #fff;
  color: #d33a2c;
  font-size: 1.45rem;
  transform: rotate(-6deg);
}

.js .tt-tile { opacity: 0; transform: translate3d(0, 14px, 0); }

.timetable.is-visible .tt-tile {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(0.15s + var(--i) * 0.22s);
}

.tt-bell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.95rem;
}

.tt-bell-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  transform-origin: 50% 20%;
}

.tt-bell-icon svg { width: 19px; height: 19px; }

.timetable.is-visible .tt-bell-icon { animation: ring 0.9s ease-in-out 1.3s 2; }

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(16deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ─── Why us (school report) ─────────────────────────────── */

.why-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy) 0%, #0b2349 100%);
  color: rgba(255, 255, 255, 0.7);
}

.why-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.why-copy h2 {
  margin-top: 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
}

.why-copy p { margin: 18px 0 30px; font-size: 1.05rem; }

.gold { color: var(--gold); }

.eyebrow-dark {
  color: #fff;
  background-image: linear-gradient(100deg, transparent 2px, rgba(245, 180, 29, 0.38) 4px, rgba(245, 180, 29, 0.3) 96%, transparent calc(100% - 2px));
}

.report {
  --ink: #1d3f8f;
  --pen: #d33a2c;
  position: relative;
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: 4px;
  background: #fbf7ec;
  color: var(--navy);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6);
}

.js .report[data-reveal="right"] { transform: translate3d(30px, 0, 0) rotate(1.4deg); }
.report, .js .report[data-reveal].is-visible { transform: rotate(1.4deg); }

.report::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(15, 45, 94, 0.2);
  border-radius: 2px;
  pointer-events: none;
}

.rp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy);
}

.rp-kicker,
.rp-meta,
.rp-th,
.rp-sign small {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.rp-name { display: block; margin-top: 4px; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; letter-spacing: -0.02em; }

.rp-crest {
  flex-shrink: 0;
  width: auto;
  height: 56px;
  object-fit: contain;
}

.rp-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 12px 0 4px; }

.rp-meta b { color: var(--navy); font-weight: 600; }

.rp-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) 64px minmax(0, 1.6fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(15, 45, 94, 0.22);
}

.rp-th { padding: 14px 0 8px; }

.rp-subject { font-weight: 700; font-size: 0.95rem; }

.rp-grade { position: relative; display: grid; place-items: center; height: 44px; color: var(--pen); }

.rp-grade .hand { font-size: 1.9rem; font-weight: 700; }

.rp-grade svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.rp-comment { font-size: 1.4rem; line-height: 1.15; color: var(--ink); }

.report.is-visible .rp-grade path {
  animation: draw 0.5s ease-out forwards;
  animation-delay: calc(0.6s + var(--i) * 0.35s);
}

.rp-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 28px;
  padding-top: 18px;
}

.rp-foot p { flex: 1 1 220px; font-size: 1.4rem; line-height: 1.15; color: var(--ink); }

.rp-sign { text-align: center; color: var(--ink); }

.rp-sign svg { width: 130px; height: 40px; }

.rp-sign small { display: block; padding-top: 4px; border-top: 1px solid rgba(15, 45, 94, 0.3); }

.report.is-visible .rp-sign path { animation: draw 1.2s ease-in-out 1.8s forwards; }

/* ─── FAQ ────────────────────────────────────────────────── */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); }

.faq-layout .section-head a { color: var(--blue); font-weight: 600; }

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq-item.is-open {
  border-color: rgba(22, 104, 240, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--chip);
  transition: background-color 0.3s var(--ease), transform 0.35s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  border-radius: 2px;
  background: var(--chip-ink);
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease);
}

.faq-icon::after { transform: rotate(90deg); }

.faq-item.is-open .faq-icon { background: var(--blue); transform: rotate(180deg); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after { background: #fff; }
.faq-item.is-open .faq-icon::after { transform: rotate(0deg); }

/* Height animates via grid rows 0fr → 1fr, no measuring needed. */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a > div { overflow: hidden; }

.faq-a p { padding: 0 24px 22px; font-size: 0.95rem; }

/* ─── Contact ────────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact .section-head { margin-bottom: 30px; }

.details {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail { display: flex; gap: 14px; align-items: flex-start; }

.detail-chip {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--chip-ink);
}

.detail-chip svg { width: 18px; height: 18px; }

.detail-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-value {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.detail-value:hover { color: var(--blue); }

.form-card {
  padding: clamp(26px, 3.6vw, 42px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-card h3 { font-size: 1.35rem; }

.form-card > p { margin-top: 6px; font-size: 0.93rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.field label .opt { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(15, 45, 94, 0.16);
  border-radius: 12px;
  background: #fbfdff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea { min-height: 130px; resize: vertical; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314539e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field input::placeholder,
.field textarea::placeholder { color: #9db0c6; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(22, 104, 240, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 104, 240, 0.12);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d92d20; }

.field-error {
  font-size: 0.76rem;
  color: #b42318;
  min-height: 0;
}

.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.consent a { color: var(--blue); font-weight: 600; }

.consent.has-error { color: #b42318; }

.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 6px;
}

.form-note { font-size: 0.78rem; color: var(--muted); }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  grid-column: 1 / -1;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.form-success {
  text-align: center;
  padding: 30px 10px 10px;
}

.form-success .success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--blue);
}

.form-success .success-icon svg { width: 30px; height: 30px; }

.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }

.form-success .btn { margin-top: 22px; }

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
  position: relative;
  overflow: hidden;
  background: #0b2349;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-big {
  max-width: 17em;
  color: #fff;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
  gap: 36px;
  padding: 48px 0 40px;
}

.footer-brand { display: flex; align-items: flex-start; gap: 14px; }

.footer-icon { flex-shrink: 0; width: auto; height: 48px; }

.footer-brand p { max-width: 24em; line-height: 1.6; }

.footer-brand strong { display: block; color: #fff; font-weight: 700; }

.site-footer h4 {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.footer-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: color 0.2s var(--ease), background-size 0.3s var(--ease);
}

.footer-list a:hover { color: #fff; background-size: 100% 1px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* Giant outlined wordmark, cropped by the bottom edge */
.footer-wordmark {
  margin-bottom: -0.2em;
  color: rgba(255, 255, 255, 0.05);
  font-size: clamp(3.2rem, 14.2vw, 15rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

/* ─── Back to top ────────────────────────────────────────── */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 45, 94, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background-color 0.2s var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.to-top:hover { background: var(--blue); }

.to-top svg { width: 18px; height: 18px; }

/* ─── Legal pages ────────────────────────────────────────── */

.page-hero {
  padding: calc(var(--header-h) + 64px) 0 0;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { margin-top: 14px; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }

.page-meta { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

.legal-tabs {
  display: flex;
  gap: 6px 28px;
  margin-top: 36px;
  overflow-x: auto;
}

.legal-tabs a {
  flex-shrink: 0;
  padding: 12px 0;
  border-bottom: 3px solid transparent;
  color: var(--body);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal-tabs a:hover { color: var(--navy); }

.legal-tabs a[aria-current="page"] { color: var(--navy); border-color: var(--gold); }

.legal-section { padding-top: 56px; }

.prose > * { max-width: 760px; }

.prose .lead { font-size: 1.15rem; line-height: 1.7; color: var(--navy); }

.prose h2 { font-size: 1.3rem; margin: 40px 0 12px; }

.prose p, .prose li { font-size: 0.98rem; }

.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }

.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.prose li::marker { color: var(--gold); }

.prose strong { color: var(--navy); }

.prose a { color: var(--blue); font-weight: 600; }

.legal-table { margin-top: 18px; border-top: 2px solid var(--navy); }

.lt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.lt-head { font-weight: 700; color: var(--navy); }

/* ─── Scroll reveal ──────────────────────────────────────── */

/* Only hidden once JS has confirmed it is running, so content
   is never lost if the script fails to load. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.55s var(--ease) var(--delay, 0ms),
    transform 0.55s var(--ease) var(--delay, 0ms);
}

.js [data-reveal="left"] { transform: translate3d(-30px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(30px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(0.96); }

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Hover lifts need their own transition back once revealed. */
html:not(.js) .rp-grade path, html:not(.js) .rp-sign path { stroke-dashoffset: 0; }


/* Hero entrance on load */
.js .hero [data-hero] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.js.is-loaded .hero [data-hero] {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease) var(--delay, 0ms), transform 0.7s var(--ease) var(--delay, 0ms);
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 1080px) {

}

@media (max-width: 980px) {
  :root { --header-h: 70px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px clamp(20px, 5vw, 48px) 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(15, 45, 94, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }

  .nav-links a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav-links a::after { display: none; }

  .nav-cta { width: 100%; padding: 14px 20px; }

  .site-header.menu-open { background: #fff; box-shadow: 0 1px 0 var(--line); }

  .hero-img { object-position: 78% 46%; }

  .hero-veil {
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.96) 35%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0.9) 80%, rgba(255,255,255,0.95) 100%);
  }


  .hero-grid { grid-template-columns: 1fr; }

  .printer { justify-self: start; }

  .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tt-lesson:nth-child(3) { border-left: 0; }

  .tt-lesson:nth-child(n + 3) { border-top: 1px dashed var(--line); }

  .why-split { grid-template-columns: 1fr; }

  .faq-layout, .contact, .svc-layout { grid-template-columns: 1fr; }

  .faq-layout .section-head { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid > :first-child,
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; padding-bottom: 60px; }

  .hero-actions .btn { flex: 1 1 100%; }

  .paper::before, .pad-flip span::before { left: 10px; }

  .paper .wrap { padding-left: 34px; }

  .tt-grid { grid-template-columns: 1fr; }

  .tt-lesson + .tt-lesson { border-left: 0; border-top: 1px dashed var(--line); }

  .tt-lesson { padding: 16px 16px 20px; }

  .tt-bar, .tt-bell { padding-inline: 18px; }

  .rp-row { grid-template-columns: minmax(0, 1fr) 56px; gap: 4px 12px; }

  .rp-comment { grid-column: 1 / -1; }

  .rp-th { display: none; }

  .form-grid { grid-template-columns: 1fr; }

  .footer-cta .btn { width: 100%; }

  .footer-bottom { flex-direction: column; }

  .to-top { right: 16px; bottom: 16px; }
}

/* ─── Reduced motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal],
  .js .hero [data-hero] { opacity: 1; transform: none; }

  .js .slip { transform: none; }
  .pad-flip { display: none; }
  .mark { animation: none !important; background-size: 100% 56%; }
  .js .paper .section-head, .js .paper .svc { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .js .stamp { opacity: 1; }
  .js .tt-tile { opacity: 1; transform: none; }
  .rp-grade path, .rp-sign path { stroke-dashoffset: 0; }
}
