/* ==========================================================================
   Web & Mobile Apps — page visuals
   one app across devices (hero), quality glyphs (intro), app shelf (what we build),
   design system assembly, technologies, performance board, devices converging (cinematic)

   Mock UIs are sized in virtual pixels: --t is one pixel of the device being drawn
   (e.g. 100cqi / 1280 inside a desktop screen), so every screen scales as a single image.
   Canvases use --u, one percent of the canvas width.
   ========================================================================== */
:root { --mono: ui-monospace, SFMono-Regular, Menlo, monospace; --sync: #ff5ca8; --love: #ff4f7b; }
.wm-title { font-size: clamp(3.2rem, 0.6rem + 9.6vw, 12.5rem); }
.d-glow--wm {
  inset: 0 0 40%;
  background:
    radial-gradient(34% 55% at 26% 60%, rgb(58 126 246 / 0.42), transparent 70%),
    radial-gradient(40% 60% at 60% 44%, rgb(107 63 212 / 0.5), transparent 70%),
    radial-gradient(26% 44% at 88% 62%, rgb(255 92 168 / 0.22), transparent 70%);
}

/* ==========================================================================
   Shared: photos, text lines, device frames, the "stays" app
   ========================================================================== */
.im { display: block; background-color: #d9d9d6; }
.im--1 { background: radial-gradient(circle at 72% 34%, #fff1c9 0 7%, transparent 7.5%), linear-gradient(#ffc59a 0%, #ff8f73 44%, #6b79d8 44.5%, #34458f 100%); }
.im--2 { background: linear-gradient(162deg, transparent 56%, #2f5b4b 56.5%), linear-gradient(18deg, transparent 52%, #3d6e5c 52.5%), linear-gradient(#cfe3f2 0 60%, #6fa4c6 60%); }
.im--3 { background: radial-gradient(circle at 30% 36%, #fff4d6 0 9%, transparent 9.5%), linear-gradient(#f8dcae 0 56%, #e69a62 56% 74%, #bd6a43 74%); }
.im--4 { background: radial-gradient(ellipse at 30% 78%, #6f8d4a 0 16%, transparent 16.5%), linear-gradient(#d7ebf7 0 42%, #f4ecdc 42% 70%, #8aa45e 70%); }
.im--5 { background: linear-gradient(90deg, transparent 0 22%, rgb(0 0 0 / 0.1) 22% 24%, transparent 24% 52%, rgb(0 0 0 / 0.1) 52% 54%, transparent 54%), linear-gradient(#ecd8c9 0 28%, #b86d4f 28% 62%, #2e5d74 62%); }
.im--6 { background: linear-gradient(200deg, transparent 50%, #294a3a 50.5%), linear-gradient(160deg, transparent 50%, #335a47 50.5%), #e2ecd9; }
.im--7 { background: linear-gradient(#efe4d6 0 58%, #c9a37c 58% 63%, #e7d7c3 63%); }
.im--8 { background: radial-gradient(circle at 70% 30%, #fff 0 5%, transparent 5.5%), linear-gradient(#bfdcea 0 46%, #4f8db0 46%); }
.im--9 { background: repeating-linear-gradient(90deg, #c28453 0 11%, #b07442 11% 22%); }
.im--10 { background: linear-gradient(#f4e6c8 0 55%, #7d9a63 55%); }
.im--food { background: radial-gradient(circle at 50% 55%, #f7e7a8 0 21%, #e8c35c 21.5% 29%, #fbfaf6 29.5% 43%, transparent 43.5%), linear-gradient(135deg, #7fae6e, #4f7f55); }
.im--album { background: radial-gradient(circle at 34% 70%, #ffb36b 0 18%, transparent 18.5%), linear-gradient(160deg, #ff6f61, #8e44ad 55%, #2c2c6c); }
.ln { display: block; width: var(--w); height: calc(6 * var(--t)); border-radius: 99em; background: rgb(0 0 0 / 0.1); }

/* devices (--u: 1% of the canvas they sit on) */
.dvs__canvas, .every__canvas { --u: 1cqi; }
.dv { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); z-index: var(--z, 1); }
.dv__screen { position: relative; overflow: hidden; container-type: inline-size; background: #fbfbfa; border: calc(0.7 * var(--u)) solid #121216; border-radius: var(--u); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14); }
.dv--desk .dv__screen { aspect-ratio: 16 / 10; }
.dv--tab .dv__screen { aspect-ratio: 3 / 4; border-width: calc(0.9 * var(--u)); border-radius: calc(1.8 * var(--u)); }
.dv--phone .dv__screen { aspect-ratio: 9 / 19.5; border-width: calc(0.6 * var(--u)); border-radius: calc(2 * var(--u)); }
.dv--phone .dv__screen::before { content: ""; position: absolute; z-index: 5; top: 2.4cqi; left: 50%; translate: -50% 0; width: 28cqi; height: 7.5cqi; border-radius: 99em; background: #121216; }
.dv__stand { position: relative; display: block; width: 20%; height: calc(3 * var(--u)); margin-inline: auto; }
.dv__stand::before { content: ""; position: absolute; inset: 0 0 calc(0.4 * var(--u)); background: linear-gradient(#26262c, #3a3a42); clip-path: polygon(22% 0, 78% 0, 90% 100%, 10% 100%); }
.dv__stand::after { content: ""; position: absolute; left: -40%; right: -40%; bottom: 0; height: calc(0.5 * var(--u)); border-radius: 99em; background: #2a2a31; }

/* the app */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; gap: calc(12 * var(--t)); padding: calc(16 * var(--t)) calc(20 * var(--t)); overflow: hidden; background: #fbfbfa; color: #141414; font-size: calc(13 * var(--t)); line-height: 1.25; }
.app--desk { --t: calc(100cqi / 1280); gap: calc(16 * var(--t)); padding: calc(18 * var(--t)) calc(32 * var(--t)); }
.app--tab { --t: calc(100cqi / 834); gap: calc(16 * var(--t)); padding: calc(28 * var(--t)); }
.app--phone { --t: calc(100cqi / 390); gap: calc(12 * var(--t)); padding: calc(58 * var(--t)) calc(18 * var(--t)) calc(14 * var(--t)); }
.app b { font-weight: 600; }
.app__top { display: flex; align-items: center; justify-content: space-between; gap: calc(16 * var(--t)); }
.app__logo { display: inline-flex; align-items: center; gap: calc(6 * var(--t)); font-size: calc(18 * var(--t)); font-weight: 700; letter-spacing: -0.04em; }
.app__logo i { width: calc(18 * var(--t)); aspect-ratio: 1; border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.app__avatar { flex: none; width: calc(30 * var(--t)); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, #f6b38e, #d9785f); }
.app__search { display: flex; align-items: center; padding: calc(5 * var(--t)) calc(5 * var(--t)) calc(5 * var(--t)) calc(18 * var(--t)); border: 1px solid rgb(0 0 0 / 0.08); border-radius: 99em; background: var(--white); box-shadow: 0 calc(2 * var(--t)) calc(10 * var(--t)) rgb(0 0 0 / 0.06); font-size: calc(12 * var(--t)); color: rgb(0 0 0 / 0.5); }
.app__search > span { padding-right: calc(14 * var(--t)); margin-right: calc(14 * var(--t)); border-right: 1px solid rgb(0 0 0 / 0.1); white-space: nowrap; }
.app__search > span:last-of-type { border-right: 0; }
.app__search b { color: #141414; }
.app__go { flex: none; width: calc(30 * var(--t)); aspect-ratio: 1; margin-left: auto; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.app__chips { display: flex; gap: calc(8 * var(--t)); overflow: hidden; }
.app__chips span { flex: none; padding: calc(6 * var(--t)) calc(13 * var(--t)); border: 1px solid rgb(0 0 0 / 0.1); border-radius: 99em; font-size: calc(12 * var(--t)); font-weight: 500; white-space: nowrap; }
.app__chips .is-on { border-color: #141414; background: #141414; color: var(--white); }
.app__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: calc(20 * var(--t)); }
.app__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: calc(16 * var(--t)) calc(14 * var(--t)); }
.app__map { position: relative; overflow: hidden; border-radius: calc(14 * var(--t)); background-color: #e7ede9; background-image: linear-gradient(115deg, transparent 46%, #fff 46% 47.5%, transparent 47.5%), linear-gradient(25deg, transparent 60%, #fff 60% 61.2%, transparent 61.2%), linear-gradient(transparent 30%, #cfe0ea 30% 44%, transparent 44%), radial-gradient(circle at 80% 85%, #d5e6cf 0 18%, transparent 18.5%); }
.pin { position: absolute; left: var(--mx); top: var(--my); translate: -50% -50%; padding: calc(4 * var(--t)) calc(9 * var(--t)); border-radius: 99em; background: var(--white); box-shadow: 0 calc(2 * var(--t)) calc(6 * var(--t)) rgb(0 0 0 / 0.15); font-size: calc(11 * var(--t)); font-weight: 700; }
.pin.is-on { background: #141414; color: var(--white); }
.app__cursor { position: absolute; left: 0; top: 0; z-index: 4; width: calc(18 * var(--t)); fill: #141414; stroke: #fff; stroke-width: 1.2; opacity: 0; }
.app__status { position: absolute; top: calc(18 * var(--t)); left: calc(32 * var(--t)); right: calc(28 * var(--t)); display: flex; justify-content: space-between; align-items: center; font-size: calc(14 * var(--t)); font-weight: 600; }
.app__status i { width: calc(24 * var(--t)); height: calc(11 * var(--t)); border-radius: calc(3 * var(--t)); box-shadow: inset 0 0 0 calc(1.5 * var(--t)) currentColor; }
.app__tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: calc(12 * var(--t)) calc(20 * var(--t)) calc(24 * var(--t)); background: rgb(255 255 255 / 0.95); box-shadow: 0 -1px 0 rgb(0 0 0 / 0.06); }
.app__tabs i { width: calc(22 * var(--t)); height: calc(22 * var(--t)); border-radius: calc(7 * var(--t)); background: rgb(0 0 0 / 0.14); }
.app__tabs .is-on { background: #141414; }
.app__fab { position: absolute; left: 50%; bottom: calc(26 * var(--t)); translate: -50% 0; padding: calc(10 * var(--t)) calc(20 * var(--t)); border-radius: 99em; background: #141414; color: var(--white); font-size: calc(13 * var(--t)); font-weight: 600; }
.app--tab .app__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(20 * var(--t)) calc(18 * var(--t)); }
.app--phone .app__search { padding: calc(8 * var(--t)) calc(8 * var(--t)) calc(8 * var(--t)) calc(20 * var(--t)); box-shadow: 0 calc(4 * var(--t)) calc(16 * var(--t)) rgb(0 0 0 / 0.1); }
.app--phone .app__search > span { display: grid; gap: calc(2 * var(--t)); border: 0; }
.app--phone .app__search b { font-size: calc(15 * var(--t)); }
.app--phone .app__search small { font-size: calc(12 * var(--t)); }
.app--phone .app__search .app__go { width: calc(38 * var(--t)); }
.app--phone .app__grid { grid-template-columns: minmax(0, 1fr); gap: calc(18 * var(--t)); }

/* listing card: the same component at every size */
.lc { position: relative; display: grid; gap: calc(2 * var(--t)); min-width: 0; }
.lc .im { position: relative; aspect-ratio: 4 / 3; margin-bottom: calc(6 * var(--t)); border-radius: calc(10 * var(--t)); }
.lc b { font-size: calc(13 * var(--t)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc small { font-size: calc(11 * var(--t)); color: rgb(0 0 0 / 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc em { font-size: calc(12 * var(--t)); font-style: normal; font-weight: 600; }
.lc__heart { position: absolute; top: calc(8 * var(--t)); right: calc(8 * var(--t)); width: calc(18 * var(--t)); height: calc(18 * var(--t)); fill: rgb(0 0 0 / 0.25); stroke: #fff; stroke-width: 2; }
.app--phone .lc .im { aspect-ratio: 1.15; border-radius: calc(16 * var(--t)); }
.app--phone .lc b { font-size: calc(16 * var(--t)); }
.app--phone .lc small { font-size: calc(13 * var(--t)); }
.app--phone .lc em { font-size: calc(14 * var(--t)); }
.app--phone .lc__heart, .app--tab .lc__heart { top: calc(12 * var(--t)); right: calc(12 * var(--t)); width: calc(24 * var(--t)); height: calc(24 * var(--t)); }
.lc--sync .lc__heart { fill: var(--love); }
.lc--sync::after { content: ""; position: absolute; inset: calc(-6 * var(--t)); border: max(1px, calc(2 * var(--t))) solid var(--sync); border-radius: calc(14 * var(--t)); pointer-events: none; }
.lc__sel { position: absolute; left: calc(-6 * var(--t)); bottom: calc(100% + calc(8 * var(--t))); padding: calc(3 * var(--t)) calc(7 * var(--t)); border-radius: calc(4 * var(--t)); background: var(--sync); color: #fff; font: 600 calc(11 * var(--t))/1 var(--mono); white-space: nowrap; }
.app--tab .lc__sel, .app--phone .lc__sel { bottom: auto; top: calc(12 * var(--t)); left: calc(12 * var(--t)); }

/* ==========================================================================
   Hero — the app on desktop, tablet and phone
   ========================================================================== */
.dvs { --px: 0; --py: 0; position: relative; max-width: 84rem; margin: 0 auto; }
.dvs__canvas { position: relative; aspect-ratio: 100 / 45; container-type: inline-size; }
.dvs .dv { translate: calc(var(--px) * var(--depth) * 8px) calc(var(--py) * var(--depth) * 5px); }
.dvs .dv--desk { --x: 1; --y: 6; --w: 54; --z: 1; --depth: 0.4; }
.dvs .dv--tab { --x: 60; --y: 12.1; --w: 23; --z: 2; --depth: 1; }
.dvs .dv--phone { --x: 86.5; --y: 14.6; --w: 13; --z: 3; --depth: 1.6; }
.dv__size { position: absolute; left: 0; right: 0; bottom: calc(100% + calc(1.4 * var(--u))); display: flex; align-items: center; gap: calc(0.8 * var(--u)); font: 500 max(0.62rem, calc(0.95 * var(--u)))/1 var(--mono); color: rgb(255 255 255 / 0.5); white-space: nowrap; }
.dv__size::before, .dv__size::after { content: ""; flex: 1; height: calc(0.9 * var(--u)); background: linear-gradient(rgb(255 255 255 / 0.25), rgb(255 255 255 / 0.25)) center / 100% 1px no-repeat; border-left: 1px solid rgb(255 255 255 / 0.25); }
.dv__size::after { border-left: 0; border-right: 1px solid rgb(255 255 255 / 0.25); }
.dv__size b { margin-right: 0.4em; font-weight: 600; color: var(--white); }

@media (prefers-reduced-motion: no-preference) {
  /* save the first listing on desktop; tablet and phone follow a beat later */
  .dvs .lc--sync .lc__heart { animation: wm-heart 7s var(--ease-out) infinite; }
  .dvs .lc--sync::after, .dvs .lc__sel { opacity: 0; animation: wm-sel 7s ease infinite; }
  .dvs .app--tab :is(.lc__heart, .lc__sel), .dvs .app--tab .lc--sync::after { animation-delay: 0.15s; }
  .dvs .app--phone :is(.lc__heart, .lc__sel), .dvs .app--phone .lc--sync::after { animation-delay: 0.3s; }
  .app__cursor { animation: wm-cursor 7s var(--ease-in-out) infinite; }
  .d-hero.is-paused .dvs *, .d-hero.is-paused .dvs *::after { animation-play-state: paused; }
  @keyframes wm-heart {
    0%, 40% { fill: rgb(0 0 0 / 0.25); scale: 1; }
    43% { fill: var(--love); scale: 1.3; }
    48%, 86% { fill: var(--love); scale: 1; }
    92%, 100% { fill: rgb(0 0 0 / 0.25); }
  }
  @keyframes wm-sel { 0%, 42% { opacity: 0; } 46%, 84% { opacity: 1; } 90%, 100% { opacity: 0; } }
  @keyframes wm-cursor {
    0%, 12% { translate: 46cqi 40cqi; opacity: 0; }
    18% { opacity: 1; }
    37% { translate: 20.2cqi 10.9cqi; scale: 1; }
    40% { translate: 20.2cqi 10.9cqi; scale: 0.8; }
    44% { translate: 20.2cqi 10.9cqi; scale: 1; }
    62% { translate: 32cqi 30cqi; opacity: 1; }
    70%, 100% { translate: 32cqi 30cqi; opacity: 0; }
  }
}

/* ==========================================================================
   Intro — four qualities
   ========================================================================== */
.qual { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(1.25rem, 3vw, 3rem); margin-top: clamp(3.5rem, 6.5vw, 7rem); text-align: left; }
.qual__item { padding-top: 1.25rem; border-top: 1px solid var(--black); }
.qual__glyph { position: relative; display: grid; place-items: center; width: 4.75rem; height: 3.25rem; margin-bottom: 1.25rem; overflow: hidden; border-radius: 0.75rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--border-light); }
.qual__k { display: flex; align-items: baseline; gap: 0.8rem; font-size: clamp(1.35rem, 1rem + 1vw, 2.2rem); font-weight: 600; letter-spacing: -0.04em; }
.qual__k b { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; color: var(--blue); }
.qual__item p { max-width: 22em; margin-top: 0.6rem; line-height: 1.5; color: #5e5e5e; }
.qual__glyph--design b { position: relative; z-index: 1; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.04em; }
.qual__glyph--design i { position: absolute; left: 0.5rem; right: 0.5rem; height: 1px; background: rgb(58 126 246 / 0.35); }
.qual__glyph--design i:nth-of-type(1) { top: 30%; }
.qual__glyph--design i:nth-of-type(2) { top: 64%; }
.qual__glyph--design i:nth-of-type(3) { top: 50%; background: rgb(255 92 168 / 0.45); }
.qual__glyph--perf svg { width: 3rem; overflow: visible; }
.qual__arc, .qual__fill { fill: none; stroke-width: 5; stroke-linecap: round; }
.qual__arc { stroke: rgb(0 0 0 / 0.08); }
.qual__fill { stroke: var(--blue); stroke-dasharray: 1 1; stroke-dashoffset: 0.12; }
.qual__needle { stroke: #141414; stroke-width: 2.5; stroke-linecap: round; transform-origin: 30px 32px; }
.qual__glyph--resp i { width: 3rem; height: 1.9rem; border: 1.5px solid #141414; border-radius: 0.35rem; background: linear-gradient(var(--blue), var(--blue)) 50% 0.3rem / 60% 2px no-repeat; }
.qual__glyph--eng code { font: 700 1.05rem/1 var(--mono); color: var(--blue); }
.qual__glyph--eng i { width: 2px; height: 1.1rem; margin-left: 0.2rem; background: #141414; }
.qual__glyph--eng { grid-auto-flow: column; justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  .js .qual__fill { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out) 0.4s; }
  .js .qual__needle { rotate: -110deg; transition: rotate 1.4s var(--ease-out) 0.4s; }
  .js .qual__item.is-in .qual__fill { stroke-dashoffset: 0.12; }
  .js .qual__item.is-in .qual__needle { rotate: 0deg; }
  .qual__item.is-in .qual__glyph--resp i { animation: wm-resize 1.8s var(--ease-in-out) 0.5s both; }
  .qual__item:hover .qual__glyph--resp i { animation: wm-resize 1.8s var(--ease-in-out) both; }
  .qual__glyph--eng i { animation: wm-blink 1.1s steps(1) infinite; }
  @keyframes wm-resize { 0%, 100% { width: 3rem; height: 1.9rem; } 45%, 60% { width: 1.15rem; height: 2.2rem; } }
  @keyframes wm-blink { 50% { opacity: 0; } }
}

/* ==========================================================================
   What we build — a shelf of apps (scrolling from js/projects.js)
   ========================================================================== */
.shelf__viewport { margin-top: clamp(3rem, 5.5vw, 6rem); timeline-scope: --shelf; }
.shelf__track {
  --sh: clamp(17rem, 11rem + 15vw, 27rem);
  --edge: max(var(--gutter), (100% - var(--container)) / 2);
  display: flex; align-items: flex-start; gap: clamp(1.75rem, 3.5vw, 4rem);
  padding: 1.25rem var(--edge) 1.5rem; scroll-padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-timeline: --shelf inline;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.shelf__track:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.shelf__item { flex: none; width: min-content; min-width: 17rem; scroll-snap-align: start; user-select: none; -webkit-user-select: none; }
.shelf__stage { display: flex; align-items: flex-end; height: var(--sh); }
.shelf__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border-light); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #8a8a8a; }
.shelf__meta span:first-child { transition: color 0.35s; }
.shelf__title { margin-top: 0.8rem; font-size: clamp(1.4rem, 0.95rem + 1.1vw, 2.2rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; transition: color 0.35s; }
.shelf__text { max-width: 24em; margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.45; color: #5e5e5e; }
.shelf__foot { display: flex; align-items: center; gap: 1.5rem; margin-top: clamp(1rem, 2vw, 2rem); }
.shelf__progress { flex: 1; height: 1px; overflow: hidden; background: rgb(0 0 0 / 0.12); }
.shelf__progress span { display: block; height: 100%; background: var(--black); transform-origin: 0 50%; transform: scaleX(var(--progress, 0.25)); }
.shelf__next { flex: none; display: grid; place-items: center; width: 3.5rem; aspect-ratio: 1; border: 1px solid rgb(0 0 0 / 0.2); border-radius: 50%; transition: background-color 0.35s, color 0.35s, border-color 0.35s; }
.shelf__next svg { width: 1.3rem; height: 0.65rem; }
.shelf__next:is(:hover, :focus-visible) { border-color: var(--black); background: var(--black); color: var(--white); }
@supports (animation-timeline: scroll()) and (animation-range: entry) {
  .shelf__progress span { animation: wm-progress linear both; animation-timeline: --shelf; }
  @keyframes wm-progress { from { transform: scaleX(0.16); } to { transform: scaleX(1); } }
}

.fr { position: relative; flex: none; overflow: hidden; background: #141418; box-shadow: 0 1.5rem 3rem -1.5rem rgb(0 0 0 / 0.35), 0 0 0 1px rgb(0 0 0 / 0.06); transition: translate 0.7s var(--ease-out), box-shadow 0.6s; }
.fr__screen { position: relative; overflow: hidden; container-type: inline-size; background: #fbfbfa; }
.fr--browser { display: flex; flex-direction: column; height: calc(var(--sh) * 0.72); aspect-ratio: 16 / 10.8; border-radius: 0.9rem; background: #e9e9e7; }
.fr__bar { flex: none; display: flex; align-items: center; gap: 0.3rem; height: 1.5rem; padding-inline: 0.7rem; border-bottom: 1px solid rgb(0 0 0 / 0.06); }
.fr__bar i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: rgb(0 0 0 / 0.16); }
.fr__bar span { flex: 0 1 40%; height: 0.65rem; margin-inline: auto; border-radius: 99em; background: rgb(0 0 0 / 0.07); }
.fr--browser .fr__screen { flex: 1; }
.fr--phone { height: var(--sh); aspect-ratio: 9 / 19.2; border: 0.42rem solid #141418; border-radius: 2rem; }
.fr--phone::before { content: ""; position: absolute; z-index: 5; top: 0.45rem; left: 50%; translate: -50% 0; width: 30%; height: 1.05rem; border-radius: 99em; background: #141418; }
.fr--tablet { height: calc(var(--sh) * 0.72); aspect-ratio: 4 / 3; border: 0.5rem solid #141418; border-radius: 1.25rem; }
.fr--phone .fr__screen, .fr--tablet .fr__screen { height: 100%; }
@media (hover: hover) {
  .shelf__item:hover .fr { translate: 0 -0.6rem; box-shadow: 0 2.25rem 3.5rem -1.75rem rgb(58 126 246 / 0.45), 0 0 0 1px rgb(0 0 0 / 0.06); }
  .shelf__item:hover .shelf__title { color: var(--blue); }
  .shelf__item:hover .shelf__meta span:first-child { color: var(--blue); }
}

/* screens inside the shelf */
.ui { position: absolute; inset: 0; display: flex; flex-direction: column; gap: calc(12 * var(--t)); padding: calc(18 * var(--t)); color: #141414; font-size: calc(12 * var(--t)); line-height: 1.25; }
.fr--browser .ui, .fr--tablet .ui { --t: calc(100cqi / 900); }
.fr--phone .ui { --t: calc(100cqi / 375); padding: calc(50 * var(--t)) calc(18 * var(--t)) calc(14 * var(--t)); }
.ui b { font-weight: 600; }
.ui small { font-size: calc(10 * var(--t)); color: rgb(0 0 0 / 0.5); }
.fr--phone .ui small { font-size: calc(12 * var(--t)); }
.ui__status { position: absolute; top: calc(16 * var(--t)); left: calc(28 * var(--t)); right: calc(24 * var(--t)); display: flex; justify-content: space-between; align-items: center; font-size: calc(13 * var(--t)); }
.ui__status i { width: calc(22 * var(--t)); height: calc(10 * var(--t)); border-radius: calc(3 * var(--t)); box-shadow: inset 0 0 0 calc(1.5 * var(--t)) currentColor; }
.ui__head { display: flex; align-items: center; gap: calc(10 * var(--t)); }
.ui__head > b { margin-right: auto; font-size: calc(18 * var(--t)); letter-spacing: -0.03em; }
.ui__btn { display: inline-flex; justify-content: center; padding: calc(6 * var(--t)) calc(12 * var(--t)); border-radius: calc(8 * var(--t)); background: #141414; color: #fff; font-size: calc(11 * var(--t)); font-weight: 600; white-space: nowrap; }
.fr--phone .ui__btn { font-size: calc(14 * var(--t)); border-radius: calc(12 * var(--t)); }
.ui__btn--ghost { background: transparent; color: #141414; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.ui__btn--block { width: 100%; padding-block: calc(10 * var(--t)); }
.ui__faces { display: flex; }
.ui__faces i { width: calc(22 * var(--t)); aspect-ratio: 1; margin-left: calc(-6 * var(--t)); border: calc(2 * var(--t)) solid #fbfbfa; border-radius: 50%; background: linear-gradient(135deg, #f6b38e, #d9785f); }
.ui__faces i:nth-child(2) { background: linear-gradient(135deg, #8fb4ff, #3a7ef6); }
.ui__faces i:nth-child(3) { background: linear-gradient(135deg, #b6e59f, #5aa845); }
.ui__pill { padding: calc(4 * var(--t)) calc(9 * var(--t)); border-radius: 99em; background: rgb(0 0 0 / 0.06); font-size: calc(11 * var(--t)); font-weight: 600; white-space: nowrap; }
.ui__pill--ok { background: rgb(116 214 90 / 0.22); color: #2f7a1f; }
.ui__row { display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--t)); }
.ui__row--start { justify-content: flex-start; }
.ui__h { font-size: calc(30 * var(--t)); line-height: 1; letter-spacing: -0.04em; }
.ui__h--sm { font-size: calc(24 * var(--t)); }
.ui__eyebrow { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ui__t { font-size: calc(17 * var(--t)); letter-spacing: -0.02em; }
.ui__sub { margin-top: calc(-8 * var(--t)); }
.ui .ln { height: calc(6 * var(--t)); }
.ui__tabbar { display: flex; justify-content: space-around; margin-top: auto; padding-top: calc(10 * var(--t)); border-top: 1px solid rgb(0 0 0 / 0.06); }
.ui__tabbar i { width: calc(22 * var(--t)); height: calc(22 * var(--t)); border-radius: calc(7 * var(--t)); background: rgb(0 0 0 / 0.12); }
.ui__tabbar .is-on { background: var(--blue); }
.ui__side { display: flex; flex-direction: column; align-items: center; gap: calc(14 * var(--t)); width: calc(52 * var(--t)); padding-top: calc(16 * var(--t)); border-right: 1px solid rgb(0 0 0 / 0.06); background: #f3f3f2; }
.ui__side i { width: calc(20 * var(--t)); height: calc(20 * var(--t)); border-radius: calc(6 * var(--t)); background: rgb(0 0 0 / 0.1); }
.ui__side .ui__mark { margin-bottom: calc(6 * var(--t)); border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.ui__side .is-on { background: rgb(58 126 246 / 0.25); box-shadow: inset 0 0 0 calc(1.5 * var(--t)) var(--blue); }
.ui__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(14 * var(--t)); padding: calc(18 * var(--t)) calc(22 * var(--t)); }

/* 01 board */
.ui--board, .ui--saas, .ui--ent { flex-direction: row; gap: 0; padding: 0; }
.kb { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(12 * var(--t)); }
.kb__col { display: flex; flex-direction: column; gap: calc(8 * var(--t)); padding: calc(10 * var(--t)); border-radius: calc(12 * var(--t)); background: #f0f0ee; }
.kb__col small { font-weight: 600; }
.kb__card { display: grid; gap: calc(6 * var(--t)); padding: calc(10 * var(--t)); border-radius: calc(9 * var(--t)); background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
.kb__card--lift { rotate: -2deg; box-shadow: 0 calc(8 * var(--t)) calc(18 * var(--t)) rgb(0 0 0 / 0.14); }
.kb__card.is-done .ln { background: rgb(0 0 0 / 0.05); }
.tag { width: calc(34 * var(--t)); height: calc(6 * var(--t)); border-radius: 99em; }
.tag--b { background: var(--blue); }
.tag--p { background: #9b7cf0; }
.tag--g { background: #74d65a; }
.kb__bar { height: calc(4 * var(--t)); overflow: hidden; border-radius: 99em; background: rgb(0 0 0 / 0.08); }
.kb__bar i { display: block; width: 62%; height: 100%; background: var(--blue); }

/* 02 fitness */
.rings { width: 72%; margin: calc(6 * var(--t)) auto calc(10 * var(--t)); rotate: -90deg; }
.rings__t, .rings__v { fill: none; stroke-width: 10; }
.rings__t { stroke: rgb(0 0 0 / 0.07); }
.rings__v { stroke-linecap: round; stroke-dasharray: 1 1; }
.rings__v--1 { stroke: var(--love); stroke-dashoffset: 0.22; }
.rings__v--2 { stroke: #74d65a; stroke-dashoffset: 0.38; }
.rings__v--3 { stroke: var(--blue); stroke-dashoffset: 0.12; }
.ui__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.ui__stats span { display: grid; gap: calc(2 * var(--t)); }
.ui__stats b { font-size: calc(17 * var(--t)); letter-spacing: -0.02em; }
.ui__list { display: grid; gap: calc(7 * var(--t)); }
.ui__list p { display: flex; align-items: center; gap: calc(9 * var(--t)); padding: calc(10 * var(--t)) calc(12 * var(--t)); border-radius: calc(12 * var(--t)); background: #f0f0ee; font-size: calc(13 * var(--t)); }
.ui__list i { flex: none; width: calc(15 * var(--t)); aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 calc(1.5 * var(--t)) rgb(0 0 0 / 0.25); }
.ui__list .is-done { color: rgb(0 0 0 / 0.45); text-decoration: line-through; }
.ui__list .is-done i { background: #74d65a; box-shadow: none; }

/* 03 pwa */
.ui--pwa .im--food { flex: none; aspect-ratio: 4 / 3; border-radius: calc(16 * var(--t)); }
.ui__sheet { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: calc(14 * var(--t)); padding: calc(10 * var(--t)) calc(18 * var(--t)) calc(22 * var(--t)); border-radius: calc(24 * var(--t)) calc(24 * var(--t)) 0 0; background: #fff; box-shadow: 0 calc(-10 * var(--t)) calc(34 * var(--t)) rgb(0 0 0 / 0.16); }
.ui__grab { justify-self: center; width: calc(38 * var(--t)); height: calc(5 * var(--t)); border-radius: 99em; background: rgb(0 0 0 / 0.15); }
.ui__appicon { flex: none; width: calc(44 * var(--t)); aspect-ratio: 1; border-radius: calc(11 * var(--t)); background: linear-gradient(135deg, #7fae6e, #3f6f48); }
.ui__sheet .ui__row span { display: grid; gap: calc(3 * var(--t)); }
.ui__sheet b { font-size: calc(15 * var(--t)); }

/* 04 dashboard */
.ui--dash { padding: calc(18 * var(--t)) calc(22 * var(--t)); }
.ui__seg { display: flex; padding: calc(3 * var(--t)); border-radius: calc(8 * var(--t)); background: rgb(0 0 0 / 0.06); }
.ui__seg i { padding: calc(3 * var(--t)) calc(9 * var(--t)); border-radius: calc(6 * var(--t)); font-size: calc(10 * var(--t)); font-style: normal; }
.ui__seg .is-on { background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.1); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(10 * var(--t)); }
.kpis span, .dash > div { padding: calc(10 * var(--t)) calc(12 * var(--t)); border-radius: calc(10 * var(--t)); background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.kpis span { display: grid; gap: calc(2 * var(--t)); }
.kpis b { font-size: calc(18 * var(--t)); letter-spacing: -0.03em; }
.kpis em { font-size: calc(10 * var(--t)); font-style: normal; font-weight: 600; color: #2f9a3a; }
.dash { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: calc(10 * var(--t)); }
.dash > div { display: flex; flex-direction: column; gap: calc(6 * var(--t)); min-height: 0; }
.dash__chart { grid-row: span 2; }
.dash svg { flex: 1; min-height: 0; width: 100%; }
.dash__area { fill: rgb(58 126 246 / 0.12); }
.dash__line { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dash__donut svg { rotate: -90deg; }
.dn { fill: none; stroke-width: 6; }
.dn--t { stroke: rgb(0 0 0 / 0.06); }
.dn--a { stroke: #9b7cf0; stroke-dasharray: 58 42; }
.dn--b { stroke: #74d65a; stroke-dasharray: 22 78; stroke-dashoffset: -58; }
.dash__bars { justify-content: space-around; }
.dash__bars p { display: grid; grid-template-columns: calc(44 * var(--t)) minmax(0, 1fr); align-items: center; gap: calc(6 * var(--t)); font-size: calc(10 * var(--t)); }
.dash__bars i { display: block; width: var(--w); height: calc(6 * var(--t)); border-radius: 99em; background: var(--blue); transform-origin: 0 50%; }

/* 05 saas */
.ui__nav { display: flex; flex-direction: column; gap: calc(4 * var(--t)); width: calc(150 * var(--t)); padding: calc(18 * var(--t)) calc(12 * var(--t)); border-right: 1px solid rgb(0 0 0 / 0.06); background: #f6f6f5; }
.ui__nav b { margin-bottom: calc(8 * var(--t)); padding-inline: calc(8 * var(--t)); font-size: calc(14 * var(--t)); }
.ui__nav span { padding: calc(6 * var(--t)) calc(8 * var(--t)); border-radius: calc(7 * var(--t)); font-size: calc(11 * var(--t)); color: rgb(0 0 0 / 0.55); }
.ui__nav .is-on { background: #fff; color: #141414; font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.ui__toggle { display: inline-flex; align-items: center; gap: calc(6 * var(--t)); font-size: calc(10 * var(--t)); color: rgb(0 0 0 / 0.6); }
.ui__toggle i { position: relative; width: calc(26 * var(--t)); height: calc(15 * var(--t)); border-radius: 99em; background: var(--blue); }
.ui__toggle i::after { content: ""; position: absolute; top: calc(2 * var(--t)); right: calc(2 * var(--t)); width: calc(11 * var(--t)); aspect-ratio: 1; border-radius: 50%; background: #fff; }
.plans { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(10 * var(--t)); }
.plan { display: flex; flex-direction: column; gap: calc(7 * var(--t)); padding: calc(14 * var(--t)); border-radius: calc(12 * var(--t)); background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.plan b { font-size: calc(22 * var(--t)); letter-spacing: -0.03em; }
.plan .ui__btn { margin-top: auto; }
.plan--on { box-shadow: inset 0 0 0 calc(2 * var(--t)) var(--blue), 0 calc(8 * var(--t)) calc(20 * var(--t)) rgb(58 126 246 / 0.18); }
.plan--on .ui__btn { background: var(--blue); }
.usage { display: grid; gap: calc(6 * var(--t)); }
.usage span { height: calc(6 * var(--t)); overflow: hidden; border-radius: 99em; background: rgb(0 0 0 / 0.08); }
.usage i { display: block; width: 72%; height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue)); transform-origin: 0 50%; }

/* 06 music */
.ui--music { gap: calc(10 * var(--t)); background: linear-gradient(#2d1f44, #121218 70%); color: #fff; text-align: center; }
.ui--music small { color: rgb(255 255 255 / 0.6); }
.ui__eyebrow--c { margin-top: calc(4 * var(--t)); }
.ui--music .im--album { flex: none; aspect-ratio: 1; margin: calc(6 * var(--t)) calc(8 * var(--t)) calc(10 * var(--t)); border-radius: calc(18 * var(--t)); box-shadow: 0 calc(16 * var(--t)) calc(34 * var(--t)) rgb(0 0 0 / 0.45); }
.ui--music .ui__t { font-size: calc(20 * var(--t)); }
.scrub span { display: block; height: calc(4 * var(--t)); overflow: hidden; border-radius: 99em; background: rgb(255 255 255 / 0.2); }
.scrub span i { display: block; width: 36%; height: 100%; background: #fff; transform-origin: 0 50%; }
.scrub small { display: flex; justify-content: space-between; margin-top: calc(6 * var(--t)); }
.scrub em { font-style: normal; }
.ctrl { display: flex; align-items: center; justify-content: center; gap: calc(34 * var(--t)); margin-top: calc(8 * var(--t)); }
.ctrl i { width: calc(20 * var(--t)); height: calc(20 * var(--t)); background: #fff; }
.ctrl__prev { clip-path: polygon(100% 0, 18% 50%, 100% 100%, 100% 0, 12% 0, 12% 100%, 0 100%, 0 0); }
.ctrl__next { clip-path: polygon(0 0, 82% 50%, 0 100%, 0 0, 88% 0, 88% 100%, 100% 100%, 100% 0); }
.ctrl .ctrl__play { position: relative; width: calc(58 * var(--t)); height: calc(58 * var(--t)); border-radius: 50%; }
.ctrl__play::after { content: ""; position: absolute; inset: 31% 28% 31% 38%; background: #1a1a22; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* 07 enterprise */
.ui__search { flex: 0 1 calc(160 * var(--t)); height: calc(26 * var(--t)); border-radius: calc(8 * var(--t)); background: rgb(0 0 0 / 0.05); }
.ui__filters { display: flex; gap: calc(6 * var(--t)); }
.ui__filters span { padding: calc(5 * var(--t)) calc(10 * var(--t)); border-radius: 99em; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); font-size: calc(10 * var(--t)); white-space: nowrap; }
.ui__filters .is-on { background: #141414; color: #fff; box-shadow: none; }
.tbl { display: grid; overflow: hidden; border-radius: calc(10 * var(--t)); background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.07); }
.tbl p { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr; align-items: center; padding: calc(9 * var(--t)) calc(12 * var(--t)); border-top: 1px solid rgb(0 0 0 / 0.05); font-size: calc(11 * var(--t)); white-space: nowrap; }
.tbl .tbl__h { border-top: 0; background: #f7f7f6; font-size: calc(9 * var(--t)); letter-spacing: 0.06em; text-transform: uppercase; color: rgb(0 0 0 / 0.45); }
.tbl p.is-on { background: rgb(58 126 246 / 0.07); box-shadow: inset calc(3 * var(--t)) 0 0 var(--blue); }
.st { padding: calc(3 * var(--t)) calc(8 * var(--t)); border-radius: 99em; font-size: calc(9.5 * var(--t)); font-style: normal; font-weight: 600; }
.st--ok { background: rgb(116 214 90 / 0.22); color: #2f7a1f; }
.st--wait { background: rgb(245 180 60 / 0.22); color: #9a6212; }
.st--no { background: rgb(230 80 70 / 0.14); color: #b3362b; }
.drawer { display: flex; flex-direction: column; gap: calc(8 * var(--t)); width: calc(220 * var(--t)); padding: calc(18 * var(--t)) calc(16 * var(--t)); border-left: 1px solid rgb(0 0 0 / 0.07); background: #f7f7f6; }
.drawer b { font-size: calc(24 * var(--t)); letter-spacing: -0.03em; }
.drawer__steps { position: relative; display: grid; gap: calc(12 * var(--t)); margin: calc(8 * var(--t)) 0 auto; padding-left: calc(18 * var(--t)); }
.drawer__steps::before { content: ""; position: absolute; left: calc(4 * var(--t)); top: calc(6 * var(--t)); bottom: calc(6 * var(--t)); width: calc(1.5 * var(--t)); background: rgb(0 0 0 / 0.1); }
.drawer__steps li { position: relative; font-size: calc(11 * var(--t)); color: rgb(0 0 0 / 0.45); }
.drawer__steps li::before { content: ""; position: absolute; left: calc(-18 * var(--t)); top: 50%; translate: 0 -50%; width: calc(10 * var(--t)); aspect-ratio: 1; border-radius: 50%; background: #f7f7f6; box-shadow: inset 0 0 0 calc(1.5 * var(--t)) rgb(0 0 0 / 0.25); }
.drawer__steps .is-done { color: #141414; }
.drawer__steps .is-done::before { background: #74d65a; box-shadow: none; }
.drawer__steps .is-now { font-weight: 600; color: var(--blue); }
.drawer__steps .is-now::before { background: var(--blue); box-shadow: 0 0 0 calc(3 * var(--t)) rgb(58 126 246 / 0.25); }

@media (prefers-reduced-motion: no-preference) {
  .js .shelf__item .rings__v { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) 0.4s; }
  .js .shelf__item.is-in .rings__v--1 { stroke-dashoffset: 0.22; }
  .js .shelf__item.is-in .rings__v--2 { stroke-dashoffset: 0.38; }
  .js .shelf__item.is-in .rings__v--3 { stroke-dashoffset: 0.12; }
  .js .shelf__item .ui__sheet { translate: 0 105%; transition: translate 0.9s var(--ease-out) 0.7s; }
  .js .shelf__item.is-in .ui__sheet { translate: 0 0; }
  .js .shelf__item :is(.dash__bars i, .usage i, .scrub span i) { scale: 0 1; transition: scale 1.2s var(--ease-out) 0.5s; }
  .js .shelf__item.is-in :is(.dash__bars i, .usage i, .scrub span i) { scale: 1 1; }
}

/* ==========================================================================
   Design system — components land in the screen one step at a time
   (steps, markers and status are driven by js/detail.js [data-flow])
   ========================================================================== */
.ds { position: relative; background: var(--black); color: var(--white); }
.ds .flow__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.ds .flow__title { margin-top: 1rem; font-size: clamp(2rem, 0.9rem + 2.8vw, 4.25rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.05em; }
.ds .flow__title .mask { display: block; width: fit-content; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.ds .flow__status { font: 500 var(--fs-small)/1 var(--mono); letter-spacing: 0.04em; color: var(--blue-bright); white-space: nowrap; }
.ds .flow__steps { position: relative; padding-left: 2rem; }
.ds .flow__rail { position: absolute; left: 0; top: 0.6rem; bottom: 0.6rem; width: 1px; background: rgb(255 255 255 / 0.14); }
.ds .flow__rail i { position: absolute; inset: 0; background: linear-gradient(var(--purple), var(--blue-bright)); transform-origin: 50% 0; transform: scaleY(var(--flow-progress, 0.16)); transition: transform 0.8s var(--ease-out); }
.ds .flow__btn { display: flex; align-items: baseline; gap: 0.8rem; padding-block: clamp(0.2rem, 0.7vh, 0.45rem); text-align: left; color: rgb(255 255 255 / 0.32); transition: color 0.45s, transform 0.7s var(--ease-out); }
.ds .flow__num { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; transition: color 0.45s; }
.ds .flow__name { font-size: clamp(1.5rem, 0.9rem + 1.6vw, 2.6rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; }
.ds .flow__step.is-done .flow__btn { color: rgb(255 255 255 / 0.72); }
.ds .flow__step.is-active .flow__btn { color: var(--white); transform: translateX(0.5rem); }
.ds .flow__step.is-active .flow__num { color: var(--blue-bright); }
.ds .flow__btn:is(:hover, :focus-visible) { color: var(--white); }
.ds__note { max-width: 26em; font-size: 0.95rem; line-height: 1.5; color: rgb(255 255 255 / 0.66); }

/* component sheet (real size: one virtual pixel = one CSS pixel) */
.ds__spec { --t: 1px; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; width: fit-content; max-width: 100%; margin-top: 0.9rem; padding: 1rem 1.1rem; border-radius: 0.9rem; background: #f4f4f2; color: #141414; }
.sp-aa { font-size: calc(54 * var(--t)); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.sp-scale { display: grid; gap: calc(4 * var(--t)); }
.sp-scale i { display: flex; align-items: baseline; gap: calc(10 * var(--t)); font-size: calc(var(--s) * var(--t)); font-style: normal; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.sp-scale em { width: calc(70 * var(--t)); font: 500 calc(10 * var(--t))/1 var(--mono); font-style: normal; color: rgb(0 0 0 / 0.45); letter-spacing: 0; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(6 * var(--t)); height: calc(36 * var(--t)); padding-inline: calc(16 * var(--t)); border-radius: calc(10 * var(--t)); background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; font-size: calc(13 * var(--t)); font-weight: 600; white-space: nowrap; }
.sp-btn--sec { background: #fff; color: #141414; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14); }
.sp-btn--ghost { background: transparent; color: rgb(0 0 0 / 0.6); }
.sp-btn--icon { width: calc(36 * var(--t)); padding: 0; background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14); }
.sp-btn--icon svg { width: calc(16 * var(--t)); height: calc(16 * var(--t)); fill: var(--love); }
.sp-field { display: grid; gap: calc(2 * var(--t)); min-width: calc(120 * var(--t)); padding: calc(7 * var(--t)) calc(12 * var(--t)); border-radius: calc(10 * var(--t)); background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14); }
.sp-field small { font-size: calc(10 * var(--t)); color: rgb(0 0 0 / 0.5); }
.sp-field b { font-size: calc(13 * var(--t)); font-weight: 600; white-space: nowrap; }
.sp-field--focus { box-shadow: inset 0 0 0 calc(1.5 * var(--t)) var(--blue), 0 0 0 calc(4 * var(--t)) rgb(58 126 246 / 0.2); }
.sp-toggle { display: inline-flex; align-items: center; gap: calc(8 * var(--t)); font-size: calc(13 * var(--t)); font-weight: 500; }
.sp-toggle i { position: relative; width: calc(36 * var(--t)); height: calc(20 * var(--t)); border-radius: 99em; background: var(--blue); }
.sp-toggle i::after { content: ""; position: absolute; top: calc(2 * var(--t)); right: calc(2 * var(--t)); width: calc(16 * var(--t)); aspect-ratio: 1; border-radius: 50%; background: #fff; }
.sp-card { display: grid; gap: calc(3 * var(--t)); width: calc(130 * var(--t)); padding: calc(6 * var(--t)) calc(6 * var(--t)) calc(10 * var(--t)); border-radius: calc(12 * var(--t)); background: #fff; box-shadow: 0 calc(2 * var(--t)) calc(10 * var(--t)) rgb(0 0 0 / 0.08); }
.ds__spec .sp-card { width: calc(104 * var(--t)); }
.sp-card .im { aspect-ratio: 4 / 3; margin-bottom: calc(4 * var(--t)); border-radius: calc(8 * var(--t)); }
.sp-card b { padding-inline: calc(3 * var(--t)); font-size: calc(12 * var(--t)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-card small { padding-inline: calc(3 * var(--t)); font-size: calc(11 * var(--t)); color: rgb(0 0 0 / 0.5); }
.sp-anat { display: grid; gap: calc(10 * var(--t)); }
.sp-anat i { display: flex; align-items: center; gap: calc(6 * var(--t)); font: 500 calc(11 * var(--t))/1 var(--mono); font-style: normal; color: var(--blue); }
.sp-anat i::before { content: ""; width: calc(18 * var(--t)); height: 1px; background: currentColor; }
.sp-nav { display: flex; align-items: center; gap: calc(16 * var(--t)); padding: calc(9 * var(--t)) calc(14 * var(--t)); border-radius: calc(12 * var(--t)); background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.sp-nav em { font-size: calc(13 * var(--t)); font-style: normal; font-weight: 500; color: rgb(0 0 0 / 0.5); }
.sp-nav .is-on { font-weight: 600; color: #141414; }
.sp-logo { flex: none; width: calc(20 * var(--t)); aspect-ratio: 1; margin-right: calc(6 * var(--t)); border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.sp-av { flex: none; width: calc(26 * var(--t)); aspect-ratio: 1; margin-left: auto; border-radius: 50%; background: linear-gradient(135deg, #f6b38e, #d9785f); }
.sp-tabbar { display: flex; gap: calc(22 * var(--t)); padding: calc(10 * var(--t)) calc(18 * var(--t)); border-radius: calc(14 * var(--t)); background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.sp-tabbar i { width: calc(18 * var(--t)); height: calc(18 * var(--t)); border-radius: calc(6 * var(--t)); background: rgb(0 0 0 / 0.12); }
.sp-tabbar .is-on { background: var(--blue); }
.sp-toast { display: inline-flex; align-items: center; gap: calc(8 * var(--t)); padding: calc(9 * var(--t)) calc(14 * var(--t)) calc(9 * var(--t)) calc(10 * var(--t)); border-radius: calc(12 * var(--t)); background: #141414; color: #fff; font-size: calc(12 * var(--t)); font-weight: 500; white-space: nowrap; }
.sp-toast i { width: calc(16 * var(--t)); aspect-ratio: 1; border-radius: 50%; background: #74d65a; }
.sp-stepper { display: inline-flex; align-items: center; gap: calc(12 * var(--t)); padding: calc(5 * var(--t)); border-radius: 99em; background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); font-size: calc(12 * var(--t)); font-weight: 600; white-space: nowrap; }
.sp-stepper i { display: grid; place-items: center; width: calc(24 * var(--t)); aspect-ratio: 1; border-radius: 50%; background: #f0f0ee; font-style: normal; }
.sp-cal { display: grid; gap: calc(8 * var(--t)); padding: calc(12 * var(--t)); border-radius: calc(12 * var(--t)); background: #fff; box-shadow: 0 calc(4 * var(--t)) calc(16 * var(--t)) rgb(0 0 0 / 0.08); }
.sp-cal b { font-size: calc(13 * var(--t)); font-weight: 600; }
.sp-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: calc(4 * var(--t)); }
.sp-cal__grid i { aspect-ratio: 1; border-radius: calc(6 * var(--t)); background: #f2f2f0; }
.sp-cal__grid .is-a, .sp-cal__grid .is-b { background: var(--blue); }
.sp-cal__grid .is-r { background: rgb(58 126 246 / 0.2); }

/* the screen being assembled */
.ds__screen { margin: 0; }
.ds__win { overflow: hidden; container-type: inline-size; border-radius: clamp(0.8rem, 1.2vw, 1.25rem); background: #f4f4f2; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12), 0 2rem 4rem rgb(0 0 0 / 0.5); }
.ds__chrome { display: flex; align-items: center; gap: 2cqi; height: 3.4cqi; padding-inline: 1.6cqi; background: #e4e4e1; }
.ds__dots { display: flex; gap: 0.6cqi; }
.ds__dots i { width: 0.95cqi; aspect-ratio: 1; border-radius: 50%; background: rgb(0 0 0 / 0.18); }
.ds__url { flex: 0 1 30%; margin-inline: auto; padding: 0.35cqi 1.2cqi; border-radius: 99em; background: rgb(0 0 0 / 0.06); font-size: 1.1cqi; text-align: center; color: rgb(0 0 0 / 0.5); }
.ds__app {
  --t: calc(100cqi / 1100);
  display: grid; aspect-ratio: 1100 / 600;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) calc(300 * var(--t));
  grid-template-rows: auto auto auto minmax(0, 1fr);
  grid-template-areas: "nav nav nav" "type type btns" "input input comp" "cards cards comp";
  gap: calc(18 * var(--t)) calc(22 * var(--t)); padding: calc(20 * var(--t)) calc(28 * var(--t)) calc(26 * var(--t)); color: #141414;
}
.ds__slot { position: relative; min-width: 0; }
.ds__slot--type { grid-area: type; }
.ds__slot--btns { grid-area: btns; align-self: end; }
.ds__slot--input { grid-area: input; }
.ds__slot--cards { grid-area: cards; }
.ds__slot--nav { grid-area: nav; }
.ds__slot--comp { grid-area: comp; }
.ds__part { position: relative; transition: opacity 0.5s var(--ease-soft), transform 0.8s var(--ease-out); }
.ds__ghost { position: absolute; inset: 0; display: grid; place-items: center; border: max(1px, calc(1.5 * var(--t))) dashed rgb(58 126 246 / 0.45); border-radius: calc(12 * var(--t)); background: rgb(58 126 246 / 0.04); font: 500 calc(12 * var(--t))/1 var(--mono); color: rgb(58 126 246 / 0.85); pointer-events: none; transition: opacity 0.4s; }
.ds__part.is-shown + .ds__ghost { opacity: 0; }
.ds__part::before { content: ""; position: absolute; inset: calc(-6 * var(--t)); border: max(1.5px, calc(2 * var(--t))) solid var(--sync); border-radius: calc(10 * var(--t)); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.ds__part::after { content: attr(data-label); position: absolute; z-index: 2; left: calc(-6 * var(--t)); bottom: calc(100% + calc(8 * var(--t))); padding: calc(3 * var(--t)) calc(7 * var(--t)); border-radius: calc(5 * var(--t)); background: var(--sync); color: #fff; font: 600 max(0.58rem, calc(11 * var(--t)))/1 var(--mono); white-space: nowrap; opacity: 0; transition: opacity 0.35s; }
.ds__slot--nav .ds__part::after { bottom: auto; top: calc(100% + calc(8 * var(--t))); }
.ds__part.is-current::before, .ds__part.is-current::after { opacity: 1; }
.ds__slot--type .ds__part { display: grid; gap: calc(4 * var(--t)); }
.ds__eyebrow { font-size: calc(11 * var(--t)); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.ds__h { font-size: calc(40 * var(--t)); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
.ds__p { font-size: calc(15 * var(--t)); color: rgb(0 0 0 / 0.55); }
.ds__slot--btns .ds__part { display: flex; justify-content: flex-end; gap: calc(10 * var(--t)); }
.ds__slot--input .ds__part { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(10 * var(--t)); }
.ds__slot--input .sp-field { min-width: 0; }
.ds__slot--cards .ds__part { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(14 * var(--t)); }
.ds__slot--cards .sp-card { width: auto; }
.ds__slot--nav .sp-nav { width: 100%; }
.ds__slot--comp .ds__part { display: grid; justify-items: start; gap: calc(12 * var(--t)); }
.ds__slot--comp .sp-cal { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .js .ds__part:not(.is-shown) { opacity: 0; transform: translate3d(-3%, 0, 0) scale(0.97); }
}
.js .ds__part:not(.is-shown) { opacity: 0; }

@media (min-width: 64.0625em) {
  .ds { --mark: 55svh; }
  .ds .flow__stage {
    position: sticky; top: 0; height: 100svh;
    display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); grid-template-rows: auto minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 5rem); row-gap: clamp(1rem, 3vh, 2.5rem);
    padding: calc(var(--header-h) + 1vh) max(var(--gutter), (100% - var(--container)) / 2) clamp(1.5rem, 4vh, 3rem);
  }
  .ds .flow__head { grid-column: 1 / -1; }
  .ds .flow__steps { --spec-h: 12rem; align-self: center; padding-bottom: calc(var(--spec-h) + 0.75rem); }
  .ds .flow__rail { bottom: calc(var(--spec-h) + 1.4rem); }
  .ds__detail { position: absolute; left: 2rem; right: 0; bottom: 0; height: var(--spec-h); visibility: hidden; opacity: 0; transform: translate3d(0, 0.6rem, 0); transition: opacity 0.35s var(--ease-soft), transform 0.6s var(--ease-out), visibility 0s linear 0.6s; }
  .ds .flow__step.is-active .ds__detail { visibility: visible; opacity: 1; transform: none; transition-delay: 0.05s, 0.05s, 0s; }
  .ds__screen { align-self: center; justify-self: end; width: min(100%, (100svh - var(--header-h) - 13rem) * 1.75); }
  .ds .flow__markers { margin-top: -100svh; pointer-events: none; }
  .ds .flow__markers i { display: block; height: var(--mark); }
  .ds .flow__markers i:last-child { height: calc(var(--mark) + 45svh); }
}
/* shorter laptop screens: tighten the pinned stage so the steps and sheet still fit */
@media (min-width: 64.0625em) and (max-height: 50em) {
  .ds .flow__title { font-size: clamp(1.8rem, 0.6rem + 2.2vw, 3rem); }
  .ds .flow__name { font-size: clamp(1.3rem, 0.8rem + 1vw, 1.9rem); }
  .ds .flow__steps { --spec-h: 10rem; }
  .ds__note { font-size: 0.88rem; }
  .ds__spec { --t: 0.8px; margin-top: 0.6rem; padding: 0.75rem 0.9rem; }
}
@media (max-width: 64em) {
  .ds { padding-block: clamp(4.5rem, 12vw, 7rem); }
  .ds .flow__stage { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
  .ds .flow__status, .ds .flow__markers { display: none; }
  .ds .flow__steps { margin-top: 2.5rem; }
  .ds .flow__rail i { transform: none; }
  .ds .flow__step { padding-bottom: 1.75rem; }
  .ds .flow__step .flow__btn { color: var(--white); transform: none; }
  .ds__screen { margin-top: 1rem; }
  .ds__part::before, .ds__part::after { display: none; }
}

/* ==========================================================================
   Technologies — quiet
   ========================================================================== */
.tech { background: var(--off-white); color: var(--black); padding-block: clamp(4rem, 7vw, 7.5rem); }
.tech__inner { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1.68fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); }
.tech__title { display: flex; align-items: center; gap: 0.9rem; padding-top: 0.75rem; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-ink); }
.tech__title::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.5; }
.tech__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--border-light); }
.tech__list li { display: grid; gap: 0.45rem; padding: 0.4rem clamp(1rem, 2vw, 2rem); border-right: 1px solid var(--border-light); }
.tech__list b { font-size: clamp(1.4rem, 0.95rem + 1.15vw, 2.4rem); font-weight: 500; letter-spacing: -0.04em; color: #8c8c8c; transition: color 0.4s; }
.tech__list span { font-size: 0.85rem; color: #8c8c8c; }
.tech__list li:hover b { color: var(--black); }
.tech__note { grid-column: 2; max-width: 40em; font-size: 0.95rem; line-height: 1.5; color: #6a6a6a; }

/* ==========================================================================
   Performance — five measures, one board
   ========================================================================== */
.perf { background: var(--black); color: var(--white); padding-block: clamp(5rem, 9vw, 10rem); }
.perf__board { margin-top: clamp(3rem, 5.5vw, 6rem); overflow: hidden; border: 1px solid rgb(255 255 255 / 0.1); border-radius: clamp(1rem, 1.6vw, 1.75rem); background: #08080c; }
.perf__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.perf__tab { position: relative; display: flex; align-items: center; gap: 0.9rem; padding: clamp(1rem, 1.8vw, 1.6rem) clamp(0.9rem, 1.6vw, 1.5rem); text-align: left; color: rgb(255 255 255 / 0.5); transition: color 0.35s, background-color 0.35s; }
.perf__tab + .perf__tab { border-left: 1px solid rgb(255 255 255 / 0.08); }
.perf__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--purple), var(--blue-bright)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease-out); }
.perf__tab:hover { color: rgb(255 255 255 / 0.85); }
.perf__tab[aria-selected="true"] { background: rgb(255 255 255 / 0.035); color: var(--white); }
.perf__tab[aria-selected="true"]::after { transform: none; }
.perf__tab:focus-visible { outline-offset: -3px; }
.gauge { position: relative; flex: none; display: grid; place-items: center; width: clamp(3rem, 2.4rem + 1.4vw, 3.9rem); aspect-ratio: 1; }
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.gauge__t, .gauge__v { fill: none; stroke-width: 3; }
.gauge__t { stroke: rgb(255 255 255 / 0.1); }
.gauge__v { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--v)); }
.gauge b { font: 600 clamp(0.6rem, 0.52rem + 0.2vw, 0.76rem)/1 var(--mono); color: var(--white); }
.perf__name { font-size: clamp(0.95rem, 0.8rem + 0.35vw, 1.2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.perf__panels { padding: clamp(1.5rem, 3vw, 3rem); }
.perf__panel { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); align-items: center; gap: 2rem clamp(2rem, 4vw, 4.5rem); }
.perf__copy h3 { font-size: clamp(1.8rem, 1rem + 2vw, 3.2rem); font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.perf__copy p { max-width: 26em; margin-top: 1rem; font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem); line-height: 1.5; color: rgb(255 255 255 / 0.68); }
.perf__facts { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.perf__facts li { padding: 0.42rem 0.75rem; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 99em; font: 500 0.76rem/1 var(--mono); color: rgb(255 255 255 / 0.72); }
.perf__viz { display: grid; place-items: center; min-height: clamp(17rem, 25vw, 22rem); padding: clamp(1rem, 2.2vw, 2rem); border: 1px solid rgb(255 255 255 / 0.08); border-radius: clamp(0.8rem, 1.2vw, 1.25rem); background: #111116 radial-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1.5px) 0 0 / 20px 20px; }

/* loading filmstrip */
.film { display: grid; gap: 1.25rem; width: 100%; }
.film__frames { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.5rem, 1vw, 0.9rem); }
.film__f { display: grid; justify-items: center; gap: 0.55rem; }
.film__f small { font: 500 0.72rem/1 var(--mono); color: rgb(255 255 255 / 0.5); }
.film__shot { display: flex; flex-direction: column; gap: 0.35rem; width: 100%; aspect-ratio: 9 / 16; padding: 12% 10%; overflow: hidden; border-radius: 0.6rem; background: #fbfbfa; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); }
.p { display: block; flex: none; border-radius: 3px; transition: opacity 0.3s; }
.p--nav { height: 6%; background: rgb(0 0 0 / 0.08); }
.p--h { width: 72%; height: 5%; background: #141414; }
.p--img { height: 36%; border-radius: 6px; background: linear-gradient(135deg, #ff9f7a, #6b79d8); }
.p--txt { height: 14%; background: repeating-linear-gradient(rgb(0 0 0 / 0.12) 0 3px, transparent 3px 8px); }
.p--btn { width: 56%; height: 7%; border-radius: 99em; background: var(--blue); }
.film__f:nth-child(1) .p { opacity: 0; }
.film__f:nth-child(2) .p:nth-child(n+3) { opacity: 0; }
.film__f:nth-child(3) .p:nth-child(n+4) { opacity: 0; }
.film__f:nth-child(3) .p--img { background: #e4e4e1; opacity: 1; }
.film__f:nth-child(4) .p--btn { opacity: 0; }
.film__f--lcp .film__shot { box-shadow: 0 0 0 2px var(--blue-bright), 0 0 0 6px rgb(58 126 246 / 0.22); }
.film__f--lcp small { color: var(--blue-bright); }
.film__axis { display: grid; gap: 0.6rem; }
.film__track { display: block; height: 3px; overflow: hidden; border-radius: 99em; background: rgb(255 255 255 / 0.1); }
.film__track i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--blue-bright)); transform-origin: 0 50%; }
.film__mark { justify-self: start; margin-left: 70%; translate: -50% 0; font: 600 0.74rem/1 var(--mono); color: var(--blue-bright); white-space: nowrap; }

/* rendering */
.fps { display: grid; gap: 1rem; width: 100%; }
.fps__top, .inp__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.75rem; }
.fps__top b, .inp__total b { font-size: clamp(1.6rem, 1rem + 1.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.04em; }
.fps__top small, .inp__total small { font-size: 0.85rem; color: rgb(255 255 255 / 0.55); }
.fps__chart { position: relative; display: flex; align-items: flex-end; gap: 3px; height: clamp(8rem, 12vw, 11rem); border-bottom: 1px solid rgb(255 255 255 / 0.15); }
.fps__chart i { flex: 1; height: calc(var(--h) * 100%); border-radius: 2px 2px 0 0; background: linear-gradient(var(--green), rgb(116 214 90 / 0.3)); transform-origin: 50% 100%; }
.fps__budget { position: absolute; left: 0; right: 0; bottom: 70%; border-top: 1px dashed rgb(255 255 255 / 0.4); }
.fps__budget em { position: absolute; right: 0; bottom: 0.35rem; font: 500 0.7rem/1 var(--mono); font-style: normal; color: rgb(255 255 255 / 0.6); }
.fps__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fps__stats span { display: grid; gap: 0.3rem; }
.fps__stats small { font-size: 0.75rem; color: rgb(255 255 255 / 0.5); }
.fps__stats b { font: 600 1.05rem/1 var(--mono); }

/* interaction */
.inp { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(1rem, 3vw, 2.5rem); width: 100%; }
.inp__demo { display: grid; justify-items: center; gap: 1rem; padding: 2.25rem 1rem; border-radius: 1rem; background: #fbfbfa; }
.inp__btn { position: relative; overflow: hidden; padding: 0.8rem 1.4rem; border-radius: 0.75rem; background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; font-size: 0.95rem; font-weight: 600; }
.inp__ripple { position: absolute; left: 50%; top: 50%; width: 1rem; aspect-ratio: 1; margin: -0.5rem; border-radius: 50%; background: rgb(255 255 255 / 0.55); opacity: 0; }
.inp__toast { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.85rem 0.45rem 0.55rem; border-radius: 99em; background: #141414; color: #fff; font-size: 0.8rem; }
.inp__toast i { width: 0.85rem; aspect-ratio: 1; border-radius: 50%; background: var(--green); }
.inp__scale { height: 2.4rem; margin-top: 1rem; overflow: hidden; border-radius: 0.5rem; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.inp__bar { display: flex; width: 27%; height: 100%; transform-origin: 0 50%; }
.inp__bar i { width: var(--w); height: 100%; }
.inp__bar i:nth-child(1), .inp__legend span:nth-child(1)::before { background: #9b7cf0; }
.inp__bar i:nth-child(2), .inp__legend span:nth-child(2)::before { background: var(--blue); }
.inp__bar i:nth-child(3), .inp__legend span:nth-child(3)::before { background: var(--green); }
.inp__axis { display: flex; justify-content: space-between; margin-top: 0.5rem; font: 500 0.7rem/1 var(--mono); color: rgb(255 255 255 / 0.45); }
.inp__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 1rem; font: 500 0.74rem/1 var(--mono); color: rgb(255 255 255 / 0.7); }
.inp__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.inp__legend span::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 2px; }

/* accessibility */
.a11y { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1rem, 3vw, 2.5rem); width: 100%; }
.a11y__card { display: grid; gap: 0.3rem; padding: 0.7rem 0.7rem 2.4rem; border-radius: 1rem; background: #fbfbfa; color: #141414; }
.a11y__img { position: relative; aspect-ratio: 16 / 10; margin-bottom: 0.45rem; border-radius: 0.6rem; }
.a11y__t { padding-inline: 0.3rem; font-size: 1.05rem; font-weight: 600; }
.a11y__s { padding-inline: 0.3rem; font-size: 0.82rem; color: #5e5e5e; }
.a11y__row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; padding-inline: 0.3rem; }
.a11y__btn { position: relative; padding: 0.6rem 1.1rem; border-radius: 0.6rem; background: #141414; color: #fff; font-size: 0.85rem; font-weight: 600; box-shadow: 0 0 0 3px #fbfbfa, 0 0 0 5px var(--blue); }
.a11y__heart { position: relative; display: grid; place-items: center; width: 2.6rem; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); outline: 1px dashed var(--sync); outline-offset: 3px; }
.a11y__heart svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: #141414; stroke-width: 2; }
.a11y__tag { position: absolute; padding: 0.25rem 0.45rem; border-radius: 0.3rem; background: var(--sync); color: #fff; font: 600 0.62rem/1 var(--mono); white-space: nowrap; }
.a11y__tag--alt { left: 0.5rem; bottom: 0.5rem; background: rgb(0 0 0 / 0.72); }
.a11y__tag--focus { left: 0; top: calc(100% + 0.7rem); background: var(--blue); }
.a11y__tag--size { right: 0; top: calc(100% + 0.7rem); }
.a11y__checks { display: grid; gap: 0.5rem; }
.a11y__checks li { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.7rem 0.9rem; border-radius: 0.7rem; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); font-size: 0.9rem; color: rgb(255 255 255 / 0.75); }
.a11y__checks b { min-width: 3.6rem; font: 600 0.85rem/1 var(--mono); color: var(--green); }

/* seo */
.seo { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr); align-items: center; gap: clamp(1rem, 2.5vw, 2rem); width: 100%; }
.serp { overflow: hidden; border-radius: 1rem; background: #fff; color: #202124; }
.serp__bar { display: flex; align-items: center; gap: 0.6rem; margin: 0.8rem; padding: 0.55rem 0.9rem; border-radius: 99em; box-shadow: 0 1px 6px rgb(0 0 0 / 0.14); font-size: 0.82rem; }
.serp__bar i { width: 0.8rem; aspect-ratio: 1; border: 2px solid #9aa0a6; border-radius: 50%; }
.serp__res { display: grid; gap: 0.3rem; padding: 0.6rem 1.1rem 1.25rem; }
.serp__site { display: flex; align-items: center; gap: 0.55rem; }
.serp__site i { width: 1.6rem; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 22%, transparent 23%), linear-gradient(135deg, var(--purple), var(--blue)); }
.serp__site span { display: grid; }
.serp__site b { font-size: 0.8rem; font-weight: 500; }
.serp__site small { font-size: 0.72rem; color: #4d5156; }
.serp__title { margin-top: 0.2rem; font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem); font-weight: 400; line-height: 1.3; color: #1a0dab; }
.serp__rate { font-size: 0.78rem; color: #70757a; }
.serp__rate em { margin-right: 0.35rem; font-style: normal; letter-spacing: 0.05em; color: #f5a623; }
.serp__res p { font-size: 0.82rem; line-height: 1.5; color: #4d5156; }
.seo__checks { display: grid; gap: 0.65rem; }
.seo__checks li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: rgb(255 255 255 / 0.8); }
.seo__checks li::before { content: "✓"; content: "✓" / ""; display: grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: rgb(116 214 90 / 0.18); font-size: 0.7rem; font-weight: 700; color: var(--green); }

@media (prefers-reduced-motion: no-preference) {
  .js .perf__board .gauge__v { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-out) 0.3s; }
  .js .perf__board.is-in .gauge__v { stroke-dashoffset: calc(1 - var(--v)); }
  .perf__panel.is-active .film__f { animation: wm-up 0.5s var(--ease-out) both; animation-delay: calc(var(--k) * 140ms + 0.1s); }
  .perf__panel.is-active .film__track i { animation: wm-grow-x 0.9s linear both 0.1s; }
  .perf__panel.is-active .fps__chart i { animation: wm-grow-y 0.8s var(--ease-out) both 0.1s; }
  .perf__panel.is-active .fps__chart i:nth-child(3n) { animation-delay: 0.2s; }
  .perf__panel.is-active .fps__chart i:nth-child(4n) { animation-delay: 0.3s; }
  .perf__panel.is-active .inp__bar { animation: wm-grow-x 0.7s var(--ease-out) both 0.2s; }
  .perf__panel.is-active .inp__btn { animation: wm-press 2.6s ease infinite; }
  .perf__panel.is-active .inp__ripple { animation: wm-ripple 2.6s var(--ease-out) infinite; }
  .perf__panel.is-active .inp__toast { animation: wm-toast 2.6s var(--ease-out) infinite; }
  .perf__panel.is-active :is(.a11y__tag, .a11y__checks li, .seo__checks li, .serp__res > *) { animation: wm-up 0.5s var(--ease-out) both 0.2s; }
  .perf__panel.is-active :is(.a11y__checks li, .seo__checks li):nth-child(2) { animation-delay: 0.3s; }
  .perf__panel.is-active :is(.a11y__checks li, .seo__checks li):nth-child(3) { animation-delay: 0.4s; }
  .perf__panel.is-active :is(.a11y__checks li, .seo__checks li):nth-child(4) { animation-delay: 0.5s; }
  .perf.is-paused .perf__panel * { animation-play-state: paused; }
  @keyframes wm-up { from { opacity: 0; transform: translate3d(0, 0.6rem, 0); } }
  @keyframes wm-grow-x { from { transform: scaleX(0); } }
  @keyframes wm-grow-y { from { transform: scaleY(0); } }
  @keyframes wm-press { 0%, 8% { scale: 1; } 12% { scale: 0.95; } 18%, 100% { scale: 1; } }
  @keyframes wm-ripple { 0%, 10% { opacity: 0; scale: 0; } 12% { opacity: 0.7; scale: 0.5; } 40%, 100% { opacity: 0; scale: 16; } }
  @keyframes wm-toast { 0%, 18% { opacity: 0; transform: translate3d(0, 0.5rem, 0) scale(0.9); } 24%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translate3d(0, -0.25rem, 0); } }
}

/* ==========================================================================
   Designed once — devices converge as the section scrolls in
   ========================================================================== */
.every { background: var(--off-white); color: var(--black); padding-block: clamp(5rem, 9vw, 10rem); overflow-x: clip; }
.every__head { display: grid; justify-items: center; text-align: center; }
.every__title { margin-top: 1.25rem; font-size: clamp(2.8rem, 0.6rem + 7.4vw, 9.25rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.055em; }
.every__title .mask { display: block; width: fit-content; margin-inline: auto; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.every__title .mask:first-child { color: #7a7a7a; }
.every__lead { max-width: 30em; margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(1.05rem, 0.85rem + 0.55vw, 1.5rem); line-height: 1.4; letter-spacing: -0.02em; color: var(--gray-ink); }
.every__stage { margin-top: clamp(3.5rem, 7vw, 7rem); padding-inline: var(--gutter); }
.every__canvas { position: relative; max-width: 92rem; margin-inline: auto; aspect-ratio: 100 / 58; container-type: inline-size; }
.every .dv__screen { box-shadow: 0 calc(2 * var(--u)) calc(5 * var(--u)) rgb(0 0 0 / 0.16); }
.every .dv--desk { --x: 12; --y: 2; --w: 76; --z: 1; --fx: 0; --fy: 5; --fr: 0deg; --fs: 0.94; --drift: 0.5; }
.every .dv--tab { --x: 1; --y: 22; --w: 25; --z: 2; --fx: -7; --fy: 16; --fr: -5deg; --fs: 1; --drift: 2; }
.every .dv--phone { --x: 81; --y: 25; --w: 15; --z: 3; --fx: 7; --fy: 20; --fr: 6deg; --fs: 1; --drift: 3; }
.every__tag { position: absolute; z-index: 4; padding: 0.35rem 0.7rem; border-radius: 99em; background: var(--white); box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.08); font: 500 max(0.62rem, calc(0.8 * var(--u)))/1 var(--mono); color: #5e5e5e; white-space: nowrap; }
.every__tag--desk { left: calc(12 * var(--u)); top: calc(-1 * var(--u)); translate: 0 -100%; }
.every__tag--tab { left: var(--u); top: calc(19 * var(--u)); }
.every__tag--phone { right: calc(3 * var(--u)); top: calc(21.5 * var(--u)); }

/* listing detail screen */
.app--detail { gap: calc(14 * var(--t)); }
.app__search--sm { font-size: calc(11 * var(--t)); }
.dt { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(14 * var(--t)); padding-inline: calc(40 * var(--t)); }
.dt__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(6 * var(--t)) calc(14 * var(--t)); }
.dt__title { font-size: calc(28 * var(--t)); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.dt__meta { font-size: calc(12 * var(--t)); color: rgb(0 0 0 / 0.55); }
.dt__acts { display: flex; gap: calc(8 * var(--t)); margin-left: auto; }
.dt__acts i { display: inline-flex; align-items: center; gap: calc(5 * var(--t)); padding: calc(6 * var(--t)) calc(12 * var(--t)); border-radius: 99em; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); font-size: calc(11 * var(--t)); font-style: normal; font-weight: 600; }
.dt__acts svg { width: calc(12 * var(--t)); height: calc(12 * var(--t)); fill: var(--love); }
.dt__gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: calc(8 * var(--t)); height: calc(300 * var(--t)); overflow: hidden; border-radius: calc(16 * var(--t)); }
.dt__gallery .im:first-child { grid-row: span 2; }
.dt__body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: calc(40 * var(--t)); }
.dt__info { display: grid; gap: calc(10 * var(--t)); }
.dt__info > b { font-size: calc(16 * var(--t)); }
.app--detail .ln { height: calc(7 * var(--t)); }
.dt__amen { display: flex; flex-wrap: wrap; gap: calc(8 * var(--t)); margin-top: calc(6 * var(--t)); }
.dt__amen span { padding: calc(6 * var(--t)) calc(12 * var(--t)); border-radius: calc(10 * var(--t)); background: #efefec; font-size: calc(11 * var(--t)); font-weight: 500; white-space: nowrap; }
.bk { display: grid; gap: calc(10 * var(--t)); padding: calc(18 * var(--t)); border-radius: calc(16 * var(--t)); background: #fff; box-shadow: 0 calc(6 * var(--t)) calc(24 * var(--t)) rgb(0 0 0 / 0.1), inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.bk__price { font-size: calc(20 * var(--t)); font-weight: 700; letter-spacing: -0.03em; }
.bk__price small { font-size: calc(12 * var(--t)); font-weight: 500; color: rgb(0 0 0 / 0.5); }
.bk__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border-radius: calc(10 * var(--t)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.bk__fields span { display: grid; gap: calc(2 * var(--t)); padding: calc(8 * var(--t)) calc(10 * var(--t)); font-size: calc(12 * var(--t)); font-weight: 600; }
.bk__fields span + span { border-left: 1px solid rgb(0 0 0 / 0.15); }
.bk__fields small { font-size: calc(9 * var(--t)); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: rgb(0 0 0 / 0.6); }
.bk__fields .bk__wide { grid-column: span 2; border-left: 0; border-top: 1px solid rgb(0 0 0 / 0.15); }
.bk__cta { display: grid; place-items: center; height: calc(40 * var(--t)); border-radius: calc(10 * var(--t)); background: linear-gradient(135deg, #7a45e0, #3f6ff2); color: #fff; font-size: calc(13 * var(--t)); font-weight: 600; }
.bk__note { justify-self: center; font-size: calc(10 * var(--t)); color: rgb(0 0 0 / 0.5); }
.app--tab.app--detail .dt__title { font-size: calc(36 * var(--t)); }
.app--tab.app--detail .dt__meta { margin-top: calc(-8 * var(--t)); font-size: calc(15 * var(--t)); }
.app--tab.app--detail .dt__amen span { font-size: calc(14 * var(--t)); }
.dt__gallery--tab { flex: none; grid-template-columns: 2fr 1fr; height: calc(430 * var(--t)); }
.bk--row, .bk--bar { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.bk--row .bk__price, .bk--bar .bk__price { font-size: calc(24 * var(--t)); }
.bk--row .bk__cta { height: calc(52 * var(--t)); padding-inline: calc(44 * var(--t)); font-size: calc(16 * var(--t)); }
.app--phone.app--detail { gap: calc(10 * var(--t)); padding: 0 0 calc(12 * var(--t)); }
.app--phone.app--detail > :not(.dt__photo, .bk) { margin-inline: calc(20 * var(--t)); }
.app--phone.app--detail .dt__title { font-size: calc(26 * var(--t)); }
.app--phone.app--detail .dt__meta { margin-top: calc(-6 * var(--t)); font-size: calc(14 * var(--t)); }
.app--phone.app--detail .dt__amen span { font-size: calc(13 * var(--t)); }
.dt__photo { position: relative; flex: none; height: calc(380 * var(--t)); }
.dt__btn { position: absolute; top: calc(58 * var(--t)); left: calc(16 * var(--t)); width: calc(36 * var(--t)); aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 0.92); }
.dt__btn--heart { display: grid; place-items: center; left: auto; right: calc(16 * var(--t)); }
.dt__btn--heart svg { width: calc(17 * var(--t)); height: calc(17 * var(--t)); fill: var(--love); }
.dt__dots { position: absolute; left: 50%; bottom: calc(14 * var(--t)); display: flex; gap: calc(6 * var(--t)); translate: -50% 0; }
.dt__dots i { width: calc(7 * var(--t)); aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 0.55); }
.dt__dots .is-on { background: #fff; }
.bk--bar { gap: calc(10 * var(--t)); padding: calc(14 * var(--t)) calc(20 * var(--t)) calc(22 * var(--t)); border-radius: 0; box-shadow: 0 -1px 0 rgb(0 0 0 / 0.08); }
.bk--bar .bk__cta { height: calc(48 * var(--t)); padding-inline: calc(30 * var(--t)); font-size: calc(15 * var(--t)); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry) {
    .every__canvas { view-timeline: --every; }
    .every .dv { animation: wm-converge linear both; animation-timeline: --every; animation-range: entry 0% exit 100%; }
    .every__tag { animation: wm-tag linear both; animation-timeline: --every; animation-range: entry 55% cover 45%; }
    @keyframes wm-converge {
      0% { translate: calc(var(--fx) * var(--u)) calc(var(--fy) * var(--u)); rotate: var(--fr); scale: var(--fs); }
      45% { translate: 0 0; rotate: 0deg; scale: 1; }
      100% { translate: 0 calc(var(--drift) * calc(-1 * var(--u))); rotate: 0deg; scale: 1; }
    }
    @keyframes wm-tag { from { opacity: 0; } }
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 64em) {
  .qual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech__inner { grid-template-columns: minmax(0, 1fr); }
  .tech__note { grid-column: 1; }
  .perf__tab { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .perf__panel { grid-template-columns: minmax(0, 1fr); align-content: start; }
}

@media (max-width: 48em) {
  .dvs__canvas { aspect-ratio: 100 / 97; }
  .dvs .dv--desk { --x: 0; --y: 0; --w: 100; }
  .dvs .dv--tab { --x: 2; --y: 38; --w: 40; }
  .dvs .dv--phone { --x: 70; --y: 40; --w: 26; }
  .dv__size { display: none; }

  .qual { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .shelf__item { min-width: 15rem; }

  .tech__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.25rem; }

  .perf__tabs { grid-template-columns: repeat(5, minmax(8rem, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .perf__tabs::-webkit-scrollbar { display: none; }
  .film__mark { margin-left: 0; translate: none; }
  .inp, .a11y, .seo { grid-template-columns: minmax(0, 1fr); }

  .every__canvas { aspect-ratio: 100 / 102; }
  .every .dv--desk { --x: 0; --y: 0; --w: 100; }
  .every .dv--tab { --x: 3; --y: 40; --w: 40; }
  .every .dv--phone { --x: 66; --y: 36; --w: 30; }
  .every__tag { display: none; }
}
