:root {
  --paper: #ffffff;
  --mist: #f3f4f6;
  --ink: #16181d;
  --slate: #5b616e;
  --rule: #e4e6ea;
  --volt: #ffd400;
  --volt-deep: #d9b400;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: 70rem;
  --text: 42.5rem;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

a {
  color: inherit; text-decoration: underline; text-decoration-color: var(--volt-deep); text-decoration-thickness: 2px; text-underline-offset: 0.2em;
  background-image: linear-gradient(var(--volt), var(--volt)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 320ms var(--ease-out), text-decoration-color 200ms ease;
}
a:hover { background-size: 100% 100%; text-decoration-color: var(--ink); }
.links a, .help-index a, .social a, .go, .crumbs a, .side a { text-decoration-color: #c4c8cf; text-decoration-thickness: 1px; }
.links a:hover, .help-index a:hover, .social a:hover, .go:hover, .crumbs a:hover, .side a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--volt); }

/* Visible to screen readers only */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--volt); }
.skip:focus { left: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule); background: rgba(255, 255, 255, 0.84); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); view-transition-name: site-header; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { background: none; }
.mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; background: var(--volt); color: var(--ink); font-weight: 800; font-size: 1rem; line-height: 1; border-radius: 6px; }
.nav { display: flex; gap: 1.25rem; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--slate); }
.nav a:hover { color: var(--ink); background: none; text-decoration: underline; text-decoration-color: var(--volt-deep); }

/* Home hero */
.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: center; gap: 2rem; }
.hero h1 { font-size: clamp(2.75rem, 8.5vw, 6.25rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: inline-block; }
.hero .lede { margin: 1.75rem 0 0; max-width: 34rem; font-size: 1.25rem; line-height: 1.5; color: var(--slate); }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.125rem; border-radius: 8px; background: var(--volt); color: var(--ink); font-weight: 600; text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.button:active { transform: scale(0.97); }
.button:hover { background: var(--ink); color: var(--paper); }
.button.quiet { background: var(--mist); }
.button.quiet:hover { background: var(--ink); color: var(--paper); }
.button svg { width: 1.125rem; height: 1.125rem; }

/* Sections */
.section { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: 1.75rem; }
.section-head p { margin: 0; color: var(--slate); font-size: 0.9375rem; }

/* App rows */
.apps { list-style: none; }
.app { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.app:first-child { border-top: 0; padding-top: 0.5rem; }
.icon { position: relative; flex: none; width: 5.5rem; height: 5.5rem; border-radius: 22.5%; background: var(--mist); overflow: hidden; }
.icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(22, 24, 29, 0.12); pointer-events: none; }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.app h3 { font-size: 1.375rem; }
.app h3 a { text-decoration: none; }
.app h3 a:hover { background: none; text-decoration: underline; text-decoration-color: var(--volt-deep); }
.app .kind { margin: 0.125rem 0 0.625rem; color: var(--slate); font-size: 0.9375rem; }
.app .desc { max-width: var(--text); margin-bottom: 0.75rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.375rem 1.5rem; margin: 0 0 0.875rem; font-size: 0.9375rem; color: var(--slate); }
.facts b { color: var(--ink); font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; font-size: 0.9375rem; font-weight: 500; }
.peek { display: none; }
@media (min-width: 64rem) {
  .app.has-peek { grid-template-columns: 5.5rem 1fr auto; }
  .peek { display: flex; gap: 0.75rem; align-self: start; }
  .peek img { width: 6.75rem; aspect-ratio: 1290 / 2796; object-fit: cover; border-radius: 12px; background: var(--mist); }
}

/* Generic rows (web projects) */
.rows { list-style: none; }
.row { display: grid; grid-template-columns: 12rem 1fr auto; gap: 0.25rem 2rem; padding: 1.125rem 0; border-top: 1px solid var(--rule); align-items: baseline; }
.row:first-child { border-top: 0; }
.row h3, .row h4 { margin: 0; font-size: 1.0625rem; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
.row p { margin: 0; }
.row .stack { color: var(--slate); font-size: 0.875rem; margin-top: 0.25rem; }
.row .go { font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.row .muted { color: var(--slate); font-size: 0.9375rem; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { background: none; text-decoration: underline; text-decoration-color: var(--volt-deep); }
.row .links { margin-top: 0.5rem; }

/* Games */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; }
.game img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 4px; background: var(--mist); margin-bottom: 1rem; }
.game h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.game p { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.game .stack { color: var(--slate); font-size: 0.875rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 3rem; }
.about .prose p { max-width: var(--text); }
.factlist { list-style: none; border-left: 3px solid var(--volt); padding-left: 1.25rem; }
.factlist li { padding: 0.5rem 0; font-size: 0.9375rem; }
.factlist li + li { border-top: 1px solid var(--rule); }
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 2.5rem; margin-top: 2.5rem; }
.skills h3 { font-size: 0.9375rem; color: var(--slate); font-weight: 500; letter-spacing: 0; margin-bottom: 0.25rem; }
.skills p { margin: 0; }

/* Contact */
.contact-lede { max-width: 36rem; margin: 0.75rem 0 0; font-size: 1.125rem; color: var(--slate); }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0.5rem 0 1.5rem; }
.contact .email { display: inline-block; font-size: clamp(1.5rem, 4.5vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; word-break: break-word; }
.copy { padding: 0.5rem 0.875rem; border: 0; border-radius: 8px; background: var(--mist); color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.copy:hover { background: #e7e9ec; }
.copy:active { transform: scale(0.97); }
.social { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; font-weight: 500; }

/* Footer */
.site-footer { background: var(--mist); margin-top: 3.5rem; padding: 3rem 0 2.5rem; font-size: 0.9375rem; }
.site-footer h2 { font-size: 1rem; margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.help-index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; list-style: none; }
.help-index h3 { font-size: 0.9375rem; margin-bottom: 0.5rem; letter-spacing: 0; }
.help-index ul { list-style: none; }
.help-index li li { padding: 0.125rem 0; color: var(--slate); }
.legalline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--slate); }
.site-footer.slim { margin-top: 4rem; padding: 1.5rem 0; }
.site-footer.slim .legalline { margin: 0; padding: 0; border: 0; }

/* App page */
.crumbs { margin: 2rem 0 0; font-size: 0.9375rem; color: var(--slate); }
.crumbs a { color: var(--slate); }
.product { display: grid; grid-template-columns: 8rem 1fr; gap: 2rem; align-items: center; padding: 2rem 0 2.5rem; }
.product .icon { width: 8rem; height: 8rem; }
.product.no-icon { grid-template-columns: 1fr; }
.product h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; }
.product .kind { margin: 0.375rem 0 1.25rem; color: var(--slate); font-size: 1.125rem; }
.product .actions { margin-top: 0; }
.shots { display: flex; gap: 1rem; overflow-x: auto; padding: 0.25rem 0 1.25rem; scroll-snap-type: x mandatory; list-style: none; }
.shots li { flex: 0 0 auto; scroll-snap-align: start; }
.shots img { width: 13.5rem; aspect-ratio: 1290 / 2796; object-fit: cover; border-radius: 18px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 3rem; }
.split h2 { font-size: 1.375rem; margin-bottom: 0.75rem; }
.split h2:not(:first-child) { margin-top: 2rem; }
.bullets { padding-left: 1.125rem; }
.bullets li { margin: 0.25rem 0; }
.side { border-left: 3px solid var(--volt); padding-left: 1.25rem; align-self: start; }
.side h2 { font-size: 1rem; margin-bottom: 0.5rem; }
.side ul { list-style: none; }
.side li { padding: 0.375rem 0; }
.side p { color: var(--slate); font-size: 0.9375rem; }

/* Legal / support documents */
.doc-head { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--rule); }
.doc-app { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 600; text-decoration: none; }
.doc-app:hover { background: none; text-decoration: underline; text-decoration-color: var(--volt-deep); }
.doc-app .icon { width: 2.5rem; height: 2.5rem; }
.doc-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 1.5rem; }
.doc-head .meta { margin: 0.75rem 0 0; color: var(--slate); }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 1.5rem; list-style: none; }
.doc-tabs a { display: block; padding: 0.375rem 0.75rem; border-radius: 6px; text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--slate); }
.doc-tabs a:hover { background: var(--mist); color: var(--ink); }
.doc-tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.doc { max-width: var(--text); padding: 2rem 0 1rem; }
.doc h2 { font-size: 1.3125rem; margin: 2.25rem 0 0.75rem; }
.doc h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; letter-spacing: -0.01em; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li { margin: 0.25rem 0; }
.doc li::marker { color: var(--slate); }
.doc > :first-child { margin-top: 0; }
.doc-contact { max-width: var(--text); margin: 1.5rem 0 0; padding: 1.25rem 1.5rem; background: var(--mist); border-radius: 8px; }
.doc-contact p { margin: 0; }

/* Tools */
.tool-head { padding: 2.5rem 0 1.5rem; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.tool-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.035em; }
.tool-head p { margin: 0.5rem 0 0; color: var(--slate); }

.notfound { padding: 6rem 0; }
.notfound .actions { margin-top: 1.5rem; }
.notfound h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1rem; }

@media (max-width: 52rem) {
  .row { grid-template-columns: 1fr; }
  .games { gap: 1.25rem; }
  .about, .split { grid-template-columns: 1fr; gap: 2rem; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  body { font-size: 1rem; }
  .nav { gap: 0.875rem; font-size: 0.875rem; }
  .nav .opt { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero .lede { font-size: 1.125rem; }
  .app { grid-template-columns: 3.75rem 1fr; gap: 0 1rem; }
  .icon { width: 3.75rem; height: 3.75rem; }
  .games, .skills { grid-template-columns: 1fr; }
  .help-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: 1fr; gap: 1.25rem; }
  .product .icon { width: 5rem; height: 5rem; }
  .shots img { width: 11rem; }
  .section-head { flex-direction: column; gap: 0.25rem; }
}
@media (max-width: 24rem) {
  .nav .opt-xs { display: none; }
}

/* Client work */
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 2rem; list-style: none; }
.client .thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--mist); box-shadow: 0 0 0 1px var(--rule), 0 18px 36px -24px rgba(22, 24, 29, 0.35); margin-bottom: 1.125rem; }
.client .thumb:hover { background: var(--mist); }
.client .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.client .thumb .blank { display: grid; place-items: center; height: 100%; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--slate); }
.client h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.client p { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.client .stack { color: var(--slate); font-size: 0.875rem; }
.client p:last-child { margin: 0; font-weight: 500; }
.subhead { font-size: 1.0625rem; margin: 3.5rem 0 0.5rem; letter-spacing: -0.01em; }

/* Services */
.services { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; align-items: start; }
.services-intro p { font-size: 1.25rem; line-height: 1.5; margin-bottom: 1.5rem; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; list-style: none; }
.service-list li { padding: 1.125rem 0; border-top: 1px solid var(--rule); }
.service-list h3 { font-size: 1.0625rem; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.service-list p { margin: 0; color: var(--slate); font-size: 0.9375rem; }

@media (max-width: 52rem) {
  .clients { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 36rem) {
  .clients, .service-list { grid-template-columns: 1fr; }
  .services-intro p { font-size: 1.125rem; }
}

/* ---------- Motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; animation-timing-function: var(--ease-out); }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease-in-out); }

[id] { scroll-margin-top: 5rem; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--volt); transform: scaleX(0); transform-origin: 0 50%; z-index: 30; pointer-events: none; }

/* Hero: lines rise out of their own mask, then the rest follows */
.hero h1 .line > span { animation: rise 1100ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
.hero .lede { animation: fade-up 900ms var(--ease-out) 260ms both; }
.hero .actions { animation: fade-up 900ms var(--ease-out) 360ms both; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* Hero collage: .float moves with JS, .float-in plays the entrance, .card tilts and bobs */
.float-stack { position: relative; height: 23rem; }
.float { position: absolute; display: block; text-decoration: none; will-change: transform; }
.float:hover { background: none; }
.float-in { display: block; animation: drop 1000ms var(--ease-out) both; animation-delay: calc(var(--i) * 110ms + 300ms); }
.card { display: block; width: 100%; transform: rotate(var(--r)); box-shadow: 0 1px 2px rgba(22, 24, 29, 0.08), 0 22px 44px -16px rgba(22, 24, 29, 0.35); animation: bob 6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.7s); transition: box-shadow 240ms ease; }
.app-card { height: auto; border-radius: 22.5%; }
.win { overflow: hidden; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px rgba(22, 24, 29, 0.08), 0 1px 2px rgba(22, 24, 29, 0.08), 0 26px 50px -18px rgba(22, 24, 29, 0.4); }
.win-bar { display: flex; align-items: center; gap: 0.3rem; height: 1.25rem; padding: 0 0.5rem; background: var(--mist); border-bottom: 1px solid var(--rule); }
.win-bar i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #c9ccd2; }
.win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.icons .f1 { width: 10rem; top: 1rem; left: 1.5rem; --r: -8deg; }
.icons .f2 { width: 8.5rem; top: 5.5rem; right: 0.5rem; --r: 7deg; }
.icons .f3 { width: 9rem; bottom: 0.5rem; left: 7.5rem; --r: 13deg; }
.mixed .f1 { width: 19rem; top: 0.5rem; left: 0; --r: -4deg; }
.mixed .f2 { width: 15.5rem; top: 9rem; right: 0; --r: 4deg; }
.mixed .f3 { width: 7rem; bottom: 0.25rem; left: 1.75rem; --r: -9deg; }
@keyframes drop { from { opacity: 0; transform: translateY(36px) scale(0.92); } }
@keyframes bob { from { transform: rotate(var(--r)) translateY(0); } to { transform: rotate(calc(var(--r) * 0.7)) translateY(-12px); } }
@media (hover: hover) and (pointer: fine) {
  .float:hover .card { box-shadow: 0 1px 2px rgba(22, 24, 29, 0.08), 0 30px 54px -16px rgba(22, 24, 29, 0.45); }
  .float:hover .win { box-shadow: 0 0 0 1px rgba(22, 24, 29, 0.1), 0 1px 2px rgba(22, 24, 29, 0.08), 0 34px 60px -18px rgba(22, 24, 29, 0.5); }
}

/* Scroll reveals (only when JS runs; content is visible without it) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* Game covers wipe open from the bottom when their card arrives */
.js .game[data-reveal] img, .js .client[data-reveal] .thumb img { transform: scale(1.06); clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out), transform 1400ms var(--ease-out); transition-delay: calc(var(--d, 0ms) + 120ms); }
.js .game[data-reveal].in img, .js .client[data-reveal].in .thumb img { clip-path: inset(0 0 0 0); transform: none; }

/* Hover feedback, mouse only */
.icon { transition: transform 240ms var(--ease-out); }
.peek img { transition: box-shadow 240ms ease; }
@media (hover: hover) and (pointer: fine) {
  .app:hover > .icon { transform: translateY(-3px) rotate(-3deg); }
  .row { transition: background-color 200ms ease; }
  .row:hover { background-color: #fafafb; }
  .game.in:hover img, .game:not([data-reveal]):hover img, .client.in .thumb:hover img, .client:not([data-reveal]) .thumb:hover img { transform: scale(1.03); }
  .client .thumb { transition: box-shadow 300ms ease; }
  .client .thumb:hover { box-shadow: 0 0 0 1px var(--rule), 0 26px 44px -22px rgba(22, 24, 29, 0.45); }
}

/* Screenshot strips: draggable with the mouse */
.shots.scrollable { cursor: grab; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.shots.dragging { cursor: grabbing; scroll-snap-type: none; }
.shots img { -webkit-user-drag: none; user-select: none; }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .float-stack { order: -1; }
  .icons.float-stack { height: 8rem; }
  .icons .f1 { width: 5.5rem; top: 1rem; left: 0; }
  .icons .f2 { width: 4.75rem; top: 0; left: 5.75rem; right: auto; }
  .icons .f3 { width: 5rem; top: 2rem; bottom: auto; left: 10.75rem; }
  .mixed.float-stack { height: auto; aspect-ratio: 2.3 / 1; max-width: 30rem; }
  .mixed .f1 { width: 52%; top: 0; left: 0; }
  .mixed .f2 { width: 45%; top: 20%; right: 14%; }
  .mixed .f3 { width: 17%; top: 8%; right: 0; bottom: auto; left: auto; }
  .win-bar { height: 1rem; gap: 0.25rem; padding: 0 0.375rem; }
  .win-bar i { width: 0.3rem; height: 0.3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
}
