@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ultramarine: #1f22d6;
  --indigo: #100e45;
  --panel: #1a1860;
  --cream: #fff5d6;
  --chalk: #f1f0ff;
  --gold: #ffd60a;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --thread-x: clamp(14px, 2.4vw, 38px);
  --gutter: clamp(40px, 9vw, 150px);
  --edge: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
@media (min-width: 1921px) { html { font-size: min(.834vw, 32px); } }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html:not(.motion) { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1.0625rem, .98rem + .3vw, 1.25rem)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .7s var(--ease), color .7s var(--ease);
  overflow-x: clip;
}
body[data-theme="blue"]  { --bg: var(--ultramarine); --ink: var(--chalk); --accent: var(--gold);        --on-accent: var(--indigo); --muted: #c9c9fb; }
body[data-theme="night"] { --bg: var(--indigo);      --ink: var(--chalk); --accent: var(--gold);        --on-accent: var(--indigo); --muted: #b6b4e6; }
body[data-theme="paper"] { --bg: var(--cream);       --ink: var(--indigo); --accent: var(--ultramarine); --on-accent: var(--chalk); --muted: #47457f; }
body[data-theme="gold"]  { --bg: var(--gold);        --ink: var(--indigo); --accent: var(--ultramarine); --on-accent: var(--chalk); --muted: #3b3460; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: fixed; top: 12px; left: 50%; z-index: 100;
  transform: translate(-50%, -200%);
  background: var(--chalk); color: var(--indigo);
  padding: .5em 1em; border-radius: 6px;
}
.skip:focus { transform: translate(-50%, 0); }

section, .contact { padding-inline: var(--gutter) var(--edge); }

.label { font: 600 .8rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.section-title {
  font: 700 clamp(1.5rem, 1.1rem + 1.9vw, 3rem)/1.1 var(--display); letter-spacing: -.03em;
}

/* Thread: the fixed line down the page, which is also the section navigation */
.thread { position: fixed; top: 0; bottom: 0; left: var(--thread-x); z-index: 20; width: 0; pointer-events: none; }
.thread__line { position: absolute; inset: 0 auto 0 -1px; width: 2px; background: color-mix(in srgb, currentColor 20%, transparent); }
.thread__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: background-color .7s var(--ease); }
.thread__packet {
  position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--accent); transition: background-color .7s var(--ease);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent);
}
.thread__stops { position: absolute; inset: 0; }
.thread__stops li { position: absolute; left: 0; top: var(--stop, 0%); margin-top: -14px; }
.thread__stops a {
  position: relative; display: block; width: 28px; height: 28px; margin-left: -14px;
  pointer-events: auto; text-decoration: none; border-radius: 50%;
}
.thread__stops a::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid currentColor;
  transition: transform .35s var(--ease), background-color .35s, border-color .35s;
}
.thread__stops a.is-current::before, .thread__stops a:hover::before { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.thread__stops span {
  position: absolute; left: 32px; top: 50%; padding: .1em .55em; border-radius: 4px;
  background: var(--ink); color: var(--bg); font-size: .85rem; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translate(-6px, -50%); pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.thread__stops a:hover span, .thread__stops a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: .75em 1.5em; border-radius: 999px;
  border: 2px solid currentColor; font-weight: 600; line-height: 1.15; text-decoration: none; cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.pill { max-width: 100%; }
.pill span { display: inline-block; min-width: 0; overflow-wrap: anywhere; }
.pill:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pill--solid:hover { background: var(--chalk); border-color: var(--chalk); color: var(--indigo); }

/* Hero */
.hero { padding: 0; height: 100svh; }
.motion .hero { height: 200svh; }
.hero__stage {
  position: relative; height: 100svh; min-height: 30rem; overflow: hidden;
  display: flex; flex-direction: column; gap: clamp(.75rem, 2.5vh, 1.5rem);
  padding: var(--edge) var(--edge) var(--edge) var(--gutter);
}
.motion .hero__stage { position: sticky; top: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__status { position: relative; display: flex; align-items: center; gap: .7em; font-weight: 500; font-size: clamp(.9rem, .85rem + .3vw, 1.1rem); }
.hero__status i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.hero__name {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center;
  font: 900 clamp(2.2rem, min(14.8vw, 25svh), 18rem)/1 var(--display);
  letter-spacing: -.045em; margin-left: -.05em;
}
.name-on .hero__name { color: transparent; }
.hero__foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
.hero__foot h1 { font: 700 clamp(1.3rem, 1rem + 1.8vw, 2.9rem)/1.12 var(--display); letter-spacing: -.03em; }
.hero__foot h1 span { display: block; }
.h-b { color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Video: an artboard selected on the blue canvas. Its ratio always matches the
   file for that screen, so nothing is ever cropped. */
.film { --ratio: 16 / 9; --film-w: min(100%, calc((100svh - 8.5rem) * 16 / 9)); padding-block: clamp(2rem, 6vh, 4rem); }
.film__stage { display: flex; align-items: center; justify-content: center; }
.film__frame { position: relative; width: var(--film-w); aspect-ratio: var(--ratio); margin-block: 2.4rem; }
.film__video, .film__poster, .film__poster img { display: block; width: 100%; height: 100%; }
.film__video { background: var(--indigo); object-fit: contain; }
/* The selection frame already marks it, and its controls show their own focus */
.film__video:focus-visible { outline: none; }
.film__poster { display: none; position: absolute; inset: 0; }
.film__poster img { object-fit: contain; }
.film__frame::after { content: ""; position: absolute; inset: 0; z-index: 2; border: 2px solid var(--ink); pointer-events: none; }
.film__name { position: absolute; bottom: 100%; left: 0; margin-bottom: .6rem; color: var(--ink); white-space: nowrap; }
.film__handle { position: absolute; z-index: 3; width: 13px; height: 13px; margin: -6.5px; background: var(--chalk); border: 2px solid var(--accent); pointer-events: none; }
.film__handle:nth-of-type(1) { top: 0; left: 0; }
.film__handle:nth-of-type(2) { top: 0; left: 100%; }
.film__handle:nth-of-type(3) { top: 100%; left: 0; }
.film__handle:nth-of-type(4) { top: 100%; left: 100%; }
.film__play {
  display: none; position: absolute; left: 50%; top: 50%; z-index: 4; width: clamp(4.5rem, 9vw, 7.5rem); aspect-ratio: 1; margin: 0; padding: 0; translate: -50% -50%;
  place-items: center; border: 0; border-radius: 50%; background: var(--ultramarine); color: var(--chalk); cursor: pointer;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ultramarine) 45%, transparent); animation: filmcall 2.2s ease-out infinite; transition: scale .35s var(--ease), background-color .3s, color .3s;
}
.film__play svg { width: 42%; height: 42%; margin-left: 4%; fill: currentColor; }
.film__play:hover { scale: 1.08; background: var(--indigo); }
.film__play:focus-visible { outline-color: var(--indigo); }
@keyframes filmcall { to { box-shadow: 0 0 0 clamp(14px, 2vw, 26px) transparent; } }
.js .film__poster { display: block; }
.js .film__play { display: grid; }
.film.is-starting .film__poster { opacity: 0; transition: opacity .7s ease; }
.film.is-starting .film__play, .film.is-playing .film__poster { display: none; }

/* About */
.about { padding-block: clamp(4rem, 10vh, 7rem) clamp(3rem, 8vh, 6rem); }
.about__text { font: 500 clamp(1.5rem, 1.05rem + 2.5vw, 3.6rem)/1.28 var(--display); letter-spacing: -.02em; max-width: 24em; }
.about__text .w { opacity: .18; }
.glance { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3.5rem, 12vh, 8rem); align-items: start; }
.scan-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 2px solid currentColor; }
.scan-head b { color: var(--accent); font-weight: 600; }
.scan-body { display: grid; grid-template-columns: clamp(130px, 15vw, 230px) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 2rem); padding-top: 1.1rem; }
.viewfinder { position: relative; overflow: hidden; border-radius: 4px; }
.viewfinder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.beam { position: absolute; inset-inline: 0; top: 0; height: 40%; opacity: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 50%, transparent)); border-bottom: 2px solid var(--accent); }
.facts div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .75rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: .95em; line-height: 1.4; }
.facts div:first-child { padding-top: 0; }
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem); }
.proof > div { min-width: 0; }
.proof strong {
  display: flex; align-items: center; gap: .3em; margin-bottom: .25em; color: var(--accent); white-space: nowrap;
  font: 700 clamp(2.1rem, 1.6rem + 2.2vw, 3.8rem)/1.1 var(--display); letter-spacing: -.04em;
}
.proof span { line-height: 1.35; }
.proof strong span { line-height: inherit; }
.ico { flex: none; width: .62em; height: .62em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.count b { display: inline-block; font-weight: inherit; }
.count i { display: inline-block; font-style: normal; }
.count .ai { color: var(--ink); }
.roles { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.roles li { padding: .1em .6em; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 99px; font-size: .78em; line-height: 1.5; }
.roles li.me { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.live { display: block; text-decoration: none; }
.live > span { text-decoration: underline; text-underline-offset: .2em; }
.arrow { transition: transform .25s var(--ease); }
.live:hover .arrow { transform: translate(3px, -3px); }
.pulse { position: relative; flex: none; width: .34em; height: .34em; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: livepulse 1.6s ease-out infinite; }
@keyframes livepulse { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

/* Work */
.work { padding-block: clamp(3.5rem, 10vh, 7rem) 3rem; }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 2rem; }
.work-head p { color: var(--muted); }
.project { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-content: start; min-width: 0; padding: clamp(1.25rem, 2.4vw, 2.25rem); background: var(--panel); border-radius: 6px;
  /* The card keeps its own colours while the page theme changes behind it */
  --bg: var(--panel); --ink: var(--chalk); --accent: var(--gold); --on-accent: var(--indigo); --muted: #b6b4e6; color: var(--ink);
}
.project__text { display: grid; gap: 1.5rem; align-content: start; min-width: 0; container-type: inline-size; }
.project__name { margin-top: .25em; font: 800 clamp(2.2rem, 13cqw, 12rem)/1 var(--display); letter-spacing: -.045em; }
.project__logo { display: inline-block; width: .76em; height: .76em; margin-left: .2em; vertical-align: -.02em; border-radius: .17em; }
.project__main { display: grid; gap: 1.5rem 2.5rem; align-items: start; }
.line { font-size: 1.12em; line-height: 1.4; max-width: 30em; }
.brief { margin-top: .4rem; }
.brief div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; padding: .7rem 0; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); line-height: 1.4; }
.brief dt { padding-top: .2em; }
.project .brief { margin-top: 0; }
.project .brief div { position: relative; transition: opacity .3s; }
.project .brief button { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
/* The whole row is the button */
.project .brief button::after { content: ""; position: absolute; inset: 0; }
.js .project .brief div:not(.is-on) { opacity: .55; }
.project .brief div:hover { opacity: 1 !important; }
.project .brief div.is-on { border-top-color: var(--accent); }
.project .brief div.is-on button { color: var(--accent); }
.project-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }

/* The phone is a small prototype of the real flow */
.proto { display: grid; gap: .7rem; justify-items: center; min-width: 0; }
.proto__phone { position: relative; width: min(19rem, 72vw); max-width: 100%; aspect-ratio: 778 / 1600; overflow: hidden; border: 6px solid var(--indigo); border-radius: 26px; background: #faf9f8; }
.proto__screen { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.js .proto__screen { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.js .proto__screen.is-on { opacity: 1; }
.proto__hint { min-height: 1.4em; font-weight: 600; color: var(--accent); text-align: center; }
.proto__beam { position: absolute; left: 0; right: 0; top: 0; height: 30%; opacity: 0; pointer-events: none; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--gold) 60%, transparent)); border-bottom: 3px solid var(--gold); }
.is-scanning .proto__beam { opacity: 1; animation: protobeam 1s ease-in-out; }
@keyframes protobeam { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
.proto__spot { position: absolute; display: none; padding: 0; border: 0; background: none; cursor: pointer; }
.js .proto__spot.is-on { display: block; }
.proto__spot:focus-visible { outline: 3px solid var(--ultramarine); outline-offset: 2px; }
.proto__spot--call { box-shadow: 0 0 0 3px var(--gold); }
.motion .proto__spot--call { animation: protocall 1.6s ease-out infinite; }
@keyframes protocall { 0% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 2px color-mix(in srgb, var(--gold) 70%, transparent); } 100% { box-shadow: 0 0 0 2px var(--gold), 0 0 0 14px transparent; } }
.is-scanning .proto__spot { display: none !important; }
html:not(.js) .proto__phone { display: flex; gap: .5rem; width: 100%; aspect-ratio: auto; border: 0; background: none; }
html:not(.js) .proto__screen { flex: 1 1 0; min-width: 0; height: auto; }
html:not(.js) .proto__hint, html:not(.js) .proto__beam { display: none; }
@container (min-width: 44rem) {
  .project__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
@media (min-width: 1041px) {
  .project { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
  .project__name { font-size: min(13cqw, 18svh); white-space: nowrap; }
  /* Heading, card and phone all fit on one screen */
  .proto__phone { width: min(29svh, 24rem); }
  .work { padding-block-start: clamp(2.5rem, 6vh, 4.5rem); }
  .work-head { margin-bottom: clamp(1rem, 2.5vh, 2rem); }
}

/* Feedback */
.feedback { padding-block: clamp(5rem, 16vh, 11rem) 3rem; }
.quotes { margin-top: 1.5rem; border-top: 2px solid currentColor; }
.quote {
  position: relative; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: baseline;
  padding: 1.5rem .6rem; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  isolation: isolate; transition: color .3s, padding-left .45s var(--ease);
}
.quote::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease);
}
.quote:hover { padding-left: 1.4rem; }
.quote:hover::before { transform: scaleY(1); }
.quote blockquote { font: 500 clamp(1.05rem, .9rem + .85vw, 1.65rem)/1.32 var(--display); letter-spacing: -.02em; }
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption span { font-size: .92em; }

/* Experience */
.career { padding-block: 3rem; }
.career__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.25rem, 3.5vh, 2.5rem); padding-block: 2rem; }
.trace__axis { position: relative; height: 1.8em; color: var(--muted); font-size: .9rem; }
.trace__axis span { position: absolute; left: calc(var(--at) * 100%); }
.trace__rows {
  position: relative; display: grid; gap: clamp(4px, .9vh, 8px); padding-block: 8px;
  border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background-image: linear-gradient(to right, color-mix(in srgb, currentColor 11%, transparent) 1px, transparent 1px);
  background-size: 14.2857% 100%;
}
.trace__row { height: clamp(26px, 4.8vh, 46px); }
.trace__bar {
  position: relative; height: 100%; margin-left: calc(var(--from) * 100%); width: calc((var(--to) - var(--from)) * 100%);
  display: flex; align-items: center; font-size: clamp(.8rem, .75rem + .35vw, 1.05rem); white-space: nowrap;
}
.trace__fill { position: absolute; inset: 0; background: var(--ultramarine); border-radius: 3px; transform-origin: left; }
.trace__bar b { position: absolute; left: calc(100% + .7em); font-weight: 600; }
.trace__bar--in b { left: .7em; color: var(--chalk); }
.bar-short { display: none; }
@media (max-width: 760px) {
  .bar-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bar-short { display: inline; }
}
.trace__bar--live .trace__fill { background: var(--indigo); }
.trace__bar--live b { left: auto; right: calc(100% + .7em); color: var(--indigo); }
.trace__head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--indigo); opacity: 0; }
.exp { display: grid; gap: 1.5rem; }
.exp li { max-width: 46rem; }
.exp time { display: block; margin-bottom: .35em; }
.exp b { display: block; font: 600 clamp(1.15rem, 1rem + .9vw, 1.9rem)/1.2 var(--display); letter-spacing: -.02em; }
.place { white-space: nowrap; }
.flag { display: inline-block; width: 1.25em; height: .75em; margin-left: .35em; vertical-align: -.02em; border-radius: 2px; }
.exp .org { display: block; margin-top: .2em; color: var(--muted); }
.org__logo { display: inline-block; width: 1.1em; height: 1.1em; margin-left: .35em; vertical-align: -.2em; border-radius: .24em; }
.exp p { margin-top: .35em; color: var(--muted); }
.motion.wide .career .exp { grid-template-areas: "a"; }
.motion.wide .career .exp li { grid-area: a; }

/* Education */
.education { padding-block: clamp(3rem, 10vh, 6rem); }
.education .exp { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px solid currentColor; }

/* Contact */
.contact { padding-block: clamp(4rem, 14vh, 10rem) 2rem; min-height: 100svh; display: flex; flex-direction: column; }
.contact h2 {
  margin-top: .4em; max-width: 12em;
  font: 900 clamp(2.5rem, 8.6vw, 10rem)/.98 var(--display); letter-spacing: -.05em; margin-left: -.03em;
}
.contact .offer { margin-top: 1.2em; font: 600 clamp(1.15rem, 1rem + 1.2vw, 2.1rem)/1.2 var(--display); letter-spacing: -.025em; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.to-top { flex: none; align-self: center; justify-content: center; width: max(48px, 2.85em); height: max(48px, 2.85em); margin-left: auto; padding: 0; }
.to-top span { display: block; line-height: 0; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.foot { margin-top: auto; padding-top: 4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 2rem; font-size: .95em; color: var(--muted); }
.legal { display: inline-flex; gap: 1.25rem; }
.legal a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.legal a:hover { color: var(--ink); }

/* Cursor ring */
.cursor {
  position: fixed; top: -18px; left: -18px; z-index: 50; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0;
}
.cursor.is-on { opacity: 1; }

@media (max-width: 1100px) and (orientation: portrait) {
  .film { --ratio: 4 / 5; --film-w: min(100%, calc((100svh - 8.5rem) * 4 / 5)); }
}
@media (max-width: 1280px) {
  .glance { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1040px) {
  .quote { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .thread__stops { display: none; }
  .hero__name { font-size: min(14.6vw, 20svh); }
  .trace__axis span:nth-child(even) { display: none; }
  .brief div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .media--phones { gap: .5rem; }
  .phone { border-radius: 8px; }
}
@media (max-height: 500px) {
  .hero__stage { min-height: 0; gap: .4rem; padding-block: .9rem; }
  .hero__name { font-size: min(14.8vw, 21svh); }
  .hero__foot { gap: .4rem 1.5rem; }
  .hero__foot h1 { font-size: clamp(1rem, 6svh, 1.6rem); }
  .hero .pill { min-height: 40px; padding: .4em 1.2em; font-size: .9rem; }
  .film { --film-w: min(100%, calc((100svh - 6rem) * 16 / 9)); padding-block: 1rem; }
  .film__frame { margin-block: 1.8rem; }
}
@media (max-width: 480px) {
  .proof { grid-template-columns: minmax(0, 1fr); }
  .scan-body { grid-template-columns: minmax(0, 1fr); }
  .viewfinder { width: 160px; aspect-ratio: 1; }
  .pill { padding-inline: 1.1em; }
  .contact .pill { font-size: .875rem; }
}

/* The bar is too short to hold its label here */
@media (max-width: 340px) {
  .trace__bar--in b { left: auto; right: calc(100% + .7em); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .about__text .w { opacity: 1; }
}
