/* dimitriportfolio.me · Clear Pixel colours and type: ink, paper, lime light, blue depth.
   Urbanist for headings, Geist for text, Silkscreen for pixel labels, Doto in the hero's field. */

@font-face {
  font-family: "Urbanist";
  src: url("/assets/fonts/urbanist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("/assets/fonts/silkscreen-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Doto";
  src: url("/assets/fonts/doto-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ── Clear Pixel palette ──────────────────────────────────────────────── */

:root {
  --ink: #0a0a0c;
  --ink-2: #111115;
  --ink-3: #17171c;
  --ink-4: #1f1f26;
  --paper: #f4f3ee;
  --paper-2: #e9e7e0;
  --paper-3: #dcd9d0;
  --lime: #c5f74f;
  --blue: #5b7cff;
  --sky: #a9b9ff;
  --yellow: #ffd34e;
  --red: #ff5c4d;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --pixel: "Silkscreen", ui-monospace, Menlo, monospace;
}

/* Body tokens per theme. The hero and footer are ink in both. */
:root,
:root[data-theme="light"] {
  --bg: var(--paper);
  --surface: #fbfaf7;
  --surface-2: var(--paper-2);
  --line: rgba(10, 10, 12, 0.12);
  --line-2: rgba(10, 10, 12, 0.2);
  --text: var(--ink);
  --text-2: rgba(10, 10, 12, 0.66);
  --text-3: rgba(10, 10, 12, 0.48);
  --accent: #3a57e8;
  --hl-ink: var(--ink);
  --hl-bg: var(--lime);
  --btn-bg: var(--ink);
  --btn-ink: var(--paper);
  --shot-border: rgba(10, 10, 12, 0.14);
  --shadow: 0 1px 2px rgba(10, 10, 12, 0.06), 0 22px 44px -26px rgba(10, 10, 12, 0.4);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--ink);
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: var(--paper);
  --text-2: rgba(244, 243, 238, 0.66);
  --text-3: rgba(244, 243, 238, 0.44);
  --accent: var(--lime);
  --hl-ink: var(--lime);
  --hl-bg: transparent;
  --btn-bg: var(--paper);
  --btn-ink: var(--ink);
  --shot-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.95);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}
html.no-transition *,
html.no-transition *::before,
html.no-transition *::after {
  transition: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
p,
li,
blockquote,
dd,
td {
  text-wrap: pretty;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}
.ico {
  flex: none;
  width: 16px;
  height: 16px;
}

/* ── Type ─────────────────────────────────────────────────────────────── */

/* Urbanist's descenders drop 0.25em and ascenders rise 0.76em; 1.04 keeps stacked lines apart. */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
h2.display {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}
.hl {
  color: var(--hl-ink);
  background: var(--hl-bg);
  padding: 0 0.08em;
  border-radius: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* The lime pill above a headline: a dot, then one short line, slightly tilted. */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 9px 16px 9px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  box-shadow: 0 12px 30px -14px rgba(197, 247, 79, 0.7);
}
.sticker::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.sticker:hover {
  transform: rotate(0);
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--yellow);
}
.stars svg {
  width: 14px;
  height: 14px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.more .ico {
  transition: transform 0.3s var(--ease);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 7px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}
.btn-dot {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn-dot {
  transform: rotate(-12deg) scale(1.06);
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover {
  background: #fff;
}
.btn-outline {
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}
.btn-outline .btn-dot {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero,
.foot {
  --hl-ink: var(--lime);
  --hl-bg: transparent;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
/* The static wash under the canvas: blue rising from the foot and both corners. */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 0 132px;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0) 56%, rgba(91, 124, 255, 0.16) 100%),
    radial-gradient(70% 40% at 50% 112%, rgba(91, 124, 255, 0.36), rgba(10, 10, 12, 0) 70%),
    radial-gradient(44% 80% at 0% 92%, rgba(91, 124, 255, 0.34), rgba(10, 10, 12, 0) 72%),
    radial-gradient(44% 80% at 100% 92%, rgba(91, 124, 255, 0.3), rgba(10, 10, 12, 0) 72%),
    var(--ink);
}
.hero-sm {
  min-height: 0;
  padding: 140px 0 200px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(var(--ink) 0%, rgba(10, 10, 12, 0.55) 6%, rgba(10, 10, 12, 0) 16%);
}
.hero-chars {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 88px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}
/* Wordmark chip: lands tilted, then types its letters with a cursor. */
.wm {
  position: relative;
  display: inline-block;
  padding: 0.12em 0.32em 0.16em;
  border-radius: 0.34em;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
}
.logo:hover .wm {
  transform: rotate(0);
}
.wm-live {
  display: none;
  position: absolute;
  inset: 0.12em 0.32em 0.16em;
  white-space: nowrap;
}
.wm-cursor {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 0.075em;
  height: 0.72em;
  margin-left: 0.07em;
  border-radius: 0.04em;
  background: currentColor;
  transform: translateY(-50%);
  opacity: 0;
}
.wm-cursor.is-on {
  opacity: 1;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.js .wm {
  opacity: 0;
}
.js .wm .wm-word {
  visibility: hidden;
}
.js .wm .wm-live {
  display: block;
}
.js .wm.is-landing {
  animation: wm-land 0.6s var(--ease) both;
}
@keyframes wm-land {
  from {
    opacity: 0;
    transform: rotate(-11deg) scale(1.35);
  }
  to {
    opacity: 1;
    transform: rotate(-3deg) scale(1);
  }
}
.top-links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
}
.top-links a {
  color: rgba(244, 243, 238, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.top-links a:hover {
  color: #fff;
}
.top-end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.theme button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(244, 243, 238, 0.55);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.theme button:hover {
  color: #fff;
}
.theme button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.theme svg {
  width: 16px;
  height: 16px;
}
.top-hire {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.top-hire:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-in {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
/* Each line of the hero rises in after the one before. */
.hero-in > * {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.1s + 0.1s);
}
.hero-in > :nth-child(2) {
  --i: 1;
}
.hero-in > :nth-child(3) {
  --i: 2;
}
.hero-in > :nth-child(4) {
  --i: 3;
}
.hero-in > :nth-child(5) {
  --i: 4;
}
.hero-in > :nth-child(6) {
  --i: 5;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}
.hero-in > .sticker {
  animation-name: rise-tilt;
}
@keyframes rise-tilt {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-2deg);
  }
  to {
    transform: rotate(-2deg);
  }
}
.hero-title {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
  letter-spacing: -0.045em;
  color: var(--paper);
}
.hero-sm .hero-title {
  max-width: 20ch;
  font-size: clamp(2.5rem, 5.4vw, 4.8rem);
}
/* Story titles are two parts. Blocks, not a <br>, so each part balances on its own and never
   ends on one word. */
.ht-line {
  display: block;
  /* The highlight has no fill on ink, so its side padding only steals width. */
  padding-inline: 0;
}
.hero-lede {
  max-width: 44ch;
  margin: 24px auto 0;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  color: rgba(244, 243, 238, 0.72);
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 13.5px;
  color: rgba(244, 243, 238, 0.56);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(244, 243, 238, 0.55);
}
.crumbs a {
  padding: 10px 0;
  margin: -10px 0;
  color: rgba(244, 243, 238, 0.85);
  text-decoration: none;
}
.crumbs a:hover {
  color: #fff;
}

/* The paper pill: who you're hiring, and the button to do it. */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.06),
    0 24px 60px -18px rgba(91, 124, 255, 0.7);
}
.cta-who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
}
.cta-who img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.cta-who b {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.2;
}
.cta-who small {
  display: block;
  font-size: 12.5px;
  line-height: 1.3;
  color: rgba(10, 10, 12, 0.58);
}
.cta-go {
  background: var(--ink);
  color: var(--paper);
}
.cta-go:hover {
  background: var(--ink-4);
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(32px, 4vw, 52px);
  text-align: center;
}
.sec-sub {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  max-width: 60ch;
  margin: 0;
  color: var(--text-2);
}
.sec {
  padding: clamp(64px, 8vw, 104px) 0;
}
.sec + .sec {
  border-top: 1px solid var(--line);
}

/* Reviews on a panel that overlaps the foot of the hero. */
.reviews {
  position: relative;
  z-index: 4;
  margin-top: -84px;
  padding-bottom: clamp(48px, 6vw, 72px);
}
.panel {
  padding: clamp(28px, 4.4vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.rv-track {
  --per: 3;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * 16px) / var(--per));
  gap: 16px;
  margin: 0;
  padding: 2px 0 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rv-track::-webkit-scrollbar {
  display: none;
}
.rv {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  scroll-snap-align: start;
}
.rv-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
}
.rv blockquote {
  flex: 1;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.rv-job {
  min-height: calc(2 * 1.45em + 14px);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-3);
}
.rv-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* ── Work: the screenshot is the card ─────────────────────────────────── */

.work {
  padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 10vw, 128px);
}
.work-index {
  position: relative;
  z-index: 4;
  margin-top: -130px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(18px, 2.4vw, 28px);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
}
.tile-shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--shot-border),
    var(--shadow);
  transition: transform 0.5s var(--ease);
}
/* The page sits at the top; on hover it travels to the bottom, then eases back. */
.tile-shot img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transition:
    top 1.4s var(--ease),
    transform 1.4s var(--ease);
}
.tile:hover .tile-shot {
  transform: translateY(-4px);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-shot img {
    top: 100%;
    transform: translateY(-100%);
    transition-duration: 9s;
    transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
}
.chip {
  flex: none;
  padding: 6px 8px 5px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.tile-go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
}
.tile:hover .tile-go,
.tile:focus-visible .tile-go {
  opacity: 1;
  transform: none;
}
/* Name with the chip beside it, the industry underneath. */
.tile-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 0 4px;
}
.tile-cat {
  grid-column: 1 / -1;
}
.tile-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.tile-cat {
  font-size: 14.5px;
  color: var(--text-2);
}
/* ── About ────────────────────────────────────────────────────────────── */

.about {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
/* A small avatar beside the heading, not a full profile portrait. */
.about-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  max-width: calc(880px + var(--gutter) * 2);
}
.about-photo img {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--shot-border),
    var(--shadow);
}
.about h2 {
  margin-bottom: 22px;
}
.about-p {
  max-width: 56ch;
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--text-2);
}
.about-p:first-of-type {
  color: var(--text);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  font-weight: 540;
}
.badges svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--text-3);
}
.tools b {
  font-weight: 560;
  color: var(--text-2);
}

/* ── Story pages ──────────────────────────────────────────────────────── */

.shot-wrap {
  position: relative;
  z-index: 4;
  margin-top: -150px;
}
.frame {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--shot-border),
    var(--shadow);
}
.frame img {
  display: block;
  width: 100%;
}
.shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
.bbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-3);
}
.bbar-dots {
  display: flex;
  gap: 6px;
}
.bbar-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
}
.bbar-url {
  min-width: min(260px, 40vw);
  padding: 3px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 28px 0 0;
  padding: 0 4px;
}
.meta dt,
.next-k,
.facts thead th,
.did-n {
  font-family: var(--pixel);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.meta dd {
  margin: 6px 0 0;
  font-size: 15px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.sticky {
  position: sticky;
  top: 32px;
}
.brief {
  margin: 0;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.5;
}
/* What I did / what I changed: a numbered list on hairlines, no boxes. */
.did {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.did-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}
.did li {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line-2);
}
.did-n {
  color: var(--accent);
}
.did h3 {
  margin: 12px 0 6px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.did p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-2);
}
.problems {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
}
.problems li {
  position: relative;
  padding: 16px 0 16px 40px;
  border-top: 1px solid var(--line-2);
  color: var(--text-2);
  counter-increment: n;
}
.problems li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 19px;
  font-family: var(--pixel);
  font-size: 11px;
  color: var(--text-3);
}
.result {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.result .sticker {
  margin-bottom: 26px;
}
.result-text {
  max-width: 30ch;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-wrap: balance;
}
.ba-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.ba-fig {
  margin: 0;
}
.ba-fig figcaption {
  margin-bottom: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-2);
}
.pill-accent {
  border-color: transparent;
  background: var(--lime);
  color: var(--ink);
}
/* The iPhone stage: an ink panel with the hero's blue rising from the floor, so the devices read
   the same in both themes. */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(28px, 7vw, 96px);
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px) clamp(32px, 5vw, 56px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 55% at 50% 110%, rgba(91, 124, 255, 0.4), rgba(10, 10, 12, 0) 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(91, 124, 255, 0.22), rgba(10, 10, 12, 0) 72%),
    radial-gradient(40% 60% at 100% 100%, rgba(91, 124, 255, 0.2), rgba(10, 10, 12, 0) 72%),
    var(--ink);
  overflow: hidden;
}
.iphone-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0;
}
/* iPhone 15 Pro proportions: a 393 by 852 screen in a thin titanium frame. */
.iphone {
  --w: clamp(150px, 24vw, 290px);
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(150deg, #4a4a52 0%, #26262b 18%, #1a1a1e 50%, #2c2c32 82%, #46464e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--w) * 0.012) #0b0b0d,
    0 50px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}
/* Action button and volume on the left, side button on the right. */
.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1c1c20, #3b3b42);
}
.iphone::before {
  left: -2px;
  top: 19%;
  height: 16%;
  box-shadow: 0 calc(var(--w) * -0.11) 0 0 #2b2b31;
}
.iphone::after {
  right: -2px;
  top: 27%;
  height: 13%;
}
.iphone-screen {
  position: relative;
  aspect-ratio: 393 / 852;
  border-radius: calc(var(--w) * 0.142);
  overflow: hidden;
  background: var(--bar, #000);
  isolation: isolate;
}
.iphone-status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.4%;
  padding: 0 7.5% 0 11%;
  background: var(--bar, #000);
  color: #fff;
  font-family: -apple-system, "SF Pro Text", var(--sans);
  font-size: calc(var(--w) * 0.05);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.iphone[data-ink="dark"] .iphone-status {
  color: #000;
}
.iphone-icons {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--w) * 0.016);
}
.iphone-icons svg {
  height: calc(var(--w) * 0.036);
  width: auto;
}
.iphone-island {
  position: absolute;
  top: 1.25%;
  left: 50%;
  z-index: 3;
  width: 31%;
  height: 4.1%;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.iphone-page {
  position: absolute;
  inset: 6.4% 0 0;
  overflow: hidden;
  background: #fff;
}
.iphone-page img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  transition:
    top 1.4s var(--ease),
    transform 1.4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .iphone:hover .iphone-page img {
    top: 100%;
    transform: translateY(-100%);
    transition-duration: 10s;
    transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
}
/* No hover on a touch screen: a tap sends the page down (main.js), and the hint says so. */
.iphone.is-scrolled .iphone-page img {
  top: 100%;
  transform: translateY(-100%);
  transition-duration: 10s;
  transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
}
.hint-touch {
  display: none;
}
@media (hover: none), (pointer: coarse) {
  .hint-hover {
    display: none;
  }
  .hint-touch {
    display: inline;
  }
  .iphone {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}
.iphone-home {
  position: absolute;
  bottom: 0.9%;
  left: 50%;
  z-index: 3;
  width: 35%;
  height: max(4px, 0.55%);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
}
.stage .pill {
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(244, 243, 238, 0.85);
}
.stage .pill-accent {
  border-color: transparent;
  color: var(--ink);
}
.facts {
  overflow-x: auto;
  border-top: 1px solid var(--line-2);
}
.facts table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
.facts th,
.facts td {
  padding: 16px 16px 16px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.facts thead th:last-child {
  color: var(--accent);
}
.facts tbody th {
  width: 22%;
  font-weight: 600;
}
.facts td:nth-child(2) {
  width: 36%;
  color: var(--text-3);
}
.full {
  max-width: 1000px;
  margin: 0 auto;
}
.next {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  text-decoration: none;
}
.next-img {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--shot-border),
    var(--shadow);
}
.next-img img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: transform 0.9s var(--ease);
}
.next:hover .next-img img {
  transform: scale(1.03);
}
.next-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.next-name {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
}
.next-t {
  margin-bottom: 10px;
  color: var(--text-2);
}
.next:hover .more .ico {
  transform: translateX(3px);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.foot {
  background:
    radial-gradient(70% 60% at 50% 115%, rgba(91, 124, 255, 0.34), rgba(10, 10, 12, 0) 70%),
    radial-gradient(40% 70% at 0% 100%, rgba(91, 124, 255, 0.26), rgba(10, 10, 12, 0) 72%),
    radial-gradient(40% 70% at 100% 100%, rgba(197, 247, 79, 0.12), rgba(10, 10, 12, 0) 72%),
    var(--ink);
}
.foot .hero-glow {
  display: none;
}
.foot-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(88px, 11vw, 140px) var(--gutter) clamp(72px, 9vw, 112px);
  text-align: center;
}
.foot-title {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
}
.foot-lede {
  margin: 18px 0 0;
  color: rgba(244, 243, 238, 0.72);
}
.foot-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(244, 243, 238, 0.55);
}
.foot-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.foot-row a {
  /* A taller tap target without moving anything. */
  padding: 10px 0;
  margin: -10px 0;
  color: rgba(244, 243, 238, 0.8);
  text-decoration: none;
}
.foot-row a:hover {
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .top-links {
    display: none;
  }
  .rv-track {
    --per: 2;
  }
  .about-in,
  .two-col,
  .next {
    grid-template-columns: 1fr;
  }
  .about-photo img {
    width: 96px;
    height: 96px;
  }
  .sticky {
    position: static;
  }
  .did-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .top-in {
    height: 76px;
  }
  .top-hire {
    display: none;
  }
  .hero {
    min-height: 0;
    padding: 124px 0 128px;
  }
  .hero-sm {
    padding-bottom: 150px;
  }
  .cta-pill {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    padding: 10px;
    border-radius: 28px;
  }
  .cta-who {
    padding: 4px 6px 0;
  }
  .cta-go {
    justify-content: center;
    padding-left: 22px;
    padding-right: 26px;
  }
  .tiles,
  .did,
  .did-grid,
  .ba-pair {
    grid-template-columns: 1fr;
  }
  .tile-go {
    opacity: 1;
    transform: none;
    width: 40px;
    height: 40px;
  }
  .rv-track {
    grid-auto-columns: 86%;
  }
  .rv {
    padding: 20px;
  }
  .panel {
    border-radius: 22px;
    padding: 24px 18px;
  }
  .meta {
    grid-template-columns: 1fr;
  }
  .shot-wrap {
    margin-top: -110px;
  }
  .bbar {
    grid-template-columns: auto 1fr;
  }
  .stage {
    gap: 18px;
    border-radius: 22px;
  }
  .iphone {
    --w: min(40vw, 190px);
  }
  .foot-row {
    flex-direction: column;
  }
  /* Line by line: the three columns don't fit a phone, and a sideways scroll hid "After".
     Each row becomes a small stack: the item, then Before and After under it. */
  .facts {
    overflow: visible;
  }
  .facts table,
  .facts tbody,
  .facts tr,
  .facts th,
  .facts td {
    display: block;
  }
  .facts table {
    min-width: 0;
  }
  .facts thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .facts tr {
    padding: 18px 0 20px;
    border-bottom: 1px solid var(--line);
  }
  .facts th,
  .facts td {
    padding: 0;
    border: 0;
  }
  .facts tbody th,
  .facts td:nth-child(2) {
    width: auto;
  }
  .facts tbody th {
    margin-bottom: 10px;
    font-size: 16px;
  }
  .facts td {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }
  .facts td + td {
    margin-top: 8px;
  }
  .facts td::before {
    content: attr(data-k);
    padding-top: 0.5em;
    font-family: var(--pixel);
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text-3);
  }
  .facts td:last-child::before {
    color: var(--accent);
  }
  /* "Works with" on its own line, the four tools in two even pairs under it. */
  .tools {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 6px 24px;
  }
  .tools span {
    grid-column: 1 / -1;
  }
}

/* The chip moves above the name, so long names keep one line. */
@media (max-width: 480px) {
  .tile-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile-meta .chip {
    order: -1;
    justify-self: start;
    margin-bottom: 6px;
  }
}

/* Small phones: the lime pill steps down a size so it stays on one line. */
@media (max-width: 374px) {
  .sticker {
    gap: 8px;
    padding: 8px 14px 8px 12px;
    font-size: 13.5px;
    text-wrap: balance;
  }
  .hero-sm .hero-title {
    font-size: 2.1rem;
  }
  /* Fewer lines, so balancing (which stops past six) keeps the last word company. */
  .result-text {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .wm {
    opacity: 1;
  }
  .js .wm .wm-word {
    visibility: visible;
  }
  .js .wm .wm-live {
    display: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}
