:root {
  --ink: #0f1b2d; --ink2: #43506a; --accent: #2563eb; --accent2: #06b6d4;
  --glass: rgba(255, 255, 255, 0.62); --line: rgba(255, 255, 255, 0.7);
  --bg1: #f3f7fc; --bg2: #dde8f6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
.chap { scroll-snap-align: center; scroll-snap-stop: always; }
@media (max-width: 760px) { html { scroll-snap-type: y proximity; } .chap { scroll-snap-stop: normal; } }
body { margin: 0; color: var(--ink); font: 16px/1.55 Inter, system-ui, sans-serif;
  background: radial-gradient(1200px 700px at 78% 18%, #ffffff 0%, transparent 60%),
              radial-gradient(900px 600px at 10% 90%, #d6f3fb 0%, transparent 60%),
              linear-gradient(160deg, var(--bg1), var(--bg2)); background-attachment: fixed; }
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; touch-action: pan-y;
  opacity: 0; transition: opacity 0.8s; }
.ready #stage { opacity: 1; }
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(600px 400px at var(--mx, 70%) var(--my, 30%), rgba(37, 99, 235, 0.08), transparent 70%); }
h1, h2 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 58px); }
.hl { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
a { color: inherit; }

/* header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(20px, 5vw, 72px) 14px; }
/* every page: once scrolled (or with the phone menu open) the bar gets a frosted glass strip so text never runs under it.
   The strip is its own layer behind the bar's contents, so the menu panel's blur is never disturbed. */
.top { isolation: isolate; }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), color-mix(in srgb, var(--bg1) 80%, transparent);
  border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.top.scrolled::before, .top.open::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 600 21px "Space Grotesk", sans-serif; }
.brand em { font-style: normal; color: var(--accent); }
.brand img { width: 40px; height: 40px; display: block; }
.mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); font-weight: 700; }
nav { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; color: var(--ink2); }
nav a:hover, nav a.on { color: var(--ink); background: rgba(255, 255, 255, 0.8); }
nav a.cta { color: #fff; background: var(--ink); }

/* chapters */
main { position: relative; z-index: 2; pointer-events: none; }
.chap { min-height: 100vh; display: flex; align-items: center; padding: 110px clamp(24px, 7vw, 128px) 60px;
  padding-inline: max(clamp(24px, 7vw, 128px), calc((100vw - 1320px) / 2)); }   /* cards stay in a centred column on wide screens */
.chap.right { justify-content: flex-end; }
.chap.center { justify-content: center; text-align: center; }
.card { pointer-events: auto; max-width: 460px; padding: 28px 30px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.10); opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.hero .card { max-width: 580px; background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.chap.in .card { opacity: 1; transform: none; }
.kick { margin: 0 0 10px; font: 600 12px/1 Inter, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 19px; color: var(--ink2); max-width: 460px; }
.card p { color: var(--ink2); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { padding-left: 22px; position: relative; font-weight: 500; }
.card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 2px; background: var(--accent); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn { text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; }
.btn.ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); border: 1px solid var(--line); }
.hint { margin-top: 26px; font-size: 13px; color: var(--ink2); opacity: 0.8; }
.edu { display: grid; gap: 8px; margin-top: 16px; }
.edu div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.7); }
.edu span { color: var(--ink2); font-size: 14px; text-align: right; }
.stats { margin: 16px 0 0; font-size: 14px; }
.stats b { color: var(--ink); }
.more { margin: 12px 0 0; font-weight: 600; }
.more a { color: var(--accent); text-decoration: none; }
.more a:hover { text-decoration: underline; }
.contact { display: grid; gap: 10px; margin-top: 18px; font-weight: 500; }
.contact a { text-decoration: none; font-size: 20px; }
.contact span { color: var(--ink2); font-size: 14px; }

/* word-by-word heading reveal */
.hl .w { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.split .w { display: inline-block; opacity: 0; transform: translateY(0.4em) rotate(2deg); transition: opacity 0.5s, transform 0.5s; transition-delay: calc(var(--i) * 45ms + 120ms); }
.chap.in .split .w { opacity: 1; transform: none; }

/* labels pinned to the 3D objects */
.tags { position: fixed; inset: 0; z-index: 1; pointer-events: none; visibility: hidden; }   /* under the text cards */
.ready .tags { visibility: visible; }   /* labels appear with the 3D, never parked in the corner while it loads */
.tags button { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; font: 600 12px Inter, sans-serif; color: var(--ink);
  padding: 6px 12px 6px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity 0.3s; white-space: nowrap; }
.tags button::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); }
.tags button[hidden] { display: none; }

/* progress + loader */
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 10; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.loader { position: fixed; left: 0; right: 0; top: 0; z-index: 20; pointer-events: none; transition: opacity 0.5s; }
.loader span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* screen readers only */
.loader i { display: block; height: 2px; background: transparent; }
.loader b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.2s; }
.loader.done { opacity: 0; }

/* no WebGL: plain page */
.no3d #stage, .no3d .tags { display: none; }
.no3d .card { opacity: 1; transform: none; }
.no3d .split .w { opacity: 1; transform: none; }

.menu-btn, .mnav { display: none; }
@media (max-width: 380px) { .brand { font-size: 15.5px !important; gap: 7px !important; } .brand img { width: 30px !important; height: 30px !important; } }
@media (max-width: 760px) {
  nav a:not(.cta) { display: none; }
  /* menu button beside "Start a project", opening a panel with all the links (menu.js) */
  .top { padding-inline: 14px; }
  .brand { font-size: 17.5px; gap: 9px; }
  .brand img { width: 34px; height: 34px; }
  nav { align-items: center; gap: 2px; padding: 4px; }
  nav a.cta { white-space: nowrap; padding: 7px 12px; font-size: 13px; }
  .menu-btn { display: grid; place-content: center; gap: 5px; width: 36px; height: 34px; padding: 0; border: 0; border-radius: 999px;
    background: transparent; cursor: pointer; }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s; }
  .top.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .top.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mnav:not([hidden]) { display: grid; gap: 2px; position: absolute; top: calc(100% - 2px); left: 12px; right: 12px; padding: 8px;
    border-radius: 22px; border: 1px solid var(--line);                     /* frosted glass, like the cards */
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 60%), var(--glass);
    -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
  .mnav a { padding: 14px 16px; border-radius: 14px; text-decoration: none; font-size: 17px; font-weight: 500; color: var(--ink); }
  .mnav a.on { background: rgba(127, 140, 170, 0.16); }
  .mnav a.cta { margin-top: 6px; text-align: center; font-weight: 600; color: #06101f; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
  /* phones: the 3D gets a fixed area under the top bar and every chapter's card starts at the same height below it */
  .chap, .chap.right, .chap.center { align-items: flex-start; justify-content: center; padding: calc(76px + 36vh) 16px 28px; padding-top: calc(76px + 36svh); }
  .card { max-width: none; width: 100%; padding: 20px; }
  .hero .card { background: var(--glass); border-color: var(--line); padding: 22px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .lede { font-size: 16px; }
  .card ul { grid-template-columns: 1fr 1fr; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .split .w { transition: none; }
}

/* ---------- logo per theme ---------- */
.brand .logo-light { display: none; }
.t-dark .brand .logo-light { display: block; }
.t-dark .brand .logo-dark { display: none; }

/* ---------- B: dark (turntable) ---------- */
.t-dark { --ink: #eef3ff; --ink2: #9fb0cc; --accent: #22d3ee; --accent2: #a78bfa; --glass: rgba(16, 22, 38, 0.6);
  --line: rgba(148, 163, 255, 0.18); --bg1: #070b16; --bg2: #0c1324; color-scheme: dark; }
/* deep space behind the 3D stars and nebulae */
.t-dark body { background: radial-gradient(60% 50% at 70% 35%, rgba(92, 52, 190, 0.35), transparent 70%),
  radial-gradient(50% 45% at 20% 75%, rgba(20, 110, 150, 0.25), transparent 70%), #03040b; background-attachment: fixed; }
  /* the 3D sky draws the space; this soft stand-in shows while it loads */
.t-dark .glow { background: radial-gradient(600px 400px at var(--mx, 70%) var(--my, 30%), rgba(34, 211, 238, 0.09), transparent 70%); }
.t-dark nav a:hover, .t-dark nav a.on { background: rgba(255, 255, 255, 0.08); }
.t-dark nav a.cta, .t-dark .btn { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #06101f; }
.t-dark .btn.ghost { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.t-dark .edu div { background: rgba(255, 255, 255, 0.05); }
.t-dark .card { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.hero .card, .t-dark .hero .card { box-shadow: none; }
.t-dark .tags button { color: var(--ink); }
.t-dark .loader { color: var(--ink); }

/* ---------- C: mild gradients (journey) ---------- */
.t-grad { --accent: #6d5dfc; --accent2: #22b8cf; --bg1: #f7f5ff; --bg2: #eaf6fb; }
.t-grad body { background: linear-gradient(120deg, #f6f1ff 0%, #eef6ff 35%, #eafaf6 70%, #fff6ee 100%); background-size: 240% 240%;
  animation: drift 26s ease-in-out infinite alternate; background-attachment: fixed; }
@keyframes drift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.t-grad .glow { background: radial-gradient(520px 360px at var(--mx, 70%) var(--my, 30%), rgba(109, 93, 252, 0.10), transparent 70%); }
.t-grad h1, .t-grad h2 { background: linear-gradient(100deg, #1b1840 20%, #4b3fd1 70%, #1595ab); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-grad .split .w { color: transparent; background: inherit; -webkit-background-clip: text; background-clip: text; }
.t-grad .card { background: linear-gradient(var(--glass), var(--glass)) padding-box,
  linear-gradient(135deg, rgba(109, 93, 252, 0.45), rgba(34, 184, 207, 0.35), rgba(255, 186, 120, 0.4)) border-box; border: 1px solid transparent; }
.t-grad .hero .card { background: transparent; border-color: transparent; }
.t-grad nav a.cta, .t-grad .btn { background: linear-gradient(90deg, #5b4ff0, #1fa9c4); }
.t-grad .btn.ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.t-grad .concepts a.on { background: linear-gradient(90deg, #5b4ff0, #1fa9c4); color: #fff; }
@media (prefers-reduced-motion: reduce) { .t-grad body { animation: none; } }
@media (max-width: 760px) { .t-grad .hero .card { background: linear-gradient(var(--glass), var(--glass)) padding-box, linear-gradient(135deg, rgba(109,93,252,.45), rgba(34,184,207,.35)) border-box; } }

/* ================= inner pages (websites, apps, software, education, start) ================= */
html.inner { scroll-snap-type: none; }
.page { position: relative; z-index: 2; --gut: max(clamp(20px, 6vw, 96px), calc((100vw - 1240px) / 2)); }
/* main is click-through for the homepage canvas; on inner pages the content must take clicks (links, form) */
.page section *, .page > :not(section) { pointer-events: auto; }
.phero { min-height: 92vh; display: flex; align-items: center; padding: 120px var(--gut) 40px; }
.phero-text { max-width: 600px; opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.phero.in .phero-text { opacity: 1; transform: none; }
.phero.in .split .w { opacity: 1; transform: none; }
.blk { padding: 56px var(--gut); opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.blk.in { opacity: 1; transform: none; }
.blk .wrap { max-width: 1240px; margin: 0 auto; }
.blk h2 { margin-bottom: 10px; }
.sub { color: var(--ink2); max-width: 680px; margin: 0 0 22px; }
.sub a, .more-row a { color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { padding: 22px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform 0.2s, border-color 0.2s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.45); }
.tile h3 { margin: 0 0 6px; font: 600 18px "Space Grotesk", sans-serif; color: var(--ink); }
.tile p { margin: 0; color: var(--ink2); font-size: 15px; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; padding: 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 6px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 13px "Space Grotesk", sans-serif; color: var(--accent); }
.steps b { font: 600 18px "Space Grotesk", sans-serif; }
.steps span { color: var(--ink2); font-size: 14px; }
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.shot { display: block; text-decoration: none; border-radius: 20px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s; }
.shot:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.5); }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot span { display: grid; gap: 4px; padding: 16px 18px 18px; color: var(--ink2); font-size: 14px; }
.shot b { color: var(--ink); font: 600 17px "Space Grotesk", sans-serif; }
.products { display: grid; gap: 22px; margin-top: 22px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.product:nth-child(even) img { order: 2; }
.product img { width: 100%; border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
.product h3 { margin: 0 0 8px; font: 700 30px "Space Grotesk", sans-serif; }
.product p { color: var(--ink2); margin: 0 0 12px; }
.product ul, .ticks { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 7px; }
.product li, .ticks li { padding-left: 22px; position: relative; font-weight: 500; }
.product li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--accent); }
.more-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.cta-box { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 32px; border-radius: 26px;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.14), rgba(167, 139, 250, 0.16)); border: 1px solid var(--line); }
.cta-box h2 { margin: 0 0 6px; }
.cta-box p { margin: 0; color: var(--ink2); }
.cta-box .btns { margin: 0; }
.split-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.photo { margin: 0; border-radius: 22px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { padding: 12px 16px; font-size: 13px; color: var(--ink2); }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.quotes blockquote { margin: 0; padding: 22px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.quotes p { margin: 0 0 12px; font: 500 18px/1.45 "Space Grotesk", sans-serif; color: var(--ink); }
.quotes cite { font-style: normal; font-size: 13px; color: var(--ink2); }
.more-row { margin-top: 18px; }
.logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.logos img { height: 58px; width: auto; max-width: 150px; object-fit: contain; padding: 10px 14px; border-radius: 14px; background: #fff; }
.formframe { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.formframe iframe { display: block; width: 100%; height: 1600px; border: 0; }
.choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.choice { display: block; text-decoration: none; padding: 28px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform 0.2s, border-color 0.2s; }
.choice:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.5); }
.choice h3 { margin: 0 0 6px; font: 700 28px "Space Grotesk", sans-serif; color: var(--ink); }
.choice p:not(.kick) { color: var(--ink2); margin: 0 0 16px; }
.choice span { color: var(--accent); font-weight: 600; }
.pform { display: grid; gap: 16px; margin-top: 20px; max-width: 820px; padding: 26px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.pform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pform label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.pform input:not([type=checkbox]), .pform textarea { font: inherit; color: var(--ink); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; outline: none; }
.pform input:focus, .pform textarea:focus { border-color: var(--accent); }
.pform fieldset { border: 0; padding: 0; margin: 0; }
.pform legend { font-size: 14px; font-weight: 500; color: var(--ink2); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); cursor: pointer; font-size: 14px; }
.chip input:checked + span { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #06101f; border-color: transparent; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); }
.hp { position: absolute; left: -9999px; }
.pform button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.pmsg { color: var(--ink2); font-size: 14px; }
.pmsg.ok { color: #4ade80; }
.pmsg.err { color: #f87171; }
/* registration forms (course-registration/, registration/) */
.pform select { font: inherit; color: var(--ink); background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2322d3ee' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 40px 12px 14px; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.pform select:focus { border-color: var(--accent); }
.pform select option { color: #0b1020; }
.pform small { font-size: 13px; font-weight: 400; color: var(--ink2); opacity: 0.85; line-height: 1.5; }
.pform fieldset small { display: block; margin-top: 10px; }
.pform .kick { margin: 0; }
.peek:empty { display: none; }
.course.mini { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; margin-top: -4px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(167, 139, 250, 0.08)); border-color: rgba(34, 211, 238, 0.35); }
.course.mini:hover { transform: none; }
.course.mini[hidden] { display: none; }
.course.mini .ic { width: 36px; height: 36px; }
.course.mini h3 { margin: 0 0 2px; font-size: 17px; }
.course.mini p { margin: 0 0 8px; font-size: 14px; }
.course.mini ul { font-size: 13.5px; }
.regswitch { margin-top: 22px; }
.regswitch .chip span { padding: 11px 18px; font-size: 15px; font-weight: 600; }
.reglink { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.reglink:hover { text-decoration: underline; }
.foot { padding-bottom: 80px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-grid div { display: grid; gap: 6px; align-content: start; color: var(--ink2); }
.foot-grid b { color: var(--ink); }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot .social { display: flex; flex-wrap: wrap; gap: 14px; }
.legal { margin-top: 18px; font-size: 13px; color: var(--ink2); }
.legal a { color: var(--ink2); }
@media (max-width: 860px) {
  .product, .split-row { grid-template-columns: 1fr; }
  .product:nth-child(even) img { order: 0; }
  .pform .row { grid-template-columns: 1fr; }
  /* phones: the 3D gets a fixed area under the top bar (38% of the screen) and the card starts right below it */
  .phero { align-items: flex-start; min-height: 0; padding-top: calc(76px + 38vh); padding-top: calc(76px + 38svh); padding-bottom: 24px; }
  .phero-text { padding: 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .formframe iframe { height: 1900px; }
}
@media (prefers-reduced-motion: reduce) { .blk, .phero-text { transition: none; } }
/* start page: heading, project form and the student option in one column on the left; the laptop on the right */
.start-hero { align-items: flex-start; padding-top: 110px; }
.start-col { max-width: 620px; }
.start-col .pform { margin-top: 22px; max-width: none; }
.choice.small { margin-top: 16px; padding: 18px 22px; }
.choice.small h3 { font-size: 22px; }
.direct { margin-top: 14px; }

/* education: course cards with icons, the flagship course highlighted */
.ic { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.course { padding: 22px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform 0.2s, border-color 0.2s; }
.course:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.45); }
.course h3 { margin: 12px 0 4px; font: 600 19px "Space Grotesk", sans-serif; color: var(--ink); }
.course p { margin: 0 0 10px; color: var(--ink2); font-size: 15px; }
.course ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 14px; }
.course li { padding-left: 18px; position: relative; color: var(--ink); }
.course li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 2px; background: var(--accent); }
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
.course.featured { margin-top: 20px; padding: 30px; position: relative; overflow: hidden;
  background: linear-gradient(var(--glass), var(--glass)) padding-box,
              linear-gradient(120deg, #22d3ee, #a78bfa 55%, #f472b6) border-box; border: 1.5px solid transparent;
  box-shadow: 0 0 60px rgba(124, 92, 255, 0.25); }
.course.featured::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 70%); pointer-events: none; }
.course.featured .ic { width: 40px; height: 40px; }
.course.featured h3 { font-size: clamp(26px, 3vw, 34px); background: linear-gradient(90deg, #22d3ee, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.course.featured p { font-size: 16px; max-width: 760px; }
.course.featured ul { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); font-size: 15px; margin-bottom: 6px; }
.course-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { font: 600 11px Inter, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  color: #06101f; background: linear-gradient(90deg, #22d3ee, #a78bfa); }

/* register page: short intro, then the Google Form fills the rest of the screen; only the form scrolls */
html.inner:has(.reg) body { overflow: hidden; }
.reg { height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 14px; padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gut) 16px; box-sizing: border-box; }
.reg-intro { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: end; justify-content: space-between; }
.reg-intro h1 { font-size: clamp(24px, 3vw, 36px); margin: 0; }
.reg-intro .kick { margin-bottom: 6px; }
.reg-intro p:not(.kick) { margin: 0; color: var(--ink2); max-width: 520px; font-size: 15px; }
.reg-intro a { color: var(--accent); }
/* phones: Google lays the embedded form out wider than a phone frame, so open it full screen instead */
.regopen { display: none; }
@media (max-width: 760px) {
  .reg { justify-content: center; gap: 22px; }
  .regframe, .reg-intro a { display: none; }
  .regopen { display: grid; gap: 16px; justify-items: start; padding: 22px; border-radius: 20px; background: var(--glass);
    border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .regopen p { margin: 0; color: var(--ink2); font-size: 15px; }
}
.regframe { flex: 1; min-height: 0; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.regframe iframe { display: block; width: 100%; height: 100%; border: 0; }
