/* Charlie Robert Mason · portfolio
   The page is black and white. Colour only exists where the light is:
   the cursor carries the colour of the section you're in, and what it
   passes over (the surface, edges, screens, the words made of points)
   catches it. Every piece of work also answers the cursor in its own way. */
@property --light { syntax: "<color>"; inherits: true; initial-value: #ff6a2b; }
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ink: #f1f1ef; --soft: #a3a3a0; --bg: #060607;
  --block: clamp(40px, 4.4vw, 60px);   /* heading block → the work: the same gap everywhere */ }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Mona Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  transition: --light .9s cubic-bezier(.65, 0, .35, 1);
}

/* ---------- the surface the light falls on: a fine grain that only shows under the light ---------- */
.surface { position: fixed; inset: 0; z-index: 0; pointer-events: none; --mx: 50vw; --my: 50vh; --lx: 50vw; --ly: 50vh; }
.surface::before {
  content: ""; position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle 360px at var(--mx) var(--my), rgb(0 0 0 / .85), transparent 72%);
  mask-image: radial-gradient(circle 360px at var(--mx) var(--my), rgb(0 0 0 / .85), transparent 72%);
}
body[data-surface="points"] .surface::before {
  background-image: radial-gradient(circle, color-mix(in oklch, var(--light) 60%, white) .9px, transparent 1.5px);
  background-size: 18px 18px; opacity: .6;
}
body[data-surface="grain"] .surface::before {
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px; opacity: .55;
}
body[data-surface="none"] .surface::before { display: none; }
/* the light: a small bright core inside a wide halo, with a long eased fall-off
   (several stops) so it fades like real light instead of ending in a ring */
.surface::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle 170px at var(--lx) var(--ly), color-mix(in oklch, var(--light) 15%, transparent), transparent 100%),
    radial-gradient(circle 780px at var(--lx) var(--ly),
      color-mix(in oklch, var(--light) 13%, transparent) 0%,
      color-mix(in oklch, var(--light) 8.5%, transparent) 22%,
      color-mix(in oklch, var(--light) 4%, transparent) 46%,
      color-mix(in oklch, var(--light) 1.3%, transparent) 72%,
      transparent 100%);
  opacity: var(--wash, 1);
  transition: opacity .5s var(--ease-out);
}

/* ---------- frame ---------- */
header {
  position: fixed; z-index: 5; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px clamp(20px, 3.5vw, 56px) 40px; font-size: 15px; color: var(--soft);
  background: linear-gradient(var(--bg) 45%, transparent);   /* headlines scroll under it, not into it */
}
header a { color: inherit; text-decoration: none; }
header .brand { color: var(--ink); font-weight: 600; }
header nav { display: flex; gap: 26px; }
@media (hover: hover) and (pointer: fine) { header nav a:hover { color: var(--ink); } }
header a:focus-visible, .field a:focus-visible { outline: 2px solid var(--light); outline-offset: 4px; border-radius: 4px; }
.skip { position: fixed; z-index: 10; left: 16px; top: 12px; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; translate: 0 -200%; transition: translate .2s var(--ease-out); }
.skip:focus { translate: 0 0; }
.test {
  position: fixed; z-index: 6; left: clamp(12px, 2vw, 24px); bottom: 16px;
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgb(20 20 22 / .9); border: 1px solid #2a2a2c; font-size: 13px; color: var(--soft);
}
.test span { padding: 0 8px 0 10px; }
.test button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 999px; }
.test button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

main { position: relative; z-index: 1; }
/* sections are as tall as their content; only the opening and the closing take a full screen */
section { position: relative; display: grid; place-items: center; padding: clamp(84px, 11vh, 130px) clamp(20px, 7vw, 120px); }
#top, #contact { min-height: 100vh; min-height: 100svh; }
.wrap { width: min(100%, 1240px); }
.center { text-align: center; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
h1 { font-size: clamp(46px, 7.2vw, 112px); }
h2 { font-size: clamp(34px, 4.4vw, 64px); text-wrap: balance; }   /* no word left alone on the last line */
h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
/* each section's explanation is set in that section's colour */
.sub { margin-top: 20px; font-size: clamp(16px, 1.25vw, 19px); color: color-mix(in oklch, var(--sec, #a3a3a0) 78%, white); line-height: 1.6; max-width: 60ch; text-wrap: pretty; }
.center .sub { margin-inline: auto; }
/* ---------- 1 · the opening: my name around me, and the light shows what I'm made of ---------- */
@property --lens { syntax: "<length>"; inherits: true; initial-value: 0px; }
#top { padding: 0; place-items: stretch; overflow: hidden; }
.hero { position: relative; height: 100svh; min-height: 660px; }
/* Charlie left, Robert right, Mason left, at three heights; the photo stands in front of them */
.name { position: absolute; inset: 0; z-index: 1; font-size: clamp(60px, 10.5vw, 180px); letter-spacing: -.045em; line-height: .9; pointer-events: none; }
.name span { position: absolute; white-space: nowrap; }
.name .n1 { left: 5vw; top: 17%; }
.name .n2 { right: 5vw; top: 39%; }
.name .n3 { left: 3.5vw; top: 61%; }
.portrait { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin-inline: auto; width: min(40vw, 580px, calc((100svh - 110px) * .833)); aspect-ratio: 1100 / 1320;
  --px: 50%; --py: 30%; transition: --lens .8s cubic-bezier(.23, 1, .32, 1);
  /* the arms run off the photo's edges: fade them, and the bottom, into the black */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to top, transparent, #000 24%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to top, transparent, #000 24%); mask-composite: intersect; }
.portrait > img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the lens: a soft circle that follows the light; the photo clears inside it and the words take its place */
.portrait__front { -webkit-mask-image: radial-gradient(circle var(--lens) at var(--px) var(--py), transparent 38%, #000 100%); mask-image: radial-gradient(circle var(--lens) at var(--px) var(--py), transparent 38%, #000 100%); }
.portrait__back { -webkit-mask-image: radial-gradient(circle var(--lens) at var(--px) var(--py), #000 38%, transparent 100%); mask-image: radial-gradient(circle var(--lens) at var(--px) var(--py), #000 38%, transparent 100%); }
@media (hover: hover) and (pointer: fine) { .portrait:hover { --lens: clamp(150px, 15vw, 240px); } }
.portrait.on { --lens: 62vw; }
.hero__foot { position: absolute; z-index: 3; left: 6vw; right: 5vw; bottom: 6vh; display: flex; justify-content: space-between; align-items: end; gap: 30px; pointer-events: none; }
.hero__foot > * { pointer-events: auto; }
.hero__foot .sub { margin: 0; max-width: min(31ch, calc(30vw - 50px)); }
.hero__side { display: grid; justify-items: end; gap: 18px; }
.hero__side .jump { margin: 0; }
@media (max-width: 900px) {
  /* on a phone: the name, then the line and the links, then me */
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; padding: 108px 20px 0; }
  .name { position: static; font-size: 20vw; display: grid; }
  .name span { position: static; } .name .n2 { justify-self: end; } .name .n3 { margin-left: 6vw; }
  .hero__foot { position: static; order: 2; flex-direction: column; align-items: start; gap: 22px; margin-top: 30px; }
  .hero__foot .sub { max-width: none; }
  .hero__side { justify-items: start; }
  .portrait { position: relative; order: 3; width: min(100%, 440px); margin-top: 34px; }
}

/* from the opening straight to the short version (the release notes) */
.jump { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 8px 2px; color: var(--ink); font-size: 16px; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid color-mix(in oklch, var(--sec, #ff6a2b) 55%, transparent); transition: border-color .2s ease; }
.jump span { color: var(--sec, #ff6a2b); transition: translate .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .jump:hover { border-color: var(--sec, #ff6a2b); } .jump:hover span { translate: 0 3px; } }
.jump:focus-visible { outline: 2px solid var(--sec, #ff6a2b); outline-offset: 4px; border-radius: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ff6a2b; margin: 0 auto 34px; }
.label { font: 700 12px/1.4 Doto, monospace; letter-spacing: .1em; text-transform: uppercase; color: #8f8f8c; }

.dw { position: relative; display: inline-block; color: transparent; font-weight: 760; font-stretch: 112.5%; letter-spacing: -.02em; }
.dw canvas { position: absolute; left: 0; top: 0; pointer-events: none; }

/* anything that catches the light:
   a rim on the edge nearest the light, a soft sheen on the face, and a thin
   specular band that slides the opposite way to the light, like a reflection on glass */
.lit { position: relative; --ex: -999px; --ey: -999px; --sp: -40%; --rim: .75; }
.lit::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; padding: 1px;
  background: radial-gradient(240px circle at var(--ex) var(--ey), var(--light) 0%, color-mix(in oklch, var(--light) 45%, transparent) 38%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--rim); transition: opacity .4s var(--ease-out);
}
.lit::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(112deg, transparent calc(var(--sp) - 16%), rgb(255 255 255 / .075) var(--sp), transparent calc(var(--sp) + 16%)),
    radial-gradient(440px circle at var(--ex) var(--ey), color-mix(in oklch, var(--light) 26%, transparent), transparent 66%);
  mix-blend-mode: screen;
}

/* every piece casts a soft shadow away from the light (the script moves it),
   and lifts towards you a little when pointed at; what happens inside it
   depends on what it is (see each block below) */
.lit.piece { box-shadow: var(--shx, 0px) var(--shy, 34px) 70px -30px rgb(0 0 0 / .9), 0 0 0 1px #1d1d1f;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), filter .3s var(--ease-out), opacity .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lit.piece:hover { transform: translateY(-6px) scale(1.025); z-index: 4; --rim: 1;
    box-shadow: calc(var(--shx, 0px) * 1.6) calc(var(--shy, 34px) * 1.6) 110px -36px rgb(0 0 0 / .95), 0 0 0 1px #2a2a2c; }
}

/* ---------- shared: the short explanation and the facts line under each heading ---------- */
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 20px; font-size: 15px; color: var(--soft); }
.meta b { color: var(--ink); font-weight: 500; }
/* what to do with the piece, in words people will actually read */
.hint { display: flex; width: fit-content; align-items: center; gap: 12px; font-size: 16px; font-weight: 450; color: var(--ink); }
.hint::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sec, var(--light)); }

/* one layout for every section: the claim on the left, what it means on the right, the work below */
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: end; }
.head .sub { margin-top: 0; }
.head + * { margin-top: var(--block); }

/* the brand-spec guides, drawn over the headline when you point at it */
.spec-wrap { position: relative; }
.guides { position: absolute; inset: 0; left: calc(50% - 50vw); width: 100vw; pointer-events: none; overflow: hidden; }
.guides i { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed color-mix(in oklch, var(--sec) 70%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0s .15s; }
.guides i.base { border-top-style: solid; }
.guides b { position: absolute; font: 500 14px/1 "Mona Sans"; color: var(--sec); opacity: 0; translate: 0 4px; transition: opacity .15s, translate .15s; white-space: nowrap; }
.spec-wrap.on .guides i { transform: scaleX(1); transition: transform .7s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 40ms); }
.spec-wrap.on .guides b { opacity: 1; translate: 0 0; transition: opacity .25s var(--ease-out) .35s, translate .3s var(--ease-out) .35s; }

/* ---------- 3 · the platform ---------- */
.stem-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: end; }
.stem-body { display: grid; grid-template-columns: 270px minmax(0, 1fr) 210px; gap: 28px; align-items: end; margin-top: var(--block); }
.feats { list-style: none; margin: 0; padding: 0; border-top: 1px solid #1f1f21; align-self: center; }
.feats button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid #1f1f21;
  font-size: 16px; color: var(--soft); transition: color .2s ease, padding-left .3s var(--ease-out);
}
.feats button::after { content: "→"; opacity: 0; color: var(--light); transition: opacity .2s ease, translate .3s var(--ease-out); translate: -6px 0; }
.feats button[aria-pressed="true"] { color: var(--ink); padding-left: 10px; }
.feats button[aria-pressed="true"]::after { opacity: 1; translate: 0 0; }
.feats button:focus-visible { outline: 2px solid var(--light); outline-offset: 2px; }
.browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -40px #000, 0 0 0 1px #1d1d1f; }
.browser .bar { position: relative; z-index: 4; height: 30px; background: #141416; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: #333336; }
.browser .bar em { margin: 0 auto; font: 500 12px/1 "Mona Sans"; font-style: normal; color: #8f8f8c; padding-right: 40px; }
/* the browser is a loupe: it zooms in towards wherever you point */
.screens { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; --zx: 50%; --zy: 50%; }
.screens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; filter: blur(6px); transform-origin: var(--zx) var(--zy);
  transition: opacity .28s var(--ease-out), filter .28s var(--ease-out), transform .5s var(--ease-out); }
.screens img.on { opacity: 1; filter: none; }
@media (hover: hover) and (pointer: fine) { .screens:hover img.on { transform: scale(1.5); } }
/* the student's phone: its own frame, beside the browser, never over it */
.phone { border-radius: 34px; padding: 7px; background: #0c0c0e; box-shadow: 0 40px 80px -36px #000, inset 0 0 0 1px #2a2a2c; }
.phone .scr { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1024 / 1642; background: #fff; }
.phone img { display: block; width: 100%; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .phone:hover img { transform: translateY(-16%); } }
.phone-cap { margin-top: 14px; font-size: 15px; color: var(--soft); text-align: center; }

/* ---------- 4 · product videos ---------- */
.vids-area { margin-top: var(--block); }
/* one column grid for all four videos: the tour spans two columns and matches the reel's height,
   and the two ads sit in the same columns below, the 3D one right under the reel */
.vids, .ads { display: grid; grid-template-columns: minmax(0, 2.09fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.vids > :first-child { grid-column: span 2; }
.vid { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 0 0 1px #1d1d1f;
  transition: transform .35s var(--ease-out), filter .3s var(--ease-out), opacity .3s var(--ease-out); }
.vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid--v { aspect-ratio: 9 / 16; } .vid--h { aspect-ratio: 16 / 9; }
.vid-cap { margin-top: 12px; font-size: 15px; color: var(--soft); line-height: 1.5; }
.vid-cap b { color: var(--ink); font-weight: 500; }
.vid .snd { position: absolute; z-index: 4; right: 12px; top: 12px; font: 700 12px/1 Doto, monospace; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #f1f1ef; opacity: 0; transition: opacity .2s ease; }
.vid.is-loud .snd { opacity: 1; background: var(--ink); color: var(--bg); }
/* a note that stays on the video itself */
.vid .badge { position: absolute; z-index: 4; left: 12px; bottom: 12px; padding: 7px 11px; border-radius: 999px; background: rgb(6 6 7 / .72);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); color: #f1f1ef; font-size: 13px; font-weight: 500; line-height: 1.25; max-width: calc(100% - 24px); }
/* point at one: it plays with sound and comes forward; the rest step back out of focus */
@media (hover: hover) and (pointer: fine) {
  .vids-area:has(.vid:hover) .vid:not(:hover) { filter: blur(6px) brightness(.45); }
  .vid:hover { transform: scale(1.015); }
}
.vids-area.touched .vid:not(.is-loud) { filter: blur(4px) brightness(.5); }
.ads { align-items: start; margin-top: 40px; padding-top: 26px; border-top: 1px solid #1f1f21; }
.ads h3 { font-size: clamp(22px, 1.9vw, 26px); }
/* the text column runs the full height of the ads: what they are at the top, how they were made at the bottom,
   level with the bottom of the videos (the 35px is the caption under each video) */
.ads__text { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-bottom: 35px; }
.made { display: grid; grid-template-columns: 96px 1fr; margin: 0; max-width: 460px; font-size: 15px; line-height: 1.45; }
.made dt, .made dd { margin: 0; padding: 11px 0; border-top: 1px solid #1f1f21; }
.made dt { color: color-mix(in oklch, var(--sec) 78%, white); }
.made dd { color: var(--soft); }
.made dt:last-of-type, .made dd:last-of-type { border-bottom: 1px solid #1f1f21; }
.ads__text { padding-bottom: 23px; }   /* the last line then sits level with the bottom of the videos */
.ads__text p { margin-top: 10px; font-size: 16px; color: color-mix(in oklch, var(--sec) 78%, white); line-height: 1.55; max-width: 42ch; }

/* ---------- 5 · websites: point at one and it scrolls ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; margin-top: var(--block); }
.tile { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #111; box-shadow: 0 0 0 1px #1d1d1f; container-type: size; display: block; }
.tile img { display: block; width: 100%; transform: translateY(0); transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: translateY(calc(100cqh - 100%)); transition: transform 7s linear; } }
.tile-cap { display: flex; justify-content: space-between; margin-top: 12px; font-size: 15px; color: var(--soft); }
.tile-cap span:first-child { color: var(--ink); }

/* ---------- 6 · Mercedes: point at the ring and spend five seconds ---------- */
.merc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 110px); align-items: center; }
.ringbox { position: relative; width: min(440px, 80vw); aspect-ratio: 1; margin: 0 auto; cursor: pointer; border-radius: 50%; }

/* ---------- 6 · the internship: screen, press, camera ---------- */
/* the ad is the big card, shown whole (it was filmed upright); the article and the YouTube video sit beside it, smaller */
.drive { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); gap: 26px; margin-top: var(--block); }
.drive figure { margin: 0; }
.drive__press { grid-column: 1; grid-row: 1; }
.drive__yt { grid-column: 1; grid-row: 2; }
.drive__mall { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; }
.stage { position: relative; flex: 1; min-height: 520px; border-radius: 14px; overflow: hidden; background: #000; }
/* the mall carries on, out of focus, either side of the upright video */
.stage__fill { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(30px) brightness(.4) saturate(.85); }
.stage video { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; height: 100%; width: auto; max-width: 100%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 90px rgb(0 0 0 / .7); }
.drive figcaption { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--soft); }
.drive figcaption b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.yt { display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.yt img, .yt iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt { cursor: pointer; }
.yt__play { position: absolute; z-index: 4; left: 50%; top: 50%; width: 64px; height: 64px; translate: -50% -50%; border-radius: 50%;
  background: rgb(6 6 7 / .72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); transition: scale .25s var(--ease-out), background-color .2s ease; }
.yt__play::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 16px solid #f1f1ef; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
@media (hover: hover) and (pointer: fine) { .yt:hover .yt__play { scale: 1.08; background: rgb(6 6 7 / .85); } }
.yt.is-on .yt__play { display: none; }
/* the article scrolls through itself, like the websites */
.article { display: block; height: clamp(240px, 22vw, 320px); border-radius: 14px; overflow: hidden; background: #fff; container-type: size; }
.article img { display: block; width: 100%; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .article:hover img { transform: translateY(calc(100cqh - 100%)); transition: transform 9s linear; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- "Read more": a button you can't miss, and a side panel with the full story ---------- */
.more {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 11px 14px 11px 20px; border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--sec) 60%, transparent); color: var(--ink); font-size: 16px; font-weight: 500;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.more i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sec); color: var(--bg); font-style: normal; font-size: 17px; line-height: 1; transition: rotate .3s var(--ease-out); }
.more:active { transform: scale(.97); }
.more:focus-visible { outline: 2px solid var(--sec); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .more:hover { background: color-mix(in oklch, var(--sec) 14%, transparent); } .more:hover i { rotate: 90deg; } }

.drawer { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.drawer::backdrop { background: transparent; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .62); opacity: 0; transition: opacity .2s ease; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); overflow-y: auto; overscroll-behavior: contain;
  background: #0d0d0e; box-shadow: -1px 0 0 #232325, -40px 0 80px -20px rgb(0 0 0 / .7);
  padding: 76px clamp(24px, 4vw, 52px) 56px;
  translate: 100% 0; transition: translate .22s cubic-bezier(.32, .72, 0, 1);
}
.drawer__panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--dsec); }
.drawer.open .drawer__scrim { opacity: 1; transition-duration: .35s; }
.drawer.open .drawer__panel { translate: 0 0; transition-duration: .5s; }
.drawer__close { all: unset; cursor: pointer; position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid #2a2a2c; font-size: 20px; color: var(--ink); transition: background-color .2s ease; }
.drawer__close:hover { background: #1c1c1e; }
.drawer__close:focus-visible { outline: 2px solid var(--dsec); outline-offset: 2px; }
.drawer .kicker { font-size: 15px; color: var(--dsec); }
.drawer h2 { margin-top: 10px; font-size: clamp(28px, 3vw, 38px); font-weight: 300; letter-spacing: -.025em; line-height: 1.1; }
.drawer h3 { margin: 30px 0 6px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.drawer p { margin-top: 16px; font-size: 17px; line-height: 1.65; color: #c9c9c6; }
.drawer h3 + p { margin-top: 0; }
.drawer ul { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid #222224; }
.drawer li { padding: 14px 0; border-bottom: 1px solid #222224; font-size: 16px; line-height: 1.55; color: #c9c9c6; }
.drawer li b { display: block; color: var(--ink); font-weight: 500; }
.drawer dl { margin: 30px 0 0; display: grid; grid-template-columns: 120px 1fr; gap: 12px 18px; font-size: 15px; line-height: 1.5; }
.drawer dt { color: var(--dsec); }
.drawer dd { margin: 0; color: #c9c9c6; }
.drawer a { color: var(--ink); text-decoration-color: var(--dsec); text-underline-offset: 3px; }
.drawer .links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 16px; }
html.has-drawer { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer__panel { translate: 0 0; opacity: 0; transition: opacity .2s ease; } .drawer.open .drawer__panel { opacity: 1; } }

/* ---------- 7 · lab ---------- */
/* three pieces of the same height: the web lab (16:10) twice as wide as the Blender shots (4:5), Human Mind square */
.lab { display: grid; grid-template-columns: 2fr 1fr 1.25fr; gap: 26px; margin-top: var(--block); text-align: left; align-items: start; }
.study { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #111; box-shadow: 0 0 0 1px #1d1d1f; }
.study video { display: block; width: 100%; height: 100%; object-fit: cover; }
.study--web { aspect-ratio: 16 / 10; }
/* the tool scrolls through itself, like the websites */
.study.tool { display: block; container-type: size; background: #fff; }
.study.tool img { display: block; width: 100%; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .study.tool:hover img { transform: translateY(calc(100cqh - 100%)); transition: transform 6s linear; } }
.pipbox { aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px #1d1d1f; }
.pipbox canvas { display: block; width: 100%; height: 100%; background: #000; }
.lab figcaption { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--soft); }
.lab figcaption b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.lab figure { margin: 0; }
.pipbox.lit::after { display: none; }   /* a sheen on pure black reads as a coloured glow: rim only */

/* ---------- 8 · release notes ---------- */
.notes { width: 100%; margin: 0; padding: 0; text-align: left; }
.notes li { list-style: none; display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 16px 4px; border-top: 1px solid #1f1f21;
  font-size: clamp(17px, 1.4vw, 21px); font-weight: 350; transition: padding-left .3s var(--ease-out), color .2s ease; }
.notes li:last-child { border-bottom: 1px solid #1f1f21; }
.notes .v { font: 700 15px/1.5 Doto, monospace; letter-spacing: .08em; color: color-mix(in oklch, var(--sec) 70%, #777); transition: color .2s ease; }
.notes .next { color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .notes li:hover { padding-left: 14px; } .notes li:hover .v { color: var(--sec); } }
/* a dot hops down the versions, one release at a time, lighting each as it lands, then waits at "Next" */
.notes-box { position: relative; width: 100%; }
.hopper { position: absolute; z-index: 2; left: -20px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--sec); opacity: 0;
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--sec) 20%, transparent); pointer-events: none; }
.notes li.on .v { color: var(--sec); }
.notes li.land .v { animation: land .32s cubic-bezier(.3, .8, .4, 1); }
@keyframes land { 40% { translate: 0 2px; scale: 1.06 .9; } }
.hopper.wait { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 64%, 100% { translate: 0 0; } 74% { translate: 0 -9px; } 84% { translate: 0 0; } 90% { translate: 0 -3px; } }
@media (max-width: 900px) { .hopper { left: -15px; } }

.field { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 46px; }
.field .input { width: min(440px, 100%); padding: 16px 20px; border-radius: 14px; border: 1px solid #2c2c2e; font-size: 18px; text-align: left; }
.field .btn { padding: 16px 22px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 17px; font-weight: 600; transition: transform .16s var(--ease-out); }
.field .btn:active { transform: scale(.97); }
.elsewhere { margin-top: 22px; font-size: 16px; color: var(--soft); }
.elsewhere a { color: var(--ink); text-decoration-color: var(--sec, #ff6a2b); text-underline-offset: 4px; }
.elsewhere a:focus-visible { outline: 2px solid var(--sec, #ff6a2b); outline-offset: 4px; border-radius: 4px; }

@media (max-width: 900px) {
  .stem-top, .stem-body, .vids, .lab, .head, .merc, .drive { grid-template-columns: 1fr; }
  .vids > :first-child { grid-column: auto; }
  .vids > :last-child { width: min(100%, 300px); justify-self: center; }
  .ads { grid-template-columns: 1fr 1fr; gap: 16px; } .ads__text { grid-column: 1 / -1; }
  .drive figure { grid-column: auto; grid-row: auto; }
  .stage { flex: none; min-height: 0; aspect-ratio: 480 / 848; max-height: 78svh; }
  .ads__text { padding-bottom: 0; }
  .article { height: 440px; }
  .stem-body .phone { width: 60%; margin: 0 auto; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  header nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait { transition: none; }
  .piece, .screens img, .tile img, .rise img { transition-duration: .01ms !important; }
}

/* ---------- the portrait: black and white until the light finds it ---------- */
.me { margin: 34px 0 0; width: min(250px, 60%); aspect-ratio: 440 / 540; border-radius: 16px; overflow: hidden; background: #111; }
.me img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.9); transition: filter .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .me:hover img { filter: none; } }

.field a { color: inherit; text-decoration: none; }
.foot { position: absolute; left: clamp(20px, 7vw, 120px); right: clamp(20px, 7vw, 120px); bottom: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 14px; color: var(--soft); }

/* ---------- motion: one entrance for the name, then each block drifts up as it arrives ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the opening: the photo rises into place, then the three names arrive one after another */
  .portrait { animation: rise 1.3s cubic-bezier(.16, 1, .3, 1) both; }
  .name span, .hero__foot { animation: arrive 1.1s cubic-bezier(.16, 1, .3, 1) both; }
  .name .n1 { animation-delay: .25s; } .name .n2 { animation-delay: .37s; } .name .n3 { animation-delay: .49s; } .hero__foot { animation-delay: .7s; }
  @keyframes rise { from { opacity: 0; translate: 0 48px; } }
  @keyframes arrive { from { opacity: 0; translate: 0 .5em; filter: blur(8px); } }
  @supports (animation-timeline: view()) {
    .head, .stem-top, .stem-body, .vids-area, .tiles, .drive, .lab, .spec-wrap { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes drift { from { translate: 0 44px; } }
  }
}
@media (max-width: 900px) { .foot { position: static; margin-top: 70px; justify-content: center; } }
