/* Annelise Yee Field portfolio
   Layout: airy single column, image-led sections on pale periwinkle bands joined by drifting wave edges. */
:root {
  --bg: #f7f8fe;
  --surface: #ffffff;
  --mist: #eceffd;      /* periwinkle band */
  --sky: #e4effd;       /* pale blue band */
  --peri: #c7cdf7;
  --lilac: #d9cffa;
  --ink: #171a38;
  --ink-2: #464b6e;
  --ink-3: #757a9b;
  --line: #dde1f3;
  --accent: #4d58d3;
  --accent-ink: #363fa8;
  --accent-soft: #e2e5fc;
  --device: #14162b;
  --shadow: 0 30px 60px -28px rgba(54, 63, 168, .35), 0 10px 24px -12px rgba(23, 26, 56, .12);
  --radius: 20px;
  --max: 1180px;
  --read: 660px;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C180 0 540 0 720 30S1260 60 1440 30V60H0z'/%3E%3C/svg%3E");
  --wave-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C180 60 540 60 720 30S1260 0 1440 30V0H0z'/%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.read { max-width: var(--read); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section { padding-block: 96px; }
.section.tight { padding-block: 40px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1em; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .ico { width: 16px; height: 16px; }
.lede { font-size: 1.22rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Wavy bands: the edge drifts slowly so sections feel like they flow into each other */
.band { position: relative; background: var(--mist); }
.band.sky { background: var(--sky); }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: clamp(22px, 3.6vw, 52px);
  background: inherit; z-index: 1; pointer-events: none;
  -webkit-mask: var(--wave) repeat-x 0 0 / 1440px 100%; mask: var(--wave) repeat-x 0 0 / 1440px 100%;
  animation: drift 40s linear infinite;
}
.band::before { bottom: calc(100% - 1px); }
.band::after { top: calc(100% - 1px); -webkit-mask-image: var(--wave-down); mask-image: var(--wave-down); animation-direction: reverse; }
@keyframes drift { to { -webkit-mask-position: 1440px 0; mask-position: 1440px 0; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 254, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand::before { content: ""; width: 20px; height: 20px; flex: none; background: linear-gradient(135deg, var(--accent), #9aa4ff); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 6s ease-in-out infinite; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover::before { transform: rotate(90deg) scale(1.15); animation: none; }
@keyframes twinkle { 0%, 86%, 100% { transform: scale(1) rotate(0); } 92% { transform: scale(.75) rotate(45deg); } }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; font-weight: 650; color: var(--ink); padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  .nav a { display: block; padding: 12px 14px; font-size: 1.05rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 999px; text-decoration: none; font-weight: 650; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .25s var(--ease), background .2s, box-shadow .25s; }
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(77, 88, 211, .6); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow { font-weight: 650; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Hero */
.hero { position: relative; padding-block: 72px 40px; text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -10% 0 0; z-index: -1;
  background: radial-gradient(40% 50% at 20% 30%, var(--lilac), transparent 70%), radial-gradient(45% 55% at 82% 40%, #cfe2ff, transparent 70%), radial-gradient(35% 40% at 50% 85%, var(--peri), transparent 70%);
  opacity: .75; animation: blobs 18s ease-in-out infinite alternate; }
@keyframes blobs { to { transform: scale(1.08) translateY(-12px); filter: hue-rotate(-12deg); } }
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hello { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--accent); letter-spacing: -0.01em; margin: 0 0 .35em; }
.hero .lede { max-width: 40ch; margin: 0 auto; }
.hero .btn-row { justify-content: center; }
.hero-stage { margin-top: 56px; }
.word { display: inline-block; animation: word-in .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } }
.fade-in { animation: word-in 1s var(--ease) both; animation-delay: var(--d, .5s); }

/* Device mockups */
.devices { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; max-width: 1040px; margin: 0 auto; }
.laptop { width: 82%; filter: drop-shadow(0 40px 50px rgba(54, 63, 168, .22)); }
.laptop .screen { border: clamp(6px, 1vw, 12px) solid var(--device); border-bottom-width: clamp(10px, 1.4vw, 18px); border-radius: clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 20px) 0 0; position: relative; overflow: hidden; background: #fff; }
/* Screen shapes come from a padding spacer, not aspect-ratio, so older phone browsers can't stretch them to the full screenshot height */
.laptop .screen::before { content: ""; display: block; padding-top: 62.5%; }
.laptop .screen > img, .phone > img { position: absolute; left: 0; top: 0; }
.laptop .base { height: clamp(8px, 1.3vw, 16px); background: linear-gradient(#eef0f7, #b9bed1); border-radius: 0 0 50% 50% / 0 0 100% 100%; margin: 0 -7%; position: relative; }
.laptop .base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 40%; transform: translateX(-50%); background: #a6abc0; border-radius: 0 0 8px 8px; }
.laptop .screen > img { width: 100%; }
.laptop .screen > img.cover { height: 100%; object-fit: cover; object-position: top; }
.phone { position: absolute; right: 2%; bottom: -4%; width: 19%; border: clamp(4px, .7vw, 8px) solid var(--device); border-radius: clamp(16px, 2.6vw, 30px); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.phone::before { content: ""; display: block; padding-top: 211.1%; }
.devices.solo .laptop { width: 100%; }
.float { animation: float 7s ease-in-out infinite; }
.float.slow { animation-duration: 9s; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-10px); } }
/* Screens inside device mockups scroll a little as the page scrolls (driven by main.js) */
.scroller { width: 100%; will-change: transform; }
.devices-caption { margin-top: 28px; font-size: .9rem; color: var(--ink-3); text-align: center; }

/* Featured work (home) */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.feature { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.feature-media { border-radius: 28px; overflow: hidden; aspect-ratio: 4/3; background: var(--mist); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature-body { padding: 24px 6px 0; }
.feature h3 { font-size: 1.6rem; margin-bottom: .25em; }
.feature:hover h3 { color: var(--accent); }
.stat { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: .92rem; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.stat .ico { width: 16px; height: 16px; }
.more-row { margin-top: 40px; text-align: center; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.why .big { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); }
.why .big + p { color: var(--ink-2); }
.principles { display: grid; gap: 18px; margin-top: 28px; padding: 0; list-style: none; }
.principles li { display: flex; gap: 14px; align-items: flex-start; }
.principles .ico-badge { margin-top: 2px; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; gap: 24px; } }
.ico-badge { width: 44px; height: 44px; border-radius: 14px; background: var(--surface); color: var(--accent); display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px -8px rgba(54, 63, 168, .35); }

/* Characters (home) */
.arches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.arch { text-decoration: none; color: inherit; display: block; }
.arch-frame { position: relative; aspect-ratio: 3/4.2; border-radius: 999px 999px 24px 24px; background: linear-gradient(180deg, #ffffff 0%, var(--accent-soft) 100%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 18% 10% 0; box-shadow: inset 0 0 0 1px rgba(77, 88, 211, .08); transition: transform .5s var(--ease), box-shadow .5s; }
.arch-frame img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; transition: transform .6s var(--ease); transform-origin: bottom center; }
.arch:hover .arch-frame { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(77, 88, 211, .2), var(--shadow); }
.arch:hover .arch-frame img { transform: scale(1.06) rotate(-1.5deg); }
.arch b { display: block; font-family: var(--display); font-size: 1.15rem; margin-top: 14px; }
.arch span { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 820px) { .arches { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* Learning Experiences list */
.project-rows { display: grid; gap: 40px; margin-top: 16px; }
.project-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; text-decoration: none; color: inherit; padding: 28px; border-radius: 32px; transition: background .4s; }
.project-row > * { min-width: 0; }
.project-row:hover { background: var(--surface); }
.project-row:nth-child(even) .project-media { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; background: var(--mist); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-row:hover .project-media img { transform: scale(1.04); }
.project-row h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.project-row:hover h2 { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; padding: 0; list-style: none; }
.tags li { font-size: .82rem; font-weight: 550; background: var(--surface); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; color: var(--ink-2); }
@media (max-width: 820px) { .project-row { grid-template-columns: 1fr; gap: 24px; padding: 0; } .project-row:nth-child(even) .project-media { order: 0; } .project-row:hover { background: none; } }

/* Case study */
.cs-hero { padding-block: 72px 32px; position: relative; isolation: isolate; }
.cs-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 10%, var(--lilac), transparent 70%), radial-gradient(40% 60% at 5% 0%, #d6e6ff, transparent 70%); opacity: .7; }
.cs-hero h1 { max-width: 16ch; }
.back-link { font-size: .92rem; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; margin-bottom: 20px; }
.imagine { display: flex; gap: 18px; align-items: flex-start; font-family: var(--display); font-weight: 450; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); background: var(--surface); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0 0; max-width: 760px; box-shadow: 0 10px 30px -18px rgba(54, 63, 168, .35); }
.imagine .ico-badge { background: var(--accent-soft); box-shadow: none; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; margin: 0 0 32px; }
.result { background: var(--surface); border-radius: var(--radius); padding: 22px 22px 20px; border: 1px solid var(--line); }
.result b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--accent-ink); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.result span { font-size: .92rem; color: var(--ink-2); display: block; }
.snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; margin: 0; }
.snapshot div { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.snapshot .ico-badge { width: 40px; height: 40px; border-radius: 12px; }
.snapshot dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-weight: 700; }
.snapshot dd { margin: 2px 0 0; font-size: .97rem; line-height: 1.45; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; align-items: center; }
.tools li { font-size: .84rem; font-weight: 550; background: var(--surface); border: 1px solid var(--line); padding: 5px 13px; border-radius: 999px; color: var(--ink-2); }
.tools li.label { background: none; border: 0; padding-left: 0; display: inline-flex; gap: 8px; align-items: center; color: var(--ink-3); }
.tools li.label .ico { width: 18px; height: 18px; }
.section-label { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 16px; } }
.step { margin: 96px 0 0; }
.step:first-of-type { margin-top: 48px; }
.step-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; max-width: 760px; }
.step-head > * { min-width: 0; }
.step-num { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--accent); background: var(--surface); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgba(54, 63, 168, .45); }
.step-head h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-top: 10px; }
.step.has-aside .step-head { grid-template-columns: auto 1fr minmax(140px, 220px); max-width: none; align-items: start; column-gap: 32px; }
.guide { margin: 0; text-align: center; }
.guide img { max-height: 240px; width: auto; margin: 0 auto; }
.guide figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 760px) { .step.has-aside .step-head { grid-template-columns: 1fr; } .guide img { max-height: 200px; } }
.step-body { margin-top: 28px; }
@media (max-width: 600px) { .step-head { grid-template-columns: 1fr; gap: 8px; } .step-head h3 { margin-top: 4px; } .step-num { width: 44px; height: 44px; } }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--ink-3); margin-top: 12px; }
.frame { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(54, 63, 168, .4); }
.frame img, .frame video { width: 100%; }
.frame figcaption, .frame .cap { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.frame figcaption .ico, .frame .cap .ico { width: 18px; height: 18px; color: var(--accent); }
.pad { padding: 28px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.two.stretch { align-items: stretch; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.two > *, .three > * { min-width: 0; }
@media (max-width: 720px) { .two, .three { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 28px; }
.checklist { padding-left: 0; list-style: none; display: grid; gap: 14px; }
.checklist li { padding-left: 40px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d58d3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat; }
.next-cs { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-block: 40px; flex-wrap: wrap; }
.next-cs .next { text-decoration: none; text-align: right; }
.next-cs .next b { display: block; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; color: var(--ink); transition: color .2s; }
.next-cs .next:hover b { color: var(--accent); }

/* Benefits: animated workflow */
.flow { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 36px 28px 32px; background: var(--surface); border-radius: 28px; box-shadow: 0 20px 50px -30px rgba(54, 63, 168, .45); counter-reset: flow; }
.flow-line { position: absolute; left: calc(28px + (100% - 56px) / 12); right: calc(28px + (100% - 56px) / 12); top: 64px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.flow-line::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), #8f9bff); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease) .2s; }
.flow-line::after { content: ""; position: absolute; top: 0; left: -60px; width: 60px; height: 100%; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0; }
.flow.in .flow-line::before { transform: scaleX(1); }
.flow.in .flow-line::after { opacity: .9; animation: shimmer 3s 2.4s ease-in-out infinite; }
@keyframes shimmer { from { left: -60px; } to { left: 100%; } }
.flow-step { position: relative; text-align: center; z-index: 1; }
.flow-step .dot { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-3); box-shadow: inset 0 0 0 2px var(--line); transition: background .5s, color .5s, box-shadow .5s, transform .5s var(--ease); transition-delay: calc(var(--i) * .33s + .2s); }
.flow-step .dot .ico { width: 26px; height: 26px; }
.flow.in .flow-step .dot { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(77, 88, 211, .8); transform: scale(1.04); }
.flow-step b { display: block; font-family: var(--display); font-size: 1.02rem; letter-spacing: -0.01em; }
.flow-step span { display: block; font-size: .84rem; color: var(--ink-3); line-height: 1.4; margin-top: 4px; }
.flow-step b::before { counter-increment: flow; content: counter(flow) ". "; color: var(--accent); }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; }
  .flow-line { left: 53px; right: auto; top: 40px; bottom: 40px; width: 3px; height: auto; }
  .flow-line::before { transform: scaleY(0); transform-origin: top; }
  .flow.in .flow-line::before { transform: scaleY(1); }
  .flow-line::after { display: none; }
  .flow-step { display: grid; grid-template-columns: 60px 1fr; gap: 18px; text-align: left; align-items: center; }
  .flow-step .dot { margin: 0; }
}

/* Before / after */
.ba { display: grid; grid-template-columns: .8fr auto 1.4fr; gap: 24px; align-items: center; }
.ba > * { min-width: 0; }
.ba-arrow { color: var(--ink-3); display: grid; place-items: center; }
.ba-arrow .ico { width: 34px; height: 34px; stroke-width: 1.3; }
.ba.even { grid-template-columns: 1fr auto 1fr; }
@media (max-width: 760px) { .ba, .ba.even { grid-template-columns: 1fr; } .ba-arrow { margin: 0 auto; transform: rotate(90deg); } }

/* Character sheets */
.sheet { background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: 0 18px 40px -26px rgba(54, 63, 168, .4); display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sheet-head b { font-family: var(--display); font-size: 1.3rem; }
.sheet-head span { font-size: .85rem; color: var(--ink-3); }
.sheet-art { flex: 1; display: grid; place-items: center; background: linear-gradient(180deg, var(--bg), var(--mist)); border-radius: 16px; padding: 20px; }
.sheet-art img { max-height: 440px; width: auto; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 16px; }
.swatches div { font-size: .7rem; color: var(--ink-3); line-height: 1.3; min-width: 0; }
.swatches i { display: block; aspect-ratio: 1.6; border-radius: 8px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.swatches b { display: block; color: var(--ink-2); font-weight: 600; font-size: .74rem; }
@media (max-width: 480px) { .swatches { grid-template-columns: repeat(3, 1fr); } }
.see-more { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 22px 28px; border-radius: 22px; background: var(--surface); text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s; }
.see-more:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.see-more .faces { display: flex; }
.see-more .faces img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--mist); border: 3px solid var(--surface); margin-left: -12px; }
.see-more .faces img:first-child { margin-left: 0; }
.see-more b { font-family: var(--display); font-size: 1.15rem; }

/* Continuity: two formats */
.formats { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.formats > * { min-width: 0; }
.format { background: var(--surface); border-radius: 26px; padding: 28px; box-shadow: 0 18px 40px -26px rgba(54, 63, 168, .4); }
.format-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.format-head .ico-badge { width: 52px; height: 52px; background: var(--accent); color: #fff; }
.format-head .ico-badge .ico { width: 26px; height: 26px; }
.format.offline .format-head .ico-badge { background: #7f8ae6; }
.format-head b { font-family: var(--display); font-size: 1.3rem; display: block; line-height: 1.15; }
.format-head > span > span { display: block; font-size: .86rem; color: var(--ink-3); }
.format ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.format li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: .97rem; }
.format li .ico { color: var(--accent); width: 20px; height: 20px; }
.formats-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 14px; }
.formats-mid span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 16px 8px; border-radius: 999px; }
.goals { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.goals span { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; color: var(--ink-2); box-shadow: 0 6px 16px -10px rgba(54, 63, 168, .4); }
.goals .ico { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; gap: 14px; } .formats-mid span { writing-mode: horizontal-tb; transform: none; padding: 6px 16px; } }

/* Click-to-play demos */
.demo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(54, 63, 168, .4); display: flex; flex-direction: column; }
.demo video, .demo > img { width: 100%; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; margin-top: auto; }
.demo-label { font-size: .92rem; color: var(--ink-2); display: inline-flex; gap: 10px; align-items: center; }
.demo-label b { color: var(--ink); }
.demo-label .ico { color: var(--accent); width: 20px; height: 20px; }
.demo-play { padding: 10px 18px; font-size: .95rem; }
.demo-actions { display: inline-flex; gap: 14px; align-items: center; }
.demo-open { font-size: .9rem; font-weight: 600; }
.overlay-link { position: absolute; left: 18px; top: 14px; z-index: 2; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 650; font-size: .9rem; text-decoration: none; }
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(17, 19, 42, .82); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; }
.overlay[hidden] { display: none; }
.overlay-box { position: relative; width: min(1200px, 100%); aspect-ratio: 4/3; max-height: calc(100vh - 80px); background: #000; border-radius: 16px; overflow: hidden; animation: vt-in .4s var(--ease) both; }
.overlay-box.wide { aspect-ratio: 16/9; }
.overlay iframe, .overlay video { width: 100%; height: 100%; border: 0; display: block; }
.overlay-close { position: absolute; top: 14px; right: 18px; background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 650; cursor: pointer; z-index: 2; }
@media (max-width: 720px), (pointer: coarse) and (max-width: 1024px) {
  .overlay { padding: 0; }
  .overlay-box, .overlay-box.wide { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; }
}

/* Illustration gallery (staggered, with clip reveals) */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 72px 48px; margin-top: 24px; }
.gallery > * { min-width: 0; }
.gallery .tile:nth-child(even) { margin-top: 120px; }
.tile { text-decoration: none; color: inherit; display: block; }
.tile-media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/3.2; background: var(--tint, var(--mist)); display: grid; place-items: center; padding: 8%; }
.tile-media img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; transition: transform .5s var(--ease); }
.tile-media.photo { padding: 0; }
.tile-media.photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile { transition: opacity .45s ease, transform .45s var(--ease); }
.tile.pre { opacity: 0; transform: translateY(12px); }
.tile:hover .tile-media img { transform: translateY(-4px); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; }
.tile-meta b { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.tile:hover .tile-meta b { background-size: 100% 2px; }
.tile-meta span { font-size: .88rem; color: var(--ink-3); text-align: right; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; gap: 48px; } .gallery .tile:nth-child(even) { margin-top: 0; } }
.cursor { position: fixed; left: 0; top: 0; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: .9rem; pointer-events: none; z-index: 60; transform: scale(0); transition: transform .35s var(--ease); }
.cursor.on { transform: scale(1); }
@media (pointer: coarse) { .cursor { display: none; } }

/* Illustration project pages */
.lineup { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 22px; }
.lineup img { height: 240px; width: auto; transition: transform .5s var(--ease); }
.lineup img:hover { transform: translateY(-8px) rotate(-2deg); }
.lineup.sm img { height: 150px; }
.lineup.tall img { height: 320px; }
.lineup.xs img { height: 100px; }
@media (max-width: 720px) { .lineup { gap: 14px; } .lineup img { height: 150px; } .lineup.tall img { height: 200px; } .lineup.sm img { height: 100px; } .lineup.xs img { height: 64px; } }
.stage { background: linear-gradient(180deg, var(--surface), var(--mist)); border-radius: 28px; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px); }
.reveal-img { overflow: hidden; }
.reveal-img { transition: opacity .45s ease, transform .45s var(--ease); }
.reveal-img.pre { opacity: 0; transform: translateY(12px); }
.ill-next { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; text-decoration: none; color: inherit; padding: 32px; border-radius: 28px; background: var(--surface); margin-top: 24px; transition: transform .3s var(--ease), box-shadow .3s; }
.ill-next > * { min-width: 0; }
.ill-next:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.ill-next b { display: block; font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.ill-next img { height: 96px; width: auto; max-width: 160px; object-fit: contain; }

/* Motion */
.motion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.motion-grid > * { min-width: 0; }
.motion-tile { color: inherit; display: block; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.motion-tile .media { position: relative; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: var(--device); }
.motion-tile .media img, .motion-tile .media video { width: 100%; height: 100%; object-fit: cover; }
.motion-tile .media img.kb { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translate(-2%, -2%); } }
.motion-tile .play { position: absolute; right: 18px; bottom: 18px; display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .95); color: var(--ink); font-weight: 650; font-size: .9rem; padding: 10px 16px; border-radius: 999px; transition: transform .3s var(--ease); }
.motion-tile:hover .play { transform: scale(1.06); }
.motion-tile .play .ico { width: 18px; height: 18px; }
.motion-tile h3 { margin: 18px 0 .3em; font-size: 1.35rem; }
.motion-tile:hover h3 { color: var(--accent); }
.motion-tile.wide { grid-column: 1 / -1; }
.motion-tile.still { cursor: default; }
.motion-tile.still:hover h3 { color: inherit; }
@media (max-width: 760px) { .motion-grid { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
.about-grid > * { min-width: 0; }
.headshot { border-radius: 36px; width: 100%; max-width: 360px; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } .headshot { max-width: 260px; } }
.timeline { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.timeline li > div { min-width: 0; }
.timeline b { display: block; font-family: var(--display); font-size: 1.12rem; }
.timeline span { color: var(--ink-3); font-size: .95rem; }
.timeline .when { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.timeline ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }
.timeline ul li { display: list-item; border: 0; padding: 2px 0; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; margin-top: 32px; }
.skill { background: var(--surface); border-radius: 24px; padding: 28px; }
.skill h3 { font-size: 1.15rem; display: flex; gap: 12px; align-items: center; }
.skill ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill li { font-size: .88rem; background: var(--bg); padding: 5px 12px; border-radius: 999px; color: var(--ink-2); }

/* Contact */
form.contact { display: grid; gap: 16px; max-width: 560px; }
form.contact label { font-weight: 650; font-size: .92rem; display: grid; gap: 6px; }
form.contact input, form.contact textarea { font: inherit; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
form.contact input:focus, form.contact textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.hidden { display: none; }

/* Footer */
.site-footer { padding-block: 80px 40px; margin-top: 96px; }
.footer-cta { text-align: center; margin-bottom: 56px; }
.footer-cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-3); border-top: 1px solid rgba(77, 88, 211, .15); padding-top: 24px; }
.site-footer .bottom a { color: var(--ink-2); }
.site-footer.band::after { display: none; }

/* Scroll reveals: only things below the first screen start hidden, and only once JS is running */
.pre:not(.tile):not(.reveal-img):not(.flow):not(.wflow):not(.route) { opacity: 0; transform: translateY(32px); }
.in:not(.tile):not(.reveal-img) { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }

/* Easter egg: a beetle wanders across the bugs section */
.crawler { position: fixed; left: 0; top: 0; width: 76px; height: auto; pointer-events: auto; cursor: pointer; z-index: 60; will-change: transform; filter: drop-shadow(6px 12px 6px rgba(23, 26, 56, .35)); }
.has-crawler { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .brand::before, .avatar-frame img { animation: none !important; }
  .wflow-wave path { stroke-dashoffset: 0 !important; }
  .wflow.pre .wcard, .wflow.pre .wdot, .route.pre .stop { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pre { opacity: 1 !important; transform: none !important; }
  .tile.pre .tile-media { clip-path: none !important; }
  .pre img { transform: none !important; }
  .flow .flow-line::before { transform: none; }
  .flow .flow-step .dot { background: var(--accent); color: #fff; }
}

/* Home characters: rounded squares that bob gently and pop in */
.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.avatar { text-decoration: none; color: inherit; display: block; }
.avatar-frame { position: relative; aspect-ratio: 1; border-radius: 28px; background: var(--bgc, var(--mist)); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 14% 10% 0; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s; }
.avatar-shape { position: absolute; left: 50%; top: 56%; width: 74%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: translate(-50%, -50%) scale(.9); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.avatar-frame img { position: absolute; left: 8%; bottom: 0; width: 84%; height: 86%; max-width: none; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.avatar:nth-child(2) .avatar-frame img { animation-delay: -.9s; }
.avatar:nth-child(3) .avatar-frame img { animation-delay: -1.8s; }
.avatar:nth-child(4) .avatar-frame img { animation-delay: -2.7s; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.025); } }
.avatar:hover .avatar-frame { transform: translateY(-6px); box-shadow: var(--shadow); }
.avatar:hover .avatar-frame img { animation: none; transform: translateY(-4%) scale(1.06) rotate(-2deg); }
.avatar.pre .avatar-frame { transform: translateY(24px) scale(.92); }
.avatar.in .avatar-frame { transition: transform .8s cubic-bezier(.34, 1.56, .64, 1) var(--delay, 0s), box-shadow .5s; }
.avatar b { display: block; font-family: var(--display); font-size: 1.15rem; margin-top: 14px; }
.avatar span { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 820px) { .avatars { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* Benefits workflow: pill cards on a drawn wave, from Annelise's own process graphic */
.wflow { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: auto 120px auto; column-gap: 14px; padding: 8px 0; }
.wflow-wave { position: absolute; left: 0; right: 0; top: 50%; height: 120px; width: 100%; transform: translateY(-50%); overflow: visible; }
.wflow-wave path { fill: none; stroke: #b9bdd6; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.wflow-wave path:nth-child(2) { transition-delay: .15s; }
.wflow-wave path:nth-child(3) { transition-delay: .3s; }
.wflow.in .wflow-wave path { stroke-dashoffset: 0; }
.wstep { --c: #9b7bea; --t: #ece4fd; grid-row: 1 / 4; display: grid; grid-template-rows: subgrid; position: relative; z-index: 1; }
.wstep.c2 { --c: #e05db0; --t: #fde0f2; } .wstep.c3 { --c: #e2865f; --t: #fde5d9; } .wstep.c4 { --c: #d9ad2b; --t: #fdf1c6; } .wstep.c5 { --c: #79b84a; --t: #e2f3d4; } .wstep.c6 { --c: #5a74e0; --t: #dde5fd; }
.wcard { grid-row: 1; align-self: end; background: var(--t); border-radius: 80px; padding: 34px 18px 30px; text-align: center; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .5s; transition-delay: calc(var(--i) * .25s + .3s); }
.wstep:nth-child(odd) .wcard { grid-row: 3; align-self: start; }
.wcard b { display: block; font-family: var(--display); font-size: 1.08rem; line-height: 1.15; }
.wcard p { font-size: .84rem; line-height: 1.45; color: var(--ink-2); margin: 8px 0 12px; }
.wcard .ico { width: 34px; height: 34px; color: var(--ink); stroke-width: 1.4; }
.wdot { grid-row: 2; align-self: center; justify-self: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--mist), 0 10px 20px -8px var(--c); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i) * .25s + .2s); z-index: 2; }
.wstem { position: absolute; left: 50%; width: 2px; height: 30px; background: var(--c); transform: translateX(-50%); top: calc(50% - 53px); }
.wstep:nth-child(odd) .wstem { top: calc(50% + 23px); }
.wflow.pre .wcard { opacity: 0; transform: translateY(24px) scale(.9); }
.wflow.pre .wstep:nth-child(odd) .wcard { transform: translateY(-24px) scale(.9); }
.wflow.pre .wdot { transform: scale(0); }
.wflow.in .wdot { animation: pulse 3s ease-in-out infinite; animation-delay: calc(var(--i) * .5s + 2.5s); }
@keyframes pulse { 0%, 70%, 100% { box-shadow: 0 0 0 6px var(--mist), 0 10px 20px -8px var(--c); } 85% { box-shadow: 0 0 0 6px var(--mist), 0 0 0 14px var(--t); } }
@media (max-width: 900px) {
  .wflow { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 16px; }
  .wflow-wave, .wstem { display: none; }
  .wstep, .wstep:nth-child(odd) { grid-row: auto; grid-template-rows: none; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; }
  .wstep .wcard, .wstep:nth-child(odd) .wcard { grid-row: auto; align-self: auto; border-radius: 28px; text-align: left; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
  .wcard p { margin: 4px 0 0; grid-column: 1; }
  .wcard .ico { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .wdot { grid-row: auto; }
  .wstep:nth-child(even) { margin-left: 28px; }
}

/* Benefits expedition route */
.route { display: block; }
.route > * { min-width: 0; }
.route-stops { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: center; padding-block: 16px; }
.stop { position: relative; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .5s; transition-delay: calc(var(--i) * .15s + .2s); }
.stop:nth-child(odd) { transform: translateY(-14px); }
.stop:nth-child(even) { transform: translateY(14px); }
.stop img { border-radius: 14px; box-shadow: 0 18px 30px -16px rgba(54, 63, 168, .45); transition: transform .4s var(--ease); }
.stop img:hover { transform: translateY(-6px) rotate(-2deg); }
.route.pre .stop { opacity: 0; transform: translateY(40px) scale(.9); }
@media (max-width: 860px) { .route-stops { grid-template-columns: repeat(3, 1fr); row-gap: 28px; } }

/* Embedded games */
.embed-frame { position: relative; width: 100%; background: var(--device); }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo.embed { max-width: 900px; margin: 0 auto; }
.two .demo.embed { max-width: none; width: 100%; margin: 0; }
@media (max-width: 720px) { .embed-frame { aspect-ratio: 4/3.4 !important; } }

/* Protected handout preview: low-res, no drag, no save */
.protect-img { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.protect-img img { pointer-events: none; }
.protect-img::after { content: ""; position: absolute; inset: 0; }
@media print { .protect-img { visibility: hidden; } }

.two.narrow { max-width: 760px; }
.frame.single { max-width: 520px; }
.small-media { max-width: 760px; margin-left: auto; margin-right: auto; }
.curriculum ol { margin: 0; padding: 0; list-style: none; counter-reset: ch; display: grid; gap: 2px; }
.curriculum li { counter-increment: ch; display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.curriculum li::before { content: counter(ch); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .8rem; display: grid; place-items: center; flex: none; }
.snapshot dd ul { margin: 0; padding-left: 18px; }

/* Illustration pages: single PNGs in set rows, solid stages, the outback cast */
.png-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; }
.png-grid > div { flex: 0 0 calc((100% - 4 * 24px) / 5); display: grid; place-items: end center; }
.png-grid.row-4 > div { flex-basis: calc((100% - 3 * 24px) / 4); }
.png-grid img { max-height: 260px; width: auto; transition: transform .5s var(--ease); }
.png-grid.row-4 img { max-height: 200px; }
.png-grid img:hover { transform: translateY(-6px); }
@media (max-width: 720px) { .png-grid > div, .png-grid.row-4 > div { flex-basis: calc((100% - 2 * 24px) / 3); } }
.stage.solid { background: var(--stage); }
.stage.solid img { margin: 0 auto; }
.lineup.row { flex-wrap: nowrap; }
.lineup.row img { min-width: 0; height: auto; max-height: 320px; width: 30%; object-fit: contain; }
.lineup.fish img { height: 70px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.cast-card { text-decoration: none; color: inherit; display: block; }
.cast-art { position: relative; aspect-ratio: 1; border-radius: 24px; background: var(--mist); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .5s; }
.cast-art img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
a.cast-card:hover .cast-art { transform: translateY(-6px); box-shadow: var(--shadow); }
.cast-card b { display: block; font-family: var(--display); font-size: 1.1rem; margin-top: 12px; }
.cast-card span { font-size: .9rem; color: var(--ink-3); }
a.cast-card:hover b { color: var(--accent); }
.cs-hero .btn-row { margin-top: 20px; }

/* Older phone browsers without aspect-ratio: hold each box's shape with a padding spacer */
@supports not (aspect-ratio: 1) {
  .feature-media, .project-media, .tile-media, .avatar-frame, .cast-art, .motion-tile .media, .embed-frame { position: relative; }
  .feature-media::before, .project-media::before { content: ""; display: block; padding-top: 75%; }
  .tile-media::before { content: ""; display: block; padding-top: 80%; }
  .avatar-frame::before, .cast-art::before { content: ""; display: block; padding-top: 100%; }
  .motion-tile .media::before { content: ""; display: block; padding-top: 56.25%; }
  .embed-frame::before { content: ""; display: block; padding-top: 75%; }
  .feature-media img, .project-media img, .motion-tile .media img, .motion-tile .media video { position: absolute; inset: 0; }
  .avatar-shape { width: 74%; height: 0; padding-top: 74%; }
  .headshot { height: auto; }
}

/* Kanani's bust is shorter, so she sits higher in her box */
.avatar:nth-child(2) .avatar-frame img { left: 3%; width: 94%; height: 92%; }
@media (max-width: 600px) { .laptop { width: 84%; } .phone { width: 25%; right: 0; } }

/* Images can't be dragged off, long-pressed to save or selected */
img, video { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.png-grid.veg > div { place-items: end center; }
.png-grid.veg img { max-height: 230px; }
.stage .two.stretch, .two.stretch > .stage { min-width: 0; }
.stage.solid { padding-block: clamp(28px, 5vw, 56px); }
.form-error { color: #b4232f; margin-top: 12px; font-weight: 600; }
