/* Playground. A quiet studio index: warm paper, ink, one sans and one mono.
   The chrome stays neutral so each sketch brings its own color. */
:root {
  --paper: #F3F1EC; --ink: #121211; --mute: #77736C; --line: rgba(18, 18, 17, .12); --card: #E9E6DF;
  --pad: clamp(16px, 3.2vw, 48px);
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0E0E0D; --ink: #ECEAE4; --mute: #8C8881; --line: rgba(236, 234, 228, .13); --card: #1A1A18; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0E0E0D; --ink: #ECEAE4; --mute: #8C8881; --line: rgba(236, 234, 228, .13); --card: #1A1A18; color-scheme: dark; }

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; font: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.mono { font: 400 12px/1.4 var(--mono); letter-spacing: .02em; text-transform: uppercase; }
.arr { width: .85em; height: .85em; display: inline-block; vertical-align: -.05em; transition: translate .5s var(--ease); }
.arr.flip { rotate: 180deg; }
a:hover .arr { translate: 3px 0; }
a:hover .arr.flip { translate: -3px 0; }
.ul { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.ul:hover { background-size: 0 1px; background-position: 100% 100%; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--pad);
  background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.top h1 { font: 600 15px/1 var(--display); letter-spacing: -.01em; }
.top a, .top .count { font-size: 14px; line-height: 1; }
.top .who, .top .back, .top .nx { display: inline-flex; gap: .5em; align-items: center; }
.top .back .arr, .top .nx .arr { vertical-align: 0; }
.top .count i { font-style: normal; color: var(--mute); }
.top .nx .mono { color: var(--mute); font-size: 12px; }

/* home */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px var(--pad); padding: clamp(56px, 11vw, 168px) var(--pad) clamp(48px, 7vw, 104px); }
.lede { font: 500 clamp(34px, 5.2vw, 80px)/1 var(--display); letter-spacing: -.04em; max-width: 14.5em; text-wrap: balance; }
.lede span { color: var(--mute); }
.index-count { color: var(--mute); padding-bottom: .5em; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 7vw, 112px) var(--pad); padding: 0 var(--pad) clamp(96px, 12vw, 180px); }
.card { display: block; }
.card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--bg); isolation: isolate; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease), opacity .8s var(--ease); }
.card .media.contain img { object-fit: contain; }
.card .loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s var(--ease); background: var(--bg); }
.card .loop.cover { object-fit: cover; }
.card.playing .loop { opacity: 1; }
.card .hint { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 8px 12px 7px; border-radius: 99px; background: rgba(255, 255, 255, .86); color: #121211;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; translate: 0 6px; transition: opacity .45s var(--ease), translate .6s var(--ease); }
.card .meta { display: flex; align-items: baseline; gap: 16px; padding-top: 20px; }
.card h2 { display: flex; gap: .55em; font: 500 clamp(24px, 2.3vw, 34px)/1.05 var(--display); letter-spacing: -.03em; }
.card h2 .n { color: var(--mute); font-variant-numeric: tabular-nums; }
.card .runs { margin-left: auto; color: var(--mute); text-align: right; }
.card .line { margin-top: 8px; color: var(--mute); max-width: 34em; }
/* with an odd count, the first piece leads at full width so the grid stays even */
@media (min-width: 901px) {
  .grid .card:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .grid .card:first-child:nth-last-child(odd) .media { aspect-ratio: 21 / 10; }
  .grid .card:first-child:nth-last-child(odd) h2 { font-size: clamp(30px, 3vw, 44px); }
}
@media (hover: hover) {
  .card:hover .media img { scale: 1.035; }
  .card:hover .hint { opacity: 1; translate: 0 0; }
}

/* a sketch */
.sk-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; padding: clamp(32px, 6vw, 96px) var(--pad) clamp(72px, 10vw, 152px); }
.sk-text { position: sticky; top: 96px; max-width: 32em; }
.kicker { display: flex; gap: 14px; color: var(--mute); }
.kicker span { color: var(--ink); }
.sk-hero h1 { margin-top: 22px; font: 500 clamp(56px, 7.6vw, 124px)/.92 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.tag { margin-top: 28px; font: 500 clamp(20px, 1.8vw, 26px)/1.25 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.about { margin-top: 20px; color: var(--mute); font-size: 17px; max-width: 30em; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; }
.go .mono { color: var(--mute); }
.btn { display: inline-flex; align-items: center; gap: .6em; padding: 15px 22px 14px; border-radius: 99px; background: var(--ink); color: var(--paper); font: 500 15px/1 var(--sans);
  transition: background .4s var(--ease), color .4s var(--ease), scale .4s var(--ease); }
.btn:hover { background: var(--ac); color: var(--bg); }
.btn:active { scale: .97; }

.sk-stage { border-radius: var(--r); overflow: hidden; background: var(--bg); }
.stage-phone { display: grid; place-items: center; padding: clamp(40px, 6vw, 96px) 0; }
.start { position: absolute; left: 50%; bottom: 7%; translate: -50% 0; z-index: 2; white-space: nowrap; cursor: pointer; border: 0; border-radius: 99px; padding: 14px 22px 13px;
  font: 500 15px/1 var(--sans); background: rgba(255, 255, 255, .9); color: #121211; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); transition: background .4s var(--ease), color .4s var(--ease), scale .4s var(--ease), translate .5s var(--ease); }
.start:hover { background: #121211; color: #fff; translate: -50% -2px; }
.wide .start { left: auto; right: 3.5%; bottom: 5.5%; translate: 0 0; }
.wide .start:hover { translate: 0 -2px; }
.start:active { scale: .97; }
.phone, .wide { position: relative; overflow: hidden; background: #000; }
.phone { width: min(340px, 72vw); aspect-ratio: 390 / 844; border-radius: 34px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .08); }
.wide { width: 100%; aspect-ratio: 16 / 10; }
.wide.still { aspect-ratio: auto; background: var(--bg); }
.phone img, .wide img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.wide.still img { height: auto; }
[data-embed]:hover > img { scale: 1.02; }
.phone iframe, .wide iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

.sk-body { display: grid; gap: clamp(80px, 11vw, 168px); padding: 0 var(--pad) clamp(96px, 12vw, 176px); }
.block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 88px); border-top: 1px solid var(--line); padding-top: 24px; }
.block h2 { color: var(--mute); }
.does { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 48px); }
.does li { display: grid; gap: 10px; align-content: start; }
.does .mono { color: var(--mute); }
.does b { font: 500 21px/1.2 var(--display); letter-spacing: -.02em; }
.does p { color: var(--mute); }
.made-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.made { display: grid; gap: 0; }
.made li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; text-wrap: pretty; }
.made li:first-child { padding-top: 0; }
.facts { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px 16px; }
.facts dd { overflow-wrap: anywhere; }
.facts dt { color: var(--mute); padding-top: .25em; }

.gallery { display: grid; gap: var(--pad); margin-inline: calc(-1 * var(--pad)); padding: clamp(40px, 6vw, 88px) var(--pad); background: var(--bg); }
.strip { display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip > figure { flex: none; scroll-snap-align: center; }
.strip img, .strip video { height: min(640px, 74vh); width: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 22px; background: #000; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.wides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.wides.one { grid-template-columns: minmax(0, 1fr); max-width: 1100px; margin-inline: auto; width: 100%; }
.wides img { width: 100%; border-radius: var(--r); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .4); }

.pager { padding: 0 var(--pad) clamp(64px, 8vw, 112px); display: grid; gap: 28px; }
.next { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lbl media" "name media"; align-items: end; gap: 12px var(--pad); border-top: 1px solid var(--line); padding-top: 24px; }
.next .mono { grid-area: lbl; color: var(--mute); align-self: start; }
.next b { grid-area: name; font: 500 clamp(44px, 7vw, 112px)/.92 var(--display); letter-spacing: -.05em; text-wrap: balance; }
.next b .nw { white-space: nowrap; }
.next b .arr { width: .5em; height: .5em; vertical-align: .08em; }
.next-media { grid-area: media; width: clamp(140px, 22vw, 320px); aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg); }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.next:hover .next-media img { scale: 1.05; }
.prev { color: var(--mute); justify-self: start; transition: color .3s; }
.prev:hover { color: var(--ink); }

.foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 24px var(--pad) 32px; border-top: 1px solid var(--line); margin-inline: var(--pad); padding-inline: 0; font-size: 14px; }
.foot .mono { color: var(--mute); }
.foot a { transition: opacity .3s; }
.foot a:hover { opacity: .6; }

/* the Notch Prompter demo: a laptop top edge, the notch, and the pill that hangs from it */
.mac { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 90% at 30% 100%, #3b2a55 0%, #1c2242 45%, #0f1020 100%); }
.mac-bar { position: absolute; inset: 0 0 auto 0; height: 5.5%; background: #000; }
.mac-bar i { position: absolute; left: 50%; top: 0; width: 17%; height: 190%; translate: -50% 0; background: #000; border-radius: 0 0 12px 12px; }
.mac-bar i::after { content: ""; position: absolute; left: 50%; top: 32%; width: 7px; height: 7px; translate: -50% 0; border-radius: 50%; background: #1d2b3a; box-shadow: 0 0 0 2px #0c0c0e, 0 0 6px #5BE37D; }
.pill { position: absolute; left: 50%; top: 5%; width: min(74%, 560px); translate: -50% 0; background: #000; color: #fff; border-radius: 0 0 28px 28px; padding: 9% 5% 4%; text-align: center; transform-origin: 50% 0; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; }
.pill.up { transform: translateY(-40%) scaleY(.4); opacity: 0; }
.pill-card { font: 600 clamp(14px, 1.75vw, 22px)/1.4 -apple-system, "SF Pro Text", Inter, system-ui, sans-serif; min-height: 4.2em; text-wrap: balance; }
.pill-card span { transition: color .18s; }
.pill-card span.said { color: #4DEB73; }
.pill-hd { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #8c8c8c; }
.pill-hd b { color: #FF4D40; font-weight: 500; }
.pill-hd b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: .2; } }
.mac-note { position: absolute; inset: auto 0 5% 0; text-align: center; font: 500 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }

/* motion: things rise into place as they scroll in, and pages cross-fade */
.js .rv { opacity: 0; translate: 0 28px; transition: opacity 1s var(--ease) var(--d, 0ms), translate 1.2s var(--ease) var(--d, 0ms); }
.js .rv.in { opacity: 1; translate: 0 0; }
.js .sk-text > *, .js .sk-stage { animation: rise 1.1s var(--ease) both; }
.js .sk-text > :nth-child(2) { animation-delay: 60ms; } .js .sk-text > :nth-child(3) { animation-delay: 120ms; }
.js .sk-text > :nth-child(4) { animation-delay: 180ms; } .js .sk-text > :nth-child(5) { animation-delay: 240ms; }
.js .sk-stage { animation-delay: 140ms; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
.js img.fade { opacity: 0; } .js img.fade.ok { opacity: 1; transition: opacity .8s var(--ease); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease); }

@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .sk-hero, .block { grid-template-columns: minmax(0, 1fr); }
  .sk-text { position: static; }
  .sk-stage { order: -1; }
  .does { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --r: 4px; }
  .top { padding-block: 14px; }
  .top .nx .mono, .top .count { display: none; }
  .intro { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .index-count { padding: 0; }
  .grid { gap: 56px; }
  .card .meta { flex-direction: column; gap: 6px; padding-top: 16px; }
  .card .runs { margin-left: 0; text-align: left; }
  .sk-hero { padding-top: 8px; gap: 32px; padding-inline: 0; }
  .sk-hero .sk-text { padding-inline: var(--pad); }
  .sk-stage { border-radius: 0; }
  .phone { width: min(260px, 66vw); border-radius: 28px; }
  .strip img, .strip video { height: min(520px, 62vh); border-radius: 18px; }
  .wides { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: 6em minmax(0, 1fr); }
  .next { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "lbl" "name"; }
  .next-media { width: 100%; }
  .foot { flex-wrap: wrap; }
  .foot .mono { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; translate: none; }
}

/* home hero: the floating objects from Objects, Suspended, around the title */
.hero { position: relative; height: calc(100svh - 56px); min-height: 520px; overflow: hidden; margin-bottom: clamp(48px, 6vw, 96px); }
.ob-layer { position: absolute; inset: 0; pointer-events: none; }
.ob { position: absolute; top: 0; left: 0; perspective: 900px; pointer-events: auto; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.ob .spin { width: 100%; height: 100%; will-change: transform; }
.ob img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.hero-txt { position: absolute; left: 50%; top: 47%; translate: -50% -50%; z-index: 2; width: min(880px, calc(100% - 2 * var(--pad))); text-align: center; pointer-events: none; }
.hero-k { color: var(--mute); }
.hero-t { margin-top: 0; font: 600 clamp(64px, 12vw, 190px)/.9 var(--display); letter-spacing: -.055em; }
.hero-l { margin: 22px auto 0; max-width: 30em; font: 500 clamp(17px, 1.5vw, 22px)/1.35 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.hero-l span { color: var(--mute); }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 4; color: var(--mute); display: flex; gap: 8px; }
.hero-scroll span { display: inline-block; animation: hbob 1.8s ease-in-out infinite; }
@keyframes hbob { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll span { animation: none; } }

/* a film piece: the video itself is the stage */
.wide.film { aspect-ratio: 16 / 9; }
.wide.film video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* full screen button, top right of each stage */
.fs { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; border: 0; border-radius: 99px;
  background: rgba(18, 18, 17, .55); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: .85; transition: opacity .3s var(--ease), background .3s var(--ease), scale .3s var(--ease); }
.fs svg { width: 15px; height: 15px; }
.fs:hover { opacity: 1; background: rgba(18, 18, 17, .85); scale: 1.06; }
.wide.film .fs { top: 12px; }
.wide:fullscreen, .phone:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; background: #000; }
.wide:fullscreen img { object-fit: contain; }
.wide:-webkit-full-screen { width: 100vw; height: 100vh; aspect-ratio: auto; }
