/* maxsorto.com
   Palette is lifted from the avatar: its ink, its paper, its skin, its glasses.
   Each project room then borrows that project's own colors. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #34292c;
  --room: #1b1417;
  --room-2: #261c20;
  --paper: #f4f2e1;
  --skin: #f7e6d2;
  --peach: #f4c5a3;
  --navy: #192241;
  --stubble: #4f4343;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* touch-action: manipulation turns off double-tap zoom everywhere (fast taps on the
   handheld's buttons were zooming the page). Pinch zoom still works for people who need it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; }
body {
  margin: 0;
  background: var(--room);
  color: var(--paper);
  font-family: var(--text);
  font-size: clamp(1.0625rem, .98rem + .3vw, 1.1875rem);
  line-height: 1.58;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--peach); color: var(--ink); }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 50;
  background: var(--paper); color: var(--ink); padding: .6rem 1rem;
  font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */
.title {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.6rem, 8.6vw, 7.25rem);
  line-height: .88;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.title-sm { font-size: clamp(2rem, 5.2vw, 4rem); }
.lead {
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem);
  line-height: 1.2;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.fine { font-size: .92em; opacity: .74; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; }
.btn {
  display: inline-block;
  font-family: var(--display); font-stretch: 108%; font-weight: 650;
  font-size: .95rem; letter-spacing: .005em; line-height: 1;
  padding: .95em 1.35em; border-radius: .35rem;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: #f5f6fa; color: #08090c; }
.btn-light:hover { background: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #1b1417; }
.link {
  font-family: var(--display); font-stretch: 104%; font-weight: 550; font-size: .95rem;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .28em;
}
.link:hover { text-decoration-thickness: 3px; }

/* =====================================================
   HERO: the shelf
   ===================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--room);
  --s: clamp(148px, min(31svh, 27vw), 310px);
}
.light { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero.no-gl { background: radial-gradient(60% 50% at 50% 62%, color-mix(in srgb, var(--peach) 26%, transparent), transparent 70%), var(--room); }

.nav {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: clamp(1rem, 2.4vh, 1.75rem) var(--gutter) 0;
}
.wordmark {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none;
}
.nav ul { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); }
.nav ul a {
  font-family: var(--display); font-stretch: 104%; font-weight: 500; font-size: .92rem;
  text-decoration: none; opacity: .78;
}
.nav ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }

.pitch {
  padding: clamp(1.25rem, 4.2vh, 3rem) var(--gutter) 0;
  display: grid; gap: clamp(.75rem, 1.6vh, 1.25rem);
  grid-template-columns: minmax(0, 46rem) minmax(0, 27rem);
  justify-content: space-between; align-items: end;
}
.pitch h1 {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(2.1rem, 1rem + 3.3vw, 4rem);
  line-height: .96; letter-spacing: -.028em;
  text-wrap: balance;
}
.pitch-turn { display: block; }
.pitch p { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.5; opacity: .88; text-wrap: balance; }

/* the shelf itself */
.shelf {
  position: relative;
  align-self: end;
  height: calc(var(--s) * 1.4);
  margin-top: clamp(1rem, 3vh, 2.5rem);
  perspective: calc(var(--s) * 3.3);
  perspective-origin: 50% 40%;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.shelf.is-dragging { cursor: grabbing; }
/* covers are dragged, never text-selected, image-dragged or long-pressed for a callout */
.shelf, .cover { -webkit-touch-callout: none; }
.cover .art { pointer-events: none; }
.cover img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.cover {
  position: absolute; left: 50%; top: 0;
  width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2);
  padding: 0; border: 0; background: none; cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.cover:focus-visible { outline: none; }
.cover:focus-visible .art:not(.refl) { box-shadow: 0 0 0 3px var(--room), 0 0 0 6px var(--peach); }
.art {
  position: absolute; inset: 0; display: block; overflow: hidden;
  border-radius: 2.5%;
  container-type: inline-size;
  background: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset;
}
.art::after { content: ""; position: absolute; inset: 0; background: #120c0e; opacity: var(--dim, 0); pointer-events: none; }
.art img, .art svg { width: 100%; height: 100%; object-fit: cover; }
.art.refl {
  inset: auto; left: 0; top: 100%; width: 100%; height: 100%; margin-top: 1.5%;
  transform: scaleY(-1);
  opacity: .5;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.35) 18%, transparent 46%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.35) 18%, transparent 46%);
  pointer-events: none;
  box-shadow: none;
}

/* cover art: max */
.art-max { background: var(--paper); }
.art-max img { position: absolute; width: 80%; height: auto; right: -3%; bottom: 0; object-fit: contain; }
.art-max-name {
  position: absolute; left: 6cqw; top: 5cqw; z-index: 1; text-align: left;
  font-family: var(--display); font-stretch: 125%; font-weight: 850; color: var(--ink);
  font-size: 8.6cqw; line-height: .86; letter-spacing: -.03em;
}
/* cover art: phosphene */
.art-phosphene-name {
  position: absolute; left: 0; right: 0; bottom: 7cqw; text-align: center; color: #fff;
  font-family: var(--display); font-stretch: 100%; font-weight: 250; font-size: 8.4cqw; letter-spacing: .2em; text-indent: .2em;
  text-shadow: 0 0 5cqw rgba(0,0,0,.9), 0 0 1.5cqw rgba(0,0,0,.8);
}
/* cover captions: shared by the work covers and pocket mods */
.art-cap { position: absolute; left: 6cqw; right: 6cqw; bottom: 5.5cqw; display: grid; gap: 1.6cqw; text-align: left; color: #fff; font-family: var(--display); }
.art-cap b { font-stretch: 114%; font-weight: 800; font-size: 9.2cqw; line-height: .95; letter-spacing: -.03em; }
.art-cap i { font-style: normal; font-stretch: 100%; font-weight: 550; font-size: 4.5cqw; opacity: .92; }
.art-cap-narrow { right: 46cqw; }
.art-cap-center { text-align: center; bottom: 5cqw; }
.art-cap-center b { font-size: 8.4cqw; }
/* cover art: glassback (the black mirror) */
.art-glassback img { filter: contrast(1.08) brightness(.92); }
.art-glassback::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(11,13,16,.78), rgba(11,13,16,0) 46%, rgba(11,13,16,.55)); }
.art-gb-line, .art-gb-name { position: absolute; z-index: 2; left: 6cqw; text-align: left; color: #eceee9; font-family: var(--display); }
.art-gb-line { top: 6cqw; font-stretch: 108%; font-weight: 800; font-size: 10.4cqw; line-height: .98; letter-spacing: -.03em; }
.art-gb-name { bottom: 5cqw; font-stretch: 125%; font-weight: 800; font-size: 4.6cqw; letter-spacing: .04em; text-transform: uppercase; }
/* cover art: pockettunes (an iPod menu, drawn in CSS) */
.art-pt { background: #fff; color: #000; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; display: flex; flex-direction: column; text-align: left; }
.pt-bar {
  flex: 0 0 13.5cqw; display: grid; place-items: center; position: relative;
  font-size: 7cqw; font-weight: 500; letter-spacing: -.01em;
  background: linear-gradient(#e6e3e6, #c5c2c5); border-bottom: .5cqw solid #949694;
}
.pt-bar i {
  position: absolute; right: 3cqw; top: 50%; width: 9cqw; height: 4.4cqw; translate: 0 -50%;
  background: #5ab65a; border: .5cqw solid #4a4a4a; border-radius: .6cqw;
}
.pt-row {
  flex: 1 1 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 4.2cqw; font-size: 7.6cqw; letter-spacing: -.01em;
}
.pt-row b { font-weight: 400; color: #8a8a8a; }
.pt-row.is-on { color: #fff; background: linear-gradient(#3a7dce, #194d9c); box-shadow: 0 .4cqw 0 #6baae6 inset, 0 -.4cqw 0 #10397b inset; }
.pt-row.is-on b { color: #fff; }
/* cover art: salesforce (their logo, on white) */
.art-sf { background: #fff; }
.art .sf-logo { position: absolute; left: 16%; top: 7%; width: 68%; height: auto; object-fit: contain; }
.art-cap-ink { color: var(--ink); }
/* cover art: chaincredid. Two linked rings and a check. Also used small in "also for fun". */
.art-ccid { background: #2f5bea; }
.art-ccid .cc-mark { position: absolute; left: 50%; top: 13%; width: 66%; height: auto; translate: -50% 0; }
.art-ccid-name, .art-ccid-win { position: absolute; left: 7cqw; text-align: left; color: #fff; font-family: var(--display); }
.art-ccid-name { bottom: 11.5cqw; font-stretch: 112%; font-weight: 800; font-size: 9.4cqw; letter-spacing: -.03em; }
.art-ccid-win { bottom: 5.5cqw; font-stretch: 100%; font-weight: 550; font-size: 4.5cqw; opacity: .92; }
/* cover art: the paper, set like a journal cover */
.art-paper { background: var(--navy); color: var(--paper); text-align: left; }
.ap-venue, .ap-foot { position: absolute; left: 7cqw; font-family: var(--display); font-stretch: 100%; font-weight: 550; font-size: 4.3cqw; opacity: .85; }
.ap-venue { top: 6cqw; }
.ap-foot { bottom: 6cqw; }
.ap-title { position: absolute; left: 7cqw; right: 7cqw; top: 15cqw; font-family: var(--text); font-weight: 500; font-size: 15.5cqw; line-height: .98; letter-spacing: -.02em; }
.art .ap-line, .also-cover .ap-line { position: absolute; left: 7cqw; bottom: 15cqw; width: 86cqw; height: 15cqw; color: var(--peach); }
.also-cover { position: relative; }
.also-cover .ap-venue, .also-cover .ap-foot, .also-cover .art-ccid-win, .also-cover .art-ccid-name { display: none; }
.also-cover .ap-title { top: 9cqw; font-size: 17cqw; }
.also-cover .ap-line { bottom: 8cqw; }
.also-cover.art-ccid .cc-mark { top: 50%; translate: -50% -50%; width: 84%; }
/* cover art: dapperlogic */
.art-dapper, .also-cover-dapper {
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(138,50,200,.5), transparent 60%),
    linear-gradient(rgba(99,218,222,.07) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    linear-gradient(90deg, rgba(99,218,222,.07) 1px, transparent 1px) 0 0 / 12.5% 12.5%,
    #07000f;
  display: grid; place-items: center;
}
.art-dapper-mark {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 9.4cqw; font-weight: 600; color: #ece9f5; letter-spacing: -.02em; white-space: nowrap;
}
.art-dapper-mark em { font-style: normal; color: #8a32c8; }
.art-dapper-mark b { font-weight: 600; color: #63dade; }
/* the plate under the shelf */
.plate {
  text-align: center;
  padding: 0 var(--gutter) clamp(1rem, 2.6vh, 1.75rem);
  margin-top: calc(var(--s) * -.19);
  position: relative;
}
.plate-title {
  font-family: var(--display); font-weight: 850; font-stretch: 125%;
  font-size: clamp(2.3rem, 8.6vw, 7.6rem);
  line-height: .9; letter-spacing: -.03em;
  white-space: nowrap;
}
.plate-title.is-in { animation: stretch .5s var(--ease); }
@keyframes stretch {
  from { font-stretch: 62%; letter-spacing: .01em; opacity: .0; }
  to   { font-stretch: 125%; letter-spacing: -.03em; opacity: 1; }
}
.plate-line {
  margin-top: .55rem;
  font-style: italic; font-size: clamp(1rem, .9rem + .5vw, 1.3rem); opacity: .82;
}
.legend {
  margin-top: clamp(.6rem, 1.6vh, 1.1rem);
  font-family: var(--display); font-stretch: 100%; font-weight: 500; font-size: .8rem; opacity: .6;
}
.legend kbd {
  display: inline-block; min-width: 1.75em; padding: .2em .45em; margin: 0 .15em 0 .7em;
  font: inherit; font-weight: 650; line-height: 1.2;
  border: 1.5px solid currentColor; border-radius: .3em;
}
.legend kbd:first-child { margin-left: 0; }
.legend-touch, .legend-pad { display: none; }
@media (hover: none) and (pointer: coarse) {
  .legend-keys { display: none; }
  .legend-touch { display: inline; }
}
.has-pad .legend-keys, .has-pad .legend-touch { display: none; }
.has-pad .legend-pad { display: inline; }

/* =====================================================
   TWO SIDES: paper on the left, a terminal on the right,
   and one face across the seam
   ===================================================== */
.split {
  --face: clamp(13rem, 30vw, 26rem);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(88svh, 46rem);
  background: linear-gradient(90deg, var(--paper) 50%, #050506 50%);
}
.split-side {
  position: relative; z-index: 2;
  display: grid; align-content: start; justify-items: start; gap: .9rem;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
}
.split-side > * { max-width: min(23rem, calc(50vw - var(--face) / 2 - var(--gutter) - .5rem)); }
.split-pro { color: var(--ink); }
.split-pro :focus-visible { outline-color: var(--navy); }
.split-fun { color: #e8f6ec; justify-items: end; text-align: right; }
.split-big {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: .9; letter-spacing: -.03em;
}
.split-side > .split-big { max-width: calc(50vw - var(--face) / 2 - var(--gutter)); }
.split-pro .split-big { color: var(--navy); }
.split-fun .split-big { color: #39ff6b; }
.split-side .lead { margin-top: .2rem; }
.split-side .actions { margin-top: .6rem; }
.split-fun .actions { justify-content: flex-end; }
/* slide to unlock: the way into the fun side. Dragging or a plain click both work. */
.unlock {
  position: relative; display: block; width: 17rem; max-width: 100%; height: 3.1rem; border-radius: .8rem;
  background: linear-gradient(#1c1c20, #0b0b0d); box-shadow: inset 0 0 0 1px #3a3a40, inset 0 2px 6px #000;
  text-decoration: none; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.unlock-knob {
  position: absolute; left: .3rem; top: .3rem; bottom: .3rem; width: 3.6rem; border-radius: .55rem;
  display: grid; place-items: center; color: #6a6a70; cursor: grab;
  background: linear-gradient(#fafafa, #b4b4ba); box-shadow: 0 1px 2px rgba(0,0,0,.6);
  translate: var(--x, 0px) 0; transition: translate .25s var(--ease);
}
.unlock.is-drag .unlock-knob { transition: none; cursor: grabbing; }
.unlock-text {
  position: absolute; inset: 0; display: grid; place-items: center; padding-left: 3.6rem;
  font: 400 1.05rem/1 -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0;
  color: transparent;
  background: linear-gradient(90deg, #5b5b62 0%, #5b5b62 40%, #fff 50%, #5b5b62 60%, #5b5b62 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: shimmer 2.8s linear infinite;
}
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -70% 0; } }

/* the whole stack: seven layers that fade from the paper side to the terminal side */
.stack { background: var(--paper); color: var(--ink); }
.stack-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.6rem, 3vw, 2.4rem); }
.stack-head .title { color: var(--navy); }
.stack-head p { margin-top: 1.1rem; max-width: 40rem; font-size: 1.15em; }
.stack-layers li { background: color-mix(in srgb, var(--paper) var(--mix), #050506); }
.stack-layers .wrap { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3.2fr); gap: .3rem 2rem; align-items: baseline; padding-block: clamp(1.1rem, 2.2vw, 1.7rem); }
.stack-layers b { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); letter-spacing: -.02em; line-height: 1; color: var(--navy); }
.stack-layers .is-dark { color: #f4f2e1; }
.stack-layers .is-dark b { color: #39ff6b; }

.split-face { position: absolute; z-index: 1; left: 50%; bottom: 0; width: var(--face); translate: -50% 0; }
.split-face-in { position: relative; }
.split-face img { width: 100%; }
.split-face .is-pro { clip-path: inset(0 50% 0 0); }
.split-face .is-hack { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }

/* =====================================================
   ROOMS
   ===================================================== */
.room { position: relative; padding-block: clamp(4.5rem, 11vw, 9rem); }
.room p + p { margin-top: 1em; }
.room .actions { margin-top: 1.8rem; }

/* ---------- Phosphene: black, the scenes are the light ---------- */
/* ---------- For fun: the header of the dark side ---------- */
.room-fun { background: #050506; color: #e8f6ec; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.room-fun .title { color: #39ff6b; }
.fun-intro { margin-top: 1.4rem; max-width: 40rem; font-size: 1.15em; }

.room-phosphene { background: #000; color: #fff; padding-block: 0; min-height: 100svh; display: grid; overflow: hidden; }
.ph-stage, .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-img { object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.ph-img.is-on { opacity: 1; }
.ph-stage::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 46%, rgba(0,0,0,0) 70%),
    linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 34%);
}
.ph-body {
  position: relative; display: grid; align-content: space-between; gap: 2.5rem;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 3vw, 2.5rem);
}
.ph-mark {
  font-family: var(--display); font-stretch: 100%; font-weight: 200;
  font-size: clamp(2.3rem, 8.2vw, 7rem); letter-spacing: .17em; line-height: 1;
  text-shadow: 0 0 40px rgba(0,0,0,.6);
}
.ph-panel {
  max-width: 33rem; padding: clamp(1.25rem, 2.5vw, 2rem);
  background: rgba(10,10,12,.62); border: 1px solid rgba(255,255,255,.09); border-radius: 1.1rem;
  -webkit-backdrop-filter: blur(40px) saturate(120%); backdrop-filter: blur(40px) saturate(120%);
  font-size: .97em;
}
.ph-panel .lead { margin-bottom: .9rem; }
.ph-panel p:not(.lead):not(.actions) { color: rgba(235,235,245,.78); }
/* a little dock: open it, get the Mac app, read the source */
.ph-dock { display: inline-flex; gap: .35rem; margin-top: 1.4rem; padding: .5rem .55rem .4rem; border-radius: 1.15rem; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.ph-dock a { display: grid; justify-items: center; gap: .3rem; width: 4.6rem; padding-bottom: .1rem; text-decoration: none; color: #fff; font-family: var(--display); font-weight: 550; font-size: .7rem; }
.ph-dock img, .ph-dock i { width: 3.3rem; height: 3.3rem; border-radius: 23%; transition: translate .2s var(--ease), scale .2s var(--ease); }
.ph-dock i { display: grid; place-items: center; background: linear-gradient(#3a3d47, #1c1e25); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.ph-dock svg { width: 1.6rem; height: 1.6rem; }
.ph-dock a:hover img, .ph-dock a:hover i, .ph-dock a:focus-visible img, .ph-dock a:focus-visible i { translate: 0 -.3rem; scale: 1.08; }

.ph-scenes { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.ph-scenes button {
  position: relative; width: clamp(4.6rem, 9vw, 7.5rem); aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
  border: 1px solid rgba(255,255,255,.18); border-radius: .5rem; background: #000; cursor: pointer;
  opacity: .62; transition: opacity .2s, border-color .2s;
}
.ph-scenes button:hover, .ph-scenes button.is-on { opacity: 1; }
.ph-scenes button.is-on { border-color: #fff; }
.ph-scenes img { width: 100%; height: 100%; object-fit: cover; }
.ph-scenes span {
  position: absolute; left: .4rem; bottom: .25rem;
  font-family: var(--display); font-weight: 600; font-size: .68rem; text-shadow: 0 1px 4px #000;
}

/* ---------- Pocket mods: one Analogue Pocket, two projects on its screen ---------- */
.room-pocket { background: #07080b; color: #f5f6fa; overflow: hidden; }
.pk-intro { margin-top: 1.2rem; max-width: 40rem; font-size: 1.15em; color: #c9cedb; }
.pk { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.pk-stage { position: relative; display: grid; justify-items: center; gap: 1.3rem; }
.pk-glow {
  position: absolute; inset: -8% -35%; filter: blur(70px); opacity: .5;
  background: radial-gradient(closest-side, #93b4ff, transparent 70%), radial-gradient(40% 40% at 70% 75%, #f2c75c, transparent 70%);
}
.room-pocket[data-view="pockettunes"] .pk-glow { background: radial-gradient(closest-side, #3a7dce, transparent 70%), radial-gradient(40% 40% at 30% 75%, #e6e3e6, transparent 70%); }

/* the handheld. .pd is the size container, so everything inside can be measured in cqw. */
.pd { position: relative; z-index: 1; container-type: inline-size; width: clamp(15rem, 27vw, 21rem); aspect-ratio: 88 / 149; }
.pd-body {
  position: absolute; inset: 0;
  padding: 7cqw 7cqw 0; border-radius: 7cqw;
  background: linear-gradient(160deg, #fbfbfc, #d0d1d8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), inset 0 -2cqw 4cqw rgba(0,0,0,.16), 0 40px 80px -30px #000;
}
.pd-screen { position: relative; aspect-ratio: 10 / 9; overflow: hidden; background: #000; border: 3cqw solid #0d0d10; border-radius: 3cqw; }
.pd-view { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .25s; }
.pd-view.is-on { opacity: 1; visibility: visible; }
.pd-view video { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.pd-view img { grid-area: 1 / 1; width: 100%; height: auto; opacity: 0; }
.pd-view img.is-on { opacity: 1; }
.pd, .pd button { touch-action: manipulation; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.pd :focus-visible { outline: 3px solid #2f6bff; outline-offset: 2px; }
.pd-dpad { position: absolute; left: 13cqw; top: 99cqw; width: 26cqw; height: 26cqw; }
.pd-dpad::before, .pd-dpad::after { content: ""; position: absolute; background: #24252b; border-radius: 1.4cqw; }
.pd-dpad::before { left: 34%; right: 34%; top: 0; bottom: 0; }
.pd-dpad::after { top: 34%; bottom: 34%; left: 0; right: 0; }
.pd-dpad button { position: absolute; z-index: 1; top: 34%; bottom: 34%; width: 40%; padding: 0; border: 0; border-radius: 1.4cqw; background: transparent; cursor: pointer; }
.pd-left { left: 0; } .pd-right { right: 0; }
.pd-dpad button:hover { background: rgba(255,255,255,.16); }
.pd-dpad button:active { background: rgba(255,255,255,.3); }
.pd-abxy { position: absolute; right: 10cqw; top: 97cqw; width: 30cqw; height: 30cqw; }
.pd-abxy > * { position: absolute; width: 36%; height: 36%; padding: 0; border: 0; border-radius: 50%; background: #24252b; }
.pd-x { left: 32%; top: 0; } .pd-y { left: 0; top: 32%; } .pd-b { left: 32%; bottom: 0; }
.pd-a { right: 0; top: 32%; cursor: pointer; }
.pd-a:hover { background: #3d3e48; }
.pd-a:active { scale: .92; }
.pd-pills { position: absolute; left: 50%; top: 147cqw; translate: -50% 0; display: flex; gap: 3cqw; }
.pd-pills span { width: 9cqw; height: 3.4cqw; border-radius: 2cqw; background: #24252b; }
.pk-legend { position: relative; z-index: 1; opacity: .55; }

/* the panel beside it */
.pk-tabs { display: inline-flex; gap: .3rem; padding: .3rem; margin-bottom: 1.8rem; border-radius: .6rem; background: #12151c; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.pk-tabs button {
  font-family: var(--display); font-stretch: 104%; font-weight: 650; font-size: .95rem;
  padding: .6em 1.1em; border: 0; border-radius: .4rem; background: transparent; color: #9aa1b2; cursor: pointer;
}
.pk-tabs button[aria-selected="true"] { background: #f5f6fa; color: #08090c; }
.pk-copy { max-width: 34rem; color: #c9cedb; }
.pk-copy + .pk-copy { margin-top: 3rem; }
.js-tabs .pk-copy { margin-top: 0; }
.js-tabs .pk-copy:not(.is-on) { display: none; }
.pk-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); line-height: .95; letter-spacing: -.03em; color: #f5f6fa; }
.pk-copy .lead { margin: .7rem 0 1.3rem; }
.is-vitrine .lead { color: #f2c75c; }
.is-pockettunes .lead { color: #6baae6; }
.pk-copy .fine { color: #9aa1b2; opacity: 1; }

/* ---------- Also on the shelf ---------- */
.room-also { background: var(--room); }
.also { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.also-item { scroll-margin-top: 2rem; }
.also-cover { width: 7.5rem; height: 7.5rem; border-radius: 3%; object-fit: cover; margin-bottom: 1.4rem; overflow: hidden; container-type: inline-size; }
.also-item h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; }
.also-line { margin-top: .45rem; font-style: italic; color: var(--peach); }
.also-item p:not(.also-line) { font-size: .97em; opacity: .86; }
/* ---------- The day job: the avatar's paper ---------- */
.room-record { background: var(--paper); color: var(--ink); }
.room-record .wrap > .title { color: var(--navy); }
.room-record ::selection { background: var(--navy); color: var(--paper); }
.room-record :focus-visible { outline-color: var(--navy); }
.rec-head { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.rec-head .title { color: var(--navy); }
.rec-intro { font-size: 1.15em; text-wrap: pretty; max-width: 46rem; }
.rec { margin-top: clamp(2rem, 5vw, 3.5rem); border-top: 2px solid var(--ink); }
.rec li {
  display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 3.2fr); gap: .3rem 2rem; align-items: baseline;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) 0; border-bottom: 1px solid rgba(52,41,44,.28);
  scroll-margin-top: 30vh;
}
.rec li:target h3 { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .14em; }
.rec li p:not(.rec-when) { margin-top: .45rem; max-width: 42rem; }
.rec-when { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.rec h3 {
  font-family: var(--display); font-stretch: 114%; font-weight: 750; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  line-height: 1.12; letter-spacing: -.015em; text-wrap: balance;
}
.rec h3 span { font-weight: 450; font-stretch: 100%; color: var(--stubble); font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); margin-left: .35em; letter-spacing: 0; }
.rec-big h3 { color: var(--navy); font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.2rem); }
.rec-more { margin-top: 1.4rem; font-size: 1.05em; }
.rec-more a { text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
/* technologies, drifting past. Wraps into a plain list without JS or with reduced motion. */
.marquee { margin-top: clamp(2.5rem, 6vw, 4rem); padding-block: 1.1rem; display: grid; gap: .55rem; overflow: hidden; border-block: 1px solid rgba(52,41,44,.28); }
.marquee ul { display: flex; flex-wrap: wrap; gap: .5rem 0; padding-inline: var(--gutter); }
.marquee li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--display); font-stretch: 118%; font-weight: 750; font-size: clamp(1.15rem, .95rem + 1vw, 1.75rem); letter-spacing: -.015em; color: var(--navy);
}
.marquee li::after { content: ""; width: .34em; height: .34em; margin-inline: .85em; rotate: 45deg; background: var(--peach); }
.marquee ul:nth-child(2) li { color: var(--ink); font-weight: 450; font-stretch: 104%; }
.marquee.is-live ul { flex-wrap: nowrap; width: max-content; padding-inline: 0; animation: marquee 70s linear infinite; }
.marquee.is-live ul:nth-child(2) { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover ul, .marquee:focus-within ul { animation-play-state: paused; }
@keyframes marquee { to { translate: -50% 0; } }

.rec-foot {
  margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 2rem clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; scroll-margin-top: 2rem;
}
.rec-foot-big { font-family: var(--display); font-stretch: 118%; font-weight: 750; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.02; letter-spacing: -.022em; color: var(--navy); }
.rec-foot p + p { margin-top: .8em; }
.rec-foot p a { text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.rec-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }

/* ---------- Tip jar: its own small page, linked from the project sites ---------- */
.tip-page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.tip-page main { display: grid; align-items: center; padding-block: 2rem 4rem; }
.tip-grid { display: grid; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); align-items: center; }
.tip-copy .title { margin-bottom: 1.4rem; }
.tip-copy p { max-width: 30rem; }
.tip-copy p + p { margin-top: .8em; }
.tab {
  background: var(--paper); color: var(--ink);
  padding: 1.5rem 1.5rem 2rem;
  rotate: 1.2deg;
  --tear: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--tear) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / var(--tear) 100%;
}
.tab :focus-visible { outline-color: var(--navy); }
.tab-head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 2px dashed rgba(52,41,44,.4); }
.tab-head img { width: 3rem; height: 3rem; border-radius: 50%; background: var(--peach); object-fit: cover; object-position: 50% 12%; }
.tab-head p { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: 1.05rem; line-height: 1.1; letter-spacing: -.01em; }
.tab-head span { display: block; font-family: var(--text); font-style: italic; font-weight: 400; font-size: .9rem; letter-spacing: 0; }
.tab fieldset { border: 0; margin: 0; padding: 1.1rem 0; border-bottom: 2px dashed rgba(52,41,44,.4); }
.tab legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tab-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.tab-amt { position: relative; cursor: pointer; }
.tab-amt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tab-amt span {
  display: block; text-align: center; padding: .75em 0;
  border: 2px solid var(--ink); border-radius: .3rem;
  font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.tab-amt input:checked + span { background: var(--ink); color: var(--paper); }
.tab-amt input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.tab-pay { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.1rem; }
.tab-pay .btn { text-align: center; padding-inline: .6em; }
.tab-pay .btn[aria-disabled="true"] { background: transparent; color: var(--ink); box-shadow: 0 0 0 2px rgba(52,41,44,.35) inset; cursor: not-allowed; opacity: .7; }
.tab-note { margin-top: .9rem; font-size: .9rem; font-style: italic; min-height: 1.5em; }
.tab-crypto { margin-top: .8rem; display: grid; gap: .5rem; }
.tab-crypto div { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; font-size: .82rem; }
.tab-crypto code { font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.tab-crypto button { font-family: var(--display); font-weight: 650; font-size: .8rem; padding: .4em .7em; border: 2px solid var(--ink); border-radius: .3rem; background: none; cursor: pointer; }

/* ---------- Footer ---------- */
.foot { background: var(--room); color: var(--paper); padding-block: 2.5rem; font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2rem; }
.foot p { opacity: .7; }
.foot-bio { flex-basis: 100%; max-width: 52rem; order: 3; margin-top: .6rem; }
.foot-year { margin-left: auto; }
.foot p a { text-underline-offset: .25em; }

/* =====================================================
   Smaller screens
   ===================================================== */
@media (max-width: 52rem) {
  .split { grid-template-columns: minmax(0, 1fr); background: #050506; min-height: 0; }
  .split-side > *, .split-side > .split-big { max-width: 30rem; }
  .split-pro { background: var(--paper); padding-bottom: 2rem; }
  .split-fun { justify-items: start; text-align: left; padding-top: 2rem; }
  .split-fun .actions { justify-content: flex-start; }
  .stack-layers .wrap { grid-template-columns: minmax(0, 1fr); }
  .split-face { position: relative; left: auto; bottom: auto; translate: none; width: 100%; background: linear-gradient(90deg, var(--paper) 50%, #050506 50%); }
  .split-face-in { width: min(62vw, 17rem); margin-inline: auto; }
  .split-pro { order: 1; } .split-face { order: 2; } .split-fun { order: 3; }
}
@media (max-width: 60rem) {
  .pitch { grid-template-columns: minmax(0, 1fr); }
  .pk { grid-template-columns: minmax(0, 1fr); }
  .pk-stage { justify-self: center; }
  .also { grid-template-columns: minmax(0, 1fr); max-width: 36rem; }
  .rec-foot, .tip-grid { grid-template-columns: minmax(0, 1fr); }
  .tab { max-width: 23rem; }
}
@media (max-width: 40rem) {
  .nav ul li:nth-child(n+3) { display: none; }
  .hero { --s: clamp(148px, min(30svh, 50vw), 240px); }
  .rec li { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .ph-scenes { justify-content: flex-start; }
  .ph-stage::after { background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.2) 100%); }
}

/* Share image mode (/#og at 1200 by 630): just the shelf, with the avatar cover in the middle. */
html.og, html.og body { overflow: hidden; }
html.og main, html.og .foot, html.og .skip, html.og .pitch, html.og .legend, html.og .nav ul { display: none; }
html.og .hero { --s: 300px; min-height: 0; height: 630px; grid-template-rows: auto 1fr auto; }
html.og .nav { padding-top: 26px; }
html.og .wordmark { font-size: 1.25rem; }
html.og .shelf { margin-top: 0; }
html.og .plate { padding-bottom: 30px; }
html.og .plate-title { font-size: 108px; animation: none; }
html.og .plate-line { margin-top: 10px; font-size: 26px; opacity: .92; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate-title.is-in { animation: none; }
  .unlock-text { animation: none; color: #c9c9cf; background: none; }
  .unlock-knob { transition: none; }
  .ph-img { transition: none; }
}
