/* Sessions landing — Stage 1. Soft Geometric Editorial direction. */
:root {
  --navy: #17263a;
  --blue: #315c87;
  --blue-muted: #4f6f91;
  --blue-soft: #80a8d4;
  --terracotta: #c56d52;
  --sand: #d7b878;
  --ivory: #f7f5f1;
  --ivory-deep: #efebe3;
  --card: #ffffff;
  --text: #17263a;
  --text-2: #445264;
  --text-3: #5f6b79;
  --line: #ddd8cf;
  --leaf: 0 18px 0 18px;
  --leaf-sm: 0 10px 0 10px;
  --shadow: 0 30px 60px -40px rgba(23, 38, 58, .45), 0 2px 6px rgba(23, 38, 58, .06);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", var(--sans);
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--navy); }
p { margin: 0; }
.headline-accent { color: var(--blue); }
.pilot .headline-accent { color: var(--blue-soft); }
.pilot .headline-accent .headline-white { color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

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

/* Buttons — leaf radius echoes the product's button shape */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--leaf-sm); border: 1px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-secondary { background: transparent; color: var(--navy); border-color: color-mix(in srgb, var(--navy) 28%, transparent); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); white-space: normal; text-align: center; cursor: default; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); border-color: var(--navy); color: var(--navy); }
.btn-outline:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.btn-outline[aria-disabled=true] { cursor: default; }
.link-quiet { font-size: 14px; font-weight: 500; color: var(--text-3); cursor: default; }
.link-quiet.on-dark { color: rgba(255, 255, 255, .72); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand img { height: 18px; width: auto; }
.brand .brand-icon { height: 38px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 18px; }

/* Replaceable artwork: positioned and scaled here, never baked into screenshots */
.art { position: absolute; height: auto; pointer-events: none; user-select: none; z-index: 0; }

/* Screenshot crop: --x/--y/--w/--h crop box and --iw image width, all in image pixels */
.shot { position: relative; overflow: hidden; aspect-ratio: var(--w) / var(--h); background: var(--ivory); }
.shot img {
  position: absolute; max-width: none; height: auto;
  width: calc(var(--iw) / var(--w) * 100%);
  left: calc(var(--x) / var(--w) * -100%);
  top: calc(var(--y) / var(--h) * -100%);
}
.frame { margin: 0; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Hero */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 24px; }
/* Teacher and learner at a desk: anchored bottom-left of Section 2, bleeding off the left edge. The text sits above the desk line. */
.begins-scene {
  position: absolute; z-index: 0; left: var(--begins-left); top: calc(var(--begins-lift) * -1); width: var(--begins-w); height: auto; pointer-events: none; user-select: none;
  /* Fully opaque over the two people, easing to nothing under the copy so the text stays easy to read. */
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 52%, rgba(0, 0, 0, .35) 68%, transparent 84%);
  mask-image: linear-gradient(to right, #000 0, #000 52%, rgba(0, 0, 0, .35) 68%, transparent 84%);
}
.journey > .wrap { position: relative; z-index: 1; }
/* Background artwork: fades in from the left (text side) and out before the hero's bottom edge */
.hero-art {
  width: min(78vw, 1240px); max-width: none; right: 0; top: 50%; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent 8%, #000 34%), linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 8%, #000 34%), linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 96%);
  mask-composite: intersect;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 4vw, 64px); align-items: center; z-index: 1; }
/* Floating iPad: transparent PNG, already tilted. --parallax is set by the scroll script in index.html */
.hero-copy { position: relative; z-index: 2; }
/* Desktop: the lede wraps in a narrower measure so it stays clear of the panels. */
@media (min-width: 961px) { .hero .lede { max-width: 19em; } }
.hero-ipad { isolation: isolate; width: min(216%, 1198px); margin-left: auto; margin-right: 0; position: relative; left: calc(clamp(-167px, calc((1100px - 100vw) * 1.2), 0px) - 330px); aspect-ratio: 1 / 1; }
/* Three separate UI panels laid out on a square canvas; each drifts at its own rate (--parallax is set by the scroll script in index.html). */
.hero-ipad .panel { position: absolute; height: auto; transform: translate3d(0, calc(var(--parallax, 0px) * var(--panel-speed, 1)), 0); will-change: transform; filter: drop-shadow(0 22px 32px rgba(27, 42, 65, .20)) drop-shadow(0 3px 8px rgba(27, 42, 65, .12)); }
.hero-ipad .panel-side { left: 40.5%; margin-left: 35%; top: 1.6%; width: 28.9%; --panel-speed: 1.2; z-index: 0; } /* tallest panel, sits behind the rest and sinks on scroll */
.hero-ipad .panel-summary { left: 1.6%; margin-left: -80px; margin-top: 20px; top: 1.6%; width: 72.3%; --panel-speed: .5; z-index: 1; }
.hero-ipad .panel-upcoming { left: 26.2%; margin-left: 40px; margin-top: 68px; top: 14.6%; width: 71.8%; --panel-speed: 1; z-index: 4; }
.hero-ipad .panel-schedule { left: 21.4%; margin-left: 28px; margin-top: 20px; top: 46.6%; width: 72.3%; --panel-speed: -1.2; z-index: 3; } /* negative: rises while the others sink */
@media (prefers-reduced-motion: reduce) { .hero-ipad .panel { transform: none; will-change: auto; } }
.hero h1 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -0.03em; }
.hero h1 .h1-sub { font-weight: 500; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); margin-top: 24px; max-width: 34em; text-wrap: balance; }
.hero-visual { margin: 0 calc(var(--gutter) * -1) 0 0; }
.device {
  padding: clamp(8px, 1.1vw, 14px); border-radius: 26px;
  background: var(--navy); box-shadow: var(--shadow);
  transform: perspective(2000px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
.device-flat { transform: none; border-radius: 22px; }
.device .shot { border-radius: 14px; }
.hero-visual figcaption, .feature-visual figcaption { font-size: 14px; color: var(--text-3); margin-top: 18px; text-align: center; }

/* Editorial scenes: replaceable PNGs, cropped by CSS only */
.scene { overflow: hidden; border-radius: 0 48px 0 48px; background: var(--ivory-deep); }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.journey-scene { aspect-ratio: 16 / 10; }
.journey-scene img { object-position: 80% 50%; }
/* Coaching: a transparent cut-out that sits straight on the page, centred */
.capture-scene { width: clamp(320px, 56vw, 700px); margin: 0 auto clamp(8px, 2vw, 24px); aspect-ratio: 1775 / 1536; }
.capture-scene img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
/* Capture, audio, materials, notes and insight icons drifting in the open space beside the coaching image */
.capture-icons { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 100%; pointer-events: none; }
/* Five capture types, all one size, orbiting the pair at the table: live and audio on the left, materials and notes above, insight where it lands on the right */
.capture-icon { position: absolute; width: clamp(104px, 12.5vw, 168px); height: auto; translate: -50% -50%; animation: capture-float 7s ease-in-out infinite; animation-delay: calc(var(--n) * -1.4s); }
.capture-icon:nth-child(1) { left: 12%; top: 68%; width: clamp(146px, 17.5vw, 235px); }
.capture-icon:nth-child(2) { left: 19%; top: 22%; width: clamp(136px, 16.2vw, 218px); }
.capture-icon:nth-child(3) { left: 50%; top: 8%; width: clamp(129px, 15.4vw, 207px); }
.capture-icon:nth-child(4) { left: 73%; top: 4%; }
.capture-icon:nth-child(5) { left: 90%; top: 38%; width: clamp(130px, 15.6vw, 210px); }
@keyframes capture-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .capture-icon { animation: none; } }
/* Flow lines behind Section 5: full width, centred on the section, blended into the page */
.line-bg-2 { position: absolute; z-index: -1; left: 50%; top: 50%; width: 100vw; max-width: none; height: auto; transform: translate(-50%, -50%); mix-blend-mode: multiply; opacity: .25; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }

/* Journey */
.journey { --begins-left: max(-6%, calc((100% - 1440px) / 2 - 86px)); /* -6% up to 1440px wide, then it moves in with the centred content instead of drifting past the left edge */ --begins-w: min(86vw, 1260px); --begins-lift: 275px; --begins-text-drop: 70px; position: relative; padding: 40px 0 90px; }
/* The scene is ~0.746 as tall as it is wide; keep the section tall enough that it never rises into the hero's buttons. */
.journey-head { min-height: calc(var(--begins-w) * .746 - 130px - var(--begins-lift)); }
/* Tall abstract ribbons: one decorative layer behind the hero, cropped to the hero's height. */
.flow-bg {
  position: absolute; z-index: -1; top: 0; right: 0; width: min(62vw, 880px); height: auto;
  transform: translate3d(0, var(--bg-parallax, 0px), 0); will-change: transform;
  opacity: .5; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 100px, #000 560px, transparent 780px), linear-gradient(to left, #000 0, #000 55%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 100px, #000 560px, transparent 780px), linear-gradient(to left, #000 0, #000 55%, transparent 92%);
  mask-composite: intersect;
}
main { overflow-x: clip; }
.journey-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.journey-head .section-head { margin-bottom: 0; grid-column: 2; padding-left: 80px; position: relative; top: var(--begins-text-drop); }
.journey h2 { text-wrap: balance; white-space: nowrap; } /* two lines on desktop: "…you run." / "And the ones ahead." */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.narrow { max-width: 720px; }
.section-head p:not(.eyebrow) { color: var(--text-2); margin-top: 20px; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
/* Where it begins: one thin line through three moments; no arrows, so no implied workflow */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: color-mix(in srgb, var(--navy) 22%, transparent); }
.steps li { position: relative; padding-top: 40px; }
.step-node { position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--ivory); border: 1.5px solid var(--blue); }
.steps li:nth-child(odd) .step-node { border-color: var(--terracotta); }
.steps li:first-child .step-node { background: var(--blue); }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--text-2); max-width: 22em; }

/* Feature sections */
.feature { position: relative; overflow: hidden; padding: var(--section-y) 0; }
.feature-alt { background: var(--ivory-deep); }
.feature-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; z-index: 1; }
.feature-grid.reverse .feature-copy { order: 2; }
.feature-copy h2 { margin-bottom: 20px; }
.feature-copy > p { color: var(--text-2); text-wrap: pretty; }
.feature-copy > p + p { margin-top: 16px; }
.feature-copy > .closing { margin-top: 24px; font: italic 400 clamp(19px, 1.7vw, 22px)/1.4 var(--serif); color: var(--navy); }
.feature-visual { position: relative; min-width: 0; }
/* Decorative flow lines: centred on the Section 1/2 boundary so it rises into Section 1 and runs on behind Section 2 and 3 (neither section clips them).
   Remove the <img> or set opacity to 0 to switch off. */
.line-bg {
  position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: auto;
  transform: translateY(-50%); mix-blend-mode: multiply; opacity: .85;
  pointer-events: none; user-select: none;
}
/* Notes, diary and reminders artwork sitting behind the calendar screenshot */
/* Panel cluster: six screens in three slots, 3s apart on an 18s loop. A new panel fades in over the one in its slot, which stays solid until it is covered, so the background never shows through. Reduced motion shows the first three, still. */
/* Each slot also drifts on scroll at its own rate (--pc-p, 0 to 1, is set on the section by the script in index.html) and floats very slowly on its own cycle. */
.panel-cluster { position: relative; z-index: 8; width: 100%; aspect-ratio: 1 / 1.15; }
.pc-slot { position: absolute; transform: translate3d(0, calc((var(--pc-p, .5) - .5) * var(--pc-range, 0px)), 0); animation: pc-float var(--pc-float, 24s) ease-in-out infinite alternate; will-change: transform, translate; }
.pc-slot-a { left: 0; top: -9%; width: 76%; aspect-ratio: 1120 / 644; z-index: 1; --pc-range: -260px; --pc-float: 23s; }
.pc-slot-b { left: 34%; top: 16.6%; width: 64%; aspect-ratio: 799 / 742; z-index: 5; --pc-range: 70px; --pc-float: 29s; animation-delay: -11s; }
.pc-slot-c { left: 0; top: 39.5%; width: 30%; aspect-ratio: 304 / 540; z-index: 3; --pc-range: -160px; --pc-float: 19s; animation-delay: -6s; }
.pc-slot-d { left: 0; top: 23%; width: 70%; aspect-ratio: 799 / 178; z-index: 4; --pc-range: -140px; --pc-float: 21s; animation-delay: -3s; }
@keyframes pc-float { from { translate: 0 0; } to { translate: 7px -16px; } }
.pc { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; animation: pc-fade 18s linear infinite; animation-delay: calc((var(--i) - 3) * 3s + 1.5s); will-change: opacity; filter: drop-shadow(0 22px 32px rgba(27, 42, 65, .20)) drop-shadow(0 3px 8px rgba(27, 42, 65, .12)); }
/* The next panel in a slot starts fading in at 50%; this one eases out over the following 12%, so the two overlap and nothing snaps off. */
@keyframes pc-fade { 0% { opacity: 0; } 7% { opacity: 1; } 50% { opacity: 1; } 62%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pc-slot { transform: none; animation: none; will-change: auto; } .pc { animation: none; will-change: auto; } .pc[style*="--i:0"], .pc[style*="--i:1"], .pc[style*="--i:2"] { opacity: 1; } }
.feature-copy { position: relative; z-index: 1; }
/* Desktop: the artwork leaves the left column and settles on the right, fading out toward the copy. */
@media (min-width: 961px) {
  #practical .practical-visual { position: static; }
  /* A shorter section: no padding, and the cluster's margins are negative so its panels spill into the sections above and below. */
  #practical { padding-block: 0; }
  #practical .panel-cluster { width: 172%; margin: 23% 0 -58% -37%; }
  #practical .feature-copy::before { content: ""; position: absolute; z-index: -1; inset: -50px -110px -50px -50px; pointer-events: none; background: radial-gradient(ellipse closest-side, color-mix(in srgb, var(--ivory-deep) 94%, transparent) 68%, transparent 100%); } /* soft ivory pool behind the copy, above the artwork */
  #practical .notes-scene { left: auto; right: -37%; top: 46%; bottom: auto; width: min(39vw, 780px); transform: translate3d(0, calc(-50% + (var(--pc-p, .5) - .5) * -50px), 0); -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 960px) { #practical .panel-cluster { width: min(100%, 560px); margin: clamp(24px, 6vw, 48px) auto 0; } .pc-slot-d { left: 2%; top: 34%; width: 60%; } }
.notes-scene { position: absolute; z-index: 0; left: calc(50% + 50px); top: calc(50% + 150px); width: 125%; max-width: none; height: auto; transform: translate(-50%, -50%); pointer-events: none; user-select: none;
  /* Fades out toward the copy so the artwork never competes with the text */
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 60%, transparent 90%); mask-image: linear-gradient(to right, #000 0, #000 60%, transparent 90%); }
#people { overflow: visible; z-index: 3; } /* lets the group scene run over the edge into the next section */
#practical { overflow: visible; margin-top: 100px; } /* the iPad rises over the section above; the section sits lower for breathing room */
#practical .feature-grid { z-index: auto; } /* no stacking context here, so the iPad (z 8) can sit above the group scene in the section above */
#practical .feature-copy { position: relative; z-index: 3; } /* copy sits in front of the artwork */
/* "Everyone learns differently": soft scene first, portrait proof layered in front of it */
.learn-visual { min-height: clamp(560px, calc(66vw + 100px), 1060px); }
#people .feature-copy h2 { white-space: nowrap; } /* one line at the standard heading size; it may run over the iPad */
#people { margin-top: -120px; } /* tucks Section 3 up under Section 2's whitespace */
#people .feature-copy { padding-right: 56px; position: relative; top: -30px; z-index: 3; } /* copy sits in front of the iPad and the group */
.learn-scene { position: absolute; z-index: 2; top: 490px; right: 88px; width: 150%; max-width: none; height: auto; pointer-events: none; user-select: none; }
.learn-proof { position: absolute; z-index: 1; right: -282px; bottom: -100px; width: min(156%, 983px); margin: 0; }
.learn-proof figcaption { max-width: 22em; margin: -4% auto 0; }
/* Two genuine student-detail screens cross-fade; the pair tilts slightly with scroll (--learn-p set by the script in index.html). */
.learn-ipad {
  position: relative; aspect-ratio: 1160 / 1492;
  transform: perspective(1400px) rotateX(calc((var(--learn-p, .5) - .5) * 26deg)) rotateY(calc((var(--learn-p, .5) - .5) * 16deg));
  will-change: transform;
  /* The device dissolves from mid-height, leaving a quiet area for the group. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 46%, transparent 76%);
  mask-image: linear-gradient(to bottom, #000 0, #000 46%, transparent 76%);
}
.learn-ipad-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.learn-ipad-alt { opacity: 0; animation: learn-ipad-fade 12s ease-in-out infinite; }
@keyframes learn-ipad-fade { 0%, 30% { opacity: 0; } 46%, 80% { opacity: 1; } 96%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .learn-ipad { transform: none; will-change: auto; }
  .learn-ipad-alt { animation: none; opacity: 0; }
}

figure { margin: 0; }
figcaption { font-size: 14px; color: var(--text-3); margin-top: 14px; }
/* Context & Arve: the genuine Before This Session panel, kept narrow */
.arve-visual { max-width: 340px; margin-inline: auto; }
/* Five iPad screens (transcript, files, notes, insights, Arve) dissolve in numbered order over a solid base; the stack tilts slightly with scroll (--arve-p is set by the script in index.html). */
.arve-ipads { position: relative; left: 50%; width: min(211%, 1099px); max-width: none; margin-inline: 0; aspect-ratio: 1455 / 1792; transform: translateX(calc(-50% - 10px)) perspective(1400px) rotateY(calc((var(--arve-p, .5) - .5) * 40deg)); will-change: transform; }
.arve-ipad-img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: arve-ipad-fade 16s ease-in-out infinite; animation-delay: calc(var(--i) * 4s); }
/* Four screens, 4s apart, each shown for 5s so the next dissolves in over it before it drops away */
@keyframes arve-ipad-fade { 0% { opacity: 0; z-index: 2; } 6.25% { opacity: 1; z-index: 2; } 6.26% { opacity: 1; z-index: 1; } 31.25% { opacity: 1; z-index: 1; } 31.26%, 100% { opacity: 0; z-index: 0; } }
@media (prefers-reduced-motion: reduce) { .arve-ipads { transform: translateX(calc(-50% - 10px)); will-change: auto; } .arve-ipad-img { animation: none; } .arve-ipad-img:first-child { opacity: 1; } }

.arcs-art { width: 560px; opacity: .9; }
.arcs-left { left: -280px; top: 40px; }
.arcs-right { right: -260px; top: -120px; }

/* Bigger vision: typography-led until replacement artwork is approved */
.confidence { padding: var(--section-y) 0; }
.confidence-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 48px) clamp(32px, 6vw, 96px); align-items: start;
}
.confidence-text { position: relative; z-index: 3; padding-top: clamp(24px, 4vw, 64px); }
.confidence-text .statement { margin-bottom: clamp(20px, 2.4vw, 32px); }
.confidence-copy > p + p { margin-top: 16px; }
/* Left: the Arve iPad with the supporting teaching scene layered behind and below it */
.confidence-visual { position: relative; order: -1; display: flex; flex-direction: column; align-items: center; }
/* The Arve iPad sits in front of the person at the table */
.confidence-scene { position: relative; z-index: 1; width: min(117%, 766px); max-width: none; height: auto; margin-top: calc(-14% - 100px); margin-bottom: -31%; pointer-events: none; user-select: none; }
.confidence-ipad { --conf-x: 0px; transform: translateX(var(--conf-x)) perspective(1400px) rotateX(calc((var(--conf-p, .5) - .5) * -60deg)); will-change: transform; position: relative; z-index: 2; width: 252%; max-width: none; height: auto; }
.confidence-copy > p { color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); }

/* Pilot */
.pilot { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: var(--section-y) 0; border-radius: var(--leaf); margin: 0 var(--gutter); }
.pilot h2 { color: #fff; max-width: 15em; }
.pilot p:not(.eyebrow) { color: rgba(255, 255, 255, .8); max-width: 36em; margin-top: 20px; }
.pilot-inner { z-index: 1; }
/* Pilot section illustration with the Sessions logo beneath it: right-hand side on desktop, after the content when stacked */
.pilot-aside { position: absolute; z-index: 0; right: clamp(16px, 3vw, 48px); top: 50%; transform: translateY(-50%); width: min(42%, 640px); display: flex; flex-direction: column; align-items: center; gap: clamp(48px, 7vw, 110px); pointer-events: none; user-select: none; }
.pilot-scene { display: block; width: 100%; height: auto; }
/* Icon centred above the logotype at the sketched sizes: icon about 57px, logotype about 190px wide */
.pilot-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.pilot-logo-icon { width: 57px; height: auto; }
.pilot-logo-type { width: 120px; height: auto; }
/* Narrow desktops and iPad landscape: a smaller aside keeps the logo clear of the open form */
@media (min-width: 961px) and (max-width: 1279px) { .pilot-aside { width: 32%; } }
@media (min-width: 961px) and (max-width: 1023px) { .pilot-aside { width: 26%; } }

/* Footer */
.site-footer { padding: 20px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.site-footer p { font-size: 14px; color: var(--text-3); }
.site-footer .fine { margin: 0 auto; text-align: center; }
.site-footer .wrap { max-width: none; } /* full page width, so the centred copyright sits under the middle of the pilot card */

/* iPad landscape / narrow desktop */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .header-inner { gap: 18px; }
  .header-actions .link-quiet { display: none; }
  .steps h3 { font-size: 19px; }
}

/* iPad portrait */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid, .feature-grid, .confidence-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid.reverse .feature-copy { order: 0; }
  .hero-copy { max-width: 640px; }
  .journey h2 { white-space: normal; }
  .flow-bg { right: -26vw; width: 92vw; opacity: .4; }
  .device { transform: none; }
  .hero-visual { margin-right: 0; order: -1; }
  .hero { padding-top: 24px; padding-bottom: 56px; }
  .journey { display: flex; flex-direction: column; padding: 8px 0 56px; }
  .begins-scene { --begins-w: min(94vw, 620px); -webkit-mask-image: none; mask-image: none; position: relative; left: 0; top: auto; bottom: auto; order: -1; width: min(112vw, 900px); max-width: none; margin: -72px 0 24px -6vw; }
  /* Stacked: art sits behind the iPad only, fading in below the copy */
  .hero-art {
    width: 140vw; right: -20vw; top: auto; bottom: 6%; transform: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 75%, transparent 100%);
  }
  .hero-ipad { width: min(100%, 820px); margin-inline: auto; left: 0; }
  /* Stacked layouts (tablet and phone): group, then headline and copy, then the iPad centred under the copy. */
  .learn-visual { display: contents; }
  #people { padding-top: 16px; padding-bottom: 0; }
  .learn-scene { position: relative; order: -1; top: auto; right: auto; z-index: 0; width: min(118vw, 900px); max-width: none; margin: -72px 0 0 -6vw; }
  #people .feature-copy { order: 0; }
  /* The iPad is sized so the device itself fills the screen width; its lower 42% is clipped and dissolves. */
  .learn-proof { --learn-w: min(104vw, 800px); position: relative; order: 1; right: auto; bottom: auto; width: var(--learn-w); max-width: none; justify-self: center; margin: calc(var(--learn-w) * -.05) 0 calc(var(--learn-w) * -.03); }  /* the cut edge meets the next section with no gap */
  .learn-ipad {
    clip-path: inset(0 0 52% 0); margin-bottom: calc(var(--learn-w) * 1.286 * -.52); -webkit-mask-image: none; mask-image: none; /* hard cut at 48% of the device */
    transform: perspective(1400px) rotateX(calc((var(--learn-p, .5) - .5) * 26deg)); /* one axis only; leans back as you scroll down */
  }
  .line-bg { width: 100%; left: 0; top: 0; }
  /* Section 4: the iPad sits inside the page gutters; the artwork behind it may still bleed */
  .allinone { width: 88%; margin: 0 auto; top: 0; }
  #practical { margin-top: 0; }
  .arve-ipads { width: min(88%, 520px); transform: translateX(-50%) perspective(1400px) rotateY(calc((var(--arve-p, .5) - .5) * 40deg)); }
  /* Section 6 stacks: headline and copy first, then the iPad over the teaching scene, inside the page edges */
  .confidence-visual { order: 0; }
  .confidence-scene { width: min(90%, 468px); margin-top: -10%; margin-bottom: -18%; }
  .confidence-ipad { width: 100%; margin-left: 0; }
  .notes-scene { left: 50%; top: 50%; width: 112%; -webkit-mask-image: none; mask-image: none; }
  #people { margin-top: 0; }
  /* Larger headlines on tablet and phone: 34px at 375px, up to 46px on tablet */
  .hero h1, h2, .statement, #people .feature-copy h2 { font-size: clamp(34px, 5.6vw, 46px); }
  #people .feature-copy h2 { white-space: normal; }
  #people .feature-copy { top: 0; }  #people .feature-copy { padding-right: 0; }
  .journey-head { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .journey-head .section-head { grid-column: 1; padding-left: 0; top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
  .steps li { padding: 0 0 28px 48px; }
  .steps li:last-child { padding-bottom: 0; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-actions .link-quiet { display: none; }
  .flow-bg { right: -55vw; width: 150vw; opacity: .22; }
  /* Phones: let the artwork run nearly edge to edge so the iPads and scenes stay legible. */
  /* Section 3 on phones: group, then headline and copy, then the iPad centred under the copy. */
  .learn-scene { width: min(135vw, 640px); margin: -52px 0 0 -17vw; }
  .learn-proof { --learn-w: min(104vw, 560px); }
  .journey { padding-bottom: 56px; }
  .begins-scene { order: -1; width: min(120vw, 640px); max-width: none; margin: -64px 0 16px -4vw; } /* scene first, then the headline; the artwork's empty top edge is pulled up */
  .brand { gap: 8px; }
  .brand img { height: 14px; }
  .brand .brand-icon { height: 30px; }
  .hero-art { width: 190vw; right: -45vw; }
  .hero-ipad { width: min(100%, 480px); margin-inline: auto; left: 0; }
  .scene { border-radius: 0 28px 0 28px; }
  .capture-scene { width: min(88vw, 420px); }
  .capture-icons { position: static; width: auto; display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
  .capture-icon, .capture-icon:nth-child(n) { position: static; translate: none; width: clamp(48px, 13vw, 72px); animation: none; }
  .capture-scene img { object-position: 50% 50%; }
  .steps li { padding-left: 40px; }
  .arcs-art { width: 380px; }
  .arcs-left { left: -240px; }
  .pilot { margin: 0; border-radius: 0; }
  .btn { width: 100%; }
  .site-header .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) { .learn-ipad { transform: none; } }

/* Sections 5 to 6: close the gap left by the transparent margins around the iPad and the person (desktop) */
@media (min-width: 961px) {
  #capture { padding-bottom: 24px; } /* room for the iPad's lower edge, which the -36% margin below pushes past the section */
  .arve-ipads { margin-bottom: -42%; }
  .confidence { padding-top: 24px; padding-bottom: 24px; }
  .confidence-scene { top: 80px; } /* the man at the table sits 80px lower; position offset only, so the iPad does not move */
  .confidence-ipad { margin-top: -30px; margin-bottom: calc(-28% - 200px); } /* centred on the page (--conf-x) and running 200px over the navy section; tilts forward as it scrolls (--conf-p), both set by the script in index.html */
}
/* Section 5 on narrow desktops and iPad landscape: at 211% the iPad spills over the copy column, so keep its visible edge clear of the text */
@media (min-width: 961px) and (max-width: 1279px) {
  .arve-ipads { width: min(182%, 1099px); }
}

@media (prefers-reduced-motion: reduce) { .confidence-ipad { will-change: auto; } }

/* Final section: pilot enquiry form (one inline form, opened by "Get in touch" or the header "Register interest") */
.btn-action { cursor: pointer; }
.btn-light.btn-action:hover { background: var(--ivory); }
.pilot .pilot-inner > p + p { margin-top: 16px; }
.pilot-form-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; max-width: 36em; }
.pilot-form-wrap.is-open { grid-template-rows: 1fr; }
.pilot-form-inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear .32s; }
.pilot-form-wrap.is-open .pilot-form-inner { visibility: visible; transition-delay: 0s; }
.pilot-form, .form-thanks { margin-top: 32px; padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--leaf); background: rgba(255, 255, 255, .05); }
.pilot-form h3, .form-thanks h3 { color: #fff; font: 600 clamp(22px, 2.2vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; }
.pilot p.form-lede { margin-top: 8px; color: rgba(255, 255, 255, .8); }
.pilot .form-thanks p { margin-top: 12px; color: rgba(255, 255, 255, .85); }
.form-thanks:focus { outline: none; }
.field { margin-top: 20px; }
.field label { display: block; font-weight: 600; font-size: 15px; color: #fff; margin-bottom: 8px; }
.pilot-form input[type=text], .pilot-form input[type=email], .pilot-form select, .pilot-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3);
  background: #fff; color: var(--navy); font: 400 16px/1.4 var(--sans);
}
.pilot-form textarea { resize: vertical; min-height: 104px; }
/* Name and email side by side where there is room */
@media (min-width: 961px) { .field-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; } }
.pilot-form input:focus-visible, .pilot-form select:focus-visible, .pilot-form textarea:focus-visible, .pilot-form input[type=checkbox]:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.pilot-form [aria-invalid=true] { border-color: #ffb4a2; box-shadow: 0 0 0 1px #ffb4a2; }
.pilot p.field-hint { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.pilot p.field-error { margin-top: 6px; font-size: 14px; color: #ffb4a2; }
.pilot p.field-error:empty { display: none; }
.field-check { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-soft); }
.field-check label { margin: 0; font-weight: 500; }
.field-check .field-error { grid-column: 2; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pilot-form .btn { margin-top: 24px; }
.form-actions { display: flex; justify-content: flex-end; }
.pilot p.form-status { margin-top: 14px; font-size: 15px; color: #fff; }
.pilot p.form-status:empty { display: none; }
.pilot p.form-note { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.pilot .field-check + p.form-note { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { .pilot-form-wrap, .pilot-form-inner { transition: none; } }

@media (max-width: 960px) {
  .pilot-aside { position: relative; right: auto; top: auto; transform: none; width: min(calc(100% - var(--gutter) * 2), 560px); margin: 40px auto 0; gap: 40px; }
}

/* Tighter vertical rhythm between sections (desktop) */
@media (min-width: 961px) {
  #people { margin-top: -190px; padding-bottom: 24px; }
  #practical { margin-top: 0; }
  .capture-scene { margin-bottom: clamp(8px, 2vw, 24px); } /* no iPad to tuck the copy under any more */
  #capture { overflow: visible; z-index: 3; } /* the iPad is pulled up and over the edge, so the section must not crop it */
  #capture .feature-copy { position: relative; top: 25px; } /* sits level with the upper part of the iPad */
  .confidence { position: relative; z-index: 2; }
  .pilot { padding-top: calc(var(--section-y) + 140px); }
}

/* Section 4: copy sits further right, clear of the larger iPad (desktop) */
@media (min-width: 961px) {
  #practical .feature-copy { position: relative; left: 90px; }
}

/* Header account actions: Login (outlined) and Register interest (solid) sit together, both at the small button height */
.header-actions { gap: 12px; }
.header-actions .btn-sm { min-height: 40px; }
/* Narrow phones: Login and Register interest both stay in the header. Gaps and padding tighten first; the wordmark gives way to the icon only where the three still cannot fit */
@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 0 12px; }
  .brand img:not(.brand-icon) { display: none; }
}

/* Pilot section: Login sits beside the primary action as a quieter outlined button on the navy */
.pilot-login { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .72); cursor: pointer; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-outline-light:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
@media (max-width: 640px) { .pilot-login { flex-direction: column; align-items: stretch; width: 100%; gap: 8px; } .pilot-login .btn { width: 100%; } }

/* Section links land on the headline itself where the artwork above it would otherwise push it off screen */
#people-title, #remember-title { scroll-margin-top: 50px; }

/* Final section composition: icon above the headline, a larger illustration fading in behind the text, wordmark bottom right */
.pilot-mark { display: block; width: 40px; height: 40px; margin-bottom: 24px; background-color: var(--blue-soft); -webkit-mask: url(assets/brand/logo-icon-white.png) center / contain no-repeat; mask: url(assets/brand/logo-icon-white.png) center / contain no-repeat; }
@media (min-width: 961px) {
  .pilot-aside { inset: 0; right: 0; top: 0; transform: none; width: auto; display: block; }
  .pilot-scene { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(60%, 900px); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 52%); mask-image: linear-gradient(to right, transparent 0, #000 52%); }
  .pilot-logo { position: absolute; right: clamp(24px, 3.5vw, 56px); bottom: 40px; width: auto; }
}

/* Desktop: the wordmark sits on the right of the Register interest row, its base level with the button's bottom edge */
.pilot-logo-cta { display: none; }
.pilot-copy { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-align: center; color: rgba(255, 255, 255, .6); }
.pilot-logo-cta img { display: block; width: 100%; height: auto; }
@media (min-width: 961px) { .pilot-logo-cta .pilot-copy { text-align: right; } } /* desktop: the year sits under the right edge of the wordmark */
@media (min-width: 961px) { .pilot { margin-bottom: 24px; } } /* the page now ends on the card, so it keeps the same ivory margin below as at its sides */
@media (min-width: 961px) {
  /* the right edge follows the card edge at any width: it steps out past the 1200px content column by the same amount the card does */
  .pilot-logo-cta { display: block; width: 180px; height: auto; margin-left: auto; align-self: flex-end; transform: translateX(calc(max(0px, (100vw - 2 * var(--gutter) - 1200px) / 2) + var(--gutter) - clamp(24px, 3.5vw, 56px))); }
  .pilot-logo { display: none; }
  /* With the form open the wordmark drops to the bottom right, level with the Submit button */
  .pilot:has(.pilot-form-wrap.is-open) .pilot-logo-cta { position: absolute; right: var(--gutter); bottom: clamp(20px, 3vw, 32px); margin: 0; }
}

/* Flowing lines behind the final section: inverted to read light on navy, at 50% opacity */
.pilot-lines { position: absolute; z-index: 0; left: 50%; top: 50%; width: 100%; max-width: none; height: auto; transform: translate(-50%, -50%); filter: invert(1); mix-blend-mode: screen; opacity: .5; pointer-events: none; user-select: none; }

/* Tablet and phone: every iPad is cropped to its visible device and sized to the content width; no clipping, no dead space */
@media (max-width: 960px) {
  /* Hero to Section 2 */
  .hero { padding-bottom: 8px; }
  .begins-scene { margin-top: -96px; }

  /* Section 3: group scene fully inside the page, iPad whole and full width */
  #people .learn-scene { width: 110%; max-width: none; margin: -24px 0 0 -4.7%; }
  #people .learn-proof { position: relative; order: 1; right: auto; bottom: auto; width: min(100%, 520px); max-width: none; justify-self: center; margin: 24px 0 0; }
  #people .learn-ipad { clip-path: none; margin-bottom: 0; aspect-ratio: 928 / 1296.5; -webkit-mask-image: none; mask-image: none; }
  #people .learn-ipad-img { inset: auto; left: -12.5%; top: -7.5%; width: 125%; max-width: none; height: auto; }

  /* Section 4 */
  #practical .allinone { width: min(100%, 700px); margin: 0 auto; aspect-ratio: 1.4228; top: 0; }
  #practical .allinone-img { inset: auto; left: -9.4%; top: -12.4%; width: 114.3%; max-width: none; height: auto; }

  /* Section 5: larger floating icons, iPad matched to the content width */
  .capture-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-bottom: 8px; }
  .capture-icon, .capture-icon:nth-child(n) { position: static; translate: none; width: clamp(60px, 17vw, 120px); animation: capture-float 7s ease-in-out infinite; animation-delay: calc(var(--n) * -1.4s); }
  #capture .arve-ipads { left: 0; width: min(100%, 560px); aspect-ratio: 0.662; margin: 0 auto; transform: perspective(1400px) rotateY(calc((var(--arve-p, .5) - .5) * 40deg)); }
  #capture .arve-ipad-img { inset: auto; left: -30.1%; top: -15.4%; width: 160.1%; max-width: none; height: auto; }

  /* Section 6: person and Arve iPad, iPad matched to the content width */
  #capture { padding-bottom: 0; }
  .confidence { padding-top: 0; }
  .confidence-text { padding-top: 0; }
  .confidence-visual { width: 100%; max-width: 560px; margin-inline: auto; }
  .confidence-scene { width: min(86%, 440px); margin: -6.7% 0 -8%; }
  .confidence-ipad { align-self: flex-start; width: 143.7%; max-width: none; margin: -17.9% 0 -16.5% -21.8%; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) { .capture-icon, .capture-icon:nth-child(n) { animation: none; } }

/* Tablet and phone: Section 3 iPad tucks behind the group above and fades out at the bottom; Section 6 iPad is larger and crops off the sides */
@media (max-width: 960px) {
  #people .learn-scene { order: -2; position: relative; z-index: 2; }
  #people .learn-proof { order: -1; z-index: 1; width: min(100%, 520px); margin: -16% 0 12px; }
  #people .learn-ipad { aspect-ratio: 928 / 900; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%); }
  .confidence-ipad { width: 180%; margin: -22% 0 -20% -40%; }
}

/* Tablet and phone, Section 3: the iPad sits above the group and the group overlaps its faded lower edge */
@media (max-width: 960px) {
  #people .learn-proof { order: -2; z-index: 1; margin: 8px 0 0; }
  #people .learn-scene { order: -1; z-index: 2; margin: -36% 0 0 -4.7%; }
  #people .learn-ipad { aspect-ratio: 928 / 760; }
}

/* Tablet and phone: close the remaining gaps (Section 2 to the Section 3 iPad, and the Section 6 iPad to the pilot card) */
@media (max-width: 960px) {
  .journey { padding-bottom: 8px; }
  #people { padding-top: 0; }
  #people .learn-proof { margin-top: 0; }
  .confidence { padding-bottom: 16px; }
}

/* Tablet and phone: the Section 6 iPad runs down over the top of the navy pilot card */
@media (max-width: 960px) {
  .confidence { position: relative; z-index: 2; padding-bottom: 0; }
  .confidence-ipad { margin-bottom: calc(-20% - 140px); }
  .pilot { padding-top: calc(var(--section-y) + 140px); }
}

/* Mid-width desktops: the Section 3 iPad no longer rises into the Section 2 copy; the pull-up eases off as the window narrows */
@media (min-width: 961px) and (max-width: 1440px) {
  #people { margin-top: calc(-190px + clamp(0px, (1440px - 100vw) * .6, 190px)); }
}

/* Desktop: the Section 6 headline starts below the lower edge of the Section 5 iPad */
@media (min-width: 961px) {
  .confidence-text { padding-top: calc(clamp(24px, 4vw, 64px) + 80px); }
}

/* Tablet and phone: breathing room between the Section 5 iPad and the Section 6 headline */
@media (max-width: 960px) {
  #capture { padding-bottom: 40px; }
}

/* Mid-width desktops: the Section 3 iPad slides left as the window narrows, so more of it stays on screen */
@media (min-width: 961px) and (max-width: 1440px) {
  .learn-proof { right: calc(-282px + clamp(0px, (1440px - 100vw) * .55, 200px)); }
}

/* Desktop: the Section 3 headline wraps inside its column, so no text can run under the iPad */
@media (min-width: 961px) and (max-width: 1440px) {
  #people .feature-copy h2 { white-space: normal; max-width: 100%; }
  .learn-proof { right: calc(-282px + clamp(0px, (1440px - 100vw) * .45, 150px)); }
}

/* Tablet and phone, Section 4: the iPad and artwork come first, above the headline */
@media (max-width: 960px) {
  #practical .feature-visual { order: -1; margin-bottom: clamp(8px, 7vw, 56px); }
  #practical .feature-copy { order: 0; left: 0; }
}

/* Tablet and phone, Section 5: the five icons float around the pair at the same positions as on desktop, scaled to fit */
@media (max-width: 960px) {
  .capture-wrap { padding-top: clamp(56px, 13vw, 110px); }
  .capture-scene { width: min(62%, 420px); margin: 0 auto 8px; }
  .capture-icons { position: absolute; display: block; z-index: 1; left: 0; top: 0; bottom: 0; width: 100%; margin: 0; padding: 0; pointer-events: none; }
  .capture-icon, .capture-icon:nth-child(n) { position: absolute; translate: -50% -50%; width: clamp(56px, 16vw, 124px); animation: capture-float 7s ease-in-out infinite; animation-delay: calc(var(--n) * -1.4s); }
  .capture-icon:nth-child(1) { left: 9%; top: 74%; }
  .capture-icon:nth-child(2) { left: 14%; top: 34%; }
  .capture-icon:nth-child(3) { left: 32%; top: 6%; }
  .capture-icon:nth-child(4) { left: 74%; top: 2%; }
  .capture-icon:nth-child(5) { left: 90%; top: 46%; width: clamp(66px, 19vw, 150px); }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) { .capture-icon, .capture-icon:nth-child(n) { animation: none; } }

/* Tablet and phone, Section 4: the iPad and artwork sit under the copy */
@media (max-width: 960px) {
  #practical .feature-copy { order: 0; }
  #practical .feature-visual { order: 1; margin: clamp(16px, 5vw, 40px) 0 0; }
}

@media (max-width: 960px) {
  #practical .feature-visual { margin: clamp(40px, 9vw, 80px) 0 clamp(24px, 7vw, 56px); }
  #practical .notes-scene { width: 104%; }
}

/* Tablet and phone: Section 5 icons 4 and 5 sit closer to the pair; Section 4 artwork rises up behind the copy */
@media (max-width: 960px) {
  .capture-icon:nth-child(4) { left: 66%; top: 4%; }
  .capture-icon:nth-child(5) { left: 81%; top: 46%; }
  #practical .notes-scene { top: calc(50% - 110px); }
}

/* Tablet and phone, Section 4: the artwork rises behind the headline and copy; the gap under the iPad is closed */
@media (max-width: 960px) {
  #practical .notes-scene { width: 150%; top: -310px; transform: translate(-50%, 0); }
  #practical .feature-visual { margin-bottom: 0; }
  #practical { padding-bottom: 16px; }
}
@media (max-width: 480px) { #practical .notes-scene { top: -360px; } }

/* Tablet and phone, Section 4: three separate blocks in reading order. The illustration sits above the headline, then the copy, then the iPad */
@media (max-width: 960px) {
  #practical .feature-visual { display: contents; }
  #practical .notes-scene { order: -1; position: relative; left: auto; top: auto; transform: none; width: min(100%, 520px); max-width: none; height: auto; margin: 0 auto clamp(8px, 3vw, 24px); z-index: 0; -webkit-mask-image: none; mask-image: none; }
  #practical .feature-copy { order: 0; }
  #practical .allinone { order: 1; width: min(100%, 700px); margin: clamp(24px, 6vw, 48px) auto 0; top: 0; }
}
@media (max-width: 480px) { #practical .notes-scene { top: auto; } }
@media (max-width: 960px) {
  #practical .notes-scene { margin-bottom: -6%; }
  #practical .allinone { margin-top: clamp(0px, 2vw, 16px); }
}

/* Tablet and phone, Section 4: larger illustration with its transparent margins trimmed, and tighter gaps */
@media (max-width: 960px) {
  #practical { padding-top: 16px; }
  #practical .notes-scene { width: min(124%, 700px); margin: -14% auto -16%; }
  #practical .allinone { margin-top: -4%; }
}
@media (max-width: 960px) {
  #practical .notes-scene { margin: calc(min(124%, 700px) * -0.065) auto calc(min(124%, 700px) * -0.015 + 8px); }
}
@media (max-width: 960px) {
  #practical { padding-top: clamp(56px, 12vw, 96px); }
  #practical .notes-scene { margin-bottom: calc(min(124%, 700px) * -0.015 + 20px); }
}

/* Desktop: the Section 6 iPad starts below the copy at every scroll tilt, so no text can run over it */
@media (min-width: 961px) {
  .confidence-ipad { margin-top: 160px; }
  .pilot { padding-top: calc(var(--section-y) + 330px); }
}

/* Section 4 copy: the rightward shift grows with the window, so the text always stays inside it */
@media (min-width: 961px) {
  #practical .feature-copy { left: clamp(0px, (100vw - 961px) * .15, 90px); }
}

/* Mid-width desktops: the Section 4 iPad is narrower so it ends before the copy starts */
@media (min-width: 961px) and (max-width: 1279px) {
  .allinone { width: 124%; margin-left: -24%; }
  .notes-scene { width: 112%; }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .allinone { width: 150%; margin-left: -30%; }
}

/* Mid-width desktops: the hero iPad is sized to the space beside the copy and stays fully on screen */
@media (min-width: 961px) and (max-width: 1439px) {
  .hero-ipad { width: calc(75vw - 48px); max-width: none; margin-left: auto; margin-right: 0; left: calc(-1 * clamp(16px, 2vw, 30px) - 330px); }
}

/* Mid-width desktops: the invitation block (icon, headline, copy) sits about 225px closer to the iPad above it */
@media (min-width: 961px) and (max-width: 1439px) {
  .pilot { padding-top: calc(var(--section-y) + 105px); }
}

/* Mid-width desktops: the iPad under "Your experience leads the way" (and everything below it) sits 80px higher, closing most of the gap under the illustration. Below 1040px the text column would run over the iPad, so those widths keep the original spacing */
@media (min-width: 1040px) and (max-width: 1439px) {
  .confidence-ipad { margin-top: 80px; }
}

/* Privacy Policy dialog (opened from the consent link in the enquiry form) */
.privacy-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-link:hover { color: var(--blue-soft); }
.privacy-link:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; border-radius: 2px; }
html.modal-open, html.modal-open body { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 32px); }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23, 38, 58, .62); }
.modal-card { position: relative; display: flex; flex-direction: column; width: min(100%, 680px); max-height: 100%; background: var(--ivory); color: var(--text); border-radius: var(--leaf); box-shadow: var(--shadow); outline: none; }
.modal-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: clamp(24px, 4vw, 40px); }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--leaf-sm); background: var(--ivory); color: var(--navy); cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.modal-close:hover { background: var(--ivory-deep); border-color: var(--blue-muted); }
.modal-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.modal h2 { margin-right: 44px; font: 600 clamp(26px, 3vw, 32px)/1.15 var(--display); letter-spacing: -0.02em; }
.modal-meta { margin-top: 6px; font-size: 14px; color: var(--text-3); }
.modal h3 { margin-top: 26px; font: 600 18px/1.3 var(--display); letter-spacing: -0.01em; }
.modal p { font-size: 16px; line-height: 1.65; color: var(--text-2); }
.modal h3 + p, .modal p + p { margin-top: 10px; }
.modal .btn { margin-top: 28px; }

/* Footer Privacy Policy link, beside the year under the wordmark; same dialog as the consent link */
.pilot-form h3:focus { outline: none; }
.pilot-copy a { display: inline-block; padding: 6px 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; pointer-events: auto; }
.pilot-copy a:hover { color: #fff; }
.pilot-copy a:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; border-radius: 2px; }

/* Hero icon, and header branding that appears once the icon has scrolled out of view.
   The header brand keeps its full width the whole time, so the navigation never moves. */
.hero-mark { display: block; width: clamp(46px, 4.5vw, 62px); height: auto; pointer-events: none; user-select: none; }
@media (min-width: 961px) {
  /* Above the headline without taking any space, so the headline and the iPad stay exactly where they were */
  .hero-mark { position: absolute; left: 0; bottom: 100%; margin-bottom: clamp(26px, 3.1vw, 40px); }
}
@media (max-width: 960px) {
  .hero-mark { width: 40px; margin-bottom: 16px; }
}
.brand { --brand-icon-w: 38px; --brand-gap: 9px; } /* the header icon is square: its width is its height */
@media (max-width: 640px) { .brand { --brand-icon-w: 30px; --brand-gap: 8px; } }
/* At the top the SESSIONS wordmark sits where the icon will go and the icon is invisible. Once the hero icon has scrolled
   away the wordmark slides right to its normal place and the icon fades in behind it. Only opacity and transform change,
   so the brand keeps its full width and the navigation never moves. */
.brand-js .site-header .brand-icon { opacity: 0; }
.brand-js .site-header .brand img:not(.brand-icon) { transform: translateX(calc(-1 * (var(--brand-icon-w) + var(--brand-gap)))); }
.brand-js .site-header.brand-shown .brand-icon { opacity: 1; }
.brand-js .site-header.brand-shown .brand img:not(.brand-icon) { transform: none; }
/* Appearing: the wordmark slides first, then the icon fades in. Disappearing: the icon fades out first, then the wordmark slides back. */
.brand-js .site-header.brand-animate .brand-icon { transition: opacity .3s ease-out 0s; }
.brand-js .site-header.brand-animate .brand img:not(.brand-icon) { transition: transform .3s ease-out .2s; }
.brand-js .site-header.brand-animate.brand-shown .brand-icon { transition-delay: .2s; }
.brand-js .site-header.brand-animate.brand-shown .brand img:not(.brand-icon) { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .brand-js .site-header .brand-icon, .brand-js .site-header .brand img:not(.brand-icon) { transition: none !important; }
}
/* Narrow phones show the icon only (the wordmark is hidden by the existing header rule), so at the top there is nothing to
   show: the empty link leaves the tab order until the icon appears. */
@media (max-width: 520px) {
  .brand-js .site-header:not(.brand-shown) .brand { visibility: hidden; }
  .brand-js .site-header.brand-animate .brand { transition: visibility 0s linear .3s; }
  .brand-js .site-header.brand-animate.brand-shown .brand { transition-delay: 0s; }
}
/* Phones from 360px: the wordmark and the icon share one spot at the left edge and cross-fade (opacity only, so nothing
   moves). At the top the wordmark shows, scaled to the room before Login (at most 140px wide); once the hero icon has
   scrolled away it fades out as the icon fades in, and back again on return. Below 360px there is no room for a
   legible wordmark, so the earlier icon-only behaviour stays. */
@media (min-width: 360px) and (max-width: 520px) {
  .brand-js .site-header .brand,
  .brand-js .site-header:not(.brand-shown) .brand { visibility: visible; position: relative; flex: 1 1 0; min-width: 0; }
  .brand-js .site-header .brand img:not(.brand-icon) { display: block; transform: none; width: 100%; max-width: 140px; height: auto; opacity: 1; }
  .brand-js .site-header .brand-icon { display: block; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
  .brand-js .site-header.brand-shown .brand img:not(.brand-icon) { opacity: 0; }
  .brand-js .site-header.brand-animate .brand-icon,
  .brand-js .site-header.brand-animate .brand img:not(.brand-icon),
  .brand-js .site-header.brand-animate.brand-shown .brand-icon,
  .brand-js .site-header.brand-animate.brand-shown .brand img:not(.brand-icon) { transition: opacity .22s ease-in-out 0s; }
}

/* Phones: slightly larger headlines. The shared tablet/phone size above is 34px. The hero goes up to 39px (it stays 34px
   on the narrowest phones, where 37px+ adds a third line). Section headlines go to 36px from 360px to 419px; wider
   phones keep 34px because at 35px+ "Everyone learns differently." would leave "differently." alone on a second line.
   Tablet and desktop are untouched. */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(34px, 10.3vw, 39px); }
}
@media (min-width: 360px) and (max-width: 419px) {
  h2, .statement, #people .feature-copy h2 { font-size: 36px; }
}

/* Phones and tablets: the hero panels stack as one centred, evenly spaced cluster, and Section 4 leads with the panel cluster (the artwork follows the copy). */
@media (max-width: 960px) {
  .hero-ipad { aspect-ratio: 1 / 1.1; }
  .hero-ipad .panel-side { left: 70%; margin-left: 0; top: -2%; width: 30%; }
  .hero-ipad .panel-summary { left: 0; margin-left: 0; top: 0; width: 78%; }
  .hero-ipad .panel-upcoming { left: 11%; margin-left: 0; margin-top: 0; top: 15%; width: 78%; }
  .hero-ipad .panel-schedule { left: 0; margin-left: 0; margin-top: 0; top: 46%; width: 86%; }
  #practical .panel-cluster { order: -2; margin-top: clamp(40px, 10vw, 64px); }
  #practical .notes-scene { order: -1; width: min(78%, 410px); margin: -52% auto -3%; } /* tucked behind the lower panels, with the heading close below */
  #practical .pc-slot-d { left: -4%; top: 26%; width: 56%; z-index: 4; }
}

/* Mid-width screens: the panel cluster stays inside its own column (it was running over the copy), and the artwork sits at the bottom right. */
@media (min-width: 961px) and (max-width: 1439px) {
  #practical .panel-cluster { width: 112%; margin-left: 0; }
  #practical .pc-slot-d { left: 0; width: 66%; } /* inside the cluster, so nothing is cropped at the left edge */
  #practical .notes-scene { right: -4%; top: auto; bottom: 2%; width: min(30vw, 420px); transform: translate3d(0, calc((var(--pc-p, .5) - .5) * -50px), 0); }
}

/* Tablet widths: the phone gap above the panels is too much once the screen is wide, so it comes back in. */
@media (min-width: 641px) and (max-width: 960px) {
  #practical .panel-cluster { width: min(100%, 820px); margin: 32px auto -10%; }
  #practical .notes-scene { margin: -45% auto -12%; } /* the heading follows the artwork closely */
  #practical .pc-slot-d { left: 0; }
}

/* Section 6: three screens (insights, Arve, recap) replace the single iPad; positions follow the approved layout on a 970 x 558 canvas. */
.conf-panels { width: 100%; aspect-ratio: 970 / 558; height: auto; transform: none; will-change: auto; } /* flat, as in the layout: no scroll tilt; desktop centres it on the page (--conf-x) in the block below */
.cp { position: absolute; height: auto; transform: translate3d(0, calc((var(--conf-p, .5) - .5) * var(--cp-range, 0px)), 0); will-change: transform; filter: drop-shadow(0 30px 42px rgba(14, 26, 46, .36)) drop-shadow(0 6px 12px rgba(14, 26, 46, .22)); } /* --conf-p (0 to 1) is set on the wrapper by the script in index.html; each panel moves at its own rate */
@media (prefers-reduced-motion: reduce) { .cp { transform: none; will-change: auto; } }
.cp-insights { left: 0; top: 0; width: 56.1%; z-index: 1; --cp-range: -70px; }
.cp-before { left: 79.2%; top: 11.5%; width: 20.8%; z-index: 2; --cp-range: -110px; }
.cp-arve { left: 29.9%; top: 29.6%; width: 56.2%; z-index: 3; --cp-range: -140px; }

/* Desktop: a smaller panel group, set lower so no panel covers the copy above, and the final section starts further down so none covers its heading. */
@media (min-width: 961px) {
  .conf-panels { width: 265%; margin-top: 215px; margin-bottom: -40px; transform: translateX(var(--conf-x, 0px)); }
}

/* Tablet and phone: the three screens sit inside the column (no page-wide canvas, no parallax), overlapping the navy section only a little. */
@media (max-width: 960px) {
  .conf-panels { width: 100%; max-width: 640px; align-self: center; margin: 24px auto -12%; }
}

/* Hero: the iPad sits over the panel group (50% opacity, as one group). Clicking the stage, or a minute without activity, fades the iPad away and brings the panels to 100%; it then loops (script in index.html toggles .is-revealed). */
.hero-panels { position: absolute; inset: 0; opacity: .25; transition: opacity .9s ease; }
.hero-ipad-btn { position: absolute; left: 61%; top: 38%; width: 55%; transform: translate(-50%, -50%); z-index: 6; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; opacity: 1; transition: opacity .9s ease; -webkit-tap-highlight-color: transparent; }
.hero-ipad-btn img { display: block; width: 100%; height: auto; }
.hero-ipad { cursor: pointer; }
.hero-ipad.is-revealed .hero-panels { opacity: 1; }
.hero-ipad.is-revealed .hero-ipad-btn { opacity: 0; pointer-events: none; }
.hero-ipad-btn:focus-visible { outline: 2px solid var(--blue, #315C86); outline-offset: 6px; opacity: 1 !important; }
@media (max-width: 960px) { .hero-ipad-btn { left: 50%; top: 50%; width: 82%; } }
@media (max-width: 640px) { .hero-ipad-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-panels, .hero-ipad-btn { transition: none; } }

/* Tablet and phone: the attention panel steps right, in front of the ledger's left edge. */
@media (max-width: 960px) {
  #practical .pc-slot-c { left: 14%; z-index: 6; }
}

/* Sections 4 and 6 use the same iPad-over-panels stage as the hero (the script in index.html toggles .is-revealed). */
[data-stage] { cursor: pointer; }
[data-stage] > .stage-panels { position: absolute; inset: 0; opacity: .5; transition: opacity .9s ease; }
.stage-ipad { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; opacity: 1; transition: opacity .9s ease; -webkit-tap-highlight-color: transparent; }
.stage-ipad img { display: block; width: 100%; height: auto; }
.stage-ipad-practical { width: 118%; left: 46%; top: 31%; }
.stage-ipad-arve { width: 150%; top: 64%; }
[data-stage].is-revealed > .stage-panels { opacity: 1; }
[data-stage].is-revealed > .stage-ipad { opacity: 0; pointer-events: none; }
.stage-ipad:focus-visible { outline: 2px solid var(--blue, #315C86); outline-offset: 6px; opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { [data-stage] > .stage-panels, .stage-ipad { transition: none; } }
@media (max-width: 960px) { .stage-ipad-practical { width: 110%; left: 50%; top: 50%; } .stage-ipad-arve { width: 100%; top: 50%; } }

/* Hero iPad: larger, still clear of the headline. */
.hero-ipad-btn { left: 62%; top: 38%; width: 81%; }
@media (max-width: 960px) { .hero-ipad-btn { left: 50%; top: 50%; width: 92%; } }
@media (max-width: 640px) { .hero-ipad-btn { width: 108%; } }

/* The notes, diary and reminders artwork is 50% transparent in Section 4. */
#practical .notes-scene { opacity: .5; }

/* iPad tilt and parallax are back on all three stages. Hero: lifts and tilts as the page scrolls, and drifts with --parallax. Sections 4 and 6: tilt follows the section's position (--pc-p, --conf-p). */
.hero-ipad { --hero-ipad-progress: 0; }
.hero-ipad-btn {
  transform: translate(-50%, -50%) translateY(var(--parallax, 0px)) perspective(1400px)
    translateY(calc(var(--hero-ipad-progress) * -16px)) rotateX(calc(var(--hero-ipad-progress) * 8deg)) rotateY(calc(var(--hero-ipad-progress) * 2.5deg));
  transform-origin: 50% 60%;
  will-change: transform, opacity;
}
.stage-ipad-practical { transform: translate(-50%, -50%) perspective(1400px) rotateX(calc((var(--pc-p, .5) - .5) * 26deg)) rotateY(calc((var(--pc-p, .5) - .5) * 16deg)); will-change: transform, opacity; }
.stage-ipad-arve { transform: translate(-50%, -50%) perspective(1400px) rotateX(calc((var(--conf-p, .5) - .5) * -60deg)); will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  .hero-ipad-btn, .stage-ipad-practical, .stage-ipad-arve { transform: translate(-50%, -50%); will-change: auto; }
}

/* The panel groups stay on their own compositing layer, so their drop shadows fade smoothly with the group instead of snapping when the layer changes at the end of the fade. */
.hero-panels, [data-stage] > .stage-panels { will-change: opacity; backface-visibility: hidden; }

/* Tablet and phone: close the gap between the Section 6 iPad and the final section's heading. */
@media (max-width: 960px) {
  .conf-panels { margin-bottom: calc(-12% - 100px); }
}

/* Larger iPads in Sections 4 and 6. */
.stage-ipad-practical { width: 136%; left: 45%; }
.stage-ipad-arve { width: 172%; }
@media (max-width: 960px) {
  .stage-ipad-practical { width: 126%; left: 50%; }
  .stage-ipad-arve { width: 116%; }
}

/* Section 6 iPad: larger, and set lower on desktop so it runs over the navy section and closes the gap above the final heading. */
.stage-ipad-arve { width: 94%; top: 82%; }
@media (max-width: 960px) { .stage-ipad-arve { width: 142%; top: 50%; } }

/* Desktop: the calendar panel sits a little further right. */
@media (min-width: 961px) { #practical .pc-slot-a { margin-left: 50px; } }
@media (max-width: 960px) { #practical .pc-slot-a { margin-left: 6%; } } /* calendar panel moves right, clear of the page edge */

/* iPad landscape and narrow desktops: the group scene above reaches down into this section, so the whole section (background included) sits lower and clears it. */
@media (min-width: 961px) and (max-width: 1279px) {
  #practical { margin-top: 0; } /* the Learn iPad that used to reach down here is gone, so no extra drop is needed */
  #practical .panel-cluster { width: 112%; margin: 23% 0 -36% -2%; } /* whole group sits inside the page edge and clear of the copy */
  .stage-ipad-practical { width: 104%; left: 44%; } /* keeps the iPad's right edge off the copy */
}

/* The Section 4 iPad cycles through its screens (Home, Week, Month, Planner, Earnings) on top of the Home image. */
.stage-ipad-practical { aspect-ratio: 1448 / 1086; }
.stage-ipad-alt { position: absolute; inset: 0; opacity: 0; animation: allinone-fade 20s ease-in-out infinite; animation-delay: calc(var(--i) * 4s); }
@media (prefers-reduced-motion: reduce) { .stage-ipad-alt { display: none; } }
@keyframes allinone-fade { 0% { opacity: 0; z-index: 2; } 5% { opacity: 1; z-index: 2; } 5.01% { opacity: 1; z-index: 1; } 25% { opacity: 1; z-index: 1; } 25.01%, 100% { opacity: 0; z-index: 0; } }
/* Desktop: the iPad keeps clear of the Section 4 copy, tilt included. */
@media (min-width: 1280px) { .stage-ipad-practical { width: 128%; left: 43%; } }
@media (min-width: 1500px) { .stage-ipad-practical { width: 104%; left: 41%; } } /* the copy column stops growing here, so the iPad scales back to stay clear of it */
/* No drop shadow or glow on the iPads. */
.hero-ipad-btn img, .stage-ipad img { filter: none; }
/* The flow lines start at the hero's lower edge: only the half below the Section 1/2 boundary is kept, so the hero itself is clear. */
.line-bg { -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 58%); mask-image: linear-gradient(to bottom, transparent 50%, #000 58%); }
/* Wide desktop: the Daily Summary panel sits 150px further right. */
@media (min-width: 1280px) { .hero-ipad .panel-summary { margin-left: 70px; } }
/* The Daily Summary panel passes behind the side panel where they overlap. */
.hero-ipad .panel-side { z-index: 2; }
/* iPad landscape and narrow desktops: the hero group sits 44px further right so the panels clear the headline and copy. */
@media (min-width: 961px) and (max-width: 1279px) { .hero-ipad { margin-right: -44px; } }
/* The earnings and attention panels line up with the calendar's left edge. */
@media (min-width: 961px) { #practical .pc-slot-c, #practical .pc-slot-d { margin-left: 50px; } }
/* The earnings and payment panels rise into the empty lower half of the calendar. */
@media (min-width: 961px) { #practical .pc-slot-d { top: 10%; } #practical .pc-slot-c { top: 26.5%; } }
/* The calendar (A) and Attention panel (B) start 50px further right, on the same line; the earnings panel stays put. */
@media (min-width: 961px) { #practical .pc-slot-a, #practical .pc-slot-c { margin-left: 100px; } }
/* Hero: the panels rest slightly smaller behind the iPad; when it is pressed each one scales up to full size on its own beat while the group comes to 100%. */
.hero-ipad .panel { scale: .88; transition: scale .8s cubic-bezier(.2, .7, .2, 1) var(--scale-delay, 0s); }
.hero-ipad.is-revealed .panel { scale: 1; }
.hero-ipad .panel-summary { --scale-delay: 0s; }
.hero-ipad .panel-upcoming { --scale-delay: .15s; }
.hero-ipad .panel-schedule { --scale-delay: .3s; }
.hero-ipad .panel-side { --scale-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .hero-ipad .panel { scale: 1; transition: none; } }
/* The iPad also eases down a little as it fades away. The scale sits on the image, so it follows the image's own centre whatever the tilt origin is. */
.hero-ipad-btn img, .stage-ipad img { scale: 1; transform-origin: 50% 50%; transition: scale .9s ease; }
.hero-ipad.is-revealed .hero-ipad-btn img, [data-stage].is-revealed > .stage-ipad img { scale: .93; }
@media (prefers-reduced-motion: reduce) { .hero-ipad-btn img, .stage-ipad img { scale: 1 !important; } }
/* Sections 4 and 6: the panels rest slightly smaller and scale up from the iPad's centre, each on its own beat (origins are set by the stage script). */
.pc-slot, .cp { scale: .88; transition: scale .8s cubic-bezier(.2, .7, .2, 1) var(--scale-delay, 0s); }
[data-stage].is-revealed .pc-slot, [data-stage].is-revealed .cp { scale: 1; }
.pc-slot-a, .cp-insights { --scale-delay: 0s; }
.pc-slot-b, .cp-before { --scale-delay: .15s; }
.pc-slot-d, .cp-arve { --scale-delay: .3s; }
.pc-slot-c { --scale-delay: .45s; }
@media (prefers-reduced-motion: reduce) { .pc-slot, .cp { scale: 1; transition: none; } }
/* Notes, plans and connections artwork that sits in front of the two people in Section 2, behind the hero panels. */
.begins-fragment { position: absolute; z-index: 0; left: calc(var(--begins-left) + var(--begins-w) * .42); top: calc(var(--begins-w) * .06 - var(--begins-lift)); width: calc(var(--begins-w) * .36); height: auto; pointer-events: none; user-select: none; }
/* Tablet and phone: the scene flows in the page, so the artwork follows it in the same column and is pulled back up over the scene to the same spot (left .42, top .06 of the scene width). */
@media (max-width: 960px) {
  .begins-fragment { --sw: min(112vw, 900px); --sb: 24px; position: relative; order: -1; flex: none; width: calc(var(--sw) * .36); left: auto; top: auto; margin: calc(var(--sw) * -.646 - var(--sb)) 0 calc(var(--sw) * .327 + var(--sb)) calc(-6vw + var(--sw) * .54); }
}
@media (max-width: 640px) { .begins-fragment { --sw: min(120vw, 640px); --sb: 16px; margin-left: calc(-4vw + var(--sw) * .54); } }
/* Clicks use the quicker timings above. When a stage changes by itself (idle, or the return after 15s) everything moves at half speed. */
.hero-ipad.is-auto .hero-panels, [data-stage].is-auto > .stage-panels, .hero-ipad.is-auto .hero-ipad-btn, [data-stage].is-auto > .stage-ipad { transition-duration: 1.8s; }
.hero-ipad.is-auto .hero-ipad-btn img, [data-stage].is-auto > .stage-ipad img { transition-duration: 1.8s; }
.hero-ipad.is-auto .panel, [data-stage].is-auto .pc-slot, [data-stage].is-auto .cp { transition-duration: 1.6s; transition-delay: calc(var(--scale-delay, 0s) * 2); }
/* Tablet and phone: the two people and the artwork stay inside the page width instead of bleeding off both sides. */
@media (max-width: 960px) {
  .begins-scene { width: min(100vw, 900px); margin-left: auto; margin-right: auto; }
  .begins-fragment { --sw: min(100vw, 900px); margin-left: calc((100vw - var(--sw)) / 2 + var(--sw) * .54); }
}
@media (max-width: 640px) {
  .begins-scene { width: min(100vw, 640px); margin-top: -56px; } /* 40px more air between the hero copy and the pair */
  .begins-fragment { --sw: min(100vw, 640px); margin-left: calc((100vw - var(--sw)) / 2 + var(--sw) * .54 + 5px); }
}

/* Layout swap (set by the script in index.html): the Hero carries the tutor-and-student scene and Section 2 carries the iPad with its panels. The scene's empty right-hand side is cropped so the pair can be drawn larger. */
.swap-layout .swap-scene { position: relative; isolation: isolate; clip-path: inset(-30% 0 0 0); } /* crops the empty right and bottom edges but lets the cluster rise above the top */
.swap-layout .swap-scene .begins-scene { position: relative; z-index: 1; display: block; width: 125%; max-width: none; height: auto; margin: 0; transform: none; -webkit-mask-image: none; mask-image: none; }
.swap-layout .swap-scene .begins-fragment { position: absolute; z-index: 0; left: 31%; top: -4%; width: 56%; height: auto; margin: 0; }
.swap-layout .journey-head { min-height: 0; }
.swap-layout .swap-ipad { position: relative; min-width: 0; }
@media (min-width: 961px) {
  .swap-layout .swap-scene { width: calc(120% + clamp(0px, (100vw - 1440px) * 0.5 + 40px, 200px) - clamp(0px, (1440px - 100vw) * 0.2, 100px) + clamp(0px, (1300px - 100vw) * 0.4, 110px)); margin-left: calc(-10% - clamp(0px, (100vw - 1440px) * 0.4, 140px) - clamp(0px, (1300px - 100vw) * 0.4, 110px)); } /* grows, and moves in towards the headline, on wider screens so the gap stays closed; it shrinks a little on narrower desktops so the table is never cut off at the page edge; on mid widths it also slides towards the headline (keeping its right edge) so the gap stays closed */
  .swap-layout .swap-ipad { grid-column: 1; grid-row: 1; }
  .swap-layout .swap-ipad .hero-ipad { width: calc(140% + 70px); margin: 0 0 -90px calc(-33% - 30px); left: 0; container-type: inline-size; }
  /* The panels keep their original arrangement at this smaller size: the Hero's pixel offsets become fractions of the group width (1032px reference). */
  .swap-layout .swap-ipad .panel-summary { margin-left: 6.8cqw; margin-top: 1.9cqw; }
  .swap-layout .swap-ipad .panel-upcoming { margin-left: 3.9cqw; margin-top: 6.6cqw; }
  .swap-layout .swap-ipad .panel-schedule { margin-left: 2.7cqw; margin-top: 1.9cqw; }
  .swap-layout .journey-head .section-head { grid-column: 2; grid-row: 1; top: 0; }
}
@media (max-width: 960px) {
  .swap-layout .hero-visual { margin: 0 0 8px; } /* the pair stays above the logo, headline and copy */
  .swap-layout .swap-scene { width: 100%; max-width: 640px; margin: 0 auto; }
  .swap-layout .swap-ipad .hero-ipad { margin-bottom: 8%; }
  .swap-layout .journey { margin-top: 40px; }
}
@media (min-width: 641px) and (max-width: 960px) { .swap-layout .swap-ipad .hero-ipad { width: min(100%, 620px); } }
/* Tablet and phone: the pair sits close above the logo and headline. */
@media (max-width: 960px) { .swap-layout .hero-grid { gap: 0; } .swap-layout .hero-visual { margin-bottom: -2%; } }
/* Wide desktop: the "First session today" and Schedule panels slide left so the stack reads as one column with the Daily Summary. */
@media (min-width: 1440px) {
  .swap-layout .swap-ipad .panel-upcoming { margin-left: -13.5cqw; }
  .swap-layout .swap-ipad .panel-schedule { margin-left: -15cqw; }
}
/* The Schedule panel drifts down as the page scrolls down (it used to rise while the others sank). */
.swap-layout .swap-ipad .panel-schedule { --panel-speed: 1.2; }
/* The three main panels sit 15px further left on desktop. */
@media (min-width: 961px) { .swap-layout .swap-ipad .panel-summary, .swap-layout .swap-ipad .panel-upcoming, .swap-layout .swap-ipad .panel-schedule { translate: -15px 0; } }
/* "First session today" sits a little left of the stack on wide screens, with its right edge just overlapping the side panels. */
@media (min-width: 961px) { .swap-layout .swap-ipad .panel-upcoming { translate: calc(-15px - clamp(0px, (100vw - 1440px) * 0.5, 40px)) 0; } }
/* The Daily Summary and Schedule panels slide a little further left on wide screens, as far as the page edge allows. */
@media (min-width: 961px) {
  .swap-layout .swap-ipad .panel-summary { translate: calc(-15px - clamp(0px, (100vw - 1440px) * 0.5, 45px)) 0; }
  .swap-layout .swap-ipad .panel-schedule { translate: calc(-15px - clamp(0px, (100vw - 1440px) * 0.5, 20px)) 0; }
}
/* Desktop: the iPad is 20% larger (81% to 97.2% of the panel group), nudged 4% left so it stays clear of the heading. */
@media (min-width: 961px) { .swap-layout .swap-ipad .hero-ipad-btn { width: 97.2%; left: 58%; } }
/* The cluster sits 80px further right on desktop (a proportional nudge on tablet and phone, where the box is narrower). */
.swap-layout .swap-scene .begins-fragment { margin-left: 6%; }
@media (min-width: 961px) { .swap-layout .swap-scene .begins-fragment { margin-left: 80px; } }
/* Wide screens (1500px and up): the Section 2 and Section 4 iPads grow by about 15%, towards the left where there is spare room, keeping their right edges clear of the copy. */
@media (min-width: 1500px) {
  .swap-layout .swap-ipad .hero-ipad { width: calc((140% + 70px + clamp(0px, (100vw - 1500px) * 0.5, 120px)) * 1.04); margin-left: calc(-33% - 54px - clamp(0px, (100vw - 1500px) * 0.5, 120px) - clamp(0px, (100vw - 1500px) * 0.2, 30px)); } /* a further 4%, the most the gap to the heading allows */
  .stage-ipad-practical { width: calc(104% + clamp(0px, (100vw - 1500px) * 0.25, 110px)); left: calc(41% - clamp(0px, (100vw - 1500px) * 0.25, 110px) / 2); }
}
/* Wide screens: the Section 2 iPad and its panels move together, 10px further right and 40px higher (as far right as the heading allows). */
@media (min-width: 1500px) { .swap-layout .swap-ipad .hero-ipad { translate: 10px -40px; } }
/* Wide screens: the iPad, its panels and the Section 2 text move right together so the whole composition sits centred in the page. */
@media (min-width: 1500px) { .swap-layout .journey-head { translate: clamp(0px, (100vw - 1440px) * 0.45 + 20px, 150px) 0; } }
/* Tablet and phone: the Organise link scrolls past the panel group so the heading is what you land on. */
/* Organise: the heading lands level with the other sections' headings. The panel group above it is shorter than it was, so the offset follows its height. */
@media (max-width: 640px) { #practical { scroll-margin-top: calc(-52px - 1.18 * 100vw); } }
@media (min-width: 641px) and (max-width: 960px) { #practical { scroll-margin-top: calc(50px - min(0.77 * 100vw + 306px, 950px)); } }
/* Tablet and phone: the Begin link scrolls past the iPad group so the Section 2 heading is what you land on. */
@media (max-width: 960px) { #begins { scroll-margin-top: calc(46px - 1.28 * min(100vw - 32px, 620px)); } }
@media (max-width: 640px) { #begins { scroll-margin-top: calc(46px - 1.28 * min(100vw - 32px, 480px)); } }
/* Desktop: the Begin link lands a little lower and the Organise, People and Remember links land lower, so the artwork above its heading shows. */
@media (min-width: 961px) { #begins { scroll-margin-top: 40px; } #practical { scroll-margin-top: 60px; } #people-title { scroll-margin-top: 200px; } #remember-title { scroll-margin-top: 300px; } }

/* Section 5 ("Remembering what matters"): four capture panels as a floating cluster, with the iPad overlay used in the other sections. */
.capture-stage { position: relative; width: 100%; aspect-ratio: 1 / 1.45; }
.cc { position: absolute; margin: 0; scale: .88; transition: scale .8s cubic-bezier(.2, .7, .2, 1) var(--scale-delay, 0s); animation: pc-float var(--pc-float, 24s) ease-in-out infinite alternate; }
.cc img { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 32px rgba(27, 42, 65, .22)) drop-shadow(0 3px 8px rgba(27, 42, 65, .12)); }
.cc figcaption { position: absolute; left: 0; top: -28px; padding: 5px 12px 5px 10px; background: var(--ivory, #F5F4F0); border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--navy, #1B2A41); white-space: nowrap; box-shadow: 0 2px 8px rgba(27, 42, 65, .10); }
.cc figcaption::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--blue, #315C86); vertical-align: 1px; }
[data-stage].is-revealed .cc { scale: 1; }
.cc-live { left: 0; top: 4%; width: 52%; z-index: 2; --scale-delay: 0s; --pc-float: 23s; }
.cc-insight { left: 48%; top: 1%; width: 52%; z-index: 1; --scale-delay: .15s; --pc-float: 29s; animation-delay: -9s; }
.cc-notes { left: 4%; top: 46%; width: 48%; z-index: 3; --scale-delay: .3s; --pc-float: 19s; animation-delay: -6s; }
.cc-mat { left: 50%; top: 44%; width: 50%; z-index: 4; --scale-delay: .45s; --pc-float: 21s; animation-delay: -3s; }
[data-stage].is-auto .cc { transition-duration: 1.6s; transition-delay: calc(var(--scale-delay, 0s) * 2); }
.stage-ipad-capture { width: 96%; left: 50%; top: 50%; transform: translate(-50%, -50%) perspective(1400px) rotateY(calc((var(--arve-p, .5) - .5) * 40deg)); will-change: transform, opacity; }
.stage-ipad-capture .stage-ipad-alt { animation-name: arve-ipad-fade; animation-duration: 16s; }
@media (prefers-reduced-motion: reduce) { .cc { scale: 1; transition: none; animation: none; } .stage-ipad-capture { transform: translate(-50%, -50%); will-change: auto; } .stage-ipad-capture .stage-ipad-alt { display: none; } }
@media (max-width: 960px) { .capture-stage { max-width: 520px; margin-inline: auto; } }

/* Panels only: the Practical and Arve sections no longer carry an iPad, so each panel is shown as it is, one per slot,
   with no swapping. Only the hero keeps the full iPad. */
.pc { animation: none; opacity: 1; will-change: auto; }

/* Capture ("Remembering what matters"): the four panels as a swipeable row, one in focus with the next peeking in, each
   with its label and a short note. Arrows and dots are driven by the carousel script in index.html. */
.capture-stage { --peek: clamp(14px, calc((100vw - 560px) / 2), 110px); aspect-ratio: auto; max-width: 540px; margin-inline: auto; }
[data-stage] > .capture-carousel { position: relative; inset: auto; opacity: 1; }
.capture-carousel { position: relative; margin-inline: calc(-1 * var(--peek)); } /* the row's padding below makes room for the panels' shadows */
.cc-track { display: flex; gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 40px var(--peek) 36px; -webkit-overflow-scrolling: touch; } /* one panel at a time; the padding keeps the shadow from being clipped */
.cc-track::-webkit-scrollbar { display: none; }
.cc-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.cc-slide figcaption { transition: opacity .3s ease; }
.cc-slide:not(.is-on) figcaption { opacity: 0; } /* only the main panel carries its label */
.cc-slide img { display: block; width: 100%; height: auto; aspect-ratio: 817 / 640; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); border-radius: 10px; filter: drop-shadow(0 18px 28px rgba(27, 42, 65, .18)) drop-shadow(0 3px 8px rgba(27, 42, 65, .10)); }
.cc-slide figcaption { margin-top: -26px; display: grid; gap: 2px; text-align: left; font-size: 14px; color: var(--text-3); }
.cc-slide figcaption strong { font-size: 16px; font-weight: 600; color: var(--navy); }
.cc-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.cc-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--blue, #315C86); border-radius: 50%; background: transparent; color: var(--blue, #315C86); cursor: pointer; }
.cc-btn:hover { background: var(--blue, #315C86); color: #fff; }
.cc-btn:focus-visible { outline: 2px solid var(--blue, #315C86); outline-offset: 3px; }
.cc-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cc-dots { display: flex; gap: 8px; }
.cc-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line, #ddd8cf); transition: background .2s ease; }
.cc-dots span.is-on { background: var(--blue, #315C86); }
@media (prefers-reduced-motion: reduce) { .cc-track { scroll-behavior: auto; } .cc-dots span { transition: none; } }

/* Learn: no student-detail iPad any more, so on desktop the illustration moves up beside the copy and the section shortens. */
@media (min-width: 961px) {
  /* Learn: the copy and the group share a bottom line (the last line of text sits level with the figures' feet). The group is
     anchored to that line and rises above it; the copy text is held to 380px so the two never overlap. */
  #people { padding-bottom: 64px; }
  #people .feature-grid { align-items: end; padding-top: 55px; }
  #people .feature-copy { max-width: 436px; align-self: end; top: 0; }
  #people .feature-copy h2 { white-space: normal; } /* two lines at every desktop width, so the heading never runs under the group */
  .learn-visual { --learn-w: min(calc(100vw - 388px - max(40px, (100vw - 1120px) / 2)), 850px); min-height: 0; align-self: end; }
  .learn-scene { top: auto; bottom: calc(var(--learn-w) * -0.0704); right: calc(-1 * min(max(40px, (100vw - 1120px) / 2) - 16px, 120px)); width: var(--learn-w); }
}

/* Arve: two panels instead of three and no iPad, so the group is smaller and re-centred under the two columns. */
@media (min-width: 961px) {
  .conf-panels { width: 190%; margin-top: 200px; margin-bottom: -60px; }
  .cp-arve { left: 38%; top: 12%; width: 59%; }
  .cp-before { left: 12%; top: 2%; width: 21%; }
}

/* Tablet and phone: the two Arve panels sit in the column, wholly above the navy section, with the narrow card overlapping the assistant's right edge. */
@media (max-width: 960px) {
  .conf-panels { width: 100%; max-width: 560px; aspect-ratio: 970 / 600; margin: 28px auto 76px; }
  .cp-arve { left: 0; top: 24%; width: 76%; }
  .cp-before { left: 66%; top: 0; width: 34%; }
  .capture-stage { margin-bottom: 36px; }
}

/* Hero: the iPad is a plain image now (no panels behind it, nothing to press). */
.hero-ipad, .hero-ipad-btn { cursor: default; }

/* Practical (desktop): the calendar leads. The group is larger, runs out toward the page edge, and the earnings summary and the
   attention card sit around the calendar's lower left. Width follows the room left of the copy. */
@media (min-width: 961px) {
  #practical .panel-cluster {
    --pw: clamp(410px, calc(66vw - 216px), 720px);
    width: var(--pw); aspect-ratio: 1 / .86;
    margin: 36px 0 36px calc(-1 * min(max(40px, (100vw - 1120px) / 2) - 16px, 120px));
  }
  #practical .pc-slot { margin-left: 0; }
  #practical .pc-slot-a { left: 12%; top: 0; width: 86%; aspect-ratio: 1120 / 644; --pc-range: -70px; z-index: 1; }
  #practical .pc-slot-d { left: 12%; top: 62%; width: 57%; aspect-ratio: 799 / 178; --pc-range: -30px; z-index: 3; }
  #practical .pc-slot-c { left: 69%; top: 42.1%; width: 31%; aspect-ratio: 304 / 229; --pc-range: 40px; z-index: 4; }
}

/* Capture (desktop): the copy sits a little below the top of the panels. The panels are cropped to their upper 72% and fade out at the foot. */
@media (min-width: 961px) {
  #capture .feature-grid { align-items: center; }
  #capture .feature-copy { top: 0; }
}

/* Practical (desktop): the panel group is centred on the heading and copy. */
@media (min-width: 961px) {
  #practical .feature-grid { align-items: center; }
  #practical .panel-cluster { top: clamp(44px, 4.6vw, 66px); } /* the group itself is taller above than below, so it is nudged down to centre on the copy */
}


/* Capture: no hard edges. Each panel fades at its foot, and the whole row fades out across the outer strip where the
   neighbouring panels peek in, so nothing is cut off. The main panel sits in the clear middle. */
.cc-slide img { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.cc-track { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--peek), #000 calc(100% - var(--peek)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--peek), #000 calc(100% - var(--peek)), transparent 100%); }
.cc-slide figcaption { text-align: center; justify-items: center; }
#capture { overflow-x: clip; }

/* Tablet and phone: with no student-detail iPad to tuck under, the Learn group sits in the normal flow below the previous
   section's copy (no negative top margin), then its heading and text follow. */
@media (max-width: 960px) {
  #people .learn-scene { position: relative; order: -1; z-index: 0; width: min(112%, 600px); max-width: none; margin: 8px auto 0 -4.7%; align-self: center; }
  #people .learn-visual { display: contents; }
}

/* Arve (desktop): the panels straddle the edge of the navy section: it begins halfway up them, and they sit in front of it. */
@media (min-width: 961px) {
  .conf-panels { margin-bottom: -330px; z-index: 6; }
  #arve { z-index: 5; position: relative; }
}

/* Learn, mid-width desktop: the group fills the room to the right of the copy (it meets the wide-desktop size at 1280px, so there is no step there). The left of the group is the only part that moves (it is also a little narrower), so nothing crosses the page edge. */
@media (min-width: 961px) and (max-width: 1279px) {
  .learn-visual { --learn-w: min(calc(100vw - 388px - max(40px, (100vw - 1120px) / 2)), 850px); }
}

/* Tablet and phone: the Practical panels and the notebook are grouped tightly (the calendar leads, the earnings banner and the
   attention card tuck against its lower edge, the notebook sits just under them), and the navy section below Arve starts sooner. */
@media (max-width: 960px) {
  #practical .panel-cluster { aspect-ratio: 1 / .8; margin-top: clamp(24px, 6vw, 44px); margin-bottom: 0; }
  #practical .pc-slot-a { left: 4%; top: 0; width: 92%; margin-left: 0; }
  #practical .pc-slot-d { left: 4%; top: 69%; width: 64%; margin-left: 0; }
  #practical .pc-slot { transform: none; animation: none; } /* no scroll drift here: the panels keep their relative positions */
  #practical .pc-slot-c { left: 56%; top: 54%; width: 42%; margin-left: 0; }
  #practical .notes-scene { width: min(100%, 520px); margin: -36% auto -10%; }
  .pilot { padding-top: clamp(40px, 9vw, 72px); }
}

/* Mid-width desktops (961–1279px): the Learn section sits closer under the hero iPad. The old pull-up was sized for the Learn iPad
   that no longer exists, and it faded to nothing below ~1125px, leaving a wide empty band under the hero iPad. */
@media (min-width: 961px) and (max-width: 1279px) {
  #people { margin-top: calc(-82px - (100vw - 961px) * .0377); }
}

/* Learn, mid-width desktop: the group is a little larger. It grows by --lg (most around 1100px, easing back to its wide-desktop size by 1440px,
   so there is no step at 1280px), half to the left and half to the right, because the copy limits how far it can come left. */
@media (min-width: 961px) and (max-width: 1439px) {
  .learn-visual { --lg: min(40px, (1440px - 100vw) * .22, 20px + (100vw - 961px) * .3); --learn-w: calc(min(calc(100vw - 388px - max(40px, (100vw - 1120px) / 2)), 850px) + var(--lg)); }
  .learn-scene { right: calc(-1 * min(max(40px, (100vw - 1120px) / 2) - 16px, 120px) - var(--lg) / 2); }
}

/* EXPERIMENT: a large, faint sparkle behind and between the two Arve panels. It is a background accent only (no pointer events, aria-hidden).
   Reversible: remove data-sparkle="on" from #arve in index.html (or delete this block, the <img class="arve-sparkle"> and assets/art/arve-sparkle.png). */
.arve-sparkle { display: none; position: absolute; z-index: 0; left: calc(36% + 50px); top: 14%; width: 43.2%; height: auto; transform: translate(-39%, calc(-54% + (var(--conf-p, .5) - .5) * -50px)); opacity: .18; filter: blur(1px); pointer-events: none; user-select: none; }
#arve[data-sparkle="on"] .arve-sparkle { display: block; }
@media (max-width: 960px) { .arve-sparkle { left: 66%; top: 22%; width: 44.8%; opacity: .12; } }
/* Phones: the panels cover most of the group, so the sparkle is larger and sits higher, where it shows above and between them. */
@media (max-width: 640px) { .arve-sparkle { left: 50%; top: 10%; width: 80%; opacity: .2; } }

/* Tablet and phone: even breathing room around the Organise band. The text above it and the text inside it both had almost no space
   before the background colour changes, while the panels had plenty. */
@media (max-width: 960px) {
  #people { padding-bottom: clamp(28px, 5vw, 44px); }
  #practical { padding-bottom: clamp(28px, 5vw, 44px); }
}

/* Tablet and phone: half the space between the top of the Organise band and the calendar. The anchor offset gives back the same
   amount, so the Organise link still lands the heading level with the others. */
@media (max-width: 960px) {
  #practical { padding-top: clamp(28px, 6vw, 48px); }
  #practical .panel-cluster { margin-top: clamp(12px, 3vw, 22px); }
}
@media (max-width: 640px) { #practical { scroll-margin-top: calc(-52px - 1.18 * 100vw + (clamp(56px, 12vw, 96px) + clamp(24px, 6vw, 44px)) / 2); } }
@media (min-width: 641px) and (max-width: 960px) { #practical { scroll-margin-top: calc(50px - min(0.77 * 100vw + 306px, 950px) + (clamp(56px, 12vw, 96px) + clamp(24px, 6vw, 44px)) / 2); } }
