:root {
  --blue: #4898ee;
  --navy: #0b1a33;
  --paper: #f2f1ec;
  --paper2: #e6e4dc;
  --orange: #ff6a1f;
  --white: #ffffff;
  /* illustration tints, also the enroll sheet's notes */
  --pale: #dbe9fb;
  --peach: #ffb27a;

  --disp: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Schibsted Grotesk", Arial, sans-serif;

  --side: clamp(22px, 5vw, 84px);
  --gap: 14px;
  --ch: clamp(64px, 6.5vw, 104px);
  --r: 8px;
  --strip: 48px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --slap: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
picture { display: contents; } source { display: none; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--navy); color: var(--paper); padding: 10px 14px; }

.field-blue { background: var(--blue); color: var(--navy); }
.field-paper { background: var(--paper); color: var(--navy); }
.field-navy { background: var(--navy); color: var(--paper); }
.field-orange { background: var(--orange); color: var(--navy); }

/* type */
.h-hero, .h-sec, .t h3, .band-big, .foot-big, .wordmark, .mark, .foot-cols h3, .qa summary {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: 0;
}
.h-sec { font-weight: 900; font-size: clamp(52px, 6vw, 104px); line-height: .86; }
.sec-lead { font-size: clamp(18px, 1.35vw, 22px); line-height: 1.4; max-width: 38ch; }
/* where you are: Home / Courses / ... above an inner page's headline */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: clamp(16px, 1.8vw, 26px);
  font: 700 14px/1.2 var(--text); text-transform: uppercase; letter-spacing: .06em; }
.crumbs a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.crumbs a:hover { text-decoration-color: var(--orange); }
.crumbs [aria-hidden] { opacity: .5; }

/* moving between pages: the header and strip stay put, the page slides up into place.
   Jump links scroll instead of cutting. Reduced motion keeps the instant jump. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  .bar { view-transition-name: bar; }
  .strip { view-transition-name: strip; }
  ::view-transition-old(root) { animation: vt-out .16s ease-out both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(32px); } }

/* the H1 city line in white: display size only, 3.0:1 on slap blue (brand kit) */
.h-city { color: var(--white); }
.sec-lead a { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 700 16px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: transform .45s var(--slap), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1.5deg); }
.btn:active { transform: scale(.95); transition-duration: .08s; }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-ghost { box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.btn-ghost-light { box-shadow: inset 0 0 0 2px rgba(242,241,236,.6); color: var(--paper); }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 2px var(--paper); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* bar */
/* step up strip: the first thing on the page */
.strip { position: relative; z-index: 31; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: var(--strip); padding: 8px var(--side); background: var(--orange); color: var(--navy); text-decoration: none; font-size: 15px; }
.strip strong { font: 900 22px/1 var(--disp); text-transform: uppercase; letter-spacing: .01em; }
.strip-check { width: 22px; height: 22px; flex: none; }
.strip-check path { fill: none; stroke: var(--navy); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.strip-go { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.strip:hover .strip-go { text-decoration-color: var(--paper); }
.strip-phone { display: none; }

.bar { position: absolute; z-index: 30; top: var(--strip); left: 0; right: 0; display: flex; align-items: center; gap: 32px; padding: 22px var(--side); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 28px; line-height: 1; text-decoration: none; margin-right: auto; }
.mark-m { width: 1.5em; height: 1.5em; flex: none; margin: -.2em 0; }
.mark-m path { fill: none; stroke: var(--paper); stroke-width: 15; stroke-linejoin: round; stroke-linecap: round; }
.mark-m circle { fill: var(--orange); }
.bar nav { display: flex; gap: 28px; }
.bar nav a { font-weight: 600; font-size: 15px; text-decoration: none; }
.bar nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: max(800px, 100svh); padding: 128px var(--side) 72px; }
.hero-text { position: relative; z-index: 3; width: 52%; display: flex; flex-direction: column; gap: 26px; }
.h-hero { font-weight: 900; line-height: .82; }
.h-hero .fit { display: block; white-space: nowrap; width: max-content; }
.hero-lead { font-size: clamp(19px, 1.45vw, 23px); line-height: 1.38; max-width: 34ch; font-weight: 500; }
.hero-quote blockquote { font-size: 17px; font-style: italic; max-width: 34ch; }
.hero-quote figcaption { margin-top: 6px; font-size: 14px; font-weight: 700; }

/* hero art: kids at the bottom edge, a small blueprint card over the laptop, marks around them, never on a face */
.pop { position: absolute; z-index: 2; right: calc(var(--side) + var(--ch) * .5); bottom: 0; width: min(34vw, 540px, calc((100svh - 150px) / 1.54)); aspect-ratio: 908 / 1400; }
.pop-back { position: absolute; left: 6%; right: -4%; top: 4%; height: 70%; background: var(--orange); transform: rotate(4deg);
  clip-path: polygon(0 2%, 12% 0, 26% 2.4%, 40% .4%, 55% 2.6%, 70% 0, 84% 2%, 100% .6%, 98% 100%, 2% 98%); }
.pop-kids { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mk { position: absolute; overflow: visible; pointer-events: none; }
.mk path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mk-dots { left: -10%; top: 52%; width: 34%; height: 26%; fill: var(--navy); opacity: .9; }
.mk-wave { left: 30%; top: -6%; width: 44%; z-index: 3; }
.mk-wave path { stroke: var(--white); stroke-width: 9; }
.mk-zig { left: -8%; top: 16%; width: 22%; z-index: 3; }
.mk-zig path { stroke: var(--navy); stroke-width: 8; }
.mk-loop { left: -16%; top: 74%; width: 22%; z-index: 5; }
.mk-loop path { stroke: var(--white); stroke-width: 7; }
.note { position: absolute; z-index: 3; right: -10%; top: 36%; width: 30%; aspect-ratio: 4 / 5; transform: rotate(5deg); background-color: var(--paper);
  background-image: linear-gradient(rgba(72,152,238,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(72,152,238,.45) 1px, transparent 1px); background-size: 14px 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 16px; box-shadow: 0 2px 0 rgba(11,26,51,.1); }
.note i { display: block; width: 100%; height: 7px; border-radius: 4px; background: var(--navy); }
.note i:nth-child(2) { width: 70%; } .note i:nth-child(3) { width: 84%; }
/* the blueprint card covers the laptop corner and the photo's straight edges, nothing more */
.sheet { position: absolute; z-index: 4; left: 46%; top: 70%; width: 64%; height: 34%; transform: rotate(-8deg); transform-origin: 0 0; border-radius: 4px;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(72,152,238,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(72,152,238,.4) 1px, transparent 1px);
  background-size: 18px 18px; box-shadow: 0 -2px 0 rgba(11,26,51,.08); }
.sheet .tpl, .sheet-art { position: absolute; left: 4%; top: 6%; width: 74%; height: 86%; }
/* once the line has drawn the robot, it fills in on the paper like a marker sketch */
.sheet-art { fill: #ffb27a; opacity: 0; transition: opacity .7s var(--ease); }
.sheet-art .eye { fill: var(--navy); }
.sheet.drawn .sheet-art { opacity: .6; }
.tape { position: absolute; left: 30%; top: -7%; width: 18%; height: 14%; background: rgba(255,255,255,.62); transform: rotate(-6deg); box-shadow: 0 0 0 1px rgba(11,26,51,.06); }
.seal { position: absolute; z-index: 6; left: 14%; top: 75%; width: 30%; aspect-ratio: 1; transform: rotate(-10deg); transition: transform .6s var(--slap); }
.seal:hover { transform: rotate(4deg) scale(1.05); }
.seal svg { width: 100%; height: 100%; }
.seal-bg { fill: var(--navy); }
.seal-in { fill: none; stroke: var(--orange); stroke-width: 3; }
.seal-ring { fill: var(--paper); font: 900 21px var(--disp); letter-spacing: 1.6px; }
.seal-check { fill: none; stroke: var(--orange); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.d-spool { position: absolute; z-index: 2; width: 150px; height: 150px; top: calc(var(--strip) + 100px); right: calc(var(--side) / 2 - 75px); overflow: visible; }
.d-spool .spin { transform-origin: 110px 110px; }
.d-spool .fl { fill: rgba(255,255,255,.14); stroke: var(--white); stroke-width: 3; }
.d-spool .wound { fill: var(--orange); stroke: var(--navy); stroke-width: 2.5; }
.d-spool .wind { fill: none; stroke: #d9520f; stroke-width: 1.6; }
.d-spool .core { fill: var(--blue); stroke: var(--navy); stroke-width: 2.5; }
.d-spool .spoke { stroke: var(--white); stroke-width: 5; stroke-linecap: round; }
.d-spool .hub { fill: var(--paper); stroke: var(--navy); stroke-width: 2.5; }
.d-spool .hole { fill: var(--navy); }
.d-spool .tail { stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.spool-exit { position: absolute; top: calc(var(--strip) + 100px + 150px); right: calc(var(--side) / 2); width: 1px; height: 1px; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(84px, 9vw, 144px) var(--side); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(32px, 3.5vw, 56px); flex-wrap: wrap; }
.s-reviews .h-sec { margin-bottom: clamp(32px, 3.5vw, 56px); }
.grid { display: grid; gap: var(--gap); }

.t { position: relative; overflow: hidden; border-radius: var(--r); padding: clamp(22px, 2vw, 32px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.t-navy { background: var(--navy); color: var(--paper); }
.t-blue { background: var(--blue); color: var(--navy); }
.t-orange { background: var(--orange); color: var(--navy); }
.t-paper { background: var(--paper); color: var(--navy); }
.t-paper2 { background: var(--paper2); color: var(--navy); }
.t-white { background: var(--white); color: var(--navy); }
.t-photo { padding: 0; background: var(--paper2); }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.t-photo:hover img { transform: scale(1.04); }
.t h3 { font-weight: 900; font-size: clamp(32px, 2.8vw, 48px); line-height: .9; }

/* reviews */
.reviews { grid-template-columns: repeat(3, 1fr); }
.q { justify-content: space-between; min-height: clamp(240px, 20vw, 320px); }
.q blockquote { font-size: clamp(21px, 1.75vw, 29px); line-height: 1.24; font-weight: 500; letter-spacing: -0.01em; }
.q figcaption { font-size: 14px; font-weight: 700; }

/* how */
.how { grid-template-columns: 1fr 1fr; column-gap: var(--ch); }
.step { min-height: clamp(380px, 31vw, 480px); justify-content: flex-end; }
.tpl { position: absolute; left: 8%; right: 8%; top: 7%; height: 54%; width: 84%; visibility: hidden; }
g.tpl { visibility: hidden; }
.illo { position: absolute; left: 4%; top: 5%; width: 92%; height: 60%; overflow: visible; }
.illo .ink { stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.illo .thin { stroke-width: 2; }
.illo .keys { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-dasharray: 9 4; stroke-linecap: round; opacity: .55; }
.illo .wp { fill: #dbe9fb; stroke: var(--blue); stroke-width: 1.5; }
.illo .wpg { fill: none; stroke: var(--blue); stroke-width: .8; opacity: .7; }
.illo .cube path { stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.illo .cursor { fill: var(--white); stroke: var(--navy); stroke-width: 1.8; stroke-linejoin: round; }
.illo .layers { fill: none; stroke: var(--navy); stroke-width: 1.2; opacity: .35; }
.illo .grid-th { fill: none; stroke: var(--blue); stroke-width: 1; opacity: .8; }
.illo .plane path:first-child { fill: rgba(72,152,238,.28); stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 5; }
.illo .plane-edge { fill: none; stroke: var(--blue); stroke-width: 3.5; }
.illo .rod { stroke: #33507d; stroke-width: 3; }
.illo .rail { stroke: #9fb3cf; stroke-width: 5; stroke-linecap: round; }
.illo .tube { stroke: var(--paper); stroke-width: 3; opacity: .85; transition: stroke .4s; }
/* fed: the filament carries on down the tube into the head */
.drawn .illo .tube { stroke: var(--orange); stroke-width: 4; opacity: 1; }
.illo .inlet { fill: var(--navy); stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
/* traced drawings fill in once the line has drawn them */
.illo .model path, .illo .model circle, .illo .model rect { fill: #e9f1fb; stroke: var(--navy); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 5 4; }
.illo .model .eye { fill: var(--navy); stroke: none; }
.illo .cursor { transition: none; }
.step-text p { max-width: 38ch; margin-top: 10px; }
/* body copy holds three lines so the heads across a row line up */
.how .step-text p { min-height: 4.5em; }
.step.t-photo img { object-position: 16% 50%; }
.step-text.over { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2vw, 32px); color: var(--paper); background: linear-gradient(to top, rgba(11,26,51,.9), rgba(11,26,51,.55) 65%, rgba(11,26,51,0)); }

/* classes: one course leads, small tiles carry the facts */
.s-classes .h-sec { margin-bottom: clamp(32px, 3.5vw, 56px); }
.classes { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(5, minmax(96px, 1fr)); min-height: clamp(620px, 52vw, 780px); }
/* a course name in a heading is a link: an orange marker stripe under the words, and an arrow */
.h-link { color: inherit; text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 88% / 100% .2em no-repeat; transition: background-size .35s var(--ease); }
.h-link svg { display: inline-block; width: .5em; height: .5em; margin-left: .12em; vertical-align: .32em; overflow: visible; transition: transform .45s var(--slap); }
.h-link path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.h-link:hover { background-size: 100% .42em; }
.h-link:hover svg { transform: translate(3px, -3px); }
.course { text-decoration: none; justify-content: flex-end; color: var(--paper); }
.c-jump { grid-row: 1 / 6; }
.classes .stat { grid-row: 3 / 5; }
.c-cert { grid-row: 1 / 3; grid-column: 2 / 4; }
.next { grid-row: 5 / 6; grid-column: 2 / 4; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.course::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,26,51,.88), rgba(11,26,51,.4) 40%, rgba(11,26,51,0) 62%); }
.course-over { position: relative; z-index: 1; padding: clamp(22px, 2vw, 32px); padding-bottom: 0; }
.course-over p { margin-top: 12px; max-width: 36ch; }
.course .btn { position: relative; z-index: 1; margin: 20px clamp(22px, 2vw, 32px) clamp(22px, 2vw, 32px); }
.course:hover .btn { transform: translateY(-2px) rotate(-1.5deg); }
.kicker { display: block; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; color: var(--orange); }
.course h3 { font-size: clamp(40px, 4vw, 72px); max-width: 12ch; }
.stat { justify-content: flex-end; }
/* price reads top down, length bottom up, so the two stat tiles never mirror each other */
.stat-top { justify-content: flex-start; }
.stat-top .stat-big { font-size: clamp(64px, 6.6vw, 116px); }
.stat-big { font: 900 clamp(56px, 5.6vw, 96px)/.86 var(--disp); text-transform: uppercase; }
.t-navy .stat-big { color: var(--orange); }
.stat p:last-child { font-size: 15px; max-width: 28ch; }
.c-cert img { object-position: 50% 60%; }
.next h3 { font-size: clamp(24px, 2vw, 34px); white-space: nowrap; }
.next { text-decoration: none; }
.next .more svg { width: 26px; height: 26px; }
.next:hover .more svg { transform: translate(3px, -3px); }
.next p { display: none; }
.more { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more svg { width: 18px; height: 18px; transition: transform .45s var(--slap); }
.more path { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.more:hover svg { transform: translate(3px, -3px); }

/* made */
.made { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: stretch; }
/* photo, title and line share rows across the grid, so captions line up whether they wrap or not */
.pc { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; min-width: 0; }
.pc .t-photo { aspect-ratio: 1; }
.m-truck { order: -1; }
.m-truck .t-photo { aspect-ratio: auto; }
.pc figcaption { display: contents; font-size: 15px; }
/* an orange highlighter under each line of the title */
.pc figcaption strong { align-self: start; margin-top: 14px; margin-bottom: 6px; font: 900 26px/1.05 var(--disp); text-transform: uppercase;
  text-decoration: underline var(--orange); text-decoration-thickness: .42em; text-underline-offset: -.3em; text-decoration-skip-ink: none; }
.pc figcaption > span { display: block; font-size: 15px; line-height: 1.55; text-wrap: balance; }
/* the age is a small navy tag, so it never sits alone on a line */
.pc-age { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--navy); color: var(--paper); font: 700 13px/1.4 var(--text); }

/* sam: the hero's recipe. A grayscale cutout, mirrored so he reaches toward the text, stands
   on the bottom edge of the field and runs off the left edge of the page: hard edges only, no fades.
   A blue torn sheet behind him, hand marks around him, never on his face. */
.sam { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(28px, 4vw, 72px); align-items: end; }
/* the field's bottom edge cuts the collage: nothing hangs into the next section */
.s-sam { overflow: hidden; }
.sam-photo { position: relative; width: clamp(300px, 36vw, 540px); margin: 0 0 calc(-1 * clamp(84px, 9vw, 144px)) calc(-1 * var(--side)); aspect-ratio: 1040 / 1300; }
.sam-back { position: absolute; left: 6%; width: 62%; top: 9%; height: 38%; background: var(--blue); transform: rotate(4deg);
  clip-path: polygon(0 1%, 14% 0, 28% 2.4%, 42% .4%, 57% 2.6%, 72% 0, 86% 2%, 100% .6%, 98% 100%, 0 98%); }
.sam-cut { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; object-fit: cover; object-position: 0 0; }
.sm-dots { left: 48%; top: 56%; width: 26%; height: 15%; fill: var(--navy); opacity: .9; z-index: 1; }
.sm-wave { left: 4%; top: 1%; width: 30%; z-index: 3; }
.sm-wave path { stroke: var(--white); stroke-width: 9; }
.sm-zig { right: 2%; top: 18%; width: 18%; z-index: 3; }
.sm-zig path { stroke: var(--navy); stroke-width: 8; }
.sm-loop { left: -2%; top: 50%; width: 15%; z-index: 5; }
/* the hero's grid note card, tucked under his reaching hand */
.sam-note { z-index: 1; right: 4%; left: auto; top: 33%; width: 19%; gap: 9px; padding: 0 12px; }
.sam-note i { height: 6px; }
.sm-loop path { stroke: var(--white); stroke-width: 7; }
.thats-me { position: absolute; z-index: 4; left: 58%; top: 2%; color: var(--paper); background: var(--navy); padding: 10px 14px 11px; pointer-events: none; transform: rotate(-5deg); }
.tm-label { display: block; font: 900 clamp(30px, 3vw, 48px)/.9 var(--disp); text-transform: uppercase; white-space: nowrap; }
.tm-sub { display: block; font-size: 14px; font-weight: 600; margin-top: 4px; line-height: 1.25; white-space: nowrap; }
.tm-arrow { position: absolute; right: 100%; top: 18%; width: clamp(34px, 3.4vw, 52px); overflow: visible; }
.tm-arrow path { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
/* the dark hull runs into a navy block on the floor of the field, so the photo never ends on a bare cut */
.sam-block { position: absolute; z-index: 1; right: -9%; bottom: -2%; width: 64%; height: 32%; transform: rotate(-4deg); transform-origin: 100% 100%;
  background-color: #1d3358; background-image: linear-gradient(rgba(166,204,244,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(166,204,244,.22) 1px, transparent 1px); background-size: 18px 18px;
  clip-path: polygon(0 3%, 10% 0, 22% 2.6%, 36% .4%, 50% 3%, 64% .6%, 78% 2.8%, 90% .2%, 100% 2%, 100% 100%, 0 100%); }
/* the cards end level with the top of the navy plinth: the two dark masses share one line */
.sam-text { align-self: end; padding-bottom: max(24px, calc(clamp(300px, 36vw, 540px) * 1.25 * .3 - clamp(84px, 9vw, 144px))); }
/* the heading carries the right column's weight against the collage: hero scale, filling its width */
#h-sam { font-size: clamp(64px, 12.4vw, 196px); line-height: .82; margin-bottom: .1em; }
.sam-text { display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.sam-text p { max-width: 48ch; font-size: 18px; }
.sam-more { display: contents; }
/* phones lift the first sentence above the collage; everywhere else it opens the first paragraph */
.sam-lede { display: none; }
.why { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 10px; }
.why li { background: var(--navy); color: var(--paper); border-radius: var(--r); padding: 18px; font-size: 15px; }
.why strong { display: block; font: 900 24px/1 var(--disp); text-transform: uppercase; margin-bottom: 6px; color: var(--orange); }

/* faq */
.faq { grid-template-columns: 4fr 8fr; column-gap: clamp(32px, 5vw, 96px); align-items: start; }
.faq .h-sec { position: sticky; top: 32px; }
.qa { display: flex; flex-direction: column; gap: 10px; }
.qa details { display: block; padding: 0 clamp(20px, 2vw, 30px); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-weight: 900; font-size: clamp(24px, 2vw, 32px); line-height: 1; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(var(--navy), var(--navy)) center/100% 3px no-repeat, linear-gradient(var(--navy), var(--navy)) center/3px 100% no-repeat; transition: transform .45s var(--slap); }
.qa details[open] summary::after { transform: rotate(135deg); }
.qa details p { padding-bottom: 26px; max-width: 60ch; }
.qa details p.qa-sub { padding-bottom: 8px; }
.qa-steps { margin: 0 0 22px; padding-left: 1.4em; max-width: 60ch; }
.qa-steps li { padding: 3px 0; }
.qa-steps li::marker { font-weight: 700; }
.ask { margin-top: 18px; font-size: 18px; }
.ask a { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* footer */
.foot { position: relative; overflow: hidden; padding: clamp(84px, 9vw, 140px) var(--side) 0; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.foot-big { font-weight: 900; font-size: clamp(52px, 6vw, 104px); line-height: .86; max-width: 12ch; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 80px; }
.foot-cols h3 { font-weight: 800; font-size: 24px; margin-bottom: 12px; color: var(--blue); }
.foot-cols a { display: block; width: fit-content; text-decoration: none; font-weight: 600; padding: 3px 0; }
.foot-cols a:hover { color: var(--orange); }
.foot-cols p { max-width: 30ch; margin-top: 10px; }
.legal { padding: 0 0 28px; font-size: 14px; color: rgba(242,241,236,.6); }
/* the end of the page. A: name over the ribbons. B: small name under them. C: the name gets printed. D: a print bed */
.end { position: relative; margin: 88px calc(var(--side) * -1) 0; padding: 0 var(--side); }
.wordmark { position: relative; z-index: 2; font-weight: 900; line-height: .78; white-space: nowrap; color: var(--paper); }
.wordmark .fit { display: block; width: max-content; }
.wordmark .ghost { display: none; }
.ribbons { display: block; width: calc(100% + var(--side) * 2); max-width: none; height: clamp(120px, 13vw, 210px); margin: 0 calc(var(--side) * -1); }
.rb { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.rb1 { stroke: var(--orange); stroke-width: 14; }
.rb2 { stroke: var(--blue); stroke-width: 12; transition-delay: .12s; }
.rb3 { stroke: var(--white); stroke-width: 6; transition-delay: .24s; }
.rb4 { stroke: #a6ccf4; stroke-width: 10; transition-delay: .36s; }
.foot.on .rb { stroke-dashoffset: 0; }
.nozzle, .plate, .bedrow { display: none; }
.end-at { position: absolute; width: 1px; height: 1px; }

/* A: ribbons sweep through, the name sits on top of them */
.foot-a .ribbons { position: absolute; left: 0; bottom: 4%; height: 78%; margin: 0; width: 100%; z-index: 1; }
.foot-a .end { padding-bottom: clamp(36px, 4vw, 64px); }

/* B: the ribbons own the end, a small name tucks in underneath */
.foot-b .wordmark { order: 2; font-size: clamp(26px, 2.4vw, 38px) !important; line-height: 1; padding: 18px 0 26px; color: var(--paper); }
.foot-b .end { display: flex; flex-direction: column; }
.foot-b .ribbons { order: 1; height: clamp(160px, 18vw, 280px); }

/* C: a nozzle prints the name, layer by layer, onto a build plate */
.foot-c .end { padding-top: 120px; }
.foot-c .ribbons { display: none; }
.foot-c .wordmark .fit { color: transparent; background: repeating-linear-gradient(to bottom, var(--paper) 0 5px, #d8d6cd 5px 6px); -webkit-background-clip: text; background-clip: text; clip-path: inset(var(--cut, 100%) -2% -2% -2%); }
.foot-c .wordmark .ghost { display: block; position: absolute; left: 0; top: 0; width: max-content; color: transparent; -webkit-text-stroke: 1.5px rgba(166,204,244,.35); }
.foot-c .nozzle { display: block; position: absolute; z-index: 3; width: 64px; height: 72px; left: 0; top: 0; overflow: visible; }
.foot-c .nz-fil { stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.foot-c .plate { display: block; height: 22px; margin: 6px calc(var(--side) * -1) 0; background: #1d3358; border-top: 5px solid var(--blue);
  background-image: repeating-linear-gradient(90deg, transparent 0 46px, rgba(166,204,244,.25) 46px 48px); }

/* D: what students print, standing on a build plate */
.foot-d .ribbons { display: none; }
.foot-d .end { display: flex; flex-direction: column; padding-bottom: 0; }
.foot-d .wordmark { order: 1; } .foot-d .bedrow { order: 2; } .foot-d .plate { order: 3; margin-bottom: 24px !important; }
.foot-d .wordmark { margin-bottom: 76px; }
.foot-d .bedrow { display: flex; justify-content: space-evenly; align-items: flex-end; gap: 2vw; padding: 0 2vw; }
.foot-d .bedrow { --u: clamp(.8px, 1.1vw, 1.5px); }
.foot-d .toy { height: calc(var(--h) * var(--u)); width: calc(var(--w) * var(--u)); overflow: visible; display: block; }
.foot-d .toy .s { stroke: var(--paper); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.foot-d .toy .g { clip-path: inset(var(--cut, 100%) -10% -10% -10%); }
.foot-d .plate { display: block; height: 22px; margin: 0 calc(var(--side) * -1); background: #1d3358; border-top: 5px solid transparent;
  background-image: repeating-linear-gradient(90deg, transparent 0 46px, rgba(166,204,244,.25) 46px 48px); }
.foot-d .nozzle { display: block; position: absolute; z-index: 3; width: 44px; height: 50px; left: 0; top: 0; opacity: 0; overflow: visible; transition: opacity .3s; }
.foot-d .nz-fil { stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.foot-d .arm { display: block; position: absolute; z-index: 2; left: 0; top: 0; height: 7px; width: 0; border-radius: 4px; background: #9fb3cf; box-shadow: inset 0 -2px 0 #33507d; }
.foot-d .hotlayer { position: absolute; z-index: 2; height: 3px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 10px var(--orange); opacity: 0; left: 0; top: 0; width: 0; }
.foot-d .toy .s[fill="none"], .foot-d .toy path.s:not([fill]) { fill: none; }

/* ---------- the living line ---------- */
.line { position: absolute; left: 0; top: 0; z-index: 25; pointer-events: none; overflow: visible; max-width: none; }
#pieces path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pc-fil { stroke: var(--orange); stroke-width: 6; }
.pc-case { stroke: var(--navy); stroke-width: 10; }
.pc-plate { stroke: var(--blue); stroke-width: 5; stroke-linecap: butt !important; }
.pc-layer { stroke: var(--orange); stroke-width: 4.6; stroke-linecap: butt !important; }
#rider { opacity: 0; pointer-events: none; }
.launched .obj { opacity: 0; }
.pc-thin { stroke-width: 2.6; }
.pc-th { stroke-width: 1.5; opacity: .75; }
.pc-hot { stroke: var(--orange); stroke-width: 3.6; }
#tip { fill: var(--orange); stroke: var(--white); stroke-width: 2.5; transition: opacity .3s; }

/* entrances */
.js .sec .t, .js .sec .h-sec, .js .sec .sec-lead, .js .pc, .js .band > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: var(--i, 0ms); }
.js .in { opacity: 1 !important; transform: none !important; }
.js .h-hero .fit { clip-path: inset(0 0 100% 0); transform: translateY(30%); transition: clip-path .9s var(--ease), transform .9s var(--ease); }
.js .go .h-hero .fit { clip-path: inset(0 0 -10% 0); transform: none; }
.js .go .h-hero .fit:nth-child(2) { transition-delay: .08s; }
.js .go .h-hero .fit:nth-child(3) { transition-delay: .16s; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  /* narrow columns wrap the step text taller, so the tile grows to keep it clear of the drawing */
  .step { min-height: 450px; }
  .bar nav { display: none; }
  .hero-text { width: 56%; }
  .pop { right: calc(var(--side) * .5); }
  .band { grid-template-columns: 1fr; }
  .made { grid-template-columns: repeat(3, 1fr); }
  .m-truck { grid-column: 1 / -1; }
  .m-truck .t-photo { aspect-ratio: 2 / 1; }
  .classes { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .c-jump { grid-row: auto; grid-column: 1 / -1; min-height: 420px; }
  .classes .stat, .c-cert, .next { grid-row: auto; grid-column: auto; }
  .c-cert { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .next { grid-column: 1 / -1; }
  .strip-text { display: none; }
  .why { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --side: 26px; --gap: 10px; --ch: 40px; --strip: 68px; }
  body { font-size: 16px; }
  .bar { padding: 16px var(--side); }
  .mark { font-size: 23px; }
  .bar .btn { min-height: 42px; padding: 0 18px; }
  .hero { min-height: 0; padding: 92px var(--side) 0; }
  .hero-text { width: 100%; }
  .d-spool, .spool-exit { display: none; }
  /* buttons stack at one width on the left; the collage rises into the space beside them */
  .pop { position: relative; right: auto; width: 67%; margin: -92px 0 0 auto; }
  .pop .mk-zig { display: none; }
  .hero-quote { display: none; }
  .hero .row { flex-direction: column; align-items: flex-start; }
  .hero .row { gap: 8px; }
  .hero .row .btn { width: 112px; min-height: 40px; padding: 0 8px; font-size: 13px; }
  .seal { left: 4%; width: 34%; top: 56%; }
  .note { right: -10%; }
  .strip { justify-content: center; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; padding: 10px var(--side); text-align: center; }
  .strip-text, .strip-go { display: none; }
  .strip-go.strip-phone { display: inline; }
  .classes { grid-template-rows: none; min-height: 0; }
  .foot-d .bedrow { --u: .7px; justify-content: space-between; padding: 0 4px; }
  .foot-d .toy:nth-child(3), .foot-d .toy:nth-child(4) { display: none; }
  .c-jump, .c-adv { grid-row: auto; min-height: 380px; }
  .classes .stat, .c-cert, .next { grid-row: auto; grid-column: auto; }
  .c-cert { display: none; }
  /* the course photo sits on top, its words below on navy, never over the busy photo */
  .classes .course { min-height: 0; justify-content: flex-start; background: var(--navy); }
  .classes .course img { position: relative; height: auto; aspect-ratio: 4 / 3; }
  .classes .course::after { display: none; }
  /* phone: heading, first lines and the collage on orange; the rest of the bio on a blue band the collage stands on */
  .s-sam { padding-bottom: 0; }
  .sam { row-gap: 0; }
  .sam-text { display: contents; }
  .sam-text .h-sec { order: 1; text-align: right; }
  .sam-text > .sam-lede { display: block; order: 2; margin-top: 18px; }
  .sam-first { display: none; }
  .sam-photo { order: 3; width: 88%; margin-top: 24px; margin-bottom: 0; }
  .sam-more { order: 4; position: relative; z-index: 3; display: flex; flex-direction: column; gap: 18px; margin: 0 calc(-1 * var(--side)); padding: 44px var(--side) 84px; background: var(--blue); }
  .sm-zig, .tm-arrow { display: none; }
  .tm-sub { max-width: none; white-space: nowrap; font-size: 13px; }
  .thats-me { left: 50%; }
  .m-truck .t-photo { aspect-ratio: 2 / 1; }
  .pc figcaption, .pc figcaption > span { font-size: 13px; }
  .pc-age { font-size: 12px; padding: 1px 7px; }
  .pc figcaption strong { font-size: 19px; }
  .how .step-text p { min-height: 0; }
  .reviews, .how, .classes, .sam, .faq { grid-template-columns: 1fr; }
  .q { min-height: 0; gap: 28px; }
  .step { min-height: 420px; }
  .faq .h-sec { position: static; margin-bottom: 20px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
}

/* while the line measures the page, nothing is mid-entrance */
.measuring [data-trace] .art { transition: none !important; }
.measuring .sec .t, .measuring .sec .h-sec, .measuring .sec .sec-lead, .measuring .pc, .measuring .band > * { transform: none !important; transition: none !important; }
