/* Sander Brebels — portfolio. Light, quiet, image-first. Based on DESIGN.md (white canvas, ink type, cloud surfaces). */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #222326;
  --charcoal: #1f2025;
  --cloud: #ebf0f8;
  --cloud-2: #f4f7fb;
  --gray: #747679;
  --line: rgba(34, 35, 38, 0.1);
  --focus: #415eee;
  --r-card: 28px;
  --r-img: 18px;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(64px, 9vw, 120px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --fast: 160ms;
  --mid: 320ms;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.5 "Inter", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--charcoal); color: var(--cloud); padding: 10px 16px; border-radius: 99px; text-decoration: none; }
.skip:focus { top: 12px; }
.eyebrow { color: var(--gray); font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.cap, figcaption { color: var(--gray); font-size: 14px; line-height: 1.4; }

/* ---------- buttons, tags */
.btn:active, .nav-cta:active, .links a:active, .chips a:active { transform: scale(0.97); transition-duration: 80ms; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 128px; background: var(--charcoal); color: var(--cloud); text-decoration: none; font-weight: 500; font-size: 16px; border: 0; cursor: pointer; transition: transform var(--fast) var(--ease-out), background var(--fast) var(--ease-out), box-shadow var(--fast); }
.btn:hover { transform: translateY(-1px); background: #34353b; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.btn.ghost { background: var(--cloud); color: var(--ink); }
.btn.ghost:hover { background: #dfe6f2; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 13px; font-weight: 500; color: var(--gray); background: var(--cloud-2); border-radius: 99px; padding: 4px 10px; }

/* ---------- nav: floating capsule */
.nav { position: sticky; top: 12px; z-index: 50; padding-inline: var(--gutter); margin-top: 12px; }
.nav-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; border-radius: 32px; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 6px 24px -12px rgba(0, 0, 0, 0.18); }
.brand { font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav nav { display: flex; gap: 2px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--gray); font-weight: 500; font-size: 15px; padding: 9px 14px; border-radius: 99px; transition: color 200ms, background 200ms; }
.nav nav a:hover { color: var(--ink); background: var(--cloud-2); }
.nav nav a[aria-current="page"] { color: var(--ink); }
.nav-cta { transition: transform var(--fast) var(--ease-out), background var(--fast); }
.nav-cta:hover { background: #34353b; }
.nav-cta { text-decoration: none; font-weight: 500; font-size: 15px; background: var(--charcoal); color: var(--cloud); padding: 10px 18px; border-radius: 99px; min-height: 40px; display: inline-flex; align-items: center; }

/* ---------- homepage intro */
.intro { padding-top: clamp(64px, 11vw, 150px); padding-bottom: clamp(40px, 6vw, 72px); }
.intro h1 { font-size: clamp(42px, 7.2vw, 96px); line-height: 0.98; max-width: 14ch; }
.intro .lede { margin-top: 28px; }
.lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; color: var(--gray); max-width: 40ch; }
.intro-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- work grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); grid-auto-flow: dense; }
.card { grid-column: span 6; }
.card.xl { grid-column: span 12; }
.card.half { grid-column: span 6; }
.card a { display: block; text-decoration: none; color: inherit; border-radius: var(--r-card); }
.c-media { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--bg, var(--cloud)); aspect-ratio: 5 / 4; display: grid; place-items: center; isolation: isolate; }
.card.xl .c-media { aspect-ratio: 21 / 9; }
.card.half .c-media { aspect-ratio: 4 / 3; }
.c-media > img { object-position: top; }
.c-media > img, .c-media > video { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.c-media.portrait > video, .c-media.portrait > img { position: absolute; top: 7%; left: 50%; height: 86%; width: auto; max-width: 80%; transform: translateX(-50%); object-fit: contain; border-radius: 22px; box-shadow: 0 0 16px -8px rgba(0, 0, 0, 0.35); }
.card a:hover .c-media.portrait > video { transform: translateX(-50%) scale(1.02); }
.c-media.contain > video, .c-media.contain > img { object-fit: contain; padding: 6%; }
.c-group { display: flex; gap: 4%; height: 84%; align-items: center; justify-content: center; width: 100%; padding-inline: 6%; }
.c-group img { height: 100%; width: auto; max-width: 31%; object-fit: contain; border-radius: 14px; box-shadow: 0 0 16px -8px rgba(0, 0, 0, 0.3); background: #fff; transition: transform 900ms var(--ease); }
.card a:hover .c-media > img, .card a:hover .c-media > video { transform: scale(1.03); }
.card a:active .c-media { transform: scale(0.99); }
.c-media { transition: transform var(--fast) var(--ease-out); }
.card a:hover .c-group img:nth-child(1) { transform: translateY(-2%) rotate(-1deg); }
.card a:hover .c-group img:nth-child(3) { transform: translateY(-2%) rotate(1deg); }
.c-text { padding: 18px 4px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: start; }
.c-text h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; grid-column: 1; }
.c-text .arrow { display: inline-block; opacity: 0; transform: translateX(-6px); transition: opacity var(--mid) var(--ease-out), transform var(--mid) var(--ease-out); }
.card a:hover .arrow, .card a:focus-visible .arrow { opacity: 1; transform: none; }
.c-text p { grid-column: 1; color: var(--gray); font-size: 16px; line-height: 1.4; max-width: 46ch; }
.c-text .tags { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; max-width: 220px; }
.grid-more { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(48px, 6vw, 80px); }
.grid-more > div { background: var(--cloud-2); border-radius: var(--r-card); padding: 32px; }
.grid-more h3 { font-size: 24px; margin-bottom: 16px; }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 14px; border-radius: 99px; background: #fff; text-decoration: none; font-weight: 500; font-size: 15px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 200ms; }
.links a:hover { box-shadow: 0 0 0 1px var(--ink); }

/* ---------- homepage bands */
.band { margin-top: var(--section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; background: var(--cloud); border-radius: 32px; padding: clamp(28px, 5vw, 64px); max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.band h2, .sec-head h2, .about h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1; }
.band p { color: var(--gray); margin: 18px 0 28px; max-width: 40ch; }
.icons-strip { display: grid; gap: 12px; }
.motion-teaser { margin-top: var(--section); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.about { margin-top: var(--section); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.about-text p { color: var(--gray); margin-top: 16px; max-width: 54ch; }
.about-text h2 + p { margin-top: 24px; }
.about-photo .frame { border-radius: var(--r-card); }
.about-facts { margin: 28px 0; display: grid; gap: 12px; }
.about-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 16px; }
.about-facts dt { font-weight: 500; }
.about-facts dd { margin: 0; color: var(--gray); }
.buddy { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.buddy .cap { grid-column: 1 / -1; }

/* ---------- media primitives */
.m { margin: 0; }
.m .frame { position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--cloud-2); }
.m .frame img, .m .frame video { width: 100%; height: 100%; object-fit: cover; }
.m .frame img { transition: opacity 420ms var(--ease-out), filter var(--fast); }
.m .frame img.pending { opacity: 0; }
.m.screen .frame img { object-position: top; }
.m[data-full] .frame { transition: transform var(--mid) var(--ease-out), box-shadow var(--mid) var(--ease-out); }
.m[data-full]:hover .frame { transform: translateY(-2px); }
.m[data-full]:active .frame { transform: scale(0.985); }
.m figcaption { margin-top: 10px; }
.m[data-full] { cursor: zoom-in; }
.m[data-full]:hover .frame img { filter: brightness(0.97); }
.m.screen .frame { border-radius: clamp(12px, 1.6vw, 22px); box-shadow: 0 0 0 1px var(--line); background: #fff; }
.m.is-tall .frame { aspect-ratio: 4 / 5 !important; }
.tall .m.is-tall:first-child .frame { aspect-ratio: 16 / 11 !important; }
.tall .m.is-tall:last-child .frame { aspect-ratio: 9 / 17 !important; }
.m.is-tall .frame img { object-position: top; }
.m.is-tall .frame::after { content: "View full"; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--charcoal); color: var(--cloud); font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 99px; }
.m.is-tall .frame::before { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(255, 255, 255, 0.9)); z-index: 1; pointer-events: none; }
.m.v .frame { background: transparent; }
.m.v .frame video { object-fit: cover; }
.m.phone .frame { border-radius: 28px; box-shadow: 0 0 0 1px var(--line); }
.m.char .frame { background: #fff; }
.m.blurred .frame { box-shadow: none; }
.badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(31, 32, 37, 0.82); color: #fff; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 99px; white-space: nowrap; backdrop-filter: blur(6px); }
.teaser { position: relative; border-radius: 32px; overflow: hidden; background: #0d3f7d; margin-top: clamp(64px, 8vw, 112px); }
.teaser-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 24px; opacity: 0.9; }
.teaser-grid .m .frame { box-shadow: none; border-radius: 18px; aspect-ratio: 9 / 19 !important; }
.teaser-card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: 24px; background: radial-gradient(closest-side, rgba(255,255,255,0.94), rgba(255,255,255,0.78) 70%, rgba(255,255,255,0)); }
.teaser-card h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1; }
.teaser-card p:not(.eyebrow) { color: var(--gray); max-width: 36ch; }
.teaser-card .eyebrow { margin: 0; }
.vbtn { display: none; }
.rm .vbtn { display: grid; }
.vbtn { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(31, 32, 37, 0.72); color: #fff; backdrop-filter: blur(6px); opacity: 0; transition: opacity 200ms; }
.vbtn svg { width: 14px; height: 14px; }
.m.v.loop:hover .vbtn, .vbtn:focus-visible, .m.v.paused .vbtn { opacity: 1; }
@media (hover: none) { .vbtn { opacity: 0.6; width: 36px; height: 36px; } }

/* ---------- project page */
.p-head { padding-top: clamp(56px, 9vw, 120px); }
.crumb { color: var(--gray); font-size: 15px; font-weight: 500; margin-bottom: 20px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.p-head h1 { font-size: clamp(40px, 6.4vw, 88px); line-height: 1; max-width: 16ch; }
.p-head .lede { margin-top: 24px; max-width: 48ch; color: var(--gray); }
.p-head .tags { margin-top: 24px; }
.p-hero { margin-top: clamp(32px, 5vw, 56px); }
.p-hero .frame { border-radius: var(--r-card); }
.p-hero .m.v .frame { background: var(--cloud); }
.p-hero .m.v.loop .frame video { object-fit: cover; }
.hero-group { display: flex; gap: var(--gap); justify-content: center; background: var(--cloud); border-radius: var(--r-card); padding: clamp(24px, 5vw, 64px); }
.hero-group .m { flex: 0 1 300px; }
.p-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px var(--gap); margin: clamp(32px, 4vw, 48px) 0 0; }
.p-facts dl div { border-top: 1px solid var(--line); padding-top: 14px; }
.p-facts dt { font-size: 14px; color: var(--gray); font-weight: 500; }
.p-facts dd { margin: 4px 0 0; font-size: 16px; }
.p-body { padding-bottom: clamp(48px, 6vw, 80px); }
.blk { margin-top: clamp(36px, 5vw, 72px); }
.blk + .cap, .blk.cap { margin-top: 12px; }
.blk.text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(16px, 4vw, 64px); margin-top: clamp(64px, 8vw, 112px); }
.blk.text h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.blk.text p { color: var(--gray); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; max-width: 56ch; }
.blk.text p + p { margin-top: 14px; }
.blk.note { display: flex; gap: 12px; align-items: center; color: var(--gray); font-size: 15px; margin-top: clamp(64px, 8vw, 112px); }
.blk.note span { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--cloud); padding: 5px 10px; border-radius: 99px; }
.blk.note + .blk.text { margin-top: 20px; }
.screens { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.screens.covers { gap: clamp(10px, 1.4vw, 20px); }
.chars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.wide .m .frame { border-radius: var(--r-card); }
.wide .m.squarish { max-width: 960px; margin-inline: auto; }
.wide .m.is-tall { max-width: 380px; margin-inline: auto; }
.wide .m.is-tall .frame { aspect-ratio: 9 / 16 !important; border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.tall { display: grid; grid-template-columns: 3fr 1fr; gap: var(--gap); align-items: start; }
.videos { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.one-video { max-width: 1100px; }
.m.v.portrait { width: 100%; max-width: 360px; justify-self: center; margin-inline: auto; }
.videos .m.v.portrait { max-width: 340px; }
.hero-media.m.v.portrait { max-width: 420px; }
.one-video .m.phone { max-width: 360px; }
.lotties { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.p-next { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-block: 40px var(--section); border-top: 1px solid var(--line); margin-top: 24px; }
.p-next a { text-decoration: none; }
.p-next .back { color: var(--gray); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.p-next .back:hover { color: var(--ink); }
.p-next .next { text-align: right; display: grid; gap: 4px; }
.p-next .next span { color: var(--gray); font-size: 15px; }
.p-next .next strong { font-weight: 600; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1; transition: color 200ms; }
.p-next .next:hover strong { color: #415eee; }
.more-item { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.more-item:first-child { border-top: 0; }
.mi-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(16px, 4vw, 64px); }
.mi-text h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; }
.mi-text .yr { color: var(--gray); font-weight: 400; font-size: 0.6em; letter-spacing: 0; margin-left: 8px; }
.mi-text p { color: var(--gray); max-width: 56ch; }
.more-item .blk { margin-top: 28px; }
.sub-h { font-size: clamp(32px, 4vw, 56px); line-height: 1; margin-top: var(--section); padding-top: 24px; }

/* ---------- design system */
.ds-stats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: clamp(40px, 5vw, 64px) 0 12px; }
.ds-stats dl div { background: var(--cloud-2); border-radius: 24px; padding: 24px 28px; }
.ds-stats dt { color: var(--gray); font-size: 15px; font-weight: 500; }
.ds-stats dd { margin: 6px 0 0; font-size: clamp(32px, 4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.sub-label { font-size: 15px; font-weight: 500; color: var(--gray); letter-spacing: 0; margin: 32px 0 12px; }
.iconset { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.iconset li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; background: var(--cloud-2); }
.iconset.expr { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.iconset.ill { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.iconset.ill li { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.iconset.func img { width: 28px; height: 28px; }
.iconset.expr img { width: 56px; height: 56px; }
.iconset.ill img { width: 72%; height: 72%; object-fit: contain; }
.float img, .float > img { animation: float var(--t, 5s) ease-in-out var(--d, 0s) infinite alternate; }
.iconset li:hover img { animation-play-state: paused; transform: scale(1.12); transition: transform var(--mid) var(--ease-out); }
@keyframes float { from { transform: translateY(3px) rotate(-1.5deg); } to { transform: translateY(-3px) rotate(1.5deg); } }
.icons-strip { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.icons-strip .float { display: block; }
.icons-strip .float img { width: 100%; height: auto; aspect-ratio: 1; padding: 22%; background: #fff; border-radius: 22px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------- lottie */
.lotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 42vw), 1fr)); gap: var(--gap); grid-auto-flow: dense; }
.lot { margin: 0; position: relative; }
.lot-stage { position: relative; aspect-ratio: 1; background: var(--cloud-2); border-radius: 22px; overflow: hidden; transition: transform var(--mid) var(--ease-out); }
.lot:hover .lot-stage { transform: translateY(-2px); }
.lot.is-white .lot-stage { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lot.big .lot-stage { aspect-ratio: 16 / 10; }
.lot.is-dark .lot-stage { background: #15161a; }
.lot-canvas { position: absolute; inset: 10%; aspect-ratio: auto !important; }
.lot-canvas svg, .lot-canvas img { width: 100% !important; height: 100% !important; display: block; object-fit: contain; }
.lot figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 2px 0; }
.lot-name { font-size: 15px; color: var(--ink); font-weight: 500; }
.lgroup h2 .count { color: var(--gray); font-weight: 400; font-size: 0.6em; letter-spacing: 0; vertical-align: middle; margin-left: 6px; }
.lot-ctrl { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity 200ms; }
.lot:hover .lot-ctrl, .lot:focus-within .lot-ctrl, .lot.paused .lot-ctrl { opacity: 1; }
@media (hover: none) { .lot-ctrl { opacity: 0.8; right: 6px; bottom: 6px; } .lot-ctrl button { width: 30px; height: 30px; } }
.lot-ctrl button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.92); box-shadow: 0 0 0 1px var(--line); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lot-ctrl button:hover { background: #dfe6f2; }
.lot-ctrl svg { width: 12px; height: 12px; }
.lot.failed .lot-ctrl { display: none; }
.lgroup { margin-top: clamp(48px, 6vw, 80px); }
.lgroup h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 20px; }
.vgrid { columns: 3 300px; column-gap: var(--gap); }
.vgrid .m { break-inside: avoid; margin-bottom: var(--gap); }
.vgrid .m.v.portrait { max-width: none; }
.vgrid .m .frame { border-radius: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a { text-decoration: none; font-size: 14px; font-weight: 500; background: var(--cloud-2); border-radius: 99px; padding: 9px 14px; min-height: 40px; display: inline-flex; align-items: center; }
.chips a:hover { background: var(--cloud); }

/* ---------- footer */
.foot { margin-top: var(--section); background: var(--cloud-2); padding-block: clamp(56px, 8vw, 104px) 28px; }
.foot-title { font-size: clamp(40px, 6vw, 80px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.foot-mail { display: inline-block; margin-top: 16px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line); color: var(--gray); font-size: 14px; }
.home .foot { margin-top: var(--section); }

/* ---------- lightbox */
.lightbox[open] { animation: lb-in var(--mid) var(--ease-out); }
.lightbox.closing { animation: lb-out 200ms var(--ease-out) forwards; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
.lb-inner img { transform-origin: top left; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(255, 255, 255, 0.97); }
.lightbox::backdrop { background: rgba(255, 255, 255, 0.9); }
.lb-inner { height: calc(100vh - 72px); overflow: auto; display: grid; place-items: start center; padding: 24px; overscroll-behavior: contain; }
.lb-inner img { max-width: min(100%, var(--nw, 100%)); height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); background: #fff; margin: auto; }
.lb-bar { position: fixed; left: 0; right: 0; bottom: 0; height: 72px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.lb-bar button { min-width: 44px; height: 44px; border: 0; border-radius: 99px; background: var(--charcoal); color: var(--cloud); font: 500 15px "Inter", sans-serif; padding: 0 16px; cursor: pointer; }
.lb-count { color: var(--gray); font-size: 14px; margin-right: 8px; }

/* ---------- page transitions (cross-document View Transitions, with a simple fade-in fallback) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 200ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 380ms var(--ease-out) both; }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease-in-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.nav { view-transition-name: nav; }
@supports not (view-transition-name: none) { main { animation: vt-in 380ms var(--ease-out) both; } }
.p-head h1, .p-head .lede, .p-head .tags, .p-head .crumb { animation: rise 600ms var(--ease-out) both; }
.p-head .crumb { animation-delay: 0ms; } .p-head h1 { animation-delay: 40ms; } .p-head .lede { animation-delay: 100ms; } .p-head .tags { animation-delay: 160ms; }
.intro > * { animation: rise 700ms var(--ease-out) both; }
.intro > :nth-child(2) { animation-delay: 60ms; } .intro > :nth-child(3) { animation-delay: 130ms; } .intro > :nth-child(4) { animation-delay: 200ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .card.xl .c-media { aspect-ratio: 16 / 10; }
  .band, .about { grid-template-columns: 1fr; }
  .chars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screens { grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { top: 8px; margin-top: 8px; }
  .nav-in { padding-left: 16px; gap: 8px; }
  .nav nav { display: none; }
  .nav-cta { margin-left: auto; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .card, .card.xl, .card.half { grid-column: 1 / -1; }
  .card .c-media, .card.half .c-media { aspect-ratio: 4 / 3.6; }
  .teaser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .icons-strip { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .card.xl .c-media { aspect-ratio: 16 / 11; }
  .c-text { grid-template-columns: 1fr; }
  .c-text .tags { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .grid-more { grid-template-columns: 1fr; }
  .grid-more > div { padding: 24px; }
  .blk.text, .mi-text { grid-template-columns: 1fr; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens.covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair, .grid3, .tall, .buddy { grid-template-columns: 1fr; }
  .videos { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); }
  .videos[style*="--cols:1"] { grid-template-columns: 1fr; }
  .lotties { grid-template-columns: 1fr; }
  .hero-group { padding: 20px 12px; gap: 8px; }
  .ds-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icons-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .icons-strip img { border-radius: 14px; }
  .p-next { flex-direction: column; align-items: stretch; }
  .p-next .next { text-align: left; }
  .lb-inner { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .float img { animation: none !important; }
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .card a:hover .c-media > img, .card a:hover .c-media > video, .card a:hover .c-group img { transform: none; }
}

/* ================================================================ round 3 */
/* iPhone mockups */
.devices { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); align-items: start; }
.dev { margin: 0; }
.dev-body { position: relative; aspect-ratio: 9 / 19.5; padding: 4.2%; border-radius: 15% / 7%; background: linear-gradient(150deg, #3a3b40, #121316 38%, #1d1e22); box-shadow: inset 0 0 0 1.5px #4b4c52, 0 18px 40px -22px rgba(0, 0, 0, 0.45); transition: transform var(--mid) var(--ease-out); }
.dev.classic .dev-body { aspect-ratio: 9 / 17.6; border-radius: 13% / 7%; padding: 4.2% 4.2% 14%; }
.dev.classic .dev-body::after { content: ""; position: absolute; left: 50%; bottom: 3.6%; width: 15%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; box-shadow: inset 0 0 0 1.5px #4b4c52; }
.dev-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 11% / 5.1%; background: #fff; }
.dev.classic .dev-screen { border-radius: 3px; }
.dev-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dev:not(.classic) .dev-screen::before { content: ""; position: absolute; z-index: 2; top: 1.3%; left: 50%; width: 31%; height: 3.7%; transform: translateX(-50%); background: #000; border-radius: 99px; }
.dev[data-full] { cursor: zoom-in; }
.dev[data-full]:hover .dev-body { transform: translateY(-4px); }
.dev[data-full]:active .dev-body { transform: scale(0.985); }
.dev.blurred .dev-screen img { filter: none; }
.hero-group.devices-hero { padding-block: clamp(32px, 5vw, 72px); }
.hero-group.devices-hero .dev { flex: 0 1 260px; }

/* screens without mockup: no white plate behind transparent corners */
.m.screen .frame { background: transparent; box-shadow: none; }

/* teaser for desktop designs */
.teaser.desk .teaser-grid { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.teaser.desk .teaser-grid .m .frame { aspect-ratio: 16 / 10 !important; }
.teaser .teaser-grid { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }

/* Lottie tiles: one size, the animation always fits */
.lotgrid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 42vw), 1fr)); }
.lot { position: relative; margin: 0; }
.lot-stage { display: block; width: 100%; aspect-ratio: 1 !important; padding: 0; border: 0; cursor: zoom-in; font: inherit; color: inherit; }
.lot-canvas { position: absolute; inset: 12%; display: block; }
.lot-ctrl { position: absolute; right: 10px; top: calc(100% - 54px - 36px); bottom: auto; }
.lot figcaption { padding-top: 10px; }
.lot-stage:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* lightbox lottie */
.lb-lottie { display: none; width: min(80vw, 70vh); max-height: calc(100vh - 140px); margin: auto; background: var(--cloud-2); border-radius: 24px; }
.lb-lottie.is-dark { background: #15161a; }
.lightbox.is-lottie .lb-lottie { display: block; }
.lightbox.is-lottie img { display: none; }
.lightbox.is-lottie .lb-inner { place-items: center; }

/* video tiles: tile takes the video's own background colour */
.vgrid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--gap); }
.vtile { margin: 0; }
.vt-stage { aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.vt-stage video { width: 100%; height: 100%; object-fit: contain; }
.vtile figcaption { margin-top: 10px; font-size: 15px; color: var(--ink); font-weight: 500; }

/* section headers on home */
.sec-note { color: var(--gray); font-size: 16px; }
.work .sec-head { margin-bottom: 40px; }

/* awards */
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.awards li { display: flex; gap: 18px; align-items: flex-start; background: var(--cloud-2); border-radius: 24px; padding: 24px 26px; }
.aw-mark { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-weight: 600; font-size: 17px; color: #b8860b; box-shadow: inset 0 0 0 1px var(--line); }
.awards h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.25; }
.awards .aw-sub { color: var(--ink); font-weight: 500; font-size: 15px; margin-top: 4px; }
.awards p { color: var(--gray); font-size: 15px; margin-top: 6px; }
.awards-strip { margin-bottom: clamp(48px, 7vw, 96px); }

/* socials */
.socials { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 99px; background: var(--cloud); text-decoration: none; font-weight: 500; font-size: 15px; transition: background var(--fast), transform var(--fast) var(--ease-out); }
.socials a:hover { background: #dfe6f2; transform: translateY(-1px); }
.socials svg { width: 18px; height: 18px; }
.foot-socials a { background: #fff; }

/* about page */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.about-text p { color: var(--gray); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; max-width: 56ch; }
.about-text p + p { margin-top: 16px; }
.about-sec { margin-top: var(--section); }
.about-sec h2 { font-size: clamp(30px, 3.4vw, 48px); margin-bottom: 24px; }
.about-note { color: var(--gray); margin-bottom: 8px; max-width: 56ch; }
.outside { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.outside a { display: grid; gap: 6px; padding: 22px; border-radius: 22px; background: var(--cloud-2); text-decoration: none; height: 100%; transition: transform var(--mid) var(--ease-out), background var(--fast); }
.outside a:hover { transform: translateY(-3px); background: var(--cloud); }
.outside strong { font-weight: 600; font-size: 18px; }
.outside span { color: var(--gray); font-size: 15px; }

/* design system: process */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.steps li { background: var(--cloud-2); border-radius: 22px; padding: 22px 20px; }
.steps span { color: var(--gray); font-size: 13px; font-weight: 500; }
.steps h3 { font-size: 19px; margin: 18px 0 8px; letter-spacing: -0.01em; }
.steps p { color: var(--gray); font-size: 15px; line-height: 1.4; }
/* tiers */
.tiers { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 32px; }
.tier { background: var(--cloud-2); border-radius: 24px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.tier svg { width: 52px; height: 52px; fill: none; stroke-width: 2.4; }
.tier.core svg { stroke: #e8667a; } .tier.func svg { stroke: #7cc35b; } .tier.comp svg { stroke: #0097db; }
.tier h3 { font-size: 20px; letter-spacing: -0.01em; }
.tier p { color: var(--gray); font-size: 15px; }
.tier code, .anatomy code, .ramps code, .sys code, .spacing code { font: 500 13px ui-monospace, "SF Mono", Menlo, monospace; }
.tier code { color: var(--ink); background: #fff; padding: 8px 10px; border-radius: 10px; overflow-wrap: anywhere; }
.tier-arrow { align-self: center; color: var(--gray); font-size: 22px; }
/* anatomy */
.anatomy { margin-top: 32px; background: var(--cloud-2); border-radius: 28px; padding: clamp(24px, 4vw, 48px); text-align: center; }
.anat-line { font: 500 clamp(20px, 3vw, 40px) ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -0.02em; color: var(--gray); }
.anat-legend { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 14px; color: var(--gray); }
.anat-legend span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.a1 { color: #e2405e; } .a2 { color: #f0965b; } .a3 { color: #cc5a9c; } .a4 { color: #d4a800; } .a5 { color: #0097db; }
/* modes */
.modes { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); margin-top: 32px; }
.mode-col { background: var(--cloud-2); border-radius: 24px; padding: 28px; }
.mode-col h3 { font-size: 18px; margin-bottom: 18px; }
.pill { display: inline-block; padding: 10px 16px; border-radius: 99px; background: #fff; font-weight: 500; margin: 0 6px 6px 0; }
.mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mc { border-radius: 16px; padding: 16px; font-size: 14px; font-weight: 500; display: grid; gap: 22px; }
.mc span { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.mc.light { background: #fff; color: #0d2a50; box-shadow: inset 0 0 0 1px var(--line); }
.mc.dark { background: #141414; color: #e8e8e8; }
.mc.hc { background: #fff; color: #000; box-shadow: inset 0 0 0 2px #000; }
/* colour */
.ramps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 32px; }
.ramp h4 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.ramp ul, .sys { list-style: none; margin: 0; padding: 0; }
.ramp li { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 14px; height: 48px; background: var(--c); color: #fff; }
.ramp li:first-child { border-radius: 16px 16px 0 0; } .ramp li:last-child { border-radius: 0 0 16px 16px; }
.ramp li .sw { display: none; }
.ramp li code.hex { opacity: 0.8; }
.ramp li[style*="#E"], .ramp li[style*="#F"], .ramp li[style*="#B"], .ramp li[style*="#9"], .ramp li[style*="#3D"] { color: #0d2a50; }
.sys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sys li { display: grid; gap: 6px; background: var(--cloud-2); border-radius: 18px; padding: 14px; }
.sys .sw { height: 56px; border-radius: 12px; background: var(--c); }
.sys code { color: var(--gray); font-size: 12px; }
/* type and spacing */
.type-space { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); margin-top: 32px; }
.typescale, .spacing { list-style: none; margin: 0; padding: 18px 24px; background: var(--cloud-2); border-radius: 24px; }
.typescale li { display: grid; grid-template-columns: 110px 100px 1fr; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.typescale li:last-child, .spacing li:last-child { border-bottom: 0; }
.t-name { font-weight: 500; font-size: 15px; }
.t-meta { color: var(--gray); font-size: 13px; }
.t-sample { font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacing li { display: grid; grid-template-columns: 70px 1fr 50px; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.spacing .bar { height: 14px; border-radius: 4px; background: #0097db; max-width: 100%; }
/* components grid */
.compgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 44vw), 1fr)); gap: 10px; margin-top: 32px; }
.comp { margin: 0; }
.comp-stage { aspect-ratio: 16 / 9; background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; transition: transform var(--mid) var(--ease-out), box-shadow var(--mid); }
.comp:hover .comp-stage { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -20px rgba(0,0,0,.35); }
.comp-stage img { width: 100%; height: 100%; object-fit: contain; }
.comp figcaption { margin-top: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
/* icon grids: all outline, aligned */
.iconset.expr { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.iconset.expr li { background: var(--cloud-2); }
.iconset.expr img { width: 52px; height: 52px; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiers { grid-template-columns: 1fr; } .tier-arrow { transform: rotate(90deg); justify-self: center; }
  .ramps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-space, .modes, .about-grid { grid-template-columns: 1fr; }
  .outside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .devices { grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .sys { grid-template-columns: 1fr 1fr; }
  .mode-cards { grid-template-columns: 1fr 1fr 1fr; }
  .typescale li { grid-template-columns: 80px 1fr; } .t-sample { grid-column: 1 / -1; }
  .outside { grid-template-columns: 1fr; }
  .hero-group.devices-hero .dev { flex-basis: 30%; }
  .teaser .teaser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teaser.desk .teaser-grid { grid-template-columns: 1fr; }
  .teaser-card { position: relative; background: #fff; }
}
.outside li { position: relative; }
.outside .mini { position: absolute; right: 16px; top: 18px; font-size: 13px; font-weight: 500; color: var(--gray); }
.sys li { min-width: 0; } .sys code { overflow-wrap: anywhere; }
.typescale li > *, .spacing li > * { min-width: 0; }
@media (max-width: 760px) { .t-sample { white-space: normal; } .anat-line { font-size: 17px; overflow-wrap: anywhere; } }
.type-space > *, .ramps > *, .modes > * { min-width: 0; }
@media (max-width: 760px) { .typescale li { grid-template-columns: minmax(0, 1fr) auto; } .t-sample { grid-column: 1 / -1; overflow: hidden; } .typescale, .spacing { padding: 14px 16px; } }
.spacing li { grid-template-columns: 64px minmax(0, 1fr) 48px; }

/* ================================================================ round 4 */
/* nav: stays put during page transitions (no cross-fade, no jump) */
html { scrollbar-gutter: stable; }
::view-transition-group(nav) { animation: none; }
::view-transition-old(nav) { display: none; }
::view-transition-new(nav) { animation: none; }

/* awards: outline icons */
.aw-mark svg { width: 26px; height: 26px; fill: none; stroke: #b07a12; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* cards: media always fits the tile */
.c-media > img, .c-media > video { position: absolute; inset: 0; }
.c-media.contain > video, .c-media.contain > img { object-fit: contain; padding: var(--pad, 6%); }
.card a:hover .c-media.contain > video { transform: scale(1.02); }
.c-devices { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4%; padding: 7% 8%; }
.c-devices .dev { display: block; height: 100%; aspect-ratio: 9 / 19.5; flex: 0 1 auto; transition: transform 900ms var(--ease); }
.c-devices .dev.classic { aspect-ratio: 9 / 17.6; }
.c-devices .dev-body { display: block; height: 100%; aspect-ratio: auto; box-shadow: inset 0 0 0 1.5px #4b4c52, 0 14px 30px -18px rgba(0, 0, 0, 0.45); }
.c-devices .dev-screen { display: block; }
.c-devices .dev:nth-child(2) { transform: translateY(-3%); }
.card a:hover .c-devices .dev:nth-child(1) { transform: translateY(-2%) rotate(-1deg); }
.card a:hover .c-devices .dev:nth-child(2) { transform: translateY(-5%); }
.card a:hover .c-devices .dev:nth-child(3) { transform: translateY(-2%) rotate(1deg); }
.c-media.locked > img { filter: saturate(0.85); }
.c-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 99px; background: rgba(31, 32, 37, 0.84); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.c-lock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* more work / earlier work: aligned lists */
.grid-more > div { display: flex; flex-direction: column; }
.grid-more .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.grid-more .links li { border-top: 1px solid var(--line); }
.grid-more .links a { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 10px 2px; border-radius: 0; background: none; box-shadow: none; font-size: 16px; }
.grid-more .links a::after { content: "→"; color: var(--gray); opacity: 0; transform: translateX(-4px); transition: opacity 200ms, transform 200ms var(--ease-out); }
.grid-more .links a:hover { box-shadow: none; }
.grid-more .links a:hover::after { opacity: 1; transform: none; }

/* motion teaser on home: one row */
.lotgrid.one-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* design system: room between text and visuals */
.ds .ds-gap { margin-top: clamp(32px, 4vw, 56px); }
.iconwall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.iconwall li { aspect-ratio: 1; display: grid; place-items: center; background: #fff; }
.iconwall img { transition: opacity 700ms var(--ease-in-out), transform 700ms var(--ease-in-out), filter 700ms var(--ease-in-out); }
.iconwall .k-f img { width: 30%; height: 30%; max-width: 32px; max-height: 32px; opacity: 0.86; }
.iconwall .k-e img { width: 46%; height: 46%; max-width: 64px; max-height: 64px; }
.iconwall img.out { opacity: 0; transform: scale(0.9) translateY(6px); filter: blur(2px); }
.iconwall-legend { display: flex; gap: 20px; margin-top: 14px; color: var(--gray); font-size: 14px; }
.iconwall-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--ink); vertical-align: 1px; }
.iconwall-legend .k-e::before { background: #0097db; }
.comp.blurred .comp-stage img { filter: none; }
.comp .badge { font-size: 12px; padding: 5px 10px; }

/* motion gallery: captions and video tiles */
.lot figcaption, .vtile figcaption { padding: 12px 4px 0; margin: 0; }
.lot-name, .vtile figcaption { font-size: 14px; font-weight: 400; color: var(--gray); letter-spacing: 0; line-height: 1.35; }
.lgroup .lotgrid, .vgrid2 { row-gap: clamp(24px, 2.6vw, 36px); }
.vt-stage { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; font: inherit; transition: transform var(--mid) var(--ease-out); }
.vt-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.vtile:hover .vt-stage { transform: translateY(-2px); }
.vt-stage:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.lb-video { display: none; max-width: min(100%, 1100px); max-height: calc(100vh - 140px); margin: auto; border-radius: 16px; background: var(--bg, #fff); box-shadow: 0 0 0 1px var(--line); }
.lightbox.is-video .lb-video { display: block; }
.lightbox.is-video img, .lightbox.is-video .lb-lottie, .lightbox.is-lottie .lb-video { display: none; }
.lightbox.is-video .lb-inner { place-items: center; }

/* about: tools and a quieter "Outside KBC" */
.about-facts div { grid-template-columns: 110px 1fr; }
.about-sec.outside-sec h2 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.01em; margin-bottom: 12px; }
.outside-sec .outside { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.outside-sec .outside li { position: static; display: flex; gap: 8px; align-items: baseline; font-size: 15px; }
.outside-sec .outside li > a { display: inline; padding: 0; background: none; height: auto; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.outside-sec .outside li > a:hover { transform: none; background: none; text-decoration-color: currentColor; }
.outside-sec .outside span { color: var(--gray); font-size: 15px; }
.outside-sec .outside span a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .iconwall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .iconwall li:nth-child(n+19) { display: none; }
}
@media (max-width: 760px) {
  .grid-more .links { grid-template-columns: 1fr; }
  .lotgrid.one-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .lotgrid.one-row::-webkit-scrollbar { display: none; }
  .lotgrid.one-row .lot { flex: 0 0 62%; scroll-snap-align: start; }
  .iconwall { grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 18px; }
  .iconwall li:nth-child(n+17) { display: none; }
  .c-devices { padding: 8% 6%; gap: 3%; }
  .outside-sec .outside { flex-direction: column; }
  .about-facts div { grid-template-columns: 80px 1fr; }
}
.c-media.portrait > video, .c-media.portrait > img { right: auto; bottom: auto; }
.comp-stage { position: relative; }
.outside-sec .outside span a { display: inline; padding: 0; background: none; height: auto; border-radius: 0; text-decoration: underline; }
.outside-sec .outside span a:hover { transform: none; background: none; color: var(--ink); }
/* card mockups: always fit, whatever the card ratio */
.c-devices { inset: 8% 6%; padding: 0; gap: 3cqw; container-type: size; }
.c-devices .dev { flex: none; height: min(100cqh, calc((100cqw - (var(--n, 3) - 1) * 3cqw) / var(--n, 3) * 2.1667)); }
@media (max-width: 760px) { .c-devices { inset: 8% 5%; padding: 0; } }
.c-devices { gap: 0; }
.c-devices .dev + .dev { margin-left: 3cqw; }

/* ================================================================ round 5 */
/* icons: two families, static */
.icongrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.icongrid li { aspect-ratio: 1; display: grid; place-items: center; background: #fff; transition: background var(--fast); }
.icongrid li:hover { background: var(--cloud-2); }
.icongrid.func img { width: 28px; height: 28px; opacity: 0.86; }
.icongrid.expr img { width: 50px; height: 50px; }
.ds .sub-label.ds-gap { margin-top: clamp(32px, 4vw, 56px); }
.icongrid + .sub-label { margin-top: 32px; }
/* illustrations: fewer, larger, zoomable */
.iconset.ill { grid-template-columns: repeat(auto-fill, minmax(min(220px, 40vw), 1fr)); gap: 12px; }
.iconset.ill li[data-full] { cursor: zoom-in; transition: transform var(--mid) var(--ease-out), box-shadow var(--mid); }
.iconset.ill li[data-full]:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -20px rgba(0,0,0,.3); }
.iconset.ill li:hover img { transform: none; }
/* motion assets row */
.lotgrid.one-row { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
/* components from the library */
.compgrid.c2 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 44vw), 1fr)); gap: 14px; }
.compgrid.c2 .comp-stage { aspect-ratio: 1.75; }
.compgrid.c2 .comp-stage img { object-fit: cover; }
/* more work / earlier work: clearly clickable */
.grid-more .links { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-more .links li { border-top: 0; }
.grid-more .links a { min-height: 52px; padding: 12px 16px 12px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 15px; gap: 12px; transition: box-shadow 200ms, transform var(--fast) var(--ease-out); }
.grid-more .links a::after { content: "→"; opacity: 1; transform: none; color: var(--gray); transition: transform 200ms var(--ease-out), color 200ms; }
.grid-more .links a:hover { box-shadow: 0 0 0 1px var(--ink), 0 8px 18px -12px rgba(0,0,0,.3); transform: translateY(-1px); }
.grid-more .links a:hover::after { transform: translateX(3px); color: var(--ink); }
@media (max-width: 1000px) { .lotgrid.one-row[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .icongrid { grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 18px; }
  .icongrid.func img { width: 24px; height: 24px; } .icongrid.expr img { width: 40px; height: 40px; }
  .grid-more .links { grid-template-columns: 1fr; }
  .lotgrid.one-row[style*="--n:4"] { display: grid; overflow: visible; margin-inline: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.icongrid { grid-template-columns: repeat(14, minmax(0, 1fr)); }
@media (max-width: 1000px) { .icongrid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 760px) { .icongrid { grid-template-columns: repeat(7, minmax(0, 1fr)); } .icongrid.func img { width: 20px; height: 20px; } .icongrid.expr img { width: 32px; height: 32px; } }
.lb-inner img[src$=".svg"] { width: min(90vw, 72vh, 720px); max-width: none; padding: 6%; box-shadow: 0 0 0 1px var(--line); border-radius: 24px; }

/* ================================================================ round 6 */
/* iPhone mockup: screen area is exactly 375 x 812, so exported screens fit without cropping */
.dev:not(.classic) .dev-body { aspect-ratio: 1 / 2.0604; padding: 4.5%; }
.c-devices .dev:not(.classic) { aspect-ratio: 1 / 2.0604; }
.c-devices .dev { height: min(100cqh, calc((100cqw - (var(--n, 3) - 1) * 3cqw) / var(--n, 3) * 2.0604)); }
.dev-screen img { object-fit: cover; object-position: top center; }
/* award icon from Sander's own SVG */
.aw-mark svg.filled { fill: #b07a12; stroke: none; }
/* video rows: every frame the same size, video fits inside on its own colour */
.videos.uni { align-items: start; }
.videos.uni .m.v .frame { background: var(--bg, var(--cloud-2)); border-radius: var(--r-img); }
.videos.uni .m.v .frame video { object-fit: contain; }
.videos.uni .m.v.portrait { max-width: none; }
.videos.uni .m.v figcaption, .one-video figcaption { margin-top: 10px; }
.hero-videos { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.p-hero .hero-videos .frame { border-radius: 22px; }
/* state machine demo */
.smdemo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; background: var(--cloud-2); border-radius: var(--r-card); padding: clamp(20px, 4vw, 48px); }
.smlot { margin: 0; }
.sm-stage { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 24px; background: #fff; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.sm-canvas { position: absolute; inset: 10%; display: block; }
.sm-canvas svg { width: 100% !important; height: 100% !important; }
.sm-text h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.sm-text p:not(.eyebrow) { color: var(--gray); margin-top: 14px; max-width: 46ch; }
.sm-text code { font: 500 14px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
.sm-switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; cursor: pointer; min-height: 44px; }
.sm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-track { width: 52px; height: 32px; border-radius: 99px; background: #c9ced6; position: relative; transition: background var(--mid) var(--ease-out); }
.sm-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform var(--mid) var(--ease-out); }
.sm-switch input:checked + .sm-track { background: #3c9b2e; }
.sm-switch input:checked + .sm-track .sm-knob { transform: translateX(20px); }
.sm-switch input:focus-visible + .sm-track { outline: 2px solid var(--focus); outline-offset: 3px; }
.sm-val { color: var(--gray); font: 500 14px ui-monospace, "SF Mono", Menlo, monospace; }
.sm-states { font-size: 14px; }
@media (max-width: 760px) { .smdemo { grid-template-columns: 1fr; } .smlot { max-width: 320px; } }
/* project Lottie blocks: tiles take the animation's own ratio; phone-sized ones stay phone-sized */
.lotties .lot.big .lot-stage { aspect-ratio: var(--ar, 16 / 10) !important; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.lotties .lot.big .lot-canvas { inset: 0; }
.lotties .lot.big.is-tall { max-width: 320px; width: 100%; justify-self: center; }
.lotties { justify-items: center; }
.lotties .lot.big:not(.is-tall) { width: 100%; }

/* ================================================================ round 7: about */
.about-photo .m.portrait .frame img { object-position: 58% 35%; }
.cv-dl { margin-top: 16px !important; }
.aw-photos { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); margin-top: var(--gap); align-items: start; }
.aw-photos .m .frame { border-radius: var(--r-img); }
.aw-photos + .cap { margin-top: 16px; }
.outside-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.outside-photo .m .frame { border-radius: var(--r-img); }
.interests { color: var(--gray); font-size: 15px; margin-bottom: 18px; }
.interests span { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.outside-sec .outside { flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .aw-photos, .outside-grid { grid-template-columns: 1fr; } }
/* illustrations: 15 in even rows */
.iconset.ill { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .iconset.ill { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* components: more air */
.compgrid.c2 { gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.compgrid.c2 .comp figcaption { margin-top: 12px; }
.iconset.ill li[data-full] img { width: 72%; height: 72%; }
/* theme demo */
.themedemo .sm-stage { transition: background var(--mid) var(--ease-out); }
.themedemo.is-dark .sm-stage { background: #15161a; box-shadow: none; }
.more-item .smdemo { margin-top: 28px; }
.icons-row .lot-stage { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.icons-row .lot-canvas { inset: 18%; }
.icons-row .lot-ctrl { display: none; }
@media (max-width: 760px) { .lotgrid.one-row.icons-row .lot { flex-basis: 34%; } }
.icongrid.func img { opacity: 1; }

/* ================================================================ round 8: Kate 2.0 */
.film { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.film-side { display: grid; gap: var(--gap); }
.film .m.v .frame { background: #f4f2fb; border-radius: var(--r-img); }
.film .m.v .frame video { object-fit: cover; }
.film .frag figcaption { margin-top: 8px; }
@media (max-width: 760px) { .film { grid-template-columns: 1fr; } .film-side { grid-template-columns: 1fr 1fr; } }

@property --af { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.aifeel { position: relative; overflow: hidden; border-radius: var(--r-card); padding: clamp(28px, 5vw, 64px); background: radial-gradient(120% 90% at 0% 0%, #eef6ff, transparent 60%), radial-gradient(120% 90% at 100% 100%, #f3efff, transparent 60%), #fbfbfe; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.af-orbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.af-orb { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: end center; padding-bottom: 8%;
  --c1: #0097db; --c2: #5bd1d7; --c3: #7f7eff;
  background: conic-gradient(from var(--af), var(--c1), var(--c2), var(--c3), var(--c1)); animation: af-spin calc(var(--d) * 1s) linear infinite; animation-duration: var(--d); }
.af-orb[style*="--h:1"] { --c1: #00a3a8; --c2: #8ee6d4; --c3: #3db6fc; }
.af-orb[style*="--h:2"] { --c1: #9b8cff; --c2: #e0c3ff; --c3: #5fa8ff; }
.af-orb[style*="--h:3"] { --c1: #ff9ec7; --c2: #b8a6ff; --c3: #7fd3ff; }
.af-orb::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35) 45%, transparent 70%); filter: blur(2px); }
.af-orb::after { content: ""; position: absolute; inset: -8%; border-radius: 50%; background: inherit; filter: blur(28px); opacity: .45; z-index: -1; }
.af-orb span { position: relative; font-size: 13px; font-weight: 500; color: #fff; text-shadow: 0 1px 6px rgba(13,42,80,.35); }
@keyframes af-spin { to { --af: 360deg; } }
.af-ui { display: grid; gap: 18px; justify-items: start; }
.af-input { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 99px; border: 2px solid transparent; color: var(--gray); font-size: 16px;
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--af), #0097db, #5bd1d7, #7f7eff, #ff9ec7, #0097db) border-box;
  box-shadow: 0 0 28px -6px rgba(127, 126, 255, .45), 0 0 18px -8px rgba(0, 151, 219, .5); animation: af-spin 6s linear infinite; }
.af-spark { color: #7f7eff; font-size: 18px; }
.af-mic { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #0097db, #7f7eff); box-shadow: 0 6px 16px -6px rgba(127,126,255,.7); }
.af-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px; color: #fff; font-weight: 500; font-size: 15px;
  background: linear-gradient(110deg, #0097db, #7f7eff 55%, #d48cff); box-shadow: 0 10px 28px -10px rgba(127,126,255,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.af-note { grid-column: 1 / -1; color: var(--gray); font-size: 14px; }
@media (max-width: 760px) { .aifeel { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .af-orb, .af-input { animation: none; } }

.compgrid.c2.specgal { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
.specgal .comp-stage { aspect-ratio: 1.6; background: #f6f8fb; cursor: zoom-in; }
.specgal .comp-stage img { object-fit: contain; padding: 8%; }
@media (max-width: 1000px) { .compgrid.c2.specgal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .compgrid.c2.specgal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; } .specgal figcaption { font-size: 12px; } }

/* ================================================================ round 9 */
.aw-photos.one { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.uni-dev { align-items: start; }
.dev.live .dev-screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.live-badge { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); z-index: 3; background: rgba(31, 32, 37, 0.84); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 99px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a36; animation: an-pulse 1.2s ease-in-out infinite; }
@keyframes an-pulse { 50% { opacity: .35; } }
.strip { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
.strip .m { flex: 0 0 auto; scroll-snap-align: start; }
.strip .m .frame { height: clamp(320px, 42vw, 520px); width: auto; aspect-ratio: 2484 / 5376 !important; border-radius: 18px; }
.strip .m.is-tall .frame::before, .strip .m.is-tall .frame::after { display: none; }
.lg-note { color: var(--gray); margin: -8px 0 20px; max-width: 60ch; }
#interactive .smdemo + .smdemo { margin-top: var(--gap); }
@media (max-width: 760px) { .uni-dev[style*="--cols:7"], .uni-dev[style*="--cols:5"], .uni-dev[style*="--cols:6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more-item .one-video { max-width: 860px; }

/* ================================================================ round 10: compact interactive tiles */
.ia .lot-stage { cursor: pointer; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.ia.ia-theme.is-dark .lot-stage { background: #15161a; box-shadow: none; }
.ia figcaption { flex-direction: column; align-items: flex-start; gap: 2px; }
.ia-kind { font-size: 13px; color: var(--gray); opacity: .8; }
.ia-ctrl { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; min-height: 36px; }
.ia-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }
.ia-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ia-toggle .sm-track { width: 44px; height: 26px; }
.ia-toggle .sm-knob { width: 20px; height: 20px; }
.ia-toggle input:checked + .sm-track { background: #3c9b2e; }
.ia-toggle input:checked + .sm-track .sm-knob { transform: translateX(18px); }
.ia-toggle input:focus-visible + .sm-track { outline: 2px solid var(--focus); outline-offset: 3px; }
.ia-toggle code { font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--gray); }
.ia-ctrl select { font: 500 13px "Inter", sans-serif; color: var(--ink); border: 0; border-radius: 99px; background: var(--cloud-2); padding: 7px 28px 7px 12px; min-height: 34px; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat; }
.ia-sws { display: inline-flex; gap: 6px; }
.ia-sw { width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform var(--fast); }
.ia-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.ia-sw:hover { transform: scale(1.12); }

/* ================================================================ round 11 */
.aw-photos.one { max-width: none; }
.blk.one-video { margin-inline: auto; }
.blk.one-video.full { max-width: none; }
img, video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* ---------------------------------------------------------------- v3: stage hero (tilted iPhones in perspective) */
.stage { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--st-bg); aspect-ratio: 16 / 9; isolation: isolate; }
/* the fade lives here, outside the 3D chain: opacity on any 3D element would flatten the phone sides */
.st-wrap { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1500px; perspective-origin: 50% 30%; animation: st-fade 900ms var(--ease-out) 100ms backwards; }
.stage .dev-screen::before { display: none; }   /* these screens draw their own notch */
.stage::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); z-index: -1; }
.stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(56, 28, 128, 0.28), rgba(56, 28, 128, 0)); filter: blur(12px); z-index: -1; }
.st-row { display: flex; align-items: center; justify-content: center; width: 62%; margin-top: 1%; transform-style: preserve-3d;
  transform: rotateX(calc(22deg + var(--ty, 0deg))) rotateY(calc(-30deg + var(--tx, 0deg))) rotateZ(9deg);
  transition: transform 900ms var(--ease-out); }
.st-dev { flex: 0 0 30%; position: relative; transform-style: preserve-3d; transform: translateY(calc((var(--i) - 1) * -12%)) translateZ(calc(var(--i) * -90px)); }
.st-dev + .st-dev { margin-left: -2%; }
.st-dev > .dev, .st-dev .dev-body { transform-style: preserve-3d; }
.st-dev > .dev { animation: st-in 1300ms var(--ease-out) backwards; animation-delay: calc(120ms + var(--i) * 120ms); }
.st-dev .dev-body { animation: st-float 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -2.4s);
  background: linear-gradient(150deg, #2c2d32, #0e0f12 40%, #1b1c20); box-shadow: inset 0 0 0 1.5px #8d8f96, inset 0 0 0 3px #2a2b30; }
.st-dev .dev-screen { transform: translateZ(0.5px); }
.st-edge { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, #d9dbe0, #8e9097 35%, #5d5f66 70%, #a7a9b0); transform: translateZ(calc(var(--k) * -2.4px)); }
.st-edge[style*="--k:10"] { background: #3d3e44; box-shadow: -30px 50px 70px -30px rgba(48, 22, 112, 0.6); }
.st-dev .dev-screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.22) 48%, transparent 58%) no-repeat;
  background-size: 260% 100%; background-position: calc(60% + var(--sx, 0%)) 0; transition: background-position 900ms var(--ease-out); }
.st-pill { position: absolute; left: clamp(16px, 2.4vw, 32px); top: clamp(16px, 2.4vw, 32px); z-index: 20;
  padding: 8px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #3a2a76; font-size: 14px; font-weight: 500; white-space: nowrap; animation: st-pill 900ms var(--ease-out) 750ms both; }
@keyframes st-in { from { translate: 0 90px; } }
@keyframes st-fade { from { opacity: 0; } }   /* translate, not transform: an animated transform flattens the 3D phone sides */
@keyframes st-float { from { translate: 0 0; } to { translate: 0 -12px; } }
@keyframes st-pill { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 760px) {
  .stage { aspect-ratio: 1 / 1; }
  .st-wrap { perspective: 1100px; }
  .st-row { width: 92%; margin-top: 4%; }
  .st-dev { transform: translateY(calc((var(--i) - 1) * -12%)) translateZ(calc(var(--i) * -50px)); }
  .st-pill { font-size: 13px; }
}

/* v3: teaser with one phone screen next to the card */
.teaser.solo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(24px, 5vw, 72px);
  padding: clamp(32px, 6vw, 88px); background: linear-gradient(160deg, #1d9be0, #0d3f7d 75%); }
.teaser.solo .teaser-dev { width: min(280px, 100%); justify-self: center; transform: rotate(-5deg); }
.teaser.solo .teaser-dev .dev-body { animation: st-float 6s ease-in-out infinite alternate; box-shadow: inset 0 0 0 1.5px #4b4c52, -20px 40px 60px -30px rgba(0, 0, 0, 0.55); }
.teaser.solo .teaser-card { position: static; justify-items: start; text-align: left; background: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 52px); }
@media (max-width: 760px) {
  .teaser.solo { grid-template-columns: 1fr; padding: 32px 16px 16px; }
  .teaser.solo .teaser-dev { width: 58%; }
}
@media (prefers-reduced-motion: reduce) {
  .st-wrap, .st-dev > .dev, .st-dev .dev-body, .st-pill, .teaser.solo .teaser-dev .dev-body { animation: none; }
  .st-row, .st-dev .dev-screen::after { transition: none; }
}

/* v3: award marks, bright yellow with a white icon */
.aw-mark { background: #ffc20e; box-shadow: 0 8px 18px -10px rgba(214, 150, 0, 0.8); }
.aw-mark svg { stroke: #fff; }
.aw-mark svg.filled { fill: #fff; stroke: none; }

/* v3: the two KBC typefaces, named (the site itself stays Inter only) */
.fonts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.fonts li { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--cloud-2); box-shadow: inset 0 0 0 1px var(--line); }
.f-name { font-weight: 600; font-size: 18px; color: var(--ink); }
.f-meta { font-size: 14px; color: var(--gray); }

/* v3: mobile menu (hamburger) */
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cloud); cursor: pointer; flex: none; transition: background var(--fast); }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform 320ms var(--ease-out); }
.nav-toggle span:first-child { transform: translateY(-3.5px); }
.nav-toggle span:last-child { transform: translateY(3.5px); }
.nav.open .nav-toggle span:first-child { transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-in { position: relative; padding-right: 6px; }
  .nav .nav-cta { margin-left: auto; }
  .nav nav { display: flex; flex-direction: column; gap: 2px; position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px;
    border-radius: 24px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0, 0, 0, 0.3);
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top center;
    transition: opacity 220ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s linear 320ms; }
  .nav.open nav { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s; }
  .nav nav a { font-size: 17px; color: var(--ink); padding: 14px 16px; border-radius: 16px; }
  .nav nav a[aria-current="page"] { background: var(--cloud-2); }
}
@media (prefers-reduced-motion: reduce) { .nav nav, .nav-toggle span { transition: none !important; } }

/* v3: iPhone 8-era frame. The screen is exactly 16:9, with real top and bottom bezels; the home button sits in the bottom bezel, the speaker in the top one */
.dev.classic .dev-body { aspect-ratio: 1 / 1.98; padding: 20% 5.5% 20%; border-radius: 15% / 7.6%; }
.dev.classic .dev-body::after { bottom: 3.3%; width: 13%; }
.dev.classic .dev-body::before { content: ""; position: absolute; left: 50%; top: 4.6%; width: 17%; height: 0.7%; transform: translateX(-50%); border-radius: 99px; background: #3a3b40; }
.c-devices .dev.classic { aspect-ratio: 1 / 1.98; }
.dev.classic .dev-screen { border-radius: 2px; }

/* v3: a device row with fewer phones than columns keeps the column size and sits centred */
.uni-dev.center { justify-content: center; grid-template-columns: repeat(var(--n), calc((100% - (var(--cols) - 1) * clamp(14px, 2vw, 32px)) / var(--cols))); }
.uni-dev + .uni-dev { margin-top: clamp(20px, 3vw, 40px); }
@media (max-width: 760px) { .uni-dev.center { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); } }

/* v3: a Lottie playing inside a phone screen, over the screen's static illustration */
.scr-lot { position: absolute; left: 0; right: 0; top: var(--lt, 18.5%); height: var(--lh, 38%); z-index: 1; background: #fff; display: grid; place-items: center; pointer-events: none; }
.scr-lot .lot-canvas { width: 100%; aspect-ratio: 2 / 1; }

/* v3: white slides on white get a hairline */
.slides .m .frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
