/* Rocha: my cut of Host Grotesk (OFL). The free tops of the stems are chiselled at the angle of the Monolito mark. */
@font-face { font-family: "Rocha"; src: url("/alberto/fonts/rocha.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --bg: #120c16;
  --panel: #170f1c;
  --ink: #eee8f2;
  --mute: #9a8fa6;
  --line: rgb(238 232 242 / 0.12);
  --plum: #3b2147;
  --mauve: #8a5f9e;
  --lilac: #d8c6ea;
  --peach: #e3a99f;
  /* dawn: the same sky, a few hours later */
  --d-ink: #22131f;
  --d-mute: #6b5566;
  --d-line: rgb(34 19 31 / 0.1);
  --pad: clamp(20px, 3.4vw, 48px);
  /* one family, six sizes */
  --t-xs: 13px;
  --t-sm: 15px;
  --t-md: 17px;
  --t-lg: clamp(19px, 1.5vw, 23px);
  --t-xl: clamp(44px, 5.6vw, 92px);
  --t-2xl: clamp(56px, 9.6vw, 160px);
  /* three radii: pill, piece, sheet */
  --r: 20px;
  --r-l: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 var(--t-md)/1.55 "Rocha", system-ui, sans-serif; caret-color: var(--lilac); accent-color: var(--lilac);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.lbl { font-size: var(--t-xs); line-height: 1.4; color: var(--mute); font-variant-numeric: tabular-nums; }
::selection { background: var(--lilac); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--lilac); outline-offset: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The sky: a plum light from above, a dusk horizon below, and paper grain over everything */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -8%, rgb(59 33 71 / 0.95), transparent 70%),
    radial-gradient(90% 45% at 50% 112%, rgb(201 143 138 / 0.28), rgb(138 95 158 / 0.22) 38%, transparent 72%),
    var(--bg);
}
.sky::after {
  content: ""; position: absolute; inset: 0; opacity: 0.11; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
#stage.on { opacity: 1; }

/* Nav: turns to ink when it floats over the dawn */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad); gap: 24px; transition: color 0.4s;
}
.nav::before { content: ""; position: absolute; inset: 0 0 -20px; z-index: -1; background: linear-gradient(to bottom, rgb(18 12 22 / 0.86) 55%, transparent); transition: opacity 0.4s; }
.nav::after { content: ""; position: absolute; inset: 0 0 -20px; z-index: -1; background: linear-gradient(to bottom, rgb(244 234 238 / 0.97) 62%, rgb(244 234 238 / 0)); opacity: 0; transition: opacity 0.4s; }
.nav.light { color: var(--d-ink); }
.nav.light::before { opacity: 0; }
.nav.light::after { opacity: 1; }
.nav.light .btn.solid { background: var(--d-ink); color: #f9ecf0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: var(--t-sm); }
.brand .mark { width: 27px; height: 21px; fill: currentColor; flex: none; }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: var(--t-sm); }
.nav nav a { opacity: 0.68; transition: opacity 0.3s; }
.nav nav a:hover { opacity: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px 0 22px; border-radius: 999px; font-weight: 500; font-size: var(--t-md); white-space: nowrap; transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.3s; }
.btn.sm { height: 40px; padding: 0 16px 0 18px; font-size: var(--t-sm); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.ghost { border: 1px solid rgb(238 232 242 / 0.28); }
.btn:hover { transform: translateY(-2px); }
.btn.ghost:hover { border-color: var(--lilac); }
.ic { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.ic.play { fill: currentColor; stroke-width: 1; }
.btn:hover .ic, .link:hover .ic { transform: translate(2px, -2px); }
.btn:hover .ic.play { transform: scale(1.15); }
.round { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgb(238 232 242 / 0.28); display: grid; place-items: center; transition: border-color 0.3s, transform 0.4s var(--ease); }
.round:hover { border-color: var(--lilac); transform: rotate(90deg); }



/* Text reveal, word by word */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.16em; margin-bottom: -0.16em; } /* room for Rocha's descenders (g, y, p) */
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: 0.25s; }
.reveal.in { opacity: 1; transform: none; }
.br { display: block; }

/* Slots: invisible anchors the stones fly to */
.slot { position: absolute; aspect-ratio: 1; pointer-events: none; }

/* No 3D on this device (LITE, or it failed): the stones appear as their Blender renders, in the same places.
   If the 3D gives up halfway, the canvas fades out while the renders fade in. */
.no3d #stage { opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease), visibility 0s 0.8s; }
.no3d .hint { display: none; }
.no3d .slot { animation: show 0.8s var(--ease) both; }
.no3d .slot::before { content: ""; position: absolute; inset: -25%; background: var(--render) center / contain no-repeat; }
@keyframes show { from { opacity: 0; } }
.slot[data-piece="cube"]   { --render: url("/alberto/stones/cube.webp"); }
.slot[data-piece="cursor"] { --render: url("/alberto/stones/cursor.webp"); }
.slot[data-piece="spark"]  { --render: url("/alberto/stones/spark.webp"); }
.slot[data-piece="play"]   { --render: url("/alberto/stones/play.webp"); }
.slot[data-piece="dots"]   { --render: url("/alberto/stones/dots.webp"); }
#diag { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 99; padding: 10px 12px; border-radius: 10px; background: rgb(0 0 0 / 0.85); color: #9fe3bd; font: 11px/1.45 ui-monospace, monospace; }
#diag strong { display: block; color: #fff; font-weight: 600; }
#diag pre { margin: 6px 0 0; font: inherit; white-space: pre-wrap; max-height: 32vh; overflow: auto; }

/* 1 · Hero */
.hero { position: relative; overflow: clip; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--pad) 96px; }
.hero-copy { position: relative; z-index: 2; max-width: 1240px; }
.hero h1 { font-weight: 500; font-size: var(--t-xl); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.lede { margin-top: 26px; color: var(--mute); font-size: var(--t-lg); letter-spacing: -0.01em; }
.ctas { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.status { position: absolute; bottom: 30px; left: 0; right: 0; padding: 0 var(--pad); text-align: center; line-height: 1.9; }
.status .nw { white-space: nowrap; }
.hint { position: absolute; bottom: 30px; right: var(--pad); opacity: 0.85; }
.hero .slot[data-piece="cursor"] { left: 9%; top: 25%; width: 14vw; }
.hero .slot[data-piece="cube"]   { left: 90%; top: 23%; width: 15vw; }
.hero .slot[data-piece="spark"]  { left: 97%; top: 55%; width: 10vw; }
.hero .slot[data-piece="play"]   { left: 19%; top: 75%; width: 13vw; }
.hero .slot[data-piece="dots"]   { left: 83%; top: 76%; width: 13.5vw; }
.hero .slot { transform: translate(-50%, -50%); }

/* Section heads */
section { position: relative; }
.sec-head { padding: 0 var(--pad); max-width: 1440px; margin: 0 auto 72px; }
.sec-head h2, .tools h2, .about h2 { font-weight: 500; font-size: var(--t-xl); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; text-wrap: balance; }
.sec-sub { margin-top: 18px; color: var(--mute); font-size: var(--t-lg); }

/* 2 · Services: rawlab rhythm, one big stone per service */
.services { padding: 160px 0 120px; }
.svc-list { list-style: none; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.svc { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: min(78vh, 720px); border-top: 1px solid var(--line); }
.svc .slot { position: relative; width: min(30vw, 420px); justify-self: center; }
.svc-copy { max-width: 460px; }
.svc.flip .slot { order: 2; }
.svc h3 { font-weight: 500; font-size: var(--t-xl); letter-spacing: -0.04em; line-height: 1; margin-bottom: 22px; }
.svc p { color: var(--mute); font-size: var(--t-md); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li, .made li { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(238 232 242 / 0.16); font-size: var(--t-xs); color: var(--ink); }

/* 3 · Work: one spread per screen. Each one sticks, and the next slides over it. */
.work { padding: 140px 0 0; }
.work .sec-head { margin-bottom: 56px; }
.panel { position: sticky; top: 0; height: 100vh; height: 100svh; }
/* each spread rests for --hold of scroll before the next one slides over it (24 nov: "the next card arrives too soon").
   The last one rests on the stack's ::after, so the dawn still follows it with no gap. */
.stack { --hold: 60vh; --hold: 60svh; }
.panel:not(:last-child) { margin-bottom: var(--hold); }
.stack::after { content: ""; display: block; height: var(--hold); }
.spread {
  --frame-w: min(64vw, calc((100svh - 232px) * 16 / 9));
  position: relative; height: 100%; display: grid;
  grid-template-columns: minmax(0, 1fr) var(--frame-w); grid-template-rows: auto minmax(0, 1fr);
  column-gap: 48px; padding: 92px var(--pad) 40px;
  background: var(--panel); border-radius: var(--r-l) var(--r-l) 0 0; border-top: 1px solid var(--line);
  box-shadow: 0 -30px 60px -20px rgb(0 0 0 / 0.55);
  transform: scale(var(--s, 1)); transform-origin: 50% 0;
}
.spread::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #07040a; opacity: var(--dim, 0); pointer-events: none; }
.row { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.row span:first-child { color: var(--ink); }
.info { align-self: end; min-width: 0; }
.name { font-weight: 500; font-size: var(--t-xl); line-height: 0.96; letter-spacing: -0.04em; }
.q { margin-top: 20px; font-size: var(--t-lg); line-height: 1.25; letter-spacing: -0.015em; max-width: 24ch; }
.meta { margin-top: 16px; color: var(--mute); font-size: var(--t-sm); line-height: 1.5; max-width: 46ch; }
.acts { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.dur { opacity: 0.68; font-variant-numeric: tabular-nums; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--t-sm); border-bottom: 1px solid rgb(238 232 242 / 0.3); padding-bottom: 2px; transition: border-color 0.3s; }
.link:hover { border-color: var(--ink); }
.made { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.made li:has(svg) { padding-left: 8px; }
.made svg { width: 16px; height: 16px; }
.frame { align-self: end; position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: 100%; border-radius: var(--r); overflow: hidden; background: #0c080f; isolation: isolate; }
.frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); }

/* 4 · Dawn: the cut face of the stone. One flat, warm tone with the same grain as the night, no blobs, no cards. */
.dawn {
  position: relative; isolation: isolate; color: var(--d-ink); color-scheme: light;
  margin: 0 clamp(8px, 1vw, 14px); border-radius: var(--r-l); overflow: clip;
  background: #f4eaee;
}
.dawn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.42 0 0 0 0 0.5 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dawn .lbl { color: var(--d-mute); }
.dawn ::selection { background: var(--d-ink); color: #f4eaee; }
.dawn :focus-visible { outline-color: var(--mauve); }
.tools { max-width: 1440px; margin: 0 auto; padding: 150px var(--pad) 120px; }
.tools-head { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; margin-bottom: 96px; }
.steps { list-style: none; display: grid; }
.steps li { display: grid; grid-template-columns: 44px 1fr; color: var(--d-mute); padding: 14px 0; border-top: 1px solid var(--d-line); }
.steps .lbl { padding-top: 3px; }
/* the team: each tool an app icon that leans toward the cursor */
.tool-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool {
  padding: 26px 28px 30px; border-radius: 28px;
  background: rgb(255 255 255 / 0.5); border: 1px solid rgb(34 19 31 / 0.06);
  transition: transform 0.6s var(--ease), background 0.4s, box-shadow 0.6s var(--ease);
}
.tool:hover { transform: translateY(-4px); background: rgb(255 255 255 / 0.82); box-shadow: 0 34px 60px -34px rgb(122 60 96 / 0.4); }
.app {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 28px; color: #000;
  background: linear-gradient(155deg, #fffaf8 0%, var(--tile) 62%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -10px 22px -14px rgb(60 20 40 / 0.18), 0 18px 34px -18px color-mix(in srgb, var(--tile) 55%, #7a3f66);
  transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(var(--r, 0deg));
  transition: transform 0.7s var(--ease);
}
.app svg { width: 60px; height: 60px; transition: transform 0.7s var(--ease); }
.tool:hover .app svg { transform: scale(1.08); }
.tool h3 { margin-top: 26px; font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.02em; }
.tool p { margin-top: 8px; color: var(--d-mute); line-height: 1.45; max-width: 34ch; }
.also { margin-top: 28px; color: var(--d-mute); }

/* 5 · About */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; max-width: 1440px; margin: 0 auto; padding: 40px var(--pad) 150px; }
.photo { justify-self: end; width: min(100%, 540px); }
.photo img { display: block; border-radius: var(--r); width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; box-shadow: 0 40px 80px -48px rgb(120 50 80 / 0.5); }
.about-copy > p { margin-top: 28px; color: var(--d-mute); font-size: var(--t-lg); line-height: 1.5; max-width: 50ch; }
.facts { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.facts div { padding: 16px 0 20px; border-top: 1px solid var(--d-line); }
.facts dd { margin-top: 6px; line-height: 1.45; }
.facts a { border-bottom: 1px solid rgb(34 19 31 / 0.3); transition: border-color 0.3s; }
.facts a:hover { border-color: var(--d-ink); }

/* 6 · Contact, and my name for the stones to land on */
.contact { padding: 190px var(--pad) 0; text-align: center; display: flex; flex-direction: column; align-items: center; overflow: clip; }
.contact h2 { font-weight: 500; font-size: var(--t-2xl); line-height: 0.95; letter-spacing: -0.045em; }
.ask { position: relative; width: min(100%, 680px); margin-top: 46px; display: grid; gap: 28px; text-align: left; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 8px; }
.field .lbl { transition: color 0.3s; }
.field:focus-within .lbl { color: var(--lilac); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--t-lg); letter-spacing: -0.01em; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgb(238 232 242 / 0.22); border-radius: 0; padding: 6px 0 12px; outline: none;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.field textarea { min-height: 92px; line-height: 1.45; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--lilac); box-shadow: 0 1px 0 var(--lilac); }
.field ::placeholder { color: rgb(154 143 166 / 0.7); }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--bg) inset; -webkit-text-fill-color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.said { color: var(--mute); font-size: var(--t-sm); }
.said a { color: var(--ink); border-bottom: 1px solid rgb(238 232 242 / 0.3); }
.ask.sent .roll > span:first-child { transform: translateY(-110%); }
.ask.sent .roll > span + span { transform: none; }
.ask.sent .field { opacity: 0.45; transition: opacity 0.6s; }
.mail { display: flex; align-items: center; gap: 12px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }
.or { color: var(--mute); }
.email { font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid rgb(238 232 242 / 0.3); transition: text-shadow 1.2s var(--ease), border-color 1.2s; }
.contact.lit .email { text-shadow: 0 0 28px rgb(216 198 234 / 0.65); border-color: var(--lilac); }
.roll { display: inline-grid; height: 1.3em; line-height: 1.3em; overflow: hidden; }
.roll > span { grid-area: 1 / 1; transition: transform 0.55s var(--ease); }
.roll > span + span { transform: translateY(110%); }
.copy.done .roll > span:first-child { transform: translateY(-110%); }
.copy.done .roll > span + span { transform: none; }
.links { list-style: none; display: flex; gap: 24px; margin-top: 26px; color: var(--mute); }
.links a { transition: color 0.3s; }
.links a:hover { color: var(--ink); }
.bigname { position: relative; width: calc(100% + 2 * var(--pad)); margin-top: clamp(150px, 22vh, 240px); text-align: center; }
.name-line {
  display: inline-block; font-weight: 500; font-size: 13vw; line-height: 0.8; letter-spacing: -0.065em; white-space: nowrap;
  padding: 0 0 0.06em; user-select: none; -webkit-user-select: none;
  color: var(--ink); -webkit-mask-image: linear-gradient(180deg, #000 30%, rgb(0 0 0 / 0.38) 100%); mask-image: linear-gradient(180deg, #000 30%, rgb(0 0 0 / 0.38) 100%);
}
.name-line span {
  display: inline-block; padding: 0.14em 0.06em 0.12em; margin: -0.14em -0.06em -0.12em; /* room for the round letters, which overshoot their box */ font-variation-settings: "wght" var(--w, 500);
}
.pile { position: absolute; inset: 0; pointer-events: none; }
/* each stone rests on the ink of a letter: across the l and b, on the e and the o, on the R and the h (app.js places them) */
.pile .slot { transform: translate(-50%, -90%); width: clamp(56px, 8.6vw, 150px); }
.pile .slot[data-piece="spark"] { width: clamp(44px, 6.4vw, 112px); }

/* Footer: small, quiet and useful */
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px; padding: 22px var(--pad) 26px; border-top: 1px solid var(--line); }
.clock { color: var(--ink); font-variant-numeric: tabular-nums; margin-left: 6px; }
.clock .c { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.colophon a { border-bottom: 1px solid rgb(154 143 166 / 0.4); transition: color 0.3s, border-color 0.3s; }
.colophon a:hover { color: var(--ink); border-color: var(--ink); }
.up { display: inline-flex; align-items: center; gap: 8px; color: var(--ink) !important; }
.up:hover .ic { transform: translateY(-3px); }

/* The film, with sound */
.film { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: clamp(16px, 4vw, 64px); background: rgb(9 5 11 / 0.94); color: var(--ink); place-items: center; }
.film[open] { display: grid; animation: in 0.5s var(--ease); }
.film::backdrop { background: transparent; }
.film video { width: 100%; height: auto; max-height: 100%; border-radius: var(--r); background: #000; }
.film .close { position: absolute; top: 18px; right: 18px; background: rgb(18 12 22 / 0.6); }
@keyframes in { from { opacity: 0; transform: scale(0.98); } }

/* Tablets and phones: the spread becomes a column, still one per screen */
@media (max-width: 960px) {
  :root { --r-l: 28px; }
  .spread { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; padding: 78px 16px 22px; }
  .row { margin-bottom: 14px; padding-bottom: 12px; }
  .frame { grid-row: 2; aspect-ratio: auto; height: 100%; align-self: stretch; }
  .info { grid-row: 3; padding-top: 20px; }
  .q { margin-top: 12px; max-width: 26ch; }
  .meta { display: none; }
  .acts { margin-top: 18px; gap: 16px; }
  .made { margin-top: 16px; }
  .tools-head { grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) and (max-height: 600px) { .made { display: none; } }
@media (max-width: 760px) {
  :root { --r: 16px; --r-l: 28px; --t-xl: 38px; } /* Rocha runs wider than Geist: at 44px the hero filled the screen edge to edge */
  .nav nav { display: none; }
  .hero { padding-top: 110px; }
  .hero h1 .br { display: none; }
  .hint { display: none; }
  .status { bottom: 22px; }
  .hero .slot[data-piece="cursor"] { left: 18%; top: 19%; width: 32vw; }
  .hero .slot[data-piece="cube"]   { left: 80%; top: 18%; width: 34vw; }
  .hero .slot[data-piece="play"]   { left: 22%; top: 82%; width: 30vw; }
  .hero .slot[data-piece="dots"]   { left: 78%; top: 83%; width: 31vw; }
  .hero .slot[data-piece="spark"]  { left: 104%; top: 50%; width: 18vw; }
  .svc { grid-template-columns: 1fr; min-height: auto; padding: 56px 0; gap: 18px; }
  .svc.flip .slot { order: 0; }
  .svc .slot { width: 62vw; }
  .about { grid-template-columns: 1fr; padding-top: 10px; padding-bottom: 110px; }
  .photo { justify-self: stretch; }
  .facts { grid-template-columns: 1fr; }
  .dawn { margin: 0 6px; }
  .tools { padding: 100px 18px 70px; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; padding: 16px 18px 18px 16px; border-radius: 22px; }
  .app { grid-row: span 2; width: 64px; height: 64px; border-radius: 18px; align-self: start; }
  .app svg { width: 38px; height: 38px; }
  .tool h3 { margin-top: 0; }
  .tool p { margin-top: 2px; font-size: var(--t-sm); }
  .contact { padding-top: 140px; }
  .contact .br { display: none; }
  .two { grid-template-columns: 1fr; }
  .bigname { margin-top: 140px; }
  .pile .slot { width: 12.5vw; }
  .pile .slot[data-piece="spark"] { width: 9.5vw; }
  .foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .split .w > span, .reveal { transition: none; transform: none; opacity: 1; }
  .spread, .frame video, .app { transform: none !important; }
  .spread::after { opacity: 0 !important; }
  .clock .c { animation: none; }
}
