/* ---------- 0. Fonts ---------- */
@font-face { font-family: "Neue Montreal"; src: url("assets/fonts/NeueMontreal-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("assets/fonts/NeueMontreal-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- 1. Colors and basics ---------- */
:root {
  color-scheme: light;
  --orange: #FF5424;
  --cream: #FFE3D3;
  --paper: #fffffd;
  --ink: #1F1A16;
  --soft: rgba(31, 26, 22, .62);
  --nav-h: 52px;
  --ticker-h: 38px;
  --sans: "Neue Montreal", system-ui, sans-serif;
  --pad: max(5vw, 16px);
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 0.8em; }

p, li, dd, figcaption, .tile-label { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

b, strong { font-weight: 500; }
body { font-synthesis: none; }
h2 { font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 0 0 0.4em; letter-spacing: -0.01em; }
.band { padding: clamp(40px, 6vw, 88px) var(--pad); }
button { font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- 2. The cursor ---------- */

@media (pointer: fine) {
  body, a, button, canvas, .g-item, .zoom, .item, .photo, .hero-logo, .screen { cursor: none; }
}
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--orange);
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .2s, width .22s cubic-bezier(.3,.7,.3,1), height .22s cubic-bezier(.3,.7,.3,1), background-color .15s;
  overflow: hidden;
}
.cursor-text { white-space: nowrap; font-size: 14px; color: var(--paper); opacity: 0; transition: opacity .15s; }

.cursor.pill { background: var(--ink); mix-blend-mode: normal; }
.cursor.pill .cursor-text { opacity: 1; transition-delay: .08s; }
.cursor.on-orange:not(.pill) { background: var(--paper); mix-blend-mode: normal; }
.cursor.on-orange.pen-up:not(.pill) { background: none; border: 2px solid var(--paper); }
@media (pointer: coarse) { .cursor { display: none; } }
.cursor.off { opacity: 0 !important; transition: none !important; }
img, video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------- 3. Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 30; background: var(--paper);
  display: flex; justify-content: space-between; align-items: center; gap: 8px 20px;
  height: var(--nav-h); padding: 0 var(--pad); font-size: 15px;
}
.nav a { text-decoration: none; }
.nav a:hover { color: var(--orange); }
.nav-name { font-weight: 500; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 4. Hero ---------- */
.hero {
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(48px, 9vw, 120px) var(--pad);
  min-height: 70vh;
}
.hero-logo { width: clamp(150px, 18vw, 230px); flex: none; }
.hero-text { max-width: 620px; font-size: 15px; }
.name { font-weight: 500; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; margin: 0 0 10px; letter-spacing: -0.01em; color: var(--orange); }
.tail { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.3; color: var(--ink); margin-bottom: 18px; }

.now { font-size: 16px; line-height: 1.5; color: var(--soft); margin: 0; }
.now a { color: inherit; font-weight: 500; text-decoration: none; transition: color .2s; }
.now a:hover { color: var(--orange); }

.hero-links { display: flex; gap: 12px; margin-top: 18px; }
.hero-links a { color: var(--soft); transition: color .2s; display: block; }
.hero-links a:hover { color: var(--orange); }
.hero-links svg { width: 28px; height: 28px; display: block; }

/* ---------- 5. Ticker ---------- */
.ticker {
  position: sticky; top: var(--nav-h); z-index: 20;
  background: var(--orange); color: var(--paper);
  overflow: hidden; white-space: nowrap; font-size: 15px;
  height: var(--ticker-h); display: flex; align-items: center;
}
.ticker-track { display: inline-flex; animation: scroll 30s linear infinite; }
.ticker-track span { flex: none; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- 6. Project tiles ---------- */

.tiles {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 55fr 45fr;
  height: calc(100svh - var(--nav-h) - var(--ticker-h)); min-height: 520px;
}
.tile {
  position: relative; display: grid; place-items: center; overflow: hidden;
  grid-column: span 7;
  background: var(--bg); text-decoration: none;
}

.tile:nth-child(2) { grid-column: span 5; }
.tile:nth-child(3) { grid-column: span 5; }
.tile:nth-child(4) { grid-column: span 3; }
.tile:nth-child(5) { grid-column: span 4; }

.cover { position: absolute; inset: 0 0 12% 0; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

.cover .cover-hover { opacity: 0; transition: opacity .35s; }
.tile.swap:hover .cover-hover, .tile.swap:focus-visible .cover-hover { opacity: 1; }
.tile.swap::after { display: none; }

@media (min-width: 761px) { .tile[data-proj="maiadrawss"] .cover { transform: translateY(6%) scale(1.15); } }

@media (max-width: 760px) { .tile[data-proj="pinecone"] .cover, .tile[data-proj="diversatech"] .cover { inset: 4% 0 30% 0; } }

.tile::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .3s; }
.tile:hover::after, .tile:focus-visible::after { opacity: .4; }

.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 14px 18px; font-size: 15px; line-height: 1.3;
  color: var(--text); transition: color .3s;
}
.tile-label small { display: block; font-size: 12px; opacity: .85; margin-bottom: 2px; }
.tile:hover .tile-label, .tile:focus-visible .tile-label { color: var(--text-hover); }

.tile-go { display: none; flex: none; font-size: 22px; line-height: 1; }
@media (pointer: coarse) { .tile-go { display: block; } }
.tile.swap.on .cover-hover { opacity: 1; }

/* ---------- 7. About ---------- */
.about { padding-top: clamp(80px, 10vw, 140px); }
.hi { font-size: clamp(40px, 5vw, 64px); margin-bottom: .3em; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--soft); font-size: 15px; margin-bottom: 1.1em; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; fill: rgba(31, 26, 22, .3); flex: none; }
.hi-star { display: inline-block; height: 1.25em; width: auto; vertical-align: -0.3em; margin: 0 -0.05em; }
.bio a.inline, .case-copy a.inline, .cm-p a.inline { color: inherit; text-decoration: none; transition: color .2s; }
.bio a.inline:hover, .case-copy a.inline:hover, .cm-p a.inline:hover { color: var(--orange); }
.cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--orange); text-decoration: none; }
.cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta-arrow { font-size: 1.05em; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
}
.photos { position: relative; }
.photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }

.photo-zones { position: absolute; inset: 0; z-index: 1; display: none; }
@media (pointer: fine) { .photo-zones { display: block; } }
.photo-zones span { position: absolute; }
.z-tl { left: 0; top: 0; width: 50%; height: 50%; }
.z-tr { right: 0; top: 0; width: 50%; height: 50%; }
.z-bl { left: 0; bottom: 0; width: 50%; height: 50%; }
.z-br { right: 0; bottom: 0; width: 50%; height: 50%; }
.z-c  { left: 30%; top: 32%; width: 40%; height: 36%; z-index: 1; }
.bio { font-size: 17px; max-width: 62ch; }

.purse-zone { position: relative; height: 520px; }
.purse {
  all: unset; position: absolute; left: 50%; bottom: 30px; width: 250px;
  transform: translateX(-50%); z-index: 3; transition: transform .2s;
}
.purse:hover { transform: translateX(-50%) rotate(-3deg); }
.purse img { width: 100%; display: block; }
.purse .purse-open { position: absolute; inset: 0; opacity: 0; }
.purse-zone.open .purse-open { opacity: 1; }
.purse-zone.open .purse-closed { opacity: 0; }
.purse:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.purse-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 13px; color: var(--soft); margin: 0; }
.purse-hint[hidden] { display: none; }
.item {
  position: absolute; left: 50%; top: 68%; width: 112px; z-index: 2;
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .25s;
}
.item img { width: 100%; }
.item-label { font-size: 13px; color: var(--orange); text-align: center; margin: 6px 0 0; opacity: 0; transition: opacity .3s .3s; }

.book    { --dx: -128px; --dy: -175px; --rot: -8deg; --px: -38px; --py: -38px; --prot: -14deg; }
.phones  { --dx: 0px;    --dy: -268px; --rot: 4deg;  --px: 6px;   --py: -30px; --prot: 8deg; }
.journal { --dx: 128px;  --dy: -175px; --rot: 8deg;  --px: 44px;  --py: -34px; --prot: 16deg; }

.purse-zone:not(.open) .item {
  opacity: 1;
  transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py))) rotate(var(--prot)) scale(.6);
}

.purse-zone.peek:not(.open) .item {
  transform: translate(calc(-50% + var(--px) * 1.5), calc(-50% + var(--py) * 1.9)) rotate(var(--prot)) scale(.68);
}

.purse-zone.open .item {
  opacity: 1; pointer-events: auto;
  transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot));
}
.purse-zone.open .item-label { opacity: 1; }
.purse-zone.open .item:hover {
  z-index: 4;
  transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) - 8px)) rotate(0deg) scale(1.08);
}

/* ---------- 8. Gallery ---------- */
.gallery { display: flex; gap: 20px; align-items: flex-start; }
.g-col { flex: 1 1 0; min-width: 0; }
.g-item { margin: 0 0 18px; display: block; }
.g-media { position: relative; }
.g-media img, .g-media video { width: 100%; height: auto; display: block; }

.g-title { font-size: 13px; color: var(--soft); padding: 6px 0 0; }
.g-item.soon .g-title { padding-top: 6px; }

.g-media::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .3s; pointer-events: none; }
.g-item:not(.soon):hover .g-media::after { opacity: .4; }

.in-phone .phone { position: relative; aspect-ratio: 640 / 1298; width: 78%; margin: 0 auto; }
.in-phone .g-media::after { display: none; }
.in-phone .phone .screen::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .3s; }
.in-phone:hover .phone .screen::after { opacity: .4; }

.g-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.g-stats span { display: flex; flex-direction: column; font-size: 12px; opacity: .85; }
.g-stats span b { font-size: 26px; font-weight: 500; line-height: 1.1; }
.sub { color: var(--soft); margin: -6px 0 24px; }
.g-soon { aspect-ratio: 4 / 3; background: var(--cream); display: grid; place-items: center; text-align: center; padding: 16px; color: var(--soft); font-size: 14px; }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(31, 26, 22, .88); display: grid; place-items: center; padding: 5vh 5vw; }
.lightbox[hidden] { display: none; }
.lb-inner { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 74vh; width: auto; height: auto; }
.lb-cap { color: var(--paper); font-size: 14px; line-height: 1.45; max-width: 560px; text-align: center; margin-top: 14px; }
.lb-cap b { display: block; font-weight: 500; }

.lb-deck { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--paper); font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-small { background: none; border: 0; color: var(--paper); font-size: 26px; line-height: 1; padding: 2px 8px; }
.lb-small:hover { color: var(--orange); }
.lb-cap .g-stats { justify-content: center; }
.lightbox [hidden] { display: none; }
.lb-cap a.lb-link { color: inherit; }
.lb-cap a.lb-link:hover { color: var(--orange); }
.lb-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: var(--paper); font-size: 36px; line-height: 1; padding: 6px; }

/* ---------- 9. Footer and doodle pad ---------- */

.footer { background: var(--orange); color: var(--paper); margin-top: clamp(60px, 8vw, 120px); }
.pad { position: relative; height: clamp(420px, 62vh, 640px); }
#pad { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.clear {
  position: absolute; right: var(--pad); top: 18px;
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--paper); background: none; color: var(--paper);
  display: grid; place-items: center; padding: 0; font-size: 22px; line-height: 1;
}
.clear[hidden] { display: none; }
.clear:hover { background: var(--paper); color: var(--orange); }

.pad-note { position: absolute; left: var(--pad); top: 18px; margin: 0; font-size: 15px; line-height: 40px; pointer-events: none; transition: opacity .4s; }
.pad-note.gone { opacity: 0; }
.footer-row { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; font-size: 14px; padding: 20px var(--pad) 40px; }

.say-star { display: inline-flex; text-decoration: none; }
.star-art { position: relative; width: 84px; height: 84px; flex: none; }
.star-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.say-star .tongue, .say-star:hover .plain, .say-star:focus-visible .plain { opacity: 0; }
.say-star:hover .tongue, .say-star:focus-visible .tongue { opacity: 1; }
.copy { color: rgba(255, 255, 255, .8); }
.footer-links { display: flex; gap: 10px; margin-left: auto; }
.footer-links { align-items: center; }
.footer-links a { text-decoration: none; }
.icon-link { display: inline-flex; }
.icon-link svg { width: 30px; height: 30px; }
.footer-links a:hover { opacity: .7; }

/* ---------- 10. Smaller screens ---------- */
@media (max-width: 1000px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .purse-zone { grid-column: 1 / -1; max-width: 520px; width: 100%; justify-self: center; }
}

@media (max-width: 760px) {
  .hero { flex-direction: column; text-align: left; align-items: flex-start; min-height: 0; padding-bottom: 72px; }
  .tiles { grid-template-columns: 1fr; grid-template-rows: none; height: auto; min-height: 0; }
  .tile, .tile:nth-child(n) { grid-column: auto; height: 64vw; }
  .about-grid { grid-template-columns: 1fr; }
  .photos { max-width: 320px; }
  .footer-links { margin-left: 0; }
  .nav { font-size: 13px; }
  .nav-links { gap: 12px; }
  .pad { height: 46vh; }
  .footer-row { gap: 10px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  * { transition: none !important; }
}

/* ---------- 11. Case study pages ---------- */

.case-hero { padding: clamp(24px, 3.5vw, 44px) var(--pad) 0; }
.back { font-size: 15px; color: var(--soft); text-decoration: none; }
.back:hover, .case-end a:hover, .case-link:hover { color: var(--orange); }
.case-co { font-size: 15px; color: var(--orange); margin: 20px 0 8px; }

.case-co a { color: inherit; text-decoration: none; }
.case-co a:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-hero h1 { font-weight: 500; font-size: clamp(40px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pill { font-size: 15px; color: var(--soft); background: rgba(31, 26, 22, .07); border-radius: 999px; padding: 3px 14px; }

.info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid rgba(31, 26, 22, .15); font-size: 15px; }
.info dt { color: var(--ink); }
.info dd { margin: 2px 0 0; color: var(--soft); line-height: 1.4; }

.case-cover { margin-top: 24px; aspect-ratio: 2800 / 730; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.case-cover img, .case-cover video { width: 100%; height: 100%; object-fit: contain; }

.jump { display: inline-block; margin-top: 24px; font-size: 15px; color: var(--paper); background: var(--ink); border-radius: 999px; padding: 6px 16px; text-decoration: none; transition: background .2s; }
.jump:hover { background: var(--orange); }
.proto-link { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--soft); text-decoration: none; }
.proto-link:hover { color: var(--orange); }

.proto-note { font-size: 15px; color: var(--soft); margin: 8px 0 0; }
.proto-note .proto-link, .cm-title .proto-link { display: inline; margin-top: 0; }

.cm-title { font-size: 15px; line-height: 1.4; color: var(--soft); text-align: center; margin: 10px 0 0; }
.cm-title b { display: block; font-weight: 500; color: var(--ink); }
.phone-row + .deck { margin-top: 48px; }
.cm-big { font-size: 17px; line-height: 1.5; margin: 0; }
.case-links:hover { color: var(--soft); }
.case-links a { color: inherit; text-decoration: none; }
.case-links a:hover { color: var(--orange); }
.case-link { display: inline-block; font-size: 15px; color: var(--soft); text-decoration: none; padding-top: 8px; }

.case-wrap { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 clamp(40px, 5vw, 80px); padding: clamp(56px, 7vw, 96px) var(--pad) 0; }
.case-side { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.side-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.side-links a { color: var(--soft); text-decoration: none; }
.side-links a:hover, .side-links a.on { color: var(--orange); }
.cm-first { scroll-margin-top: calc(var(--nav-h) + 32px); }
.zoom[id] { scroll-margin-top: 24px; }

.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px 0; border-top: 1px solid rgba(31, 26, 22, .15); border-bottom: 1px solid rgba(31, 26, 22, .15); }
.results p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--soft); max-width: 28ch; }
.results b { display: block; font-size: 40px; font-weight: 500; line-height: 1.05; color: var(--ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }

.case-copy h2 { font-size: 15px; font-weight: 400; color: var(--orange); margin: 28px 0 6px; }
.case-copy p, .case-copy ul { font-size: 17px; line-height: 1.5; margin: 0; }
.case-copy ul { padding-left: 1.1em; }
.case-copy li + li { margin-top: 6px; }
.case-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }

.cm-sec { padding-top: clamp(56px, 7vw, 96px); scroll-margin-top: var(--nav-h); }
.cm-sec h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; }
.cm-p { color: var(--soft); font-size: 17px; margin: 0 0 24px; }
.cm-sec h2 + .cm-grid { margin-top: 24px; }
.cm-grid { display: grid; gap: 12px; align-items: start; }
.cm-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cm-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.cm-2 .z-media { aspect-ratio: 16 / 9; overflow: hidden; }
.cm-2 .z-media img, .cm-2 .z-media video { height: 100%; object-fit: cover; object-position: top; }
.cm-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cm-grid.masonry { display: block; columns: 3; column-gap: 12px; }
.masonry .zoom { break-inside: avoid; margin-bottom: 12px; }
.masonry .phone-wrap { width: 82%; margin: 0 auto 12px; break-inside: avoid; }
.masonry .phone .screen video { object-fit: cover; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin-left: auto; margin-right: auto; }
.cm-note { font-size: 15px; color: var(--soft); margin: 8px 0 0; }
.cm-big + .cm-big { margin-top: 1em; }

.cm-ph { margin: 0; aspect-ratio: 4 / 3; background: rgba(31, 26, 22, .06); display: grid; place-items: center; text-align: center; padding: 16px; font-size: 15px; color: var(--soft); }
.cm-row .cm-ph { flex: var(--r) 1 0; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { margin: 0; }
.card .z-media { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid rgba(31, 26, 22, .1); }
.card .z-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card figcaption { font-size: 15px; color: var(--soft); padding-top: 10px; line-height: 1.4; }
.card figcaption b { display: block; font-weight: 500; color: var(--ink); margin-bottom: 2px; }

.phone-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 48px; margin-top: 40px; }
.phone-wrap { width: 240px; margin: 0; }
.phone { position: relative; aspect-ratio: 640 / 1298; }
.phone .screen { position: absolute; left: 5.45%; top: 2.31%; width: 89.22%; height: 95.37%; border-radius: 14% / 6.46%; overflow: hidden; background: #000; }
.phone .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.post-wrap { width: 290px; }
.post { position: relative; aspect-ratio: 4 / 5; }
.post .screen { position: absolute; inset: 0; overflow: hidden; }
.phone .screen img, .post .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.phone .screen img.on, .post .screen img.on { opacity: 1; }
.phone .snd { right: 12%; bottom: 4.5%; }
.phone .frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phone-nav { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: 15px; color: var(--soft); font-variant-numeric: tabular-nums; }
.phone-nav button { background: none; border: 0; padding: 2px 8px; font-size: 24px; line-height: 1; color: var(--soft); }
.phone-nav button:hover { color: var(--orange); }
.phone-wrap figcaption { font-size: 15px; color: var(--soft); text-align: center; margin-top: 2px; line-height: 1.4; }
.phone-wrap figcaption b { display: block; font-weight: 500; color: var(--ink); }

.compare { display: flex; align-items: center; justify-content: center; gap: 20px; max-width: 900px; margin: 32px auto 0; }
.compare-box { flex: 1 1 0; background: rgba(31, 26, 22, .05); padding: 20px 24px; font-size: 17px; line-height: 1.5; color: var(--soft); }
.compare-box.after { color: var(--ink); }
.compare-box span { display: block; font-size: 15px; color: var(--soft); margin-bottom: 6px; }
.research-boxes { gap: 12px; align-items: stretch; }
.w900 { max-width: 900px; margin-left: auto; margin-right: auto; }
.gap-top { margin-top: 32px; }
.cm-row.w900 { gap: 12px; }
.ig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: calc((100% - 24px) / 3 * 2 + 12px); max-width: 596px; margin: 0 auto 32px; }
.quote-row { display: grid; grid-template-columns: minmax(0, 1fr) calc((100% - 24px) / 3); column-gap: 12px; max-width: 900px; margin: 32px auto 0; }
.quote-row .zoom { display: contents; }
.quote-stack { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; }
.quote-stack .compare-box { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
.quote-row .z-media { grid-column: 2; grid-row: 1; }
.quote-row figcaption { grid-column: 2; grid-row: 2; }
.compare-arrow { font-size: 28px; color: var(--soft); flex: none; }
.cm-one { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.cm-small { grid-template-columns: minmax(0, 1fr); max-width: 420px; }

.proto { aspect-ratio: 1728 / 1117; }
.deck { aspect-ratio: 16 / 9; }
.deck iframe { width: 100%; height: 100%; border: 0; display: block; }

.stickers { max-width: 640px; align-items: center; }
.sticker .z-media::after { display: none; }
.sticker .z-media img { transition: filter .3s; }
.sticker:hover .z-media img { filter: brightness(.6); }
.proto iframe { width: 100%; height: 100%; border: 0; display: block; }
.cm-under { margin: 48px 0 12px; font-size: 15px; }

.cm-row { display: flex; gap: 20px; }
.cm-row .zoom { flex: var(--r) 1 0; min-width: 0; }
.zoom { margin: 0; }
.zoom figcaption { font-size: 15px; color: var(--soft); padding-top: 8px; }
.z-media { position: relative; }
.z-media img, .z-media video { width: 100%; display: block; }

.z-media::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0; transition: opacity .3s; pointer-events: none; }
.zoom:hover .z-media::after { opacity: .4; }

.snd {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0;
  background: rgba(31, 26, 22, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z' fill='white'/%3E%3Cpath d='m16 9 5 6M21 9l-5 6'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.snd.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z' fill='white'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E"); }
.snd:hover { background-color: var(--orange); }

.case-end { display: flex; justify-content: space-between; gap: 20px; margin: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 88px); font-size: 15px; }
.case-end a { color: var(--soft); text-decoration: none; }

.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: none; border: 0; color: var(--paper); font-size: 32px; line-height: 1; padding: 14px; }
.lb-arrow:hover { color: var(--orange); }
.lb-arrow[hidden] { display: none; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

@media (max-width: 900px) {
  .case-wrap { display: block; }
  .case-side { display: none; }
  .info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .case-cover { aspect-ratio: 4 / 3; }
  .case-cover img { object-fit: cover; }
  .cm-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cm-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .results { gap: 12px; }
  .results b { font-size: 28px; }
  .case-cols { grid-template-columns: 1fr; gap: 0; }
  .cm-row { gap: 8px; }
  .cm-7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cm-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { flex-direction: column; }
  .quote-row { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .research-boxes { grid-template-columns: minmax(0, 1fr); }
  .quote-stack, .quote-row .z-media, .quote-row figcaption { grid-column: 1; grid-row: auto; }
  .quote-row figcaption { margin-top: -12px; }
  .cm-row.w900 { gap: 12px; }
  .brand-row { flex-wrap: wrap; }
  .brand-row .zoom:first-child { flex: 1 0 100%; }
  .cm-grid.masonry { columns: 2; }
  .tp-row { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .lb-arrow { top: auto; bottom: 8px; transform: none; }
}

/* ---------- 12. Loading screen ---------- */

html.intro { background: var(--paper); }
html.intro body { opacity: 0; }
html.intro.ready body { opacity: 1; transition: opacity .5s; }
html.intro::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100dvh; z-index: 999;
  background: var(--paper) url("/assets/logo-star.webp") center / 150px no-repeat;
  box-shadow: 0 0 0 100vmax var(--paper);
  transition: opacity .5s;
}
html.intro.ready::after { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html.intro::after { display: none; }
  html.intro body { opacity: 1; }
}

.cm-row.centered, .cm-one.centered { margin-left: auto; margin-right: auto; }
.cm-sec .cm-row + .cm-row, .cm-sec .cm-row + .cm-note + .cm-grid, .cm-sec .cm-row + .cm-grid { margin-top: 32px; }
.centered-note { text-align: center; }
.cm-one > .zoom + .zoom { margin-top: 32px; }

.cm-rows { max-width: 900px; margin-left: auto; margin-right: auto; }
.cm-sec h2 + .cm-rows { margin-top: 24px; }
.cm-rows > .cm-grid + .cm-grid, .cm-rows > .cm-note + .cm-grid { margin-top: 32px; }
.cm-rows > .cm-4, .cm-rows > .cm-3 { gap: 20px; }

@media (min-width: 601px) {
  .cm-rows > .stickers { max-width: none; justify-content: space-between; }
  .cm-rows > .stickers .zoom { flex: 0 1 calc(var(--r) * 30%); }
}
@media (max-width: 600px) {
  .cm-rows > .cm-4, .cm-rows > .cm-3 { gap: 12px; }
  .cm-tags { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-left: auto; margin-right: auto; }
}

.case-copy a, .cm-p a, .cm-big a, figcaption a, .case-link a, a.case-link, .proto-link, .lb-link, .g-cap a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: inherit; }
.case-copy a:hover, .cm-p a:hover, .cm-big a:hover, figcaption a:hover, .case-link a:hover, a.case-link:hover, .proto-link:hover, .lb-link:hover { color: var(--orange); }

a.case-link, .proto-link { color: var(--soft); }

.case-copy a.inline, .cm-p a.inline { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.name-link, .bio a.name-link, figcaption a.name-link, .case-copy a.name-link, .cm-p a.name-link { font-weight: 500; text-decoration: none; color: inherit; transition: color .2s; }
a.name-link:hover { color: var(--orange); }

.now-br { display: none; }
@media (max-width: 760px) { .now-and { display: none; } .now-br { display: inline; } }

/* ---------- 13. Page not found ---------- */

.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(48px, 9vw, 120px) var(--pad); }
.lost .say-star { margin-bottom: 20px; }
.lost .star-art { width: 120px; height: 120px; }
.lost p { color: var(--soft); margin: 0; }
