/* ===== Self-hosted display font (Space Grotesk variable) =====
   Ensures the display font renders reliably in the local preview even if the
   external Google Fonts stylesheet fails to load. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Fraunces (variable serif) — self-hosted, used for the home hero title */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* NTO case study page: use SF Pro (Apple system font) for all text */
body.nto-sf {
  --font-display: var(--font-sf);
  --font-body: var(--font-sf);
}

/* ===== Tokens ===== */
:root {
  --bg: #0e0b1f;
  --bg-2: #14102b;
  --surface: #1b1636;
  --surface-2: #221c44;
  --line: #322a5e;
  --text: #efeaff;
  --muted: #a99fd6;
  --violet: #7c5cff;
  --violet-2: #9b7bff;
  --yellow: #ffd43b;
  --teal: #34e5c4;
  --pink: #ff5c9d;
  --radius: 20px;
  --maxw: 1120px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  /* Apple's system font, reached via -apple-system on Apple platforms */
  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
/* Anchored sections stop clear of the 75px sticky nav instead of under it */
:target { scroll-margin-top: 95px; }

body {
  font-family: var(--font-body);
  background: radial-gradient(1200px 800px at 80% -10%, #241a4d 0%, transparent 55%),
              radial-gradient(1000px 700px at -10% 20%, #1a2a4d 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  background: rgba(14, 11, 31, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .2px; }
/* Hand-drawn S: a felt-tip stroke with a doubled-back ghost line and an
   open sketch ring that deliberately overshoots instead of closing. */
.nav__logo { display: block; width: 36px; height: 36px; transform: rotate(-5deg); }
.nav__logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nav__logo path { stroke-linecap: round; stroke-linejoin: round; }
.nav__ink { stroke: url(#inkS); stroke-width: 3.4; }
/* Sketch lines pick up the hero's wallet gradient rather than a single accent */
.nav__ink--ghost { stroke: var(--pink); stroke-width: 1.3; opacity: .5; }
.nav__ring { stroke: var(--yellow); stroke-width: 1.9; opacity: .5; }
/* Hovering re-inks the mark, ring first, then the letter over it */
.nav__brand:hover .nav__ring,
.nav__brand:hover .nav__ink { stroke-dasharray: 220; animation: ink-draw .75s ease forwards; }
.nav__brand:hover .nav__ink { animation-delay: .12s; }
@keyframes ink-draw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .nav__brand:hover .nav__ring,
  .nav__brand:hover .nav__ink { animation: none; stroke-dasharray: none; }
}
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: var(--surface); }
.nav__cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; }
.nav__cta:hover { color: var(--text); background: var(--surface); }

/* Contact section: one inline run of links, pipe separated, wrapping on narrow screens */
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.contact-row { display: inline-flex; align-items: center; gap: 10px; color: var(--text); transition: color .2s; }
.contact-row:hover { color: var(--violet-2); }
.contact-row__icon { width: 22px; height: 22px; flex-shrink: 0; display: block; }
.contact-sep { color: var(--muted); user-select: none; }

/* ===== Layout ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 48px);
}
.kicker { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 700; color: var(--violet-2); margin-bottom: 14px; }
.section__title { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 20px; }
.section__lede { max-width: 760px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin-bottom: 44px; }
.subhead { font-family: var(--font-display); font-size: 22px; margin: 56px 0 22px; }
strong, .section__lede strong { color: var(--text); }
/* ===== About: portrait on the left, prose beside it ===== */
.about__grid { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.about__prose .section__lede { margin-bottom: 0; max-width: 62ch; }
.about__prose .section__lede + .section__lede { margin-top: 18px; }
.about__portrait { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }

/* Intro figures reuse the case study meta strip, with a larger number */
.meta.intro-stats { margin-top: clamp(36px, 5vw, 56px); }
/* Reversed so the figure reads above its caption while the dl keeps dt before dd.
   Packing to flex-end pins the figures to one top baseline when a caption wraps. */
.meta.intro-stats > div { padding: 20px 22px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.meta.intro-stats dt { margin-bottom: 0; }
.meta.intro-stats dd { font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
/* Fixed-width digits so the counting figures don't jitter as they climb */
.meta.intro-stats dd { font-variant-numeric: tabular-nums; }

.xp { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.xp__org {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
}
.xp__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.xp__mark {
  flex: none; width: 64px; height: 64px; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
}
.xp__mark--logo { background: #fff; border-color: rgba(255, 255, 255, .14); padding: 10px; }
/* Pixel caps keep each logo's aspect ratio; a percentage max-height has no definite height here */
.xp__mark--logo img { display: block; width: auto; height: auto; max-width: 44px; max-height: 44px; }
.xp__company { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.xp__meta { color: var(--muted); font-size: 14px; }
.xp__roles { list-style: none; display: flex; flex-direction: column; gap: 18px; padding-left: 80px; }
.xp__title { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.xp__dates { color: var(--violet-2); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.xp__copy, .xp__list { color: var(--muted); font-size: 15px; }
.xp__list { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.xp__list li { padding-left: 2px; }

.edu { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; }
.edu__kicker { margin-top: 56px; }
.edu .xp__head { margin-bottom: 0; }
.edu .xp__title { color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.edu .xp__dates { margin-bottom: 0; }
.edu .xp__copy { margin-top: 8px; }

.awards { display: grid; grid-template-columns: 1fr 1fr; }
.awards > li:last-child { grid-column: 1 / -1; }

/* Timeline treatment: no cards, and a rule connecting each logo node to the
   next. Declared after .edu so it can override that section's grid, and a zero
   gap keeps the connecting line unbroken. */
.xp--timeline { display: flex; flex-direction: column; gap: 0; }
.xp--timeline .xp__org {
  position: relative;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0 0 36px;
}
.xp--timeline .xp__org:last-child { padding-bottom: 0; }
.xp--timeline .xp__org::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 72px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.xp--timeline .xp__org:last-child::before { content: none; }

/* ===== Expertise: service cards, each tinted by its own --accent ===== */
.services { list-style: none; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.service {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
/* Everything here is derived from --accent, so each card glows in its own
   colour without a rule per variant. */
.service:hover {
  background: color-mix(in srgb, var(--accent) 20%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  box-shadow: 0 0 18px -4px color-mix(in srgb, var(--accent) 55%, transparent),
              0 0 48px -10px color-mix(in srgb, var(--accent) 32%, transparent);
  transform: translateY(-3px);
}
.service:hover .service__icon { border-color: color-mix(in srgb, var(--accent) 75%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .service { transition: none; }
  .service:hover { transform: none; }
}
.service__icon {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--accent);
  background: rgba(0, 0, 0, .2);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.service__icon svg { width: 26px; height: 26px; }
.service__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.25; margin-bottom: 6px; }
.service__copy { color: var(--muted); font-size: 15px; }

.service--strategy { --accent: #a99cff; }
.service--research { --accent: #7ee7a8; }
.service--gamification { --accent: #ff8fc4; }
.service--prototype { --accent: #ffce6b; }
.service--enterprise { --accent: #7fc6ff; }
.service--ai { --accent: #ff9b9b; }

/* ===== Hero ===== */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 48px) 40px;
  text-align: center;
}
.hero__glow {
  position: absolute; inset: -10% 0 auto 0; height: 480px; z-index: -1;
  background: radial-gradient(600px 300px at 50% 0%, rgba(124,92,255,.35), transparent 70%);
  filter: blur(10px);
}
.eyebrow { color: var(--muted); font-size: 13px; letter-spacing: 1px; margin-bottom: 22px; text-align: left; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 12vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title--accent {
  background: linear-gradient(92deg, var(--yellow), var(--pink), var(--violet-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lede { max-width: 620px; margin: 26px auto 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); }

.hero__media { margin: 48px auto 40px; max-width: 900px; }
.hero__media--passes {
  display: flex; justify-content: center; align-items: flex-start;
  padding-bottom: 40px;
}
/* iPhone frame */
.device {
  position: relative; display: inline-block; padding: 6px;
  background: #0b0b14; border-radius: 30px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  transition: transform .3s ease;
}
.device img { display: block; width: 100%; height: auto; border-radius: 24px; }
.device::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 15px; background: #0b0b14; border-radius: 0 0 12px 12px; z-index: 2;
}

.hero__media--passes .device { width: min(240px, 30%); }
/* Overlapping, downward cascade */
.hero__media--passes .device:not(:first-child) { margin-left: clamp(-90px, -7vw, -55px); }
.hero__media--passes .device:nth-child(2) { margin-top: 55px; }
.hero__media--passes .device:nth-child(3) { margin-top: 110px; }
.hero__media--passes .device:hover { transform: translateY(-10px) scale(1.02); z-index: 5; }

@media (max-width: 560px) {
  .hero__media--passes { flex-direction: column; align-items: center; }
  .hero__media--passes .device { width: 62%; }
  .hero__media--passes .device:not(:first-child) { margin-left: 0; margin-top: -40px; }
  .hero__media--passes .device:nth-child(2),
  .hero__media--passes .device:nth-child(3) { margin-top: -40px; }
}

/* Meta */
.meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.meta > div { background: var(--surface); padding: 16px 18px; text-align: left; }
.meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 4px; }
.meta dd { font-family: var(--font-display); font-weight: 600; font-size: 15px; }

/* ===== Placeholders ===== */
.ph {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px dashed var(--line);
  color: var(--muted); font-family: var(--font-display); font-weight: 600;
  letter-spacing: .3px; text-align: center;
}
.ph--hero { aspect-ratio: 16 / 8; font-size: 18px; }
.ph--avatar { width: 64px; height: 64px; border-radius: 50%; font-size: 28px; border-style: solid; }
.ph--avatar.big { width: 120px; height: 120px; font-size: 14px; }
.ph--avatar.accent { background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; border: none; }
.ph--circle { width: 90px; height: 90px; border-radius: 50%; font-size: 40px; color: var(--yellow); margin-bottom: 20px; }
.ph--event { aspect-ratio: 4 / 3; font-size: 18px; margin-bottom: 22px; color: var(--yellow); }

/* ===== Grids & cards ===== */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--violet); box-shadow: 0 18px 40px -20px rgba(124,92,255,.6); }
.card__num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--violet-2); }
.card h3 { font-family: var(--font-display); font-size: 19px; margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card--persona { padding-top: 30px; }
.card--persona h3 { margin-top: 16px; }
.card--big { padding: 32px; }
.card--big .card__num { position: absolute; top: 26px; right: 26px; }

/* ===== Flowchart figure ===== */
.flow__label { margin-top: 88px; margin-bottom: 24px; }
.flow {
  margin-top: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.flow__cap { text-align: center; margin-bottom: 22px; }
.flow__kicker {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 3vw, 28px); color: var(--text); letter-spacing: -0.01em;
}
.flow__sub { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.flow__svg {
  width: 100%; height: auto; display: block;
  overflow: visible;
  font-family: var(--font-display), "Space Grotesk", system-ui, sans-serif;
}
.flow__svg .flow-node { cursor: default; }
.flow__svg .flow-node__bg { transition: filter .25s ease; }
.flow__svg .flow-node:hover .flow-node__bg {
  filter: drop-shadow(0 0 16px rgba(124, 92, 255, .6));
}
.flow__svg .flow-node--gold:hover .flow-node__bg {
  filter: drop-shadow(0 0 16px rgba(212, 160, 23, .6));
}

/* ===== Screens gallery ===== */
.screens { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; margin-top: 44px; }
.screen { flex: 0 1 300px; max-width: 300px; }
.screen .device { width: 100%; }
.screen .device:hover { transform: translateY(-8px); }
.screen { text-align: center; }
.screen figcaption {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(124, 92, 255, .12);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .01em; line-height: 1.35;
  text-align: left;
}
.screen figcaption svg { width: 16px; height: 16px; flex: none; color: var(--violet-2); }
@media (max-width: 640px) { .screen { flex-basis: 260px; max-width: 78vw; } }

/* ===== Checkout experience ===== */
.checkout { display: flex; gap: 64px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 48px; }

/* Wallet screen carousel */
.gallery { flex: none; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.gallery__viewport { position: relative; width: 300px; }
.gallery__stage { position: relative; width: 100%; aspect-ratio: 300 / 649; overflow: hidden; padding: 7px; border-radius: 34px; background: #0b0b14; box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.gallery__stage::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 42%; height: 18px; background: #0b0b14; border-radius: 0 0 14px 14px; z-index: 3; }
.gallery__track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.gallery__slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(20, 16, 43, .82); backdrop-filter: blur(6px);
  color: var(--text); display: grid; place-items: center; cursor: pointer; z-index: 3;
  transition: background .2s, transform .2s;
}
.gallery__nav:hover { background: var(--violet); border-color: var(--violet); }
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__nav--prev { left: -22px; }
.gallery__nav--prev:hover { transform: translateY(-50%) translateX(-2px); }
.gallery__nav--next { right: -22px; }
.gallery__nav--next:hover { transform: translateY(-50%) translateX(2px); }
.gallery__dots { display: flex; gap: 10px; }
.gallery__dots button { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .2s, transform .2s; }
.gallery__dots button.is-active { background: var(--violet-2); transform: scale(1.25); }
@media (max-width: 560px) { .gallery__viewport { width: 78vw; max-width: 300px; } }

.phone {
  flex: none; width: 300px; padding: 12px; border-radius: 46px; background: #0b0b14; position: relative;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 118px; height: 24px; background: #0b0b14; border-radius: 0 0 16px 16px; z-index: 4; }
.phone__screen { position: relative; border-radius: 34px; overflow: hidden; background: #fff; height: 640px; }

.co { display: flex; flex-direction: column; height: 100%; color: #1b2733; font-family: var(--font-body); font-size: 14px; }
.co__bar { background: #0f75bc; color: #fff; padding: 34px 18px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.co__bar h3 { text-align: center; font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.co__brand { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.co__brand b { font-weight: 400; }
.co__brand svg { width: 18px; height: 18px; }
.co__cart { width: 20px; height: 20px; justify-self: end; }

.co__body { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 13px; overflow: hidden; }
.co__label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8a97a5; font-weight: 700; }
.co__item { display: flex; align-items: center; gap: 12px; }
.co__thumb { width: 42px; height: 42px; border-radius: 12px; background: #eef4f9; display: grid; place-items: center; font-size: 20px; flex: none; }
.co__item h4 { font-size: 14px; font-weight: 600; line-height: 1.2; }
.co__item > div span { font-size: 11px; color: #8a97a5; }
.co__price { margin-left: auto; font-weight: 700; }
.co__divider { height: 1px; background: #eaeff4; }

.co__reward { display: flex; align-items: center; gap: 10px; background: #f2f9f4; border: 1px solid #d3ead9; border-radius: 14px; padding: 10px 12px; }
.co__reward svg { width: 20px; height: 20px; flex: none; }
.co__reward-txt h4 { font-size: 13px; font-weight: 700; }
.co__reward-txt span { font-size: 11px; color: #6b7a89; }
.co__save { margin-left: auto; color: #17915a; font-weight: 700; }

.co__row { display: flex; justify-content: space-between; }

.co__earn { display: flex; gap: 12px; align-items: flex-start; background: #eef6fc; border: 1px solid #cfe6f6; border-radius: 14px; padding: 12px; }
.co__earn-badge { width: 34px; height: 34px; border-radius: 50%; background: #0f75bc; color: #fff; display: grid; place-items: center; font-size: 16px; flex: none; }
.co__earn-txt { flex: 1; }
.co__earn-txt b { display: block; font-size: 15px; font-family: var(--font-display); }
.co__earn-txt span { display: block; font-size: 11px; color: #6b7a89; margin: 2px 0 8px; }
.co__prog { height: 7px; border-radius: 99px; background: #d6e6f2; overflow: hidden; }
.co__prog > i { display: block; height: 100%; width: 66%; background: #0f75bc; }

.co__foot { padding: 14px 18px 20px; border-top: 1px solid #eaeff4; }
.co__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.co__total b { font-size: 22px; font-family: var(--font-display); }
.co__pay { width: 100%; border: none; cursor: pointer; background: #0f75bc; color: #fff; border-radius: 15px; padding: 15px; font-size: 15px; font-weight: 700; font-family: var(--font-display); display: flex; align-items: center; justify-content: center; gap: 9px; transition: background .2s, transform .2s; }
.co__pay svg { width: 18px; height: 18px; }
.co__pay:hover { background: #0c649f; transform: translateY(-1px); }

.checkout__col { max-width: 380px; }
.checkout__how { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-2); margin-bottom: 22px; }
.checkout__steps { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.checkout__steps li { display: flex; gap: 16px; }
.checkout__steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); box-shadow: 0 8px 20px -8px rgba(124, 92, 255, .7); }
.checkout__steps h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.checkout__steps p { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .phone { width: 280px; } }

/* ===== Split (contribution / testing) ===== */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.split__left .pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--teal); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.lead { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.split__left p { color: var(--muted); }
.team { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.team li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.team b { font-family: var(--font-display); color: var(--yellow); min-width: 34px; }
.team .me { color: var(--pink); font-weight: 600; font-size: 13px; }

.callout {
  margin-top: 22px; padding: 20px 22px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .14), rgba(37, 99, 235, .10));
  border: 1px solid var(--line); border-left: 3px solid var(--violet);
  border-radius: 16px;
}
.callout__label { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-2); margin-bottom: 8px; }
.callout p { color: var(--text) !important; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.5; }

.split__heading { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

.split__right { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.row:hover { border-color: var(--violet); }
.row__num { font-family: var(--font-display); font-weight: 700; color: var(--violet); background: var(--surface-2); min-width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.row h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.row p { color: var(--muted); font-size: 15px; }

/* ===== Insights ===== */
.insight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.insight span { font-size: 26px; }
.insight h4 { font-family: var(--font-display); font-size: 16px; margin: 12px 0 6px; }
.insight p { color: var(--muted); font-size: 14px; }

/* ===== Process steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.steps li { position: relative; padding: 26px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--violet); display: block; margin-bottom: 16px; box-shadow: 0 0 0 6px rgba(124,92,255,.18); }
.steps h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }

/* ===== Avatar formula ===== */
.avatar-formula { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar-formula .op { font-family: var(--font-display); font-size: 28px; color: var(--muted); }
.note { max-width: 760px; margin: 30px auto 0; color: var(--muted); text-align: center; }
.note b { color: var(--text); }

/* ===== Prototype ===== */
.proto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proto__frame { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), #0f0c22); display: grid; place-items: center; }
.proto__frame iframe { width: 100%; height: 100%; border: 0; }
.proto__load { display: flex; align-items: center; gap: 16px; background: transparent; border: 1px dashed var(--line); color: var(--text); padding: 22px 28px; border-radius: 16px; cursor: pointer; font-family: var(--font-body); font-size: 15px; transition: border-color .2s, transform .2s; }
.proto__load:hover { border-color: var(--violet); transform: scale(1.02); }
.proto__logo { font-size: 30px; }
.proto__meta { display: flex; align-items: center; gap: 10px; padding: 16px 20px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.tag { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.proto__open { margin-left: auto; color: var(--teal); font-weight: 600; }

/* ===== Features ===== */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--teal); }
.feature span { font-size: 30px; }
.feature h3 { font-family: var(--font-display); font-size: 18px; margin: 14px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===== Outcomes ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.stat b { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); background: linear-gradient(92deg, var(--yellow), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; line-height: 1; margin-bottom: 12px; }
.stat__i { font-family: var(--font-display); font-size: 22px; font-weight: 700; background: linear-gradient(92deg, var(--yellow), var(--pink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; line-height: 1; margin-bottom: 14px; }
.stat h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.stat p { color: var(--muted); font-size: 15px; }
.quote { font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); line-height: 1.4; letter-spacing: -0.01em; max-width: 900px; padding-left: 24px; border-left: 4px solid var(--violet); color: var(--text); }
.quote__line { display: block; }
.quote__line + .quote__line { margin-top: 1em; }

/* ===== Footer ===== */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 60px clamp(20px, 5vw, 48px) 80px; border-top: 1px solid var(--line); }
.footer__nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.footer__next, .footer__back { font-family: var(--font-display); font-size: clamp(18px, 2.5vw, 26px); font-weight: 600; }
.footer__next:hover { color: var(--yellow); }
.footer__back:hover { color: var(--violet-2); }
.footer__links { display: flex; gap: 18px; margin-bottom: 20px; }
.footer__links a, .footer__links button { color: var(--muted); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.footer__links a:hover, .footer__links button:hover { color: var(--text); }
.footer__credit { color: var(--muted); font-size: 13px; }
/* Credit left, back to top right; wraps to two rows on narrow screens */
.footer__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; transition: color .2s; }
.footer__top:hover { color: var(--text); }
.footer__top-icon { width: 15px; height: 15px; flex-shrink: 0; transition: transform .2s; }
.footer__top:hover .footer__top-icon { transform: translateY(-2px); }

/* ===== Portfolio landing ===== */
.portfolio-intro { padding-bottom: clamp(32px, 5vw, 56px); }
/* Both blocks are width-capped, so they need the auto side margins as well as
   the text-align, otherwise the box stays left and only its lines centre. */
.portfolio-intro__title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-optical-sizing: auto; font-size: clamp(36px, 6.2vw, 64px); line-height: 1.05; letter-spacing: -0.015em; max-width: 900px; margin: 14px auto 20px; text-align: center; }
/* The global reset zeroes paragraph margins, so the gap down to the pills is
   set here rather than inherited. */
.portfolio-intro__lede { color: var(--muted); font-size: clamp(16px, 2vw, 20px); max-width: 640px; margin: 0 auto 24px; text-align: center; }

/* Borrows the work-card tag treatment, scaled up for the hero so the roles
   read as headline-adjacent rather than as metadata. */
.intro-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.intro-pills li { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-2); background: rgba(124, 92, 255, .12); border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
/* Two stacked shadows: a tight halo hugging the pill and a wider, softer bloom,
   which reads as light spilling outward rather than a flat drop shadow. */
.intro-pills li:hover { color: var(--text); background: rgba(124, 92, 255, .24); border-color: var(--violet); box-shadow: 0 0 16px -2px rgba(124, 92, 255, .55), 0 0 40px -6px rgba(124, 92, 255, .35); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .intro-pills li { transition: none; }
  .intro-pills li:hover { transform: none; }
}

/* Apple's glyph on Apple devices, the platform's own emoji font elsewhere.
   Pivots at the wrist rather than the glyph centre so the hand swings, not spins. */
.wave { display: inline-block; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; letter-spacing: normal; transform-origin: 72% 78%; animation: wave 2.6s ease-in-out infinite; }
/* The swing occupies the first third of the cycle; the rest is a deliberate rest
   beat, so the hand greets periodically instead of flapping without pause. */
@keyframes wave {
  0%, 32%, 100% { transform: rotate(0deg); }
  6%  { transform: rotate(14deg); }
  12% { transform: rotate(-8deg); }
  18% { transform: rotate(14deg); }
  24% { transform: rotate(-4deg); }
  28% { transform: rotate(10deg); }
}
@media (prefers-reduced-motion: reduce) {
  .wave { animation: none; }
}

.work__kicker, .work__title { text-align: center; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; margin-top: 44px; }
/* Behance pointer below the case studies; text and logo are one link */
.work-more { display: flex; justify-content: center; margin-top: clamp(56px, 6vw, 88px); font-size: 15px; }
.work-more__link { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); transition: color .2s; }
.work-more__link:hover { color: var(--text); }
.work-more__logo { width: 44px; height: 44px; display: block; transition: transform .2s; }
.work-more__link:hover .work-more__logo { transform: translateY(-2px); }

/* Tool logos; each name sits in a tooltip revealed on hover */
.stack__kicker { text-align: center; }
/* Top margin leaves room for the tooltips, which sit above the tiles */
.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 48px; list-style: none; padding: 0; }
.stack__item { position: relative; }
.stack__tile { display: grid; place-items: center; width: 60px; height: 60px; padding: 12px; background: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.stack__item:hover .stack__tile { transform: translateY(-4px); box-shadow: 0 18px 32px -18px rgba(124, 92, 255, .8); }
.stack__logo { width: 100%; height: 100%; display: block; }
/* Kept in the DOM so screen readers always announce the tool */
.stack__name { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); padding: 5px 10px; white-space: nowrap; font-size: 12px; letter-spacing: .02em; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.stack__item:hover .stack__name { opacity: 1; transform: translate(-50%, 0); }
.work-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
/* The hovered card grows and lifts above its neighbours */
.work-card:hover { transform: translateY(-6px) scale(1.045); z-index: 2; border-color: var(--violet); box-shadow: 0 40px 80px -32px rgba(124, 92, 255, .65); }
@media (prefers-reduced-motion: reduce) {
  .work-card:hover { transform: none; }
}
.work-card__cover { position: relative; display: flex; justify-content: center; align-items: center; padding: 26px 0; background: radial-gradient(120% 120% at 30% 8%, #2a2065 0%, #14102b 60%); overflow: hidden; }
.work-card__cover--wide { padding: 0; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e7eefb 0%, #efeafc 100%); }
.work-card__cover--wide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .45s ease; }
.work-card:hover .work-card__cover--wide img { transform: scale(1.02); }
/* For covers whose artwork is composed around its centre rather than the top */
.work-card__cover--centered img { object-position: center; }
.work-card__cover--calendar { position: relative; overflow: hidden; padding: 0; aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, #dbe8ff 0%, #eef4ff 55%, #f2ecfc 100%); }
.work-card__glyph { width: 96px; height: 96px; color: #2f6fed; transition: transform .45s ease; }
.work-card:hover .work-card__glyph { transform: scale(1.06) rotate(-2deg); }

/* Sky background (clouds + butterflies) behind the laptop */
.cal-sky { position: absolute; inset: 0; pointer-events: none; }
.cal-sky__cloud { position: absolute; height: auto; filter: brightness(1.9) contrast(1.05); }
.cal-sky__cloud--1 { top: 8%;  left: -8%;  width: 46%; opacity: .95; }
.cal-sky__cloud--2 { top: 48%; right: -6%; width: 52%; opacity: .8; }
.cal-sky__bfly { position: absolute; height: auto; z-index: 5; filter: drop-shadow(0 4px 8px rgba(90, 60, 140, .2)); }
.cal-sky__bfly--1 { top: 12%; right: 16%; width: 12%; }
.cal-sky__bfly--2 { top: 68%; left: 12%; width: 8%; opacity: .9; }

/* Two overlapping UI shots on the calendar card (no laptop shell) */
.cal-shots {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 8%;
  bottom: 22%;
  z-index: 2;
}
.cal-shot {
  position: absolute;
  width: 70%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 16px 28px -16px rgba(20, 40, 80, .5),
    0 0 0 1px rgba(20, 40, 80, .08);
  transition: transform .3s ease, z-index 0s;
}
.cal-shot--back {
  left: 0;
  top: 0;
}
.cal-shot--front {
  right: 0;
  top: 18%;
  width: 74%;
  z-index: 1;
}
/* One wide shot instead of the overlapping pair: fills the shot area, centred */
.cal-shot--solo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}
.cal-shot:hover {
  transform: translateY(-10px) scale(1.02);
  z-index: 6;
}

/* Full landscape scene (exact Figma composition) anchored to the card bottom */
.cal-scene {
  position: absolute;
  left: 0;
  bottom: -14%;
  width: 100%;
  height: auto;
  z-index: 3;
  pointer-events: none;
  transition: transform .45s ease;
}
.work-card:hover .cal-scene { transform: translateY(-2px) scale(1.02); }
.work-card__phone { position: relative; display: block; width: 47%; max-width: 168px; padding: 6px; background: #0b0b14; border-radius: 30px; box-shadow: 0 22px 42px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .08); transition: transform .45s ease; }
.work-card__phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.work-card__phone::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 38%; height: 15px; background: #0b0b14; border-radius: 0 0 12px 12px; z-index: 2; }
.work-card__phone--back { transform: rotate(-8deg); z-index: 1; }
.work-card__phone--front { margin-left: -15%; transform: rotate(8deg); z-index: 2; }
.work-card:hover .work-card__phone--back { transform: rotate(-10deg) translateX(-9%); }
.work-card:hover .work-card__phone--front { transform: rotate(10deg) translateX(9%); }
/* MacBook frame: black bezel with a notch, sitting on a flat aluminium base */
.work-card__cover--laptop { aspect-ratio: 16 / 10; padding: 0 12%; }
.work-card__laptop { position: relative; display: block; width: 100%; transition: transform .45s ease; }
.work-card__laptop-screen { position: relative; display: block; padding: 2.4% 2.4% 2.8%; background: #0b0b14; border-radius: 12px 12px 0 0; box-shadow: 0 22px 42px rgba(0, 0, 0, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .1); }
.work-card__laptop-screen::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 14%; height: 3.4%; background: #0b0b14; border-radius: 0 0 6px 6px; z-index: 2; }
.work-card__laptop-screen img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 3px; }
.work-card__laptop::after { content: ""; display: block; width: 116%; margin-left: -8%; height: 9px; background: linear-gradient(180deg, #d9dce3 0%, #a9adb8 70%, #7d818c 100%); border-radius: 0 0 14px 14px / 0 0 9px 9px; box-shadow: 0 14px 24px -8px rgba(0, 0, 0, .6); }
.work-card:hover .work-card__laptop { transform: translateY(-4px) scale(1.03); }
.work-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-card__tags span { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-2); background: rgba(124, 92, 255, .12); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.work-card__title { font-family: var(--font-sf); font-size: 22px; line-height: 1.2; }
.work-card__desc { color: var(--muted); font-size: 15px; }
.work-card__cta { margin-top: 4px; font-family: var(--font-display); font-weight: 600; color: var(--text); transition: color .2s ease; }
.work-card:hover .work-card__cta { color: var(--violet-2); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav__cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 260px; aspect-ratio: 1 / 1; }
  .awards, .edu, .services { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .meta { grid-template-columns: repeat(2, 1fr); }
  .xp__roles { padding-left: 0; }
  /* Keep the timeline's roles clear of the connecting line */
  .xp--timeline .xp__roles { padding-left: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .footer__top:hover .footer__top-icon { transform: none; }
  .work-more__link:hover .work-more__logo { transform: none; }
  .stack__item:hover .stack__tile { transform: none; }
  .stack__name { transform: translate(-50%, 0); }
}
