/* Origa Labs home page, review draft: "The paper room", developed.
   Paperroom's icon is a room made of paper. The hero builds that room from Paperroom's real pictures; it folds up
   on load, leans towards the pointer, and turns as the page scrolls until its left wall is the page, sitting on the
   same grid as everything below it. Each product is one room; with more than one, doors turn the building.
   Palette: bone paper, near-black ink, one cobalt blue, and the yellow of Paperroom's doorway. No green of the
   page's own: the only green is Paperroom's, inside its icon, its screenshots and the living copy of its note. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url("/home/fonts/BricolageGrotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/home/fonts/Figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/home/fonts/JetBrainsMono-Regular.woff2") format("woff2"); }

@property --turn { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

:root {
  color-scheme: light dark;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --ground: #f4f0e8; --ground-2: #e9e4d8; --card: #fffdf8;
  --ink: #15151a; --body: #3b3b42; --mute: #5f5f68; --line: #d8d2c4;
  --accent: #2742d6; --on-accent: #ffffff; --accent-ink: #2038c0;
  --yellow: #ffe45c; --on-yellow: #15151a; --focus: #2742d6;

  --band: #1a2a8f; --band-2: #111c66; --on-band: #f6f2e7; --on-band-mute: #cdd3f2; --band-line: #3a4bb5; --band-accent: #ffe45c;

  /* The room. A product's room may carry its own floor: see the floor classes below. */
  --paper-a: #fffefb; --paper-b: #f1e7d4; --paper-r-a: #f1e5cd; --paper-r-b: #dccaa6; --paper-edge: #cdb98f;
  --floor-a: #4a66f2; --floor-b: #1c31b0; --slab-front: #16268c; --slab-side: #0e1a66;
  --door-a: #ffe45c; --door-b: #fffbe0; --door-glow: rgba(255, 228, 92, 0.55); --spill: rgba(255, 228, 92, 0.9);
  --room-shadow: rgba(21, 21, 26, 0.34); --wall-shade: rgba(60, 44, 10, 0.1);
  --sheet-shadow: 0 30px 60px -28px rgba(21, 21, 26, 0.38), 0 2px 6px rgba(21, 21, 26, 0.08);

  /* The living note: Paperroom's own values (web/src/styles/tokens.css), so it looks like the product. One departure:
     the empty box's outline is darker than the app's, to reach 3:1 against the page. */
  --n-page: #ffffff; --n-text: #17181a; --n-body: #33363a; --n-mute: #5e6369; --n-line: #e4e5e8; --n-soft: #f2f3f4; --n-tick: #878c94;
  --n-amber: #f5a524; --n-check: #0b7a54; --n-on-check: #ffffff; --n-host: #0b6b47; --n-on-host: #ffffff;
  --violet: #6d4ed8; --on-violet: #ffffff; --blue: #1d64d8; --on-blue: #ffffff; --you: #c2410c; --on-you: #ffffff;

  --pad: 48px; --max: 1320px; --gap: 28px; --r: 14px; --pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --fast: 160ms; --reveal: 900ms; --step: 90ms;

  --p: 0; --mx: 0; --my: 0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b0c11; --ground-2: #13141b; --card: #15161d;
    --ink: #f2efe8; --body: #c9c9d0; --mute: #9a9aa6; --line: #262833;
    --accent: #93a5ff; --on-accent: #0b1030; --accent-ink: #a9b7ff; --focus: #a9b7ff;
    --band: #121a52; --band-2: #0c1238; --on-band: #f2efe8; --on-band-mute: #b6bee8; --band-line: #2b3680;
    --paper-a: #e9e2d0; --paper-b: #cfc4a8; --paper-r-a: #b9ad8e; --paper-r-b: #8f8364; --paper-edge: #6f6548;
    --floor-a: #2a3fc4; --floor-b: #101c70; --slab-front: #0c1556; --slab-side: #070c38;
    --door-glow: rgba(255, 228, 92, 0.9); --spill: rgba(255, 228, 92, 0.95);
    --room-shadow: rgba(0, 0, 0, 0.7); --wall-shade: rgba(0, 0, 0, 0.28);
    --sheet-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8), 0 0 0 1px #262833;
    --n-page: #141517; --n-text: #f2f3f5; --n-body: #d3d6da; --n-mute: #9ea3a9; --n-line: #2d2f34; --n-soft: #26282c; --n-tick: #70757e;
    --n-check: #3ddc97; --n-on-check: #06281a; --n-host: #74e0ae; --n-on-host: #0b2219;
    --violet: #b39dff; --on-violet: #160d33; --blue: #5b9bff; --on-blue: #0a1a33; --you: #ff9a62; --on-you: #2b1305;
  }
}
/* Floors for further rooms. None is green. Put the class on the product's <article>. */
.floor-ember { --floor-a: #f0733a; --floor-b: #b8401a; --slab-front: #8f3012; --slab-side: #66200a; }
.floor-plum { --floor-a: #9a5bd6; --floor-b: #5a2a94; --slab-front: #45207a; --slab-side: #2f1456; }
@media (prefers-color-scheme: dark) {
  .floor-ember { --floor-a: #c2552a; --floor-b: #7a2a10; --slab-front: #5a1e0a; --slab-side: #3d1306; }
  .floor-plum { --floor-a: #7440b0; --floor-b: #3d1c6a; --slab-front: #2e1552; --slab-side: #1e0d38; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--body); font: 400 17px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--ground); padding: 13px 16px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 16px; }

/* Header. The brand link is the logo slot: bold capitals, one line or two stacked lines. */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; color: var(--ink); text-decoration: none; text-transform: uppercase; white-space: nowrap; font: 900 17px/1 var(--sans); letter-spacing: 0.02em; }
.brand picture, .brand img { display: block; }
.brand img { width: auto; height: 26px; }
.top nav { display: flex; gap: 6px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--pill); color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500; transition: background var(--fast), color var(--fast); }
.top nav a:hover { background: var(--ground-2); color: var(--ink); }

/* Shared pieces */
.eyebrow { display: flex; align-items: center; gap: 10px; font: 400 13px/1.2 var(--mono); letter-spacing: 0.02em; color: var(--mute); }
.eyebrow img { border-radius: 6px; }
.caption { font: 400 13px/1.55 var(--mono); color: var(--mute); }
h2 { color: var(--ink); font: 300 clamp(34px, 3.5vw, 52px)/1.04 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--pill); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform var(--fast) var(--ease), background var(--fast), color var(--fast); }
.button:hover { background: var(--ink); color: var(--ground); }
.button:active { transform: scale(0.97); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.try { display: inline-flex; margin: 0; }
.fine { font-size: 14px; color: var(--mute); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.text-link span { transition: transform var(--fast) var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--sheet-shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 0 40%; }

/* ---------- The stage: one room per product ---------- */
.stage { position: relative; }
.stage-pin {
  position: relative; display: grid;
  --cw: min(100vw - 2 * var(--pad), var(--max));
  /* --S is the room's size when its wall faces you: eight of the page's twelve columns, or what the screen's
     height allows. --k0 is how small it sits while it is a room. Drawn large and scaled down, so the page stays sharp. */
  --S: min(var(--cw) * 2 / 3 - var(--gap) / 3, (100vh - 150px) * 1.6); --H: calc(var(--S) * 0.625); --k0: 0.5;
  --X0: calc(var(--cw) * 0.76); --X1: calc(var(--S) / 2); --Y0: 52vh; --Y1: calc(50vh + 20px);
}
.product { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: center; min-height: 100vh; min-height: 100svh; padding-top: 96px; padding-bottom: 40px; }
.hero-copy { position: relative; z-index: 2; }
h1, .h1 { margin-top: 26px; color: var(--ink); font: 300 clamp(46px, 5.9vw, 92px)/0.98 var(--display); font-stretch: 100%; letter-spacing: -0.045em; text-wrap: balance; }
h1 .line, .h1 .line { display: block; }
.lede { margin-top: 28px; max-width: 34em; font-size: 19px; line-height: 1.55; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-copy .fine { margin-top: 16px; }
.scroll-cue { display: none; margin-top: 40px; align-items: center; gap: 12px; font: 400 12px/1 var(--mono); color: var(--mute); }
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--mute), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 60%, 100% { transform: scaleY(1); } }

.room-wrap { position: relative; z-index: 1; height: calc(var(--S) * var(--k0) * 1.5); }
.room { position: absolute; left: 50%; top: 50%; width: var(--S); height: var(--S); margin: calc(var(--S) / -2) 0 0 calc(var(--S) / -2); transform-style: preserve-3d;
  transform:
    translateY(calc((1 - var(--p)) * var(--S) * var(--k0) * 0.25))
    scale(calc(var(--k0) + var(--p) * (1 - var(--k0))))
    translateY(calc(var(--p) * var(--H) / 2))
    rotateX(calc(57deg + var(--p) * 33deg - var(--my) * (1 - var(--p)) * 4deg))
    rotateZ(calc(45deg + var(--p) * 45deg + var(--mx) * (1 - var(--p)) * 7deg + var(--turn))); }
.room > * { position: absolute; }
.shadow { inset: 4%; background: var(--room-shadow); filter: blur(calc(var(--S) * 0.07)); transform: translateZ(calc(var(--S) * -0.14)) translate(6%, 6%); opacity: calc(1 - var(--p) * 2); }
.floor { inset: 0; background: linear-gradient(135deg, var(--floor-a), var(--floor-b)); transform-style: preserve-3d; opacity: calc((1 - var(--p)) * 8); }
.spill { position: absolute; left: 66%; top: 0; width: 20%; height: 58%; background: linear-gradient(var(--spill), transparent); transform-origin: top; transform: skewX(-24deg); filter: blur(calc(var(--S) * 0.008)); }
.loose { position: absolute; left: 9%; top: 36%; width: 40%; border-radius: 2px; box-shadow: 0 0 0 1px var(--wall-shade), calc(var(--S) * 0.02) calc(var(--S) * 0.03) calc(var(--S) * 0.05) var(--room-shadow); transform: translateZ(2px) rotate(-11deg); }
.slab { background: var(--slab-front); opacity: calc((1 - var(--p)) * 5); }
.slab-front { left: 0; top: 100%; width: 100%; height: calc(var(--S) * 0.06); transform-origin: top; transform: rotateX(-90deg); }
.slab-side { left: 100%; top: 0; width: calc(var(--S) * 0.06); height: 100%; background: var(--slab-side); transform-origin: left; transform: rotateY(90deg); }
.wall { width: var(--S); height: var(--H); bottom: 100%; overflow: hidden; background: linear-gradient(var(--paper-a), var(--paper-b)); box-shadow: inset 0 0 0 calc(var(--S) * 0.012) var(--paper-a); }
.wall-l { right: 100%; transform-origin: bottom right; transform: rotateZ(-90deg) rotateX(-90deg); border-radius: calc(var(--p) * var(--r)); box-shadow: 0 calc(var(--p) * 30px) calc(var(--p) * 60px) calc(var(--p) * -28px) var(--room-shadow); }
.wall-l img { width: 100%; height: 100%; object-fit: cover; }
.wall-r { left: 0; transform-origin: bottom; transform: rotateX(-90deg); background: linear-gradient(var(--paper-r-a), var(--paper-r-b)); box-shadow: inset 0 0 0 calc(var(--S) * 0.012) var(--paper-edge); }
.pinned { position: absolute; left: 7%; top: 12%; height: 72%; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px var(--wall-shade), 0 calc(var(--S) * 0.012) calc(var(--S) * 0.03) var(--wall-shade); }
.door { position: absolute; right: 14%; bottom: 0; width: 20%; height: 70%; border-radius: 999px 999px 0 0 / 34% 34% 0 0; background: linear-gradient(var(--door-a), var(--door-b)); box-shadow: 0 0 calc(var(--S) * 0.1) var(--door-glow); }
/* A wall with no picture yet (scratch proofs only). */
.wall .blank { position: absolute; inset: 6%; display: grid; place-items: center; border: 2px dashed var(--paper-edge); color: var(--mute); font: 400 calc(var(--S) * 0.03)/1.3 var(--mono); text-align: center; }
.stage-end { display: none; }
/* The page once the room has turned: site.js copies the left wall here, flat and outside the 3D room, so it is sharp in every browser. */
.flat { display: none; }

/* Motion: the stage is pinned for under one screen of scrolling while the room turns. */
.motion .stage { height: 195vh; }
.motion .stage-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.motion .product { min-height: 0; height: 100%; }
.motion .product:not(.is-active):not(.is-leaving) { display: none; }
.motion .hero-copy { opacity: calc(1 - var(--p) * 3.2); transform: translateY(calc(var(--p) * -60px)); }
.motion .is-inside .hero-copy { visibility: hidden; }
.motion .scroll-cue { display: flex; }
.motion .room-wrap { position: absolute; left: var(--pad); top: 0; width: 0; height: 0; margin: 0; transform: translate(calc(var(--X0) + var(--p) * (var(--X1) - var(--X0))), calc(var(--Y0) + var(--p) * (var(--Y1) - var(--Y0)))); }
.motion .stage-end { position: absolute; left: calc(var(--pad) + var(--S) + var(--gap)); top: calc(var(--Y1) - var(--H) / 2); width: calc(var(--cw) - var(--S) - var(--gap)); height: var(--H); display: flex; flex-direction: column; justify-content: center; gap: 20px; opacity: calc((var(--p) - 0.72) * 4); transform: translateY(calc((1 - var(--p)) * 40px)); }
.motion .stage:not(.is-inside) .stage-end { visibility: hidden; }
.motion .flat { display: block; position: absolute; z-index: 2; left: calc(var(--pad) + var(--X1) - var(--S) / 2); top: calc(var(--Y1) - var(--H) / 2); width: var(--S); height: var(--H); border-radius: var(--r); overflow: hidden; background: var(--paper-a); box-shadow: var(--sheet-shadow); opacity: 0; visibility: hidden; transition: opacity 260ms ease, visibility 0s 260ms; }
.motion .flat img { width: 100%; height: 100%; object-fit: cover; }
.motion .is-flat .is-active .flat { opacity: 1; visibility: visible; transition: opacity 260ms ease; }
.motion .still-page { display: none; }
.motion .wall-r { animation: fold-r 900ms var(--ease) 350ms both; }
.motion .wall-l { animation: fold-l 900ms var(--ease) 200ms both; }
.motion .loose { animation: drop 700ms var(--ease) 900ms both; }
.motion .door, .motion .spill { animation: lit 1200ms ease-out 1100ms both; }
@keyframes fold-r { from { transform: rotateX(0deg); } }
@keyframes fold-l { from { transform: rotateZ(-90deg) rotateX(0deg); } }
@keyframes drop { from { opacity: 0; transform: translateZ(calc(var(--S) * 0.3)) rotate(8deg); } }
@keyframes lit { from { opacity: 0; } }
.motion .hero-copy .line { animation: rise 800ms var(--ease) both; }
.motion .hero-copy .line:nth-child(2) { animation-delay: 80ms; }
.motion .hero-copy .line:nth-child(3) { animation-delay: 160ms; }
.motion .hero-copy > :not(h1, .h1) { animation: rise 800ms var(--ease) 260ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* More than one room: the doors, and the turn of the building from one room to the next. */
.doors { position: absolute; z-index: 3; left: calc(var(--pad) + var(--X0)); bottom: 26px; width: max-content; max-width: calc(100vw - 2 * var(--pad)); padding: 8px; overflow-x: auto; scrollbar-width: none; transform: translateX(-50%); display: flex; gap: 10px; opacity: calc(1 - var(--p) * 3.2); }
.is-inside .doors { visibility: hidden; }
.door-tab { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 10px; border: 1.5px solid var(--line); border-radius: 26px 26px 8px 8px; background: var(--card); color: var(--body); font: 600 14px/1 var(--sans); cursor: pointer; transition: background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease), transform var(--fast) var(--ease); }
.door-tab img { width: 30px; height: 30px; border-radius: 8px; }
.door-tab i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ground-2); color: var(--ink); font: 700 13px/1 var(--mono); font-style: normal; }
.door-tab:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.door-tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); box-shadow: 0 0 34px var(--door-glow); }
.motion .is-entering .room-wrap { animation: turn-in 900ms var(--ease) both; }
.motion .is-leaving .room-wrap { animation: turn-out 450ms cubic-bezier(0.5, 0, 0.9, 0.4) both; }
.motion .is-leaving .hero-copy { animation: copy-out 300ms ease-in both; }
.motion .is-leaving { pointer-events: none; }
@keyframes turn-in { from { --turn: -90deg; opacity: 0; } }
@keyframes turn-out { to { --turn: 90deg; opacity: 0; } }
@keyframes copy-out { to { opacity: 0; transform: translateY(-18px); } }

/* ---------- The rows: a picture on eight columns, words on four, one side then the other ---------- */
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding-top: 90px; padding-bottom: 90px; }
.row-left .row-media { grid-column: 1 / span 8; grid-row: 1; }
.row-left .row-text { grid-column: 9 / span 4; grid-row: 1; }
.row-right .row-text { grid-column: 1 / span 4; grid-row: 1; }
.row-right .row-media { grid-column: 5 / span 8; grid-row: 1; }
.row-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.row-text p:not(.eyebrow):not(.caption) { font-size: 18px; max-width: 26em; }
.still-page { padding-top: 30px; }
.stage + .still-page + .row { padding-top: 130px; }
.motion .stage + .still-page + .row { padding-top: 40px; }
.frame-phone { background: linear-gradient(160deg, var(--ground-2), var(--card)); box-shadow: inset 0 0 0 1px var(--line); }
.frame-phone img { position: absolute; left: 50%; top: 9%; width: 34%; height: auto; transform: translateX(-50%); border-radius: 26px; box-shadow: var(--sheet-shadow); object-fit: initial; }

/* Reveals: one motion for every row. Each .r in a [data-reveal] group fades up, one step after the last. */
.motion [data-reveal] .r { opacity: 0; transform: translateY(28px); transition: opacity var(--reveal) ease, transform var(--reveal) var(--ease); transition-delay: calc(var(--i, 0) * var(--step)); }
.motion [data-reveal].is-in .r { opacity: 1; transform: none; }

/* ---------- The living note ---------- */
.live { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--n-page); box-shadow: var(--sheet-shadow); color: var(--n-body); font: 400 clamp(14px, 1.25vw, 17px)/1.5 var(--sans); }
.note { height: 100%; display: flex; flex-direction: column; }
.note-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 3.4em; padding: 0 1.6em; border-bottom: 1px solid var(--n-line); font-size: 0.82em; color: var(--n-mute); }
.crumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs i { font-style: normal; margin: 0 0.5em; }
.crumbs b { color: var(--n-text); font-weight: 600; }
.here { display: flex; flex: none; }
.chip { display: grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 0.5em; margin-left: -0.45em; border-radius: var(--pill); border: 2px solid var(--n-page); font: 700 0.86em/1 var(--sans); }
.chip.violet { background: var(--violet); color: var(--on-violet); } .chip.blue { background: var(--blue); color: var(--on-blue); }
.chip.host { background: var(--n-host); color: var(--n-on-host); } .chip.amber { background: var(--you); color: var(--on-you); }
.chip-you { opacity: 0; transform: translateX(10px) scale(0.8); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.live.has-you .chip-you { opacity: 1; transform: none; }
.note-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 0.6em 8% 0.8em; }
.note-h { display: flex; align-items: center; gap: 0.5em; margin-top: 0.7em; color: var(--n-text); font: 800 1.55em/1.1 var(--display); font-stretch: 80%; letter-spacing: -0.03em; }
.note-h:first-child { margin-top: 0; }
.dot { flex: none; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--n-amber); }
.todo { margin-top: 0.5em; }
.todo label { display: flex; align-items: center; gap: 0.8em; min-height: 2.5em; cursor: pointer; border-radius: 8px; }
.todo input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { flex: none; display: grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; border: 2px solid var(--n-tick); transition: background 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease); }
.tick::after { content: ""; width: 0.6em; height: 0.32em; margin-top: -0.14em; border: solid var(--n-on-check); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform 240ms var(--ease) 60ms; }
.todo label:hover .tick { border-color: var(--n-check); }
.todo input:checked + .tick { background: var(--n-check); border-color: var(--n-check); }
.todo input:checked + .tick::after { transform: rotate(-45deg) scale(1); }
.todo input:active + .tick { transform: scale(0.88); }
.todo input:focus-visible + .tick { outline: 3px solid var(--focus); outline-offset: 3px; }
.t { position: relative; color: var(--n-body); transition: color 240ms; }
.todo input:checked ~ .t { color: var(--n-mute); text-decoration: line-through; }
.live table { width: 100%; margin-top: 0.6em; border-collapse: separate; border-spacing: 0; border: 1px solid var(--n-line); border-radius: 12px; overflow: hidden; text-align: left; font-size: 0.94em; }
.live th { background: var(--n-soft); color: var(--n-text); font-weight: 700; }
.live th, .live td { padding: 0.55em 1.1em; }
.live td { border-top: 1px solid var(--n-line); }
.live td:first-child { width: 18%; }
.caret { position: relative; display: inline-block; width: 2px; height: 1.3em; margin-left: 1px; vertical-align: -0.28em; border-radius: 1px; transition: opacity 200ms; }
.caret b { position: absolute; left: -1px; bottom: 100%; padding: 5px 7px; border-radius: 7px 7px 7px 2px; font: 700 12px/1 var(--sans); white-space: nowrap; }
.caret.violet, .caret.violet b { background: var(--violet); color: var(--on-violet); }
.caret.blue, .caret.blue b { background: var(--blue); color: var(--on-blue); }
.caret.is-away { opacity: 0; }
[data-live-type] { transition: opacity 400ms; }
.is-clearing [data-live-type] { opacity: 0; }
.todo li:has([data-live-type]:empty) .tick { opacity: 0.35; }

/* The visitor's own pointer, named as a collaborator's is, while it is over the note or the whiteboard. */
.you { position: fixed; left: 0; top: 0; z-index: 40; display: flex; align-items: flex-start; pointer-events: none; color: var(--you); transform: translate(var(--x, -200px), var(--y, -200px)); opacity: 0; transition: opacity 200ms; }
.you svg { width: 16px; height: 16px; margin: 14px 0 0 12px; }
.you span { margin: 27px 0 0 -2px; padding: 5px 7px; border-radius: 2px 7px 7px 7px; background: var(--you); color: var(--on-you); font: 700 12px/1 var(--sans); }
.you.is-on { opacity: 1; }

/* ---------- The floor: the company ---------- */
.floor-band { margin-top: 70px; background: linear-gradient(160deg, var(--band), var(--band-2)); color: var(--on-band-mute); padding: 130px 0 120px; position: relative; overflow: clip; }
.floor-band::before { content: ""; position: absolute; right: 9%; top: 0; width: 13%; height: 70%; background: linear-gradient(var(--spill), transparent); transform-origin: top; transform: skewX(-24deg); opacity: 0.22; filter: blur(6px); pointer-events: none; }
.floor-band .eyebrow { grid-column: 1 / -1; color: var(--on-band-mute); }
.floor-band h2 { grid-column: 1 / span 10; margin-top: 24px; color: var(--on-band); font-size: clamp(34px, 4.6vw, 70px); }
.floor-band em { color: var(--band-accent); }
.ways { grid-column: 1 / -1; margin-top: 90px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.floor-band .ways-lead { margin-top: 90px; }
.ways-lead + .ways { margin-top: 22px; }
.ways li { padding-top: 28px; border-top: 1px solid var(--band-line); }
.ways .n { font: 400 13px/1 var(--mono); color: var(--band-accent); }
.ways h3 { margin-top: 44px; color: var(--on-band); font: 400 30px/1.1 var(--display); letter-spacing: -0.03em; }
.ways p { margin-top: 12px; max-width: 24em; font-size: 16.5px; }

/* ---------- What we make: one entry per product ---------- */
.apps { padding-top: 130px; padding-bottom: 50px; }
.apps .eyebrow { grid-column: 1 / -1; }
.apps h2 { grid-column: 1 / -1; margin-top: 20px; }
.app-list { margin-top: 50px; border-top: 1px solid var(--line); }
.app { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding: 38px 0; border-bottom: 1px solid var(--line); }
.app-icon { grid-column: 1 / span 2; width: 112px; height: 112px; border-radius: 26px; filter: drop-shadow(0 18px 22px var(--room-shadow)); transition: transform 500ms var(--ease); }
.app:hover .app-icon { transform: translateY(-6px) rotate(-3deg); }
.app-body { grid-column: 3 / span 5; }
.app h3 { color: var(--ink); font: 300 clamp(38px, 4.6vw, 66px)/1 var(--display); letter-spacing: -0.045em; }
.app-line { margin-top: 10px; font-size: 19px; }
.facts { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; font: 400 13px/1.4 var(--mono); color: var(--mute); }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--accent); }
.price { grid-column: 8 / span 2; font: 400 13px/1 var(--mono); color: var(--mute); white-space: nowrap; }
.price span { font: 300 44px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); margin-right: 4px; }
.app-go { grid-column: 10 / span 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
/* An entry with no picture or price yet (scratch proofs only). */
.app-icon.blank { display: grid; place-items: center; background: var(--ground-2); color: var(--ink); font: 700 30px/1 var(--mono); filter: none; }

/* ---------- Contact and footer ---------- */
.contact { padding-top: 110px; padding-bottom: 130px; }
.mail { display: inline-block; margin-top: 18px; padding-block: 6px; color: var(--ink); font: 300 clamp(34px, 7.4vw, 118px)/1.05 var(--display); letter-spacing: -0.05em; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size 600ms var(--ease), color var(--fast); }
.mail:hover { background-size: 100% 3px; color: var(--accent-ink); }
footer { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Between a phone and a wide screen: the page faces you at full width, its words beneath ---------- */
@media (max-width: 1099px) {
  .stage-pin { --S: min(var(--cw), (100vh - 330px) * 1.6); --k0: 0.4; --X1: calc(var(--cw) / 2); --Y1: calc(50vh - 70px); }
  .motion .stage-end { left: calc(var(--pad) + (var(--cw) - var(--S)) / 2); top: calc(var(--Y1) + var(--H) / 2 + 26px); width: var(--S); height: auto; gap: 12px; justify-content: flex-start; }
  .stage-end .eyebrow, .stage-end .caption { display: none; }
  .row { padding-top: 60px; padding-bottom: 60px; }
  .row .row-media, .row .row-text { grid-column: 1 / -1; grid-row: auto; }
  .row .row-text { order: -1; margin-bottom: 30px; gap: 14px; }
  .row-text p:not(.eyebrow):not(.caption) { max-width: 34em; }
  .stage + .still-page + .row { padding-top: 90px; }
  .app-body { grid-column: 3 / span 6; }
  .price { grid-column: 9 / span 4; justify-self: end; }
  .app-go { grid-column: 3 / -1; justify-content: flex-start; margin-top: 22px; }
}

@media (max-width: 760px) {
  :root { --pad: 22px; --gap: 16px; }
  .top { height: 68px; }
  .top nav { gap: 0; }
  .top nav a { padding: 0 8px; font-size: 14px; }
  .brand { font-size: 15px; }
  .brand img { height: 19px; }
  .product { grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: 84px; padding-bottom: 24px; }
  h1, .h1 { margin-top: 16px; font-size: clamp(40px, 11.4vw, 64px); }
  .lede { margin-top: 16px; font-size: 16px; line-height: 1.5; }
  .actions { margin-top: 20px; }
  .button { min-height: 48px; padding: 0 22px; }
  .hero-copy .fine { margin-top: 12px; font-size: 13px; }
  .motion .scroll-cue { display: none; }
  .stage-pin { --S: min(var(--cw), (100vh - 360px) * 1.6); --k0: 0.56; --X0: calc(var(--cw) / 2); --Y0: calc(100vh - var(--S) * var(--k0) * 0.74 - 10px); --Y1: calc(50vh - 80px); }
  .has-doors .stage-pin { --Y0: calc(100vh - var(--S) * var(--k0) * 0.74 - 66px); --k0: 0.5; }
  .room-wrap { margin-top: 6px; height: calc(var(--S) * var(--k0) * 1.42); }
  .doors { bottom: 2px; left: 0; max-width: 100vw; padding-inline: var(--pad); transform: none; }
  .door-tab { min-height: 46px; padding: 6px 12px 6px 8px; font-size: 13px; }
  .live { aspect-ratio: auto; font-size: 14.5px; }
  .note-body { padding: 1.2em 1.2em 1.4em; }
  .crumbs { max-width: 58%; }
  .live th, .live td { padding: 0.55em 0.7em; }
  .live td:first-child { width: 12%; }
  .live td:last-child { white-space: nowrap; }
  .frame-phone { aspect-ratio: 4 / 5; }
  .frame-phone img { width: 62%; top: 7%; }
  .floor-band { margin-top: 40px; padding: 84px 0 76px; }
  .floor-band h2 { grid-column: 1 / -1; }
  .ways { margin-top: 52px; grid-template-columns: minmax(0, 1fr); }
  .floor-band .ways-lead { margin-top: 52px; }
  .ways-lead + .ways { margin-top: 16px; }
  .ways li { padding: 22px 0 30px; }
  .ways h3 { margin-top: 16px; font-size: 26px; }
  .apps { padding-top: 84px; padding-bottom: 30px; }
  .app { display: block; padding: 30px 0; }
  .app-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 20px; }
  .price { margin-top: 20px; }
  .app-go { margin-top: 16px; }
  .contact { padding-top: 70px; padding-bottom: 80px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero-copy .fine { display: none; }
  .stage-pin { --k0: 0.46; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
