/* =========================================================
   Succeed in Science — Homepage v1
   ========================================================= */

:root {
  /* Brand (from logo) */
  --purple: #312783;
  --purple-700: #241c66;
  --pink: #E62153;
  --lime: #95C11F;
  --cyan: #54C0D3;
  --yellow: #FAB400;

  /* Surfaces */
  --space: #140C3A;
  --space-2: #1E1352;
  --cream: #FFF8EE;
  --paper: #FFFFFF;
  --ink: #17112F;
  --ink-soft: #4A4566;
  --line: #17112F;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-pop: 6px 6px 0 var(--line);
  --shadow-pop-sm: 4px 4px 0 var(--line);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2.5px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  cursor: pointer; white-space: nowrap;
}
.btn--lg { font-size: 1.1rem; padding: .9em 1.6em; }
.btn--pink { background: var(--pink); color: #fff; box-shadow: var(--shadow-pop-sm); }
.btn--purple { background: var(--purple); color: #fff; box-shadow: var(--shadow-pop-sm); }
.btn--pink:hover, .btn--purple:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn--pink:active, .btn--purple:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--ghost-dark { color: var(--ink); background: transparent; }
.btn--ghost-dark:hover { background: var(--paper); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 238, .92); backdrop-filter: blur(10px); border-bottom: 2.5px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.header__logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { white-space: nowrap; text-decoration: none; font-weight: 500; padding: .45em .75em; border-radius: 999px; transition: background .2s; }
.nav a:not(.btn):hover { background: rgba(49, 39, 131, .08); }
.nav a[aria-current="page"] { background: rgba(149, 193, 31, .35); }
.nav__cta { margin-left: .5rem; padding: .6em 1.15em; }
/* "Ways to learn" dropdown */
.nav__group { position: relative; }
.nav__toggle {
  font: inherit; font-weight: 500; color: inherit; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .45em; white-space: nowrap;
  padding: .45em .75em; border-radius: 999px; transition: background .2s;
}
.nav__toggle:hover, .nav__toggle.is-current { background: rgba(49, 39, 131, .08); }
.nav__chev { width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav__group.is-open .nav__chev { transform: translateY(2px) rotate(-135deg); }
.nav__menu {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 250px; z-index: 5;
  display: grid; padding: 8px; background: var(--paper);
  border: 2.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop-sm);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__menu a:not(.btn) { border-radius: 10px; padding: .6em .9em; }
.nav__group.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1161px) {
  .nav__group:hover .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.burger { display: none; width: 46px; height: 46px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; padding: 10px 9px; box-shadow: 3px 3px 0 var(--line); }
.burger span { display: block; height: 3px; background: var(--ink); border-radius: 3px; margin: 4px 0; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Eyebrow / highlights ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--pink); }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(149,193,31,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(149,193,31,0); } 100% { box-shadow: 0 0 0 0 rgba(149,193,31,0); } }

.hl { position: relative; white-space: normal; background-repeat: no-repeat; background-size: 100% .38em; background-position: 0 88%; }
.hl--lime { background-image: linear-gradient(rgba(149,193,31,.55), rgba(149,193,31,.55)); }
.hl--pink { background-image: linear-gradient(rgba(230,33,83,.3), rgba(230,33,83,.3)); }
.hl--cyan { background-image: linear-gradient(rgba(84,192,211,.5), rgba(84,192,211,.5)); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% 20%, #2C1D7A 0%, transparent 60%),
              radial-gradient(800px 500px at 0% 100%, #3A0E4A 0%, transparent 60%),
              var(--space);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0 clamp(90px, 12vw, 140px);
}
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; margin-bottom: .35em; }
.swap { display: inline-block; position: relative; }
.swap__word { display: inline-block; color: var(--lime); transition: transform .35s cubic-bezier(.5,-0.5,.5,1.5), opacity .25s; }
.swap__word.is-out { transform: translateY(-.4em) rotate(-4deg); opacity: 0; }
.swap__word.is-in { transform: translateY(.4em) rotate(4deg); opacity: 0; }
.squiggle { position: relative; display: inline-block; }
.squiggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M2 8 Q 9 2 16 7 T 30 7 T 44 7 T 58 6' fill='none' stroke='%23E62153' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / auto 100%;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 36em; }
.lead strong { color: #fff; }
.lead--dark { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0; }
.hero__ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; color: rgba(255,255,255,.8); }
.hero__ticks li::before { content: "✓"; color: var(--lime); font-weight: 700; margin-right: .45em; }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.atom { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 40px rgba(106,92,224,.45)); }
.orbit { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2.5; stroke-dasharray: 6 8; }
.atom__nucleus { animation: wobble 4s ease-in-out infinite; transform-origin: 0 0; }
@keyframes wobble { 50% { transform: scale(1.07) rotate(8deg); } }
.electron { filter: drop-shadow(0 0 8px currentColor); }

.sticker {
  position: absolute; font-family: var(--font-display); font-weight: 800;
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--line);
  padding: .35em .75em; border-radius: 14px; box-shadow: var(--shadow-pop-sm);
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  animation: float 6s ease-in-out infinite;
}
.sticker--a { top: 6%; left: 4%; background: var(--yellow); transform: rotate(-8deg); --r: -8deg; }
.sticker--b { top: 12%; right: 0; background: var(--cyan); --r: 6deg; animation-delay: -2s; }
.sticker--c { bottom: 14%; left: 0; background: var(--lime); --r: 5deg; animation-delay: -4s; }
.sticker--d { bottom: 6%; right: 8%; background: var(--pink); color: #fff; --r: -6deg; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) * -1)); } }

.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--cream); }

/* ---------- Elements strip ---------- */
.elements { margin-top: -56px; position: relative; z-index: 2; }
.elements__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.el {
  position: relative; background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop-sm); padding: 12px 14px 14px; min-height: 140px;
  display: grid; grid-template-rows: auto 1fr auto;
  transition: transform .2s cubic-bezier(.3,1.6,.6,1);
}
.el:hover { transform: translateY(-6px) rotate(-1.5deg); }
.el__num { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.el__sym { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; line-height: 1; align-self: center; }
.el__name { font-size: .85rem; line-height: 1.25; font-weight: 500; }
.el--purple { background: #E6E2FF; } .el--purple .el__sym { color: var(--purple); }
.el--pink { background: #FFE1E8; } .el--pink .el__sym { color: var(--pink); }
.el--lime { background: #EEF7D6; } .el--lime .el__sym { color: #5E7C0E; }
.el--cyan { background: #DDF4F8; } .el--cyan .el__sym { color: #16798A; }
.el--yellow { background: #FFF0C7; } .el--yellow .el__sym { color: #A36F00; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p:not(.eyebrow) { font-size: 1.15rem; color: var(--ink-soft); }
.section__head--light, .section__head--light p { color: #fff; }

/* ---------- Subject cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease; transform-style: preserve-3d;
  will-change: transform;
}
.card:hover { box-shadow: 10px 10px 0 var(--line); }
.card__anim { height: 170px; border-bottom: 2.5px solid var(--line); display: grid; place-items: center; padding: 10px; }
.card__anim svg { width: 100%; height: 100%; overflow: visible; }
.card--bio .card__anim { background: var(--lime); }
.card--chem .card__anim { background: var(--pink); }
.card--phys .card__anim { background: var(--cyan); }
.card--maths .card__anim { background: var(--yellow); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--ink-soft); font-size: 1rem; }
.card__level { font-size: .78rem !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink) !important; opacity: .55; margin-bottom: .4em; }
.card h3 { font-size: 1.8rem; }
.card__link { margin-top: auto; font-family: var(--font-display); font-weight: 700; text-decoration: none; color: var(--purple); }
.card__link span { display: inline-block; transition: transform .2s; }
.card__link:hover span, .card:hover .card__link span { transform: translateX(6px); }

/* DNA */
.dna .rung { stroke: rgba(23,17,47,.35); stroke-width: 3; stroke-linecap: round; }
/* Flask */
.flask__glass { fill: rgba(255,255,255,.25); stroke: var(--line); stroke-width: 4; stroke-linejoin: round; }
.flask__rim { stroke: var(--line); stroke-width: 5; stroke-linecap: round; }
.flask__liquid { fill: var(--lime); }
.flask__shine { stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: .7; }
.flask__bubbles circle { fill: #fff; opacity: 0; animation: bubble 2.6s ease-in infinite; transform-box: fill-box; }
@keyframes bubble {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  15% { opacity: .95; }
  100% { transform: translate(var(--dx, 0px), -110px) scale(1.1); opacity: 0; }
}
.card--chem .flask__liquid { animation: slosh 3s ease-in-out infinite; transform-origin: 100px 130px; }
@keyframes slosh { 50% { transform: skewX(-3deg); } }
/* Orbit system */
.os__path { fill: none; stroke: rgba(23,17,47,.35); stroke-width: 2; stroke-dasharray: 4 6; }
.os__sun { fill: var(--yellow); stroke: var(--line); stroke-width: 3; }
.os__p1 circle, .os__p2 circle { stroke: var(--line); stroke-width: 3; }
/* Graph */
.graph__grid line { stroke: rgba(23,17,47,.12); stroke-width: 1; }
.graph__axis { stroke: var(--line); stroke-width: 3; stroke-linecap: round; fill: none; }
.graph__curve { fill: none; stroke: var(--purple); stroke-width: 5; stroke-linecap: round; }
.graph__dot { fill: var(--pink); stroke: var(--line); stroke-width: 2.5; }

/* ---------- Ways ---------- */
.ways { background: var(--paper); border-top: 2.5px solid var(--line); border-bottom: 2.5px solid var(--line); }
.ways::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(49,39,131,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(49,39,131,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.ways .wrap { position: relative; }
.ways__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ways__grid--3 { grid-template-columns: repeat(3, 1fr); }
.ways__grid--2 { grid-template-columns: repeat(2, 1fr); }
.way {
  background: var(--cream); border: 2.5px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-pop-sm); display: flex; flex-direction: column;
  transition: transform .2s;
}
.way:hover { transform: translateY(-6px); }
.way:nth-child(2) { background: #EEF7D6; }
.way:nth-child(3) { background: #DDF4F8; }
.way:nth-child(4) { background: #FFE1E8; }
.way__icon--emoji { font-size: 2.6rem; line-height: 1; }
.way p { color: var(--ink-soft); }
.way__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--line); display: grid; place-items: center; margin-bottom: 1.2rem; }
.way__icon img { width: 60px; height: 60px; }
.way:hover .way__icon img { animation: spin-wobble .8s ease; }
@keyframes spin-wobble { 30% { transform: rotate(-15deg) scale(1.1); } 60% { transform: rotate(10deg); } }

/* ---------- About ---------- */
.about__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__photo { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.about__frame { border: 2.5px solid var(--line); border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: 10px 10px 0 var(--purple); aspect-ratio: 4/5; background: var(--yellow); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__badge {
  position: absolute; left: -16px; bottom: 36px; background: var(--pink); color: #fff;
  border: 2.5px solid var(--line); border-radius: 16px; padding: 10px 16px; box-shadow: var(--shadow-pop-sm);
  transform: rotate(-5deg); font-family: var(--font-display); line-height: 1.1;
}
.about__badge strong { display: block; font-size: 1.5rem; }
/* Badge on the right, for photos with detail in the bottom-left (e.g. Home Education mug) */
.about__badge--right { left: auto; right: -16px; bottom: 24px; transform: rotate(5deg); }
.about__molecule { position: absolute; right: -24px; top: -20px; width: 110px; animation: spin 18s linear infinite; }
.about__molecule line { stroke: var(--line); stroke-width: 4; }
.about__molecule circle { stroke: var(--line); stroke-width: 3; }
@keyframes spin { to { transform: rotate(360deg); } }
.wave-hand { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.checks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 2.1rem; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: .1em; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--lime); border: 2px solid var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- Steps ---------- */
.steps { padding-top: 0; }
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps__list::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 0;
  border-top: 3px dashed rgba(23,17,47,.3); z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step__num {
  display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  border: 2.5px solid var(--line); box-shadow: var(--shadow-pop-sm); background: var(--yellow);
}
.step:nth-child(2) .step__num { background: var(--cyan); }
.step:nth-child(3) .step__num { background: var(--lime); }
.step p { color: var(--ink-soft); max-width: 22em; margin: 0 auto; }

/* ---------- Reviews ---------- */
.reviews { background: var(--space); color: #fff; overflow: hidden; }
.reviews .wrap { position: relative; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start; margin: 0; background: var(--paper); color: var(--ink);
  border: 2.5px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 6px 6px 0 rgba(255,255,255,.25);
  display: flex; flex-direction: column; position: relative;
}
.review blockquote { margin: 1rem 0 1.2rem; font-size: 1.05rem; flex: 1; }
.review figcaption { font-family: var(--font-display); font-weight: 700; }
.review__result { align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: .85rem; padding: .3em .8em; border-radius: 999px; border: 2px solid var(--line); }
.review--pink .review__result { background: var(--pink); color: #fff; }
.review--lime .review__result { background: var(--lime); }
.review--yellow .review__result { background: var(--yellow); }
.review--cyan .review__result { background: var(--cyan); }
.review--purple .review__result { background: var(--purple); color: #fff; }
.reviews__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.reviews__google { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.reviews__write { color: rgba(255,255,255,.8); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.reviews__write:hover { color: var(--lime); }
.g-mark { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #fff; color: var(--purple); font-weight: 800; font-size: .9em; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid #fff; background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; transition: background .2s, color .2s; }
.round-btn:hover { background: #fff; color: var(--space); }

.stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }

/* ---------- Facts ---------- */
.facts__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.facts__copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.15rem; }
.fact {
  font: inherit; text-align: left; cursor: pointer; width: 100%; min-height: 230px;
  background: var(--purple); color: #fff; border: 2.5px solid var(--line); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--pink); padding: 30px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s; perspective: 800px;
}
.fact:hover { transform: rotate(-1deg) translateY(-3px); }
.fact.is-flipping { animation: flip .5s ease; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.fact__subject { align-self: flex-start; background: var(--lime); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; padding: .3em .8em; border-radius: 999px; border: 2px solid var(--line); }
.fact__text { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.2; flex: 1; }
.fact__hint { font-size: .9rem; opacity: .75; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 500px at 85% 40%, #3B2A9E 0%, transparent 60%), var(--space);
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 2.5px solid var(--line);
}
.cta__inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 2rem; }
.cta h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.cta p { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 34em; }
.cta__small { font-size: .95rem !important; }
.cta__small strong { color: var(--yellow); }
.cta__visual { position: relative; min-height: 420px; }
.planet {
  position: absolute; right: 0; bottom: 0; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF6B8E, var(--pink) 45%, #8A0F33 100%);
  box-shadow: inset -20px -20px 40px rgba(0,0,0,.35);
}
.planet::after {
  content: ""; position: absolute; left: -50px; right: -50px; top: 45%; height: 40px; border-radius: 50%;
  border: 6px solid var(--lime); transform: rotate(-18deg); border-top-color: transparent;
}
.astronaut { position: absolute; left: 4%; top: 0; width: min(230px, 58%); animation: drift 9s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(18px, -22px) rotate(6deg); } }

/* ---------- Footer ---------- */
.footer { background: #0D0827; color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: .9em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: .9rem; }
.footer__base p { margin: 0; }
.footer__linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__linkbtn:hover { color: var(--lime); }

/* ---------- Cookie consent banner ---------- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 60; width: min(420px, calc(100vw - 32px));
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 22px 22px 20px;
  opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.cookie.is-in { opacity: 1; transform: none; }
.cookie[hidden] { display: none; }
.cookie__title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.15; margin: 0 0 .4em; }
.cookie__text { font-size: .95rem; color: var(--ink-soft); margin: 0 0 1em; }
.cookie__text a { color: var(--purple); font-weight: 700; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__btns .btn { flex: 1 1 auto; }
@media (max-width: 640px) {
  .cookie { left: 16px; right: 16px; bottom: 16px; width: auto; padding: 18px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards, .ways__grid, .ways__grid--3 { grid-template-columns: repeat(2, 1fr); }
  .elements__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1160px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; z-index: -1; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 2.5px solid var(--line); padding: 12px var(--gutter) 20px;
    transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .8em .4em; border-bottom: 1px solid rgba(23,17,47,.1); border-radius: 0; font-size: 1.1rem; }
  .nav__cta { margin: 14px 0 0; }
  .burger { display: block; }
  .nav { max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav__toggle { width: 100%; justify-content: space-between; padding: .8em .4em; border-radius: 0; border-bottom: 1px solid rgba(23,17,47,.1); font-size: 1.1rem; }
  .nav__toggle:hover { background: none; }
  .nav__menu { position: static; display: none; min-width: 0; padding: 4px 0 8px 1rem; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav__menu::before { display: none; }
  .nav__group.is-open .nav__menu { display: grid; transform: none; }
  .nav__menu a:not(.btn) { font-size: 1rem; }
}
@media (max-width: 980px) {
  .hero__inner, .about__inner, .facts__inner, .cta__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 380px; order: -1; }
  .cta__visual { min-height: 300px; max-width: 420px; }
}
@media (max-width: 640px) {
  .header__inner { height: 68px; }
  .header__logo img { height: 40px; }
  .hero__visual { max-width: 280px; }
  .elements { margin-top: -40px; }
  .elements__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .el:last-child { grid-column: span 2; }
  .el { min-height: 120px; }
  .el__sym { font-size: 2.2rem; }
  .cards, .ways__grid, .ways__grid--3, .ways__grid--2 { grid-template-columns: 1fr; }
  .reviews__google { margin-left: 0; }
  .steps__list { grid-template-columns: 1fr; gap: 36px; }
  .steps__list::before { display: none; }
  .reviews__track { grid-auto-columns: 85%; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; white-space: normal; }
  .about__badge { left: 0; }
  .about__badge--right { left: auto; right: 0; }
  .about__molecule { right: 0; width: 80px; }
  .planet { width: 180px; height: 180px; }
}

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


/* =========================================================
   Inner pages (Home Education, Alternative Provision, International)
   ========================================================= */
.hero--page { padding-top: clamp(36px, 6vw, 72px); }
.hero--page h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.crumbs { font-size: .9rem; color: rgba(255,255,255,.65); margin-bottom: 1.2rem; }
.crumbs a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.crumbs a:hover { color: var(--lime); }
.c-lime { color: var(--lime); } .c-pink { color: #FF5C85; } .c-cyan { color: var(--cyan); } .c-yellow { color: var(--yellow); }

.prose p { color: var(--ink-soft); }
.prose p.lead--dark { color: var(--ink); }

/* Exam-board chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: var(--font-display); font-weight: 700; padding: .5em 1.1em; border-radius: 999px;
  border: 2.5px solid var(--line); background: var(--paper); box-shadow: 3px 3px 0 var(--line);
  transition: transform .2s cubic-bezier(.3,1.6,.6,1);
}
.chip:hover { transform: translateY(-4px) rotate(-2deg); }
.chip:nth-child(5n+1) { background: #EEF7D6; } .chip:nth-child(5n+2) { background: #FFE1E8; }
.chip:nth-child(5n+3) { background: #DDF4F8; } .chip:nth-child(5n+4) { background: #FFF0C7; }
.chip:nth-child(5n+5) { background: #E6E2FF; }

/* Note / callout */
.callout {
  margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: #FFF0C7;
  border: 2.5px dashed var(--line); display: flex; gap: 16px; align-items: flex-start;
}
.callout__icon { font-size: 1.8rem; line-height: 1; }
.callout p { margin: 0; color: var(--ink); }

/* Two-up goal cards (home ed) */
.goal { position: relative; }
.goal__tag { display: inline-block; align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: .3em .8em; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); margin-bottom: 1rem; }

/* ---------- Curiosity web (Home Education hero) ---------- */
.cweb-wrap { display: grid; justify-items: center; gap: 18px; }
.cweb { position: relative; width: 100%; aspect-ratio: 1; }
.cweb__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cweb__ring { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; stroke-dasharray: 3 9; animation: spin 40s linear infinite; transform-origin: 200px 200px; }
.cweb__line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.cweb__core {
  position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--paper); color: var(--ink); border: 3px solid var(--line);
  box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 60px rgba(149,193,31,.45);
  display: grid; place-content: center; text-align: center; gap: 2px; padding: 8px;
  animation: corePulse 3s ease-in-out infinite;
}
@keyframes corePulse { 50% { box-shadow: 0 0 0 18px rgba(255,255,255,.04), 0 0 80px rgba(149,193,31,.6); } }
.cweb__label { font-size: clamp(.6rem, 1.2vw, .72rem); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .6; }
.cweb__emoji { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.cweb__interest { font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 1.05; }
.cweb__node {
  position: absolute; width: 40%; padding: 10px 12px; border-radius: 16px; color: var(--ink);
  background: var(--c, var(--paper)); border: 2.5px solid var(--line); box-shadow: 4px 4px 0 rgba(0,0,0,.45);
  display: grid; gap: 2px; transition: transform .45s cubic-bezier(.3,1.6,.6,1), opacity .3s;
}
.cweb__node b { font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.cweb__node span { font-family: var(--font-display); font-weight: 700; font-size: clamp(.85rem, 1.6vw, 1.02rem); line-height: 1.15; }
.cweb__node.n1 { left: 0; top: 4%; --c: var(--lime); transform: rotate(-3deg); }
.cweb__node.n2 { right: 0; top: 4%; --c: #FF8FAB; transform: rotate(3deg); }
.cweb__node.n3 { right: 0; bottom: 4%; --c: var(--cyan); transform: rotate(-2deg); }
.cweb__node.n4 { left: 0; bottom: 4%; --c: var(--yellow); transform: rotate(2deg); }
.cweb.is-swapping .cweb__node { transform: scale(.6); opacity: 0; }
.cweb.is-swapping .cweb__core > * { opacity: 0; }
.cweb__core > * { transition: opacity .25s; }
.cweb__btn { font: inherit; font-family: var(--font-display); font-weight: 700; cursor: pointer; }

/* ---------- Route map (Alternative Provision hero) ---------- */
.route { width: 100%; height: 100%; overflow: visible; }
.route__track { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 2 16; }
.route__progress { fill: none; stroke: var(--lime); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(149,193,31,.7)); }
.route__stop circle { fill: var(--space); stroke: rgba(255,255,255,.55); stroke-width: 4; transition: fill .3s, stroke .3s; }
.route__stop text { fill: rgba(255,255,255,.7); font-family: var(--font-display); font-weight: 700; font-size: 17px; transition: fill .3s; }
.route__stop.is-hit circle { fill: var(--c, var(--lime)); stroke: #fff; }
.route__stop.is-hit text { fill: #fff; }
.route__stop .route__pop { transform-box: fill-box; transform-origin: center; }
.route__stop.is-hit .route__pop { animation: pop .5s cubic-bezier(.3,1.8,.6,1); }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.route__rocket { font-size: 34px; }
.route__burst circle { fill: var(--yellow); opacity: 0; }
.route__burst.is-on circle { animation: burst .9s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(.4); } }

/* ---------- World map (International hero) ---------- */
.hero--map .hero__inner { grid-template-columns: 1fr; }
.hero--map .hero__copy { max-width: 820px; }
.worldmap { position: relative; margin-top: clamp(16px, 3vw, 36px); }
@media (max-width: 980px) { .clocks { grid-template-columns: repeat(3, 1fr); } }
.worldmap__frame {
  position: relative; border: 2.5px solid rgba(255,255,255,.18); border-radius: var(--radius);
  background: radial-gradient(70% 90% at 50% 30%, rgba(84,192,211,.14), transparent 70%), #1A1048;
  padding: clamp(8px, 2vw, 24px); overflow: hidden;
}
.worldmap__svg { width: 100%; height: auto; overflow: visible; }
.wm__arc { fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; opacity: 0; transition: opacity .6s, stroke .6s; }
.wm__arc.is-done { opacity: .35; stroke: #8E80FF; }
.wm__arc.is-active { opacity: 1; stroke: var(--lime); filter: drop-shadow(0 0 6px rgba(149,193,31,.8)); }
.wm__comet { fill: #fff; filter: drop-shadow(0 0 10px #fff); }
.wm__pin circle.wm__dot { fill: var(--pink); stroke: #fff; stroke-width: 4; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .4s cubic-bezier(.3,1.8,.6,1); }
.wm__pin.is-hit circle.wm__dot { transform: scale(1); }
.wm__pin.is-active circle.wm__dot { fill: var(--lime); }
.wm__ripple { fill: none; stroke: var(--lime); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.wm__pin.is-active .wm__ripple { animation: ripple 1.6s ease-out infinite; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(3); } }
.wm__label { opacity: 0; transition: opacity .3s; pointer-events: none; }
.wm__pin.is-active .wm__label { opacity: 1; }
.wm__label rect { fill: var(--paper); stroke: var(--line); stroke-width: 3; }
.wm__label text { font-family: var(--font-display); font-weight: 800; font-size: 26px; fill: var(--ink); }
.wm__home circle { fill: var(--yellow); stroke: #fff; stroke-width: 4; }
.wm__home .wm__halo { fill: none; stroke: var(--yellow); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ripple 2.4s ease-out infinite; }
.wm__home .wm__halo:nth-of-type(2) { animation-delay: -1.2s; }
.wm__home text { font-family: var(--font-display); font-weight: 800; font-size: 28px; fill: var(--yellow); }
.worldmap__note { margin: 12px 4px 0; font-size: .9rem; color: rgba(255,255,255,.6); }

.clocks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.clock {
  font: inherit; width: 100%; text-align: left; cursor: pointer; color: #fff;
  background: #1E1352; border: 2px solid rgba(255,255,255,.2); border-radius: 14px;
  padding: 10px 14px; display: grid; gap: 0; transition: background .2s, border-color .2s, transform .2s;
}
.clock:hover { background: #2A1D6B; }
.clock.is-active { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: translateY(-3px); }
.clock__city { font-size: .85rem; opacity: .85; }
.clock__time { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.clock__diff { font-size: .78rem; opacity: .75; }
.clock--home { border-color: var(--yellow); }

@media (max-width: 980px) {
  .hero--page .hero__visual { max-width: 420px; order: 0; margin-top: 8px; }
}
@media (max-width: 640px) {
  .wm__label { display: none; }
  .clocks { grid-template-columns: repeat(2, 1fr); }
  .callout { flex-direction: column; gap: 8px; }
  .cweb__node { padding: 8px 9px; border-radius: 12px; }
  .cweb__node b { font-size: .66rem; }
  .hero--page .hero__visual { max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .cweb__line, .cweb__ring, .cweb__core { animation: none !important; }
}

/* Inner-page layout helpers */
.hero__visual--auto { aspect-ratio: auto; }
.steps.steps--padded { padding-top: clamp(64px, 9vw, 120px); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.panel { background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: clamp(22px, 3vw, 32px); }
.panel .checks { margin-top: 0; margin-bottom: 1.4rem; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq .section__head a { color: var(--purple); font-weight: 700; }
.faq__list { display: grid; gap: 14px; }
.faq__item { background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop-sm); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--lime);
  display: grid; place-items: center; font-size: 1.2rem; transition: transform .25s, background .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--yellow); }
.faq__item p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); }
@media (max-width: 980px) { .faq__inner { grid-template-columns: 1fr; } }
.footer__credit a { color: #fff; font-weight: 700; }

/* Booking page (book.html): Calendly inline widget */
.hero--book .hero__inner { grid-template-columns: 1fr; }
.hero--book .hero__copy { max-width: 820px; }
.booking { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.booking__copy .checks { margin-bottom: 1.8rem; }
.booking__alt { background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop-sm); padding: 16px 20px; }
.booking__alt p { margin: 0; color: var(--ink); }
.booking__alt p + p { margin-top: .3rem; color: var(--ink-soft); }
.booking__alt a { color: var(--purple); font-weight: 700; }
.booking__cal { background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); overflow: hidden; min-width: 0; }
.booking__cal .calendly-inline-widget { min-width: 300px; height: 720px; }
.booking__help, .booking__fallback { margin: 0; padding: 12px 20px; border-top: 2px dashed rgba(23,17,47,.18); font-size: .92rem; color: var(--ink-soft); text-align: center; }
.booking__help a, .booking__fallback a { color: var(--purple); font-weight: 700; }
@media (max-width: 980px) {
  .booking { grid-template-columns: 1fr; }
  .booking__cal { order: -1; } /* calendar first on smaller screens */
}
@media (max-width: 640px) {
  .booking__cal { box-shadow: var(--shadow-pop-sm); }
  .booking__cal .calendly-inline-widget { height: 900px; }
}

/* ---------- Video call (Online Tuition hero) ---------- */
.call { width: 100%; max-width: 520px; background: var(--paper); color: var(--ink); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 8px 8px 0 rgba(0,0,0,.45); overflow: hidden; transform: rotate(1.5deg); }
.call__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--space-2); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .85rem; }
.call__live { display: inline-flex; align-items: center; gap: 6px; background: var(--pink); padding: 2px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.call__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.call__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.call__timer { font-variant-numeric: tabular-nums; opacity: .8; }
.call__stage { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px; background: #FDFBF5; background-image: radial-gradient(rgba(23,17,47,.08) 1px, transparent 1px); background-size: 16px 16px; }
.board { width: 100%; height: auto; overflow: visible; }
.board__scene { opacity: 0; transition: opacity .35s; }
.board__scene.is-on { opacity: 1; }
.ink { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 0); stroke-dashoffset: var(--len, 0); }
.board__scene.is-on .ink { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s ease-in-out var(--d, 0s); }
.ink--pink { stroke: var(--pink); } .ink--lime { stroke: #6E9A0C; } .ink--cyan { stroke: #2A9DB2; } .ink--soft { stroke: rgba(23,17,47,.35); stroke-width: 2.5; }
.ink--fill { fill: currentColor; fill-opacity: 0; }
.board__scene.is-on .ink--fill { fill-opacity: 1; transition: stroke-dashoffset 1.1s ease-in-out var(--d, 0s), fill-opacity .4s ease var(--d, 0s); }
.ink--pink.ink--fill { color: var(--pink); } .ink--cyan.ink--fill { color: #2A9DB2; }
.board__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; fill: var(--ink); opacity: 0; }
.board__label--big { font-size: 22px; font-weight: 800; }
.board__scene.is-on .board__label { opacity: 1; transition: opacity .4s var(--d, 1.2s); }
.call__tiles { display: grid; gap: 10px; align-content: start; width: 92px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 12px; border: 2.5px solid var(--line); overflow: hidden; background: var(--cyan); display: grid; place-items: center; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile span:last-child { position: absolute; left: 4px; bottom: 4px; background: rgba(23,17,47,.75); color: #fff; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.tile--tutor { box-shadow: 0 0 0 3px var(--lime); }
.tile--you { background: var(--yellow); }
.tile__emoji { font-size: 2.2rem; line-height: 1; }
.call__chat { margin: 0; padding: 0 14px 12px; background: #FDFBF5; min-height: 46px; display: flex; justify-content: flex-end; }
.call__bubble { display: inline-block; max-width: 85%; background: var(--purple); color: #fff; padding: 8px 14px; border-radius: 16px 16px 4px 16px; font-weight: 500; font-size: .92rem; transition: transform .35s cubic-bezier(.3,1.6,.6,1), opacity .25s; transform-origin: bottom right; }
.call.is-swapping .call__bubble { transform: scale(.4); opacity: 0; }
.call.is-swapping .call__title { opacity: 0; }
.call__controls { display: flex; justify-content: center; gap: 12px; padding: 10px; border-top: 2px solid rgba(23,17,47,.12); }
.call__controls span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #EEE9F8; font-size: 1.05rem; }
.call__controls .call__end { background: var(--pink); }
.goal__note { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--purple); }
@media (max-width: 640px) {
  .call { transform: none; }
  .call__stage { gap: 8px; padding: 10px; }
  .call__tiles { width: 58px; gap: 6px; }
  .tile__emoji { font-size: 1.6rem; }
  .board__label { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .call__live::before { animation: none; }
  .ink { stroke-dasharray: none; stroke-dashoffset: 0; }
  .board__label { opacity: 1; }
}

/* Legal pages (privacy.html): contents sidebar + readable policy column */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal__toc { position: sticky; top: 110px; background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop-sm); padding: 18px 20px; }
.legal__toc-title { font-family: var(--font-display); font-weight: 800; margin: 0 0 .5rem; }
.legal__toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .95rem; }
.legal__toc a { color: var(--ink-soft); text-decoration: none; }
.legal__toc a:hover { color: var(--purple); text-decoration: underline; }
.legal__body { max-width: 780px; min-width: 0; }
.legal__body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.2em 0 .6em; scroll-margin-top: 110px; }
.legal__body h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
.legal__body p, .legal__body li { color: var(--ink-soft); }
.legal__body ul:not(.checks) { padding-left: 1.2rem; margin: 0 0 1em; display: grid; gap: .4rem; }
.legal__body a { color: var(--purple); font-weight: 700; }
.legal__body strong { color: var(--ink); }
.legal__body code { font-size: .88em; background: rgba(49,39,131,.08); padding: .1em .35em; border-radius: 6px; overflow-wrap: anywhere; }
.legal__summary { margin-bottom: 1rem; }
.legal__summary .legal__summary-title { margin: 0 0 .2em; font-size: 1.5rem; }
.legal__summary .checks { margin-bottom: 0; }
.legal__summary .checks li { color: var(--ink); }
.legal__cta { margin: 1.4rem 0 0; }
.table-wrap { background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop-sm); overflow-x: auto; margin: 1rem 0 1.4rem; }
.legal__table code { white-space: nowrap; }
.legal__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1.5px solid rgba(23,17,47,.12); }
.legal__table th { font-family: var(--font-display); font-weight: 700; background: var(--cream); color: var(--ink); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table td { color: var(--ink-soft); }
@media (max-width: 980px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}
@media (max-width: 640px) {
  .legal__table thead { display: none; }
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100%; }
  .legal__table tr { padding: 10px 0; border-bottom: 1.5px solid rgba(23,17,47,.12); }
  .legal__table tr:last-child { border-bottom: 0; }
  .legal__table td { border: 0; padding: 4px 16px; }
  .legal__table td::before { content: attr(data-label); display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: .85rem; }
}

/* Contact page (contact.html): ways to get in touch + form */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 12px; }
.contact__card {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-pop-sm);
  transition: transform .15s ease, box-shadow .15s ease; overflow-wrap: anywhere;
}
.contact__card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.contact__card strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.contact__icon {
  flex: 0 0 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--line); display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 800; color: var(--ink);
}
.contact__icon--pink { background: #FF9DB5; } .contact__icon--cyan { background: var(--cyan); } .contact__icon--yellow { background: var(--yellow); }
.contact__form-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .6em; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 700; }
.field__opt { font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 2px solid var(--line); border-radius: 12px; padding: .7em .9em;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; background: var(--paper); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__note { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.contact__note a { color: var(--purple); font-weight: 700; }
.contact__submit .btn { width: 100%; }
.contact__submit .btn:disabled { opacity: .7; cursor: wait; }
.contact__status { margin: 0; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--line); font-weight: 700; }
.contact__status.is-ok { background: #E3F2C4; }
.contact__status.is-error { background: #FFD6E0; }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }
