/* Layout: Apple-style stack. Translucent global bar, sticky local bar, centered hero,
   full-bleed carousel, a 12px-gutter tile grid, a scrolling shelf, then quiet spec-style sections. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --fg-3: #86868b;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, .12);
  --link: #0066cc;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --btn-fg: #ffffff;
  --nav-bg: rgba(250, 250, 252, .78);
  --nav-fg: rgba(0, 0, 0, .8);
  --lnav-bg: rgba(255, 255, 255, .74);
  --tile: #f5f5f7;
  --tile-fg: #1d1d1f;
  --tile-2: #6e6e73;
  --ink: #000000;
  --ink-fg: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-link: #2997ff;
  --ink-line: rgba(255, 255, 255, 0);
  --card: #ffffff;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, .06);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, .12);
  --icon-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  --grad-a: #0a84ff;
  --grad-b: #2fb7c9;
  --chip: #ffffff;
  --chip-line: #e3e3e8;
  --focus: #0071e3;
  /* Highlight cards are dark in both themes, like Apple's film strips. */
  --hl-fg: #f5f5f7;
  --hl-2: #a1a1a6;
  --hl-mist: radial-gradient(120% 90% at 50% 100%, #0b3a6b 0%, #061a33 45%, #020812 100%);
  --hl-id: radial-gradient(120% 90% at 50% 100%, #0b3f86 0%, #061a3a 50%, #01060f 100%);
  --hl-apps: linear-gradient(160deg, #1c1c1e 0%, #0b0b0c 100%);
  --hl-people: radial-gradient(110% 80% at 50% 100%, #2a1b5e 0%, #110b28 55%, #050310 100%);
  --hl-job: radial-gradient(120% 90% at 50% 100%, #4a2a07 0%, #1f1203 55%, #080501 100%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter-l: max(22px, env(safe-area-inset-left, 0px));
  --gutter-r: max(22px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.28, .11, .32, 1);
  --spring: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-alt: #101012; --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #86868b;
    --line: #424245; --line-soft: rgba(255, 255, 255, .14); --link: #2997ff;
    --btn: #0071e3; --btn-hover: #0077ed; --btn-fg: #ffffff;
    --nav-bg: rgba(22, 22, 23, .8); --nav-fg: rgba(255, 255, 255, .82); --lnav-bg: rgba(22, 22, 23, .74);
    --tile: #1c1c1e; --tile-fg: #f5f5f7; --tile-2: #a1a1a6;
    --ink: #0a0a0c; --ink-fg: #f5f5f7; --ink-2: #a1a1a6; --ink-link: #2997ff; --ink-line: rgba(255, 255, 255, .09);
    --card: #1c1c1e; --card-shadow: 0 4px 24px rgba(0, 0, 0, .4); --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, .6);
    --icon-shadow: 0 10px 28px rgba(0, 0, 0, .55);
    --grad-a: #2997ff; --grad-b: #5ad1e0;
    --chip: #1c1c1e; --chip-line: #2c2c2e; --focus: #2997ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --bg-alt: #101012; --fg: #f5f5f7; --fg-2: #a1a1a6; --fg-3: #86868b;
  --line: #424245; --line-soft: rgba(255, 255, 255, .14); --link: #2997ff;
  --btn: #0071e3; --btn-hover: #0077ed; --btn-fg: #ffffff;
  --nav-bg: rgba(22, 22, 23, .8); --nav-fg: rgba(255, 255, 255, .82); --lnav-bg: rgba(22, 22, 23, .74);
  --tile: #1c1c1e; --tile-fg: #f5f5f7; --tile-2: #a1a1a6;
  --ink: #0a0a0c; --ink-fg: #f5f5f7; --ink-2: #a1a1a6; --ink-link: #2997ff; --ink-line: rgba(255, 255, 255, .09);
  --card: #1c1c1e; --card-shadow: 0 4px 24px rgba(0, 0, 0, .4); --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, .6);
  --icon-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  --grad-a: #2997ff; --grad-b: #5ad1e0;
  --chip: #1c1c1e; --chip-line: #2c2c2e; --focus: #2997ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
html { overflow-x: clip; scroll-padding-top: 64px; }
.gnav-links a[aria-current="page"], .gnav-menu a[aria-current="page"] { color: var(--fg); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 40; background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
.wrap { max-width: 1068px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Links and buttons ---------- */
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; }
.more .chev { width: 7px; height: 12px; margin-top: 1px; transition: transform .3s var(--ease); }
.more:hover .chev { transform: translateX(3px); }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px;
  padding: 11px 22px; border-radius: 980px; font-size: 17px; line-height: 1.18;
  background: var(--btn); color: var(--btn-fg); border: 1px solid var(--btn);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  cursor: pointer;
}
.pill:hover { background: var(--btn-hover); text-decoration: none; }
.pill:active { transform: scale(.97); }
.pill--ghost { background: transparent; color: var(--link); border-color: currentColor; }
.pill--ghost:hover { background: var(--link); color: var(--bg); border-color: var(--link); }
.pill--sm { padding: 7px 15px; font-size: 14px; }
.pill--xs { padding: 4px 11px; font-size: 12px; line-height: 1.33; }

/* ---------- Global nav ---------- */
.gnav {
  position: relative; z-index: 30;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.gnav-in { height: 44px; display: flex; align-items: center; gap: 8px; }
.mono {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--bg); background: var(--fg);
  transition: transform .3s var(--ease);
}
.gnav-home:hover { text-decoration: none; }
.gnav-home:hover .mono { transform: scale(1.06); }
.gnav-links { display: flex; flex: 1; justify-content: space-around; list-style: none; margin: 0 0 0 24px; padding: 0; }
.gnav-links a, .gnav-icon { color: var(--nav-fg); font-size: 12px; letter-spacing: -.01em; transition: color .3s var(--ease); }
.gnav-links a:hover, .gnav-icon:hover { color: var(--fg); text-decoration: none; }
.gnav-icon { display: inline-grid; place-items: center; width: 36px; height: 44px; }
.gnav-icon svg { width: 15px; height: 15px; }
.gnav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; margin-right: -12px; border: 0; background: none; cursor: pointer; position: relative; }
.gnav-toggle span { position: absolute; left: 15px; width: 15px; height: 1.2px; background: var(--fg); border-radius: 1px; transition: transform .35s var(--ease), top .35s var(--ease); }
.gnav-toggle span:first-child { top: 18px; }
.gnav-toggle span:last-child { top: 25px; }
.gnav.is-open .gnav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.gnav.is-open .gnav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }
.gnav-menu {
  position: fixed; inset: calc(44px + env(safe-area-inset-top, 0px)) 0 0; z-index: 29; background: var(--bg);
  padding: 20px var(--gutter-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s linear .3s; overflow-y: auto;
}
.gnav.is-open ~ .gnav-menu { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.gnav-menu ul { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 6px; }
.gnav-menu a { display: block; font-size: 28px; font-weight: 600; letter-spacing: .007em; color: var(--fg); padding-block: 4px; }
.gnav-menu li { opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.gnav.is-open ~ .gnav-menu li { opacity: 1; transform: none; transition-delay: calc(var(--n) * 30ms + 60ms); }

/* ---------- Local nav ---------- */
.lnav-sentinel { height: 1px; margin-bottom: -1px; }
.lnav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: 52px;
  background: var(--lnav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .4s var(--ease);
}
.lnav.is-stuck { border-bottom-color: var(--line-soft); }
.lnav-in { height: 100%; display: flex; align-items: center; gap: 24px; position: relative; }
.lnav-title { font-size: 21px; font-weight: 600; letter-spacing: .011em; color: var(--fg); margin-right: auto; }
.lnav-title:hover { text-decoration: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-block: 64px 24px; }
.hero-eyebrow { font-size: 17px; font-weight: 600; color: var(--fg-2); margin: 0 0 6px; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(48px, 8.6vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.hero-tag { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.14; font-weight: 400; letter-spacing: .007em; margin: 14px auto 0; max-width: 22em; text-wrap: balance; }
.hero-sub { color: var(--fg-2); max-width: 36em; margin: 16px auto 0; text-wrap: balance; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.arc { display: flex; justify-content: center; align-items: flex-start; gap: clamp(5px, 1.1vw, 16px); margin: clamp(40px, 6vw, 72px) auto 0; padding-bottom: clamp(60px, 9vw, 110px); }
.arc-i { --u: min(1px, .068vw); position: relative; display: block; width: calc(var(--s) * var(--u)); flex: none; transform: translateY(calc(var(--y) * var(--u))); }
.arc-i:hover { text-decoration: none; }
.arc-f { display: block; }
.arc-i img { width: 100%; aspect-ratio: 1; border-radius: 22.5%; box-shadow: var(--icon-shadow); transition: transform .5s var(--spring); }
.arc-i:hover img, .arc-i:focus-visible img { transform: scale(1.1) translateY(-4px); }
.arc-label {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translate(-50%, -4px); white-space: nowrap;
  font-size: 12px; color: var(--fg-2); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.arc-i:hover .arc-label, .arc-i:focus-visible .arc-label { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Section heads ---------- */
.sec { padding-block: clamp(72px, 10vw, 120px); }
.sec-title { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.003em; margin: 0; text-wrap: balance; }
.sec-lede { font-size: clamp(19px, 2vw, 21px); line-height: 1.38; color: var(--fg-2); margin: 12px 0 0; max-width: 34em; text-wrap: pretty; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Highlights carousel ---------- */
.hl { padding-block: clamp(56px, 8vw, 100px) clamp(64px, 9vw, 110px); }
.hl-track {
  --slide: min(1024px, calc(100vw - 44px));
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: calc((100vw - var(--slide)) / 2); scroll-padding-inline: calc((100vw - var(--slide)) / 2);
  scrollbar-width: none; margin-top: 36px; outline: none;
}
.hl-track::-webkit-scrollbar { display: none; }
.hl-card {
  flex: 0 0 var(--slide); scroll-snap-align: center; position: relative; overflow: hidden; isolation: isolate;
  height: clamp(460px, 54vw, 640px); border-radius: 28px; color: var(--hl-fg);
  transition: opacity .6s var(--ease);
}
.hl-card:not(.is-active) { opacity: .55; }
.hl-cap { position: relative; z-index: 2; margin: 0; padding: clamp(26px, 4vw, 44px); max-width: 30em; font-size: clamp(19px, 2.3vw, 28px); line-height: 1.17; font-weight: 600; letter-spacing: .004em; color: var(--hl-2); text-wrap: pretty; }
.hl-cap strong { color: var(--hl-fg); font-weight: 600; }
.hl-cap sup { font-size: .5em; }
.hl-art { position: absolute; inset: 0; z-index: 1; display: grid; place-items: end center; pointer-events: none; }
.hl-card--mist { background: var(--hl-mist); }
.hl-card--id { background: var(--hl-id); }
.hl-card--apps { background: var(--hl-apps); }
.hl-card--people { background: var(--hl-people); }
.hl-card--job { background: var(--hl-job); }

/* Card 1: an access point broadcasting */
.ap { position: absolute; left: 50%; bottom: 22%; width: 0; height: 0; }
.ap-ring { position: absolute; left: 50%; top: 50%; width: clamp(240px, 46vw, 520px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(90, 180, 255, .55); transform: translate(-50%, -50%) scale(.12); opacity: 0; }
.ap-dev {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(84px, 11vw, 120px); aspect-ratio: 1; border-radius: 26%;
  background: linear-gradient(180deg, #fafafa, #d9dde3); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), inset 0 -2px 0 rgba(0, 0, 0, .08);
}
.ap-dev::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: #34c759; transform: translate(-50%, -50%); box-shadow: 0 0 14px #34c759; }
.ap-ring:nth-child(1) { opacity: .5; transform: translate(-50%, -50%) scale(.45); }
.ap-ring:nth-child(2) { opacity: .3; transform: translate(-50%, -50%) scale(.75); }
.ap-ring:nth-child(3) { opacity: .15; transform: translate(-50%, -50%) scale(1.05); }

/* Card 2: accounts lighting up */
.solo { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); }
.solo img { display: block; width: clamp(140px, 20vw, 220px); border-radius: 22.5%; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.glow--blue { background: radial-gradient(circle, rgba(58, 160, 255, .45), transparent 62%); }

/* Card 3: the catalog */
.mosaic { position: absolute; left: 50%; bottom: -14%; width: 150%; transform: translateX(-50%) rotate(-12deg); display: grid; grid-template-columns: repeat(9, 1fr); gap: clamp(12px, 2vw, 24px); }
.mosaic img { width: 100%; aspect-ratio: 1; border-radius: 22.5%; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* Card 4: the number */
.bignum { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-size: clamp(84px, 17vw, 210px); font-weight: 700; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(180deg, #ffffff 10%, #9b8cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.glow { position: absolute; left: 50%; bottom: -20%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(140, 110, 255, .45), transparent 62%); filter: blur(10px); }

/* Card 5: two tools from the job */
.pair { position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%); display: flex; align-items: flex-end; }
.pair img { width: clamp(120px, 17vw, 190px); border-radius: 22.5%; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.pair img + img { margin-left: -24px; transform: translateY(-34px) rotate(8deg); }
.pair img:first-child { transform: rotate(-6deg); }
.glow--amber { background: radial-gradient(circle, rgba(255, 159, 10, .35), transparent 62%); }

.hl-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }
.hl-dots { display: flex; gap: 12px; align-items: center; padding: 0 20px; height: 56px; border-radius: 999px; background: var(--bg-alt); }
.hl-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--fg-3); opacity: .55; cursor: pointer; overflow: hidden; transition: width .5s var(--ease), opacity .3s; }
.hl-dot::before { content: ""; position: absolute; inset: -14px -5px; }
.hl-dot:hover { opacity: .8; }
.hl-dot.is-active { width: 48px; opacity: 1; background: var(--line); }
.hl-dot .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--fg-2); border-radius: inherit; }
.hl-dot.is-active .fill { animation: fill 5s linear forwards; animation-play-state: paused; }
.hl.is-playing .hl-dot.is-active .fill { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .hl-dot.is-active .fill { animation: none; width: 100%; } }
@keyframes fill { to { width: 100%; } }
.hl-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--fg-2); display: grid; place-items: center; cursor: pointer; transition: color .2s, transform .2s; }
.hl-play:hover { color: var(--fg); }
.hl-play:active { transform: scale(.94); }
.hl-play svg { width: 16px; height: 16px; }
.hl-play .i-play { display: none; }
.hl:not(.is-playing) .hl-play .i-play { display: block; }
.hl:not(.is-playing) .hl-play .i-pause { display: none; }

/* ---------- Work tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: 12px; padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); max-width: 1800px; margin-inline: auto; }
@media (min-width: 734px) { .tiles { grid-template-columns: 1fr 1fr; } .tile--wide { grid-column: 1 / -1; } }
.tile {
  position: relative; overflow: hidden; isolation: isolate; min-height: clamp(500px, 44vw, 600px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(40px, 5vw, 56px) 24px 0; background: var(--tile); color: var(--tile-fg);
}
.tile--ink { background: var(--ink); color: var(--ink-fg); box-shadow: inset 0 0 0 1px var(--ink-line); --link: var(--ink-link); }
.tile--wide { min-height: clamp(560px, 48vw, 690px); }
.tile h3 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.003em; margin: 0; }
.tile p { font-size: clamp(19px, 2vw, 24px); line-height: 1.17; letter-spacing: .009em; margin: 6px 0 0; max-width: 22em; text-wrap: balance; }
.tile-eyebrow { font-size: 14px !important; font-weight: 600; letter-spacing: -.01em !important; color: var(--tile-2); margin: 0 0 6px !important; }
.tile--ink .tile-eyebrow { color: var(--ink-2); }
.tile-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.tile-ctas .pill--ghost { color: var(--link); }
.tile-art { flex: 1; width: 100%; display: grid; place-items: center; position: relative; padding-block: 36px 48px; }
.tile-art::before { content: ""; position: absolute; left: 50%; top: 55%; width: min(80%, 460px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 64%); opacity: .55; z-index: -1; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.tile:hover .tile-art::before { opacity: .8; transform: translate(-50%, -50%) scale(1.08); }
.tile-art img { width: clamp(130px, 16vw, 180px); border-radius: 22.5%; box-shadow: var(--icon-shadow); transition: transform .8s var(--spring); }
.tile:hover .tile-art img { transform: translateY(-6px) scale(1.04); }

.marquee { width: 100%; overflow: hidden; display: grid; gap: 18px; padding-block: 36px 52px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-row { display: flex; gap: 18px; width: max-content; }
.marquee img { width: clamp(72px, 8vw, 104px); border-radius: 22.5%; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 834px) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.portrait { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 480px; margin-inline: auto; width: 100%; background: var(--bg-alt); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.about-copy { min-width: 0; }
.about-copy p { color: var(--fg-2); margin: 16px 0 0; max-width: 34em; }
.about-copy p strong { color: var(--fg); font-weight: 600; }
.facts { margin: 32px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.fact { padding-block: 14px; border-top: 1px solid var(--line); min-width: 0; }
.fact dt { font-size: 12px; color: var(--fg-3); letter-spacing: -.01em; }
.fact dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- Numbers ---------- */
.band-alt { background: var(--bg-alt); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin-top: 48px; }
@media (min-width: 834px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { min-width: 0; }
.stat-n {
  display: block; font-size: clamp(52px, 7vw, 80px); line-height: 1; font-weight: 700; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px;
}
.stat-n sup { font-size: .26em; vertical-align: super; letter-spacing: 0; -webkit-text-fill-color: var(--fg-2); }
.stat-l { display: block; margin-top: 10px; color: var(--fg-2); font-size: 17px; max-width: 14em; }

/* ---------- App shelf ---------- */
.shelf-wrap { position: relative; }
.shelf {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(var(--gutter-r), calc((100vw - 1068px) / 2 + 22px)) 40px max(var(--gutter-l), calc((100vw - 1068px) / 2 + 22px));
  scroll-padding-inline: max(22px, calc((100vw - 1068px) / 2 + 22px));
}
.shelf::-webkit-scrollbar { display: none; }
.app {
  flex: 0 0 clamp(250px, 26vw, 300px); scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--card); border-radius: 18px; padding: 28px 28px 26px; box-shadow: var(--card-shadow);
  color: var(--fg); transition: transform .5s var(--spring), box-shadow .5s var(--ease); min-height: 320px;
}
.app:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--card-shadow-hover); text-decoration: none; }
.app img { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.app-cat { margin: 26px 0 0; font-size: 12px; font-weight: 600; color: var(--fg-3); letter-spacing: -.01em; }
.app-name { margin: 4px 0 0; font-size: 24px; line-height: 1.16; font-weight: 600; letter-spacing: .009em; }
.app-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.43; color: var(--fg-2); flex: 1; }
.app .more { margin-top: 18px; font-size: 14px; color: var(--link); }
.band-alt .app { background: var(--bg); }
.paddles { display: flex; justify-content: flex-end; gap: 14px; }
.paddle { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--line); color: var(--fg); opacity: .8; cursor: pointer; transition: opacity .2s, background .2s; }
.paddle:hover:not(:disabled) { opacity: 1; }
.paddle:disabled { opacity: .3; cursor: default; }
.paddle svg { width: 8px; height: 14px; }

/* ---------- Experience ---------- */
.jobs { display: grid; gap: 0 32px; margin-top: 8px; }
@media (min-width: 834px) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.job { border-top: 1px solid var(--line); padding-block: 28px; min-width: 0; }
.job svg { width: 34px; height: 34px; color: var(--fg); }
.job h3 { font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: .011em; margin: 18px 0 0; }
.job-org { margin: 2px 0 0; color: var(--fg-2); font-size: 17px; }
.job p:last-child { margin: 14px 0 0; color: var(--fg-2); font-size: 15px; line-height: 1.47; }

/* ---------- Skills (spec-sheet rows) ---------- */
.specs { margin-top: 8px; }
.spec { display: grid; gap: 14px 32px; padding-block: 28px; border-top: 1px solid var(--line); }
@media (min-width: 834px) { .spec { grid-template-columns: 240px minmax(0, 1fr); } }
.spec h2, .spec h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: .011em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--chip); border: 1px solid var(--chip-line); transition: transform .3s var(--spring), border-color .3s; }
.chips li:hover { transform: translateY(-2px); border-color: var(--fg-3); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--ink-fg); text-align: center; box-shadow: inset 0 1px 0 var(--ink-line); }
.contact .sec-title { font-size: clamp(40px, 7vw, 80px); letter-spacing: -.025em; }
.contact .grad { background: linear-gradient(90deg, #2997ff, #5ad1e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact .sec-lede { color: var(--ink-2); margin-inline: auto; }
.mail { display: inline-flex; align-items: center; gap: 6px; margin-top: 36px; padding: 6px 6px 6px 22px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); max-width: 100%; }
.mail-addr { font-size: clamp(16px, 2.2vw, 21px); font-weight: 500; letter-spacing: -.01em; user-select: all; overflow-wrap: anywhere; color: var(--ink-fg); }
.mail-copy { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--btn); color: var(--btn-fg); font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background .2s; flex: none; }
.mail-copy:hover { background: var(--btn-hover); }
.mail-copy svg { width: 14px; height: 14px; }
.contact .hero-ctas { margin-top: 24px; }
.contact .more { color: var(--ink-link); }

/* ---------- Footer ---------- */
.foot { background: var(--bg-alt); color: var(--fg-2); font-size: 12px; line-height: 1.33; letter-spacing: -.01em; padding-block: 18px 22px; }
.foot a { color: var(--fg); }
.foot-notes { padding-bottom: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.foot-notes p { margin: 0; }
.crumbs { display: flex; align-items: center; gap: 10px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.crumbs a { display: inline-flex; }
.crumbs .mono { width: 18px; height: 18px; border-radius: 5px; font-size: 8px; }
.crumbs svg { width: 6px; height: 10px; color: var(--fg-3); }
.dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 20px 26px; }
@media (min-width: 834px) { .dir { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dir h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--fg); }
.dir ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dir a { color: var(--fg-2); }
.dir a:hover { color: var(--fg); }
.legal { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Responsive nav ---------- */
@media (max-width: 833px) {
  .gnav-links, .gnav-icon { display: none; }
  .gnav-toggle { display: block; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .in { animation: heroIn 1s var(--spring) both; animation-delay: calc(var(--n, 0) * 90ms + 80ms); }
  .arc-i { animation: arcIn 1.1s var(--spring) both; animation-delay: calc(.35s + var(--d) * 70ms); }
  .arc-f { animation: bob 5.5s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -.9s); }
  .ap-ring { animation: ping 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
  .ap-ring:nth-child(2) { animation-delay: 1.2s; }
  .ap-ring:nth-child(3) { animation-delay: 2.4s; }
  .ap-dev::after { animation: blink 1.8s ease-in-out infinite; }
  .mosaic { animation: drift 28s linear infinite alternate; }
  .pair img:first-child { animation: tiltA 6s ease-in-out infinite alternate; }
  .pair img + img { animation: tiltB 6s ease-in-out infinite alternate; }
  .solo img { animation: float 5s ease-in-out infinite alternate; }
  .marquee-row { animation: slide 46s linear infinite; }
  .marquee-row:nth-child(2) { animation-direction: reverse; animation-duration: 52s; }
  .tile:hover .marquee-row { animation-play-state: paused; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .portrait img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes arcIn {
  from { opacity: 0; transform: translateY(calc(var(--y) * var(--u) + 90px)) scale(.86); }
  to { opacity: 1; transform: translateY(calc(var(--y) * var(--u))); }
}
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes ping { 0% { transform: translate(-50%, -50%) scale(.12); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes drift { from { transform: translateX(-46%) rotate(-12deg); } to { transform: translateX(-54%) rotate(-12deg); } }
@keyframes tiltA { from { transform: rotate(-6deg); } to { transform: rotate(-2deg) translateY(-8px); } }
@keyframes float { to { transform: translateY(-12px); } }
@keyframes tiltB { from { transform: translateY(-34px) rotate(8deg); } to { transform: translateY(-44px) rotate(4deg); } }
@keyframes slide { to { transform: translateX(calc(-50% - 9px)); } }
@keyframes rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }

/* ---------- Subpage header ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(48px, 7.4vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.page-hero p { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.18; letter-spacing: .007em; color: var(--fg-2); margin: 14px 0 0; max-width: 26em; text-wrap: balance; }
.page-hero + .sec { padding-top: clamp(24px, 4vw, 48px); }

/* ---------- App grid (Apps page) ---------- */
.group + .group { margin-top: clamp(56px, 8vw, 88px); }
.group-title { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: .004em; margin: 0 0 24px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.app-grid .app { flex: none; min-height: 300px; }

/* ---------- See-all row ---------- */
.see-all { display: flex; justify-content: center; padding-block: 36px 0; }

/* ---------- Keep reading ---------- */
.next { display: grid; gap: 20px; }
@media (min-width: 734px) { .next { grid-template-columns: 1fr 1fr; } }
.next-card { display: block; padding: 32px; border-radius: 18px; background: var(--card); box-shadow: var(--card-shadow); color: var(--fg); transition: transform .5s var(--spring), box-shadow .5s var(--ease); }
.next-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); text-decoration: none; }
.next-card h3 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: .009em; }
.next-card p { margin: 6px 0 0; color: var(--fg-2); font-size: 17px; }
.next-card .more { margin-top: 18px; color: var(--link); }
.band-alt .next-card { background: var(--bg); }

/* ---------- Experience page ---------- */
.timeline { display: grid; }
.role { display: grid; gap: 10px 48px; padding-block: 36px; border-top: 1px solid var(--line); }
@media (min-width: 834px) { .role { grid-template-columns: 280px minmax(0, 1fr); } }
.role-head svg { width: 34px; height: 34px; color: var(--fg); }
.role-head h2 { margin: 16px 0 0; font-size: 24px; font-weight: 600; letter-spacing: .009em; }
.role-head p { margin: 2px 0 0; color: var(--fg-2); }
.role-body { min-width: 0; }
.role-body p { margin: 0; font-size: clamp(19px, 2vw, 21px); line-height: 1.42; color: var(--fg); max-width: 34em; }
.role-body p + p { margin-top: 14px; color: var(--fg-2); font-size: 17px; }
.role-body .chips { margin-top: 20px; }
