:root {
  --ink: #1f1f1f;
  --muted: #6b6b6b;
  --line: #e9e9eb;
  --soft: #f4f4f5;
  --bg: #fff;
  --panel: #1f1f21;
  --panel-text: #f2f2f2;
  --panel-muted: #9a9aa0;
  --panel-soft: #c4c4c9;
  --soft-hover: #ececee;
  --btn-bg: #1f1f21;
  --btn-text: #f2f2f2;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #ececee;
  --muted: #9b9ba1;
  --line: #2a2a2e;
  --soft: #1a1a1d;
  --soft-hover: #222226;
  --bg: #111113;
  --panel: #1a1a1d;
  --panel-text: #f2f2f2;
  --panel-muted: #9a9aa0;
  --panel-soft: #b5b5bb;
  --btn-bg: #ececee;
  --btn-text: #111113;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.js { scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 32px; }

/* Header */
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
header nav { display: flex; gap: 28px; font-size: 15px; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 104px; padding-bottom: 96px; }
h1 {
  font-size: clamp(56px, 10vw, 120px);
  line-height: .95; font-weight: 600; letter-spacing: -0.045em;
  max-width: 9ch;
}
.hero-grid { margin-top: 48px; max-width: 680px; }
.hero-grid .lead { font-size: 20px; line-height: 1.6; }
.hero-grid .lead + .lead { margin-top: 16px; color: var(--muted); font-size: 18px; }
.hero-grid .lead b { color: var(--ink); font-weight: 500; }
.shipped { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.shipped p { font-size: 15px; color: var(--muted); }
.shipped div { display: flex; flex-wrap: wrap; gap: 10px; }
.shipped a { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; overflow: hidden; transition: transform .2s ease; }
.shipped a:hover { transform: translateY(-3px); }
.shipped img { width: 28px; height: 28px; object-fit: contain; }
.shipped img.full { width: 48px; height: 48px; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--ink);
}
.btn.solid { background: var(--panel); border-color: var(--panel); color: var(--panel-text); }
.btn:hover { opacity: .85; }

/* Section headings */
.section-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; margin-bottom: 72px; }
h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); }
section.block { padding-top: 120px; }

/* Journey */
.journey { position: relative; }
.track { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.track span { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--ink); }
.chapter { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 32px; padding-bottom: 120px; scroll-margin-top: 32px; }
.chapter:last-child { padding-bottom: 0; }
.num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--ink); display: grid; place-items: center;
  font-size: 15px; font-weight: 600; position: relative; z-index: 1;
}
.chapter.note .num { background: var(--panel); border-color: var(--panel); color: var(--panel-text); }
.ch-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 48px; }
.ch-name { display: flex; align-items: center; gap: 12px; }
.ch-name img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: var(--soft); padding: 4px; }
.ch-name img.full { padding: 0; object-fit: cover; }
h3 { font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.ch-line { color: var(--muted); font-size: 18px; flex: 1; min-width: 220px; }
.ch-link {
  font-size: 15px; font-weight: 500; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ch-link:hover { background: var(--panel); border-color: var(--panel); color: var(--panel-text); }
.frame { margin-top: 28px; background: var(--soft); border-radius: 20px; padding: 24px; }
.frame img { border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08); }
.ch-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
p + p { margin-top: 14px; }
.muted { color: var(--muted); }
ul.built { list-style: none; }
ul.built li { position: relative; padding-left: 20px; margin-bottom: 7px; }
ul.built li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--ink); }
.chapter.note h3 { font-size: 28px; margin: 8px 0 14px; }
.chapter.note p { max-width: 680px; }
.companies { margin-top: 18px; font-size: 15px; color: var(--muted); }

.sites { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.sites .frame { margin-top: 0; padding: 16px; }
.sites strong { display: block; margin-top: 16px; font-size: 19px; font-weight: 600; }
.sites p { font-size: 16px; color: var(--muted); margin-top: 4px; }
.sites a.more { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 500; }

/* Dark band */
.band { background: var(--panel); color: var(--panel-text); margin-top: 120px; padding: 104px 0; }
.band-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; }
.band h2 { color: var(--panel-text); }
.band p { color: var(--panel-soft); font-size: 18px; }
.band p strong { color: var(--panel-text); font-weight: 500; }

/* Why hire me */
.reasons { list-style: none; counter-reset: r; border-top: 1px solid var(--ink); }
.reasons li { display: grid; grid-template-columns: 48px 1fr 1.25fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); counter-increment: r; }
.reasons li::before { content: counter(r, decimal-leading-zero); color: var(--muted); font-size: 15px; padding-top: 3px; }
.reasons strong { font-size: 20px; font-weight: 600; line-height: 1.35; }
.reasons p { color: var(--muted); }

/* Experience */
.timeline { border-top: 1px solid var(--ink); }
.job { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.job time { font-size: 15px; color: var(--muted); padding-top: 3px; }
.job strong { display: block; font-size: 19px; font-weight: 600; }
.job span { display: block; color: var(--muted); font-size: 16px; }
.job p { margin-top: 8px; }
.job > div { position: relative; padding-left: 60px; }
.job > div.no-co { padding-left: 60px; }
.job .co { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 11px; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.job .co-group { display: flex; width: auto; height: auto; border: 0; background: none; }
.job .co-group img, .job .co-group i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--bg); margin-right: -8px; object-fit: cover; background: var(--soft); }
.job .co-group i { display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink); }
.job .co-group + strong { margin-top: 0; }
.companies.pills { margin-top: 22px; }
.companies.pills img { object-fit: cover; padding: 0; }
details summary {
  list-style: none; cursor: pointer; display: inline-block;
  margin-top: 24px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px;
}
details summary::-webkit-details-marker { display: none; }
details[open] summary { display: none; }

/* Tools and writing */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.groups div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.groups div:first-child { border-top: 1px solid var(--ink); }
.groups h4 { margin-bottom: 4px; }
.groups p { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pills span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 500; }
.pills img, .pills i { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--bg); }
.pills i { display: grid; place-items: center; padding: 0; font-style: normal; font-size: 12px; font-weight: 600; }
.writing a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.writing a:first-child { border-top: 1px solid var(--ink); }
.writing strong { display: block; font-weight: 600; line-height: 1.4; }
.writing span { font-size: 15px; color: var(--muted); }
.writing a:hover strong { text-decoration: underline; text-underline-offset: 4px; }

/* Contact */
.contact { background: var(--panel); color: var(--panel-text); margin-top: 120px; padding: 112px 0 40px; }
.contact h2 { font-size: clamp(40px, 6.4vw, 76px); max-width: 12ch; }
.contact .mail { display: inline-block; margin-top: 40px; font-size: clamp(22px, 3vw, 34px); font-weight: 500; text-underline-offset: 8px; text-decoration-thickness: 1px; word-break: break-word; }
.contact .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.contact .row a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); }
.contact .row a:hover { background: var(--panel-text); color: var(--panel); }
.contact footer { margin-top: 96px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: var(--panel-muted); }

/* Project index on the right edge */
.index {
  position: fixed; z-index: 20; top: 50%; right: 32px; width: 170px;
  transform: translateY(-50%) translateX(8px); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.index.show { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.index ol { list-style: none; border-left: 1px solid var(--line); }
.index a {
  display: block; margin-left: -1px; padding: 7px 0 7px 16px;
  border-left: 1px solid transparent; text-decoration: none;
  font-size: 14px; color: var(--muted); transition: color .2s ease, border-color .2s ease;
}
.index a { display: flex !important; align-items: center; gap: 10px; }
.index a img { width: 22px; height: 22px; border-radius: 6px; background: var(--soft); object-fit: contain; padding: 2px; }
.index a img.full { padding: 0; object-fit: cover; }
.index a:hover { color: var(--ink); }
.index a.active { color: var(--ink); font-weight: 500; border-left-color: var(--ink); }
.index button { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1299px) {
  .index {
    top: auto; bottom: 16px; right: 16px; width: auto;
    background: var(--panel); color: var(--panel-text);
    border-radius: 999px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.2);
    transform: translateY(12px);
  }
  .index.show { transform: none; }
  .index button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: none; border: 0; color: inherit; font: inherit; font-size: 15px; font-weight: 500;
    padding: 12px 20px; cursor: pointer;
  }
  .index button em { font-style: normal; color: var(--panel-muted); }
  .index ol { display: none; border: 0; padding: 8px; }
  .index a { margin: 0; padding: 9px 12px; border: 0; border-radius: 10px; color: #b5b5ba; font-size: 15px; }
  .index a.active { color: var(--panel-text); background: rgba(255,255,255,.1); }
  .index a:hover { color: var(--panel-text); }
  .index.open { border-radius: 18px; width: 236px; }
  .index.open ol { display: block; }
  .index.open button { border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 800px) {
  .wrap { padding: 0 20px; }
  header nav .hide-sm { display: none; }
  header nav { gap: 18px; }
  .hero { padding-top: 64px; padding-bottom: 72px; }
  .hero-grid, .section-head, .band-grid, .two-col, .ch-body, .sites { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 48px; }
  section.block { padding-top: 96px; }
  .chapter { grid-template-columns: 36px 1fr; gap: 16px; padding-bottom: 88px; }
  .num { width: 36px; height: 36px; font-size: 13px; }
  .track { left: 17px; top: 18px; }
  h3 { font-size: 26px; }
  .ch-head { gap: 12px; min-height: 36px; }
  .ch-line { min-width: 100%; font-size: 17px; }
  .frame { padding: 12px; border-radius: 14px; }
  .frame img { border-radius: 6px; }
  .ch-body { margin-top: 28px; }
  .reasons li { grid-template-columns: 36px 1fr; gap: 8px 12px; }
  .reasons li p { grid-column: 2; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .band, .contact { margin-top: 96px; padding-top: 80px; }
  .band { padding-bottom: 80px; }
}

/* Project cards on the home page */
.pcard { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.pcard > div { padding-top: 6px; }
.pcard .ch-name { margin-bottom: 12px; }
.pcard .ch-line { font-size: 18px; min-width: 0; }
.pcard .actions { margin-top: 24px; }
.pcard .btn { padding: 10px 20px; }
.pcard .frame { margin-top: 0; padding: 14px; display: block; transition: transform .3s ease; }
.pcard .frame:hover { transform: translateY(-4px); }
.sites.three { grid-template-columns: repeat(3, 1fr); }
.sites a.frame { display: block; transition: transform .3s ease; }
.sites a.frame:hover { transform: translateY(-4px); }

/* Project pages */
.back { display: inline-block; margin-top: 40px; font-size: 15px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.p-hero { padding-top: 48px; }
.p-hero .logo-lg { width: 72px; height: 72px; border-radius: 18px; background: var(--soft); display: grid; place-items: center; overflow: hidden; margin-bottom: 28px; }
.p-hero .logo-lg img { width: 44px; height: 44px; object-fit: contain; }
.p-hero .logo-lg img.full { width: 72px; height: 72px; object-fit: cover; }
.p-hero h1 { max-width: none; font-size: clamp(48px, 8vw, 96px); }
.p-hero .p-line { margin-top: 20px; font-size: 22px; color: var(--muted); max-width: 620px; line-height: 1.5; }
.p-hero .actions { margin-top: 28px; }
.p-shot { margin-top: 56px; }
.p-body { margin-top: 56px; }
.p-body p, .p-body li { font-size: 18px; }
.p-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 104px; }
.p-next a { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: 18px; background: var(--soft); text-decoration: none; transition: background .2s ease; }
.p-next a:hover { background: var(--soft-hover); }
.p-next a.next { justify-content: flex-end; text-align: right; }
.p-next img { width: 44px; height: 44px; border-radius: 11px; object-fit: contain; background: var(--bg); padding: 5px; }
.p-next img.full { padding: 0; object-fit: cover; }
.p-next small { display: block; font-size: 14px; color: var(--muted); }
.p-next strong { font-size: 20px; font-weight: 600; }

@media (max-width: 800px) {
  .pcard { grid-template-columns: 1fr; gap: 20px; }
  .sites.three { grid-template-columns: 1fr; }
  .p-hero .p-line { font-size: 19px; }
  .p-body p, .p-body li { font-size: 17px; }
  .p-next { grid-template-columns: 1fr; margin-top: 72px; }
}



/* Theme, motion and small interactions */
@view-transition { navigation: auto; }
body { transition: background-color .3s ease, color .3s ease; }
.btn.solid { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.btn, .ch-link, .contact .row a, .copy, .icon-btn { transition: transform .15s ease, opacity .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:active, .ch-link:active, .copy:active, .icon-btn:active { transform: scale(.96); }
.chapter.note .num { background: var(--btn-bg); border-color: var(--btn-bg); }
:root[data-theme="dark"] .band, :root[data-theme="dark"] .contact { border-top: 1px solid var(--line); }
:root[data-theme="dark"] .frame img { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

header nav { align-items: center; }
.icon-btn {
  display: inline-grid; place-items: center; height: 34px; min-width: 34px; padding: 0 8px;
  border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn kbd { font-family: inherit; font-size: 13px; color: var(--muted); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }

.mail-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.mail-row .mail { margin-top: 0; }
.copy {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; background: none;
  color: var(--panel-text); border: 1px solid rgba(255,255,255,.22);
}
.copy:hover { background: var(--panel-text); color: var(--panel); }
.contact footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact footer b { font-weight: 500; color: var(--panel-text); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Quick menu */
.cmdk {
  position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start;
  padding: 14vh 16px 16px; background: rgba(10,10,12,.32); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
.cmdk.open { opacity: 1; }
.cmdk[hidden] { display: none; }
.cmdk-box {
  width: 100%; max-width: 560px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  transform: translateY(8px) scale(.98); transition: transform .18s ease;
}
.cmdk.open .cmdk-box { transform: none; }
.cmdk-input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink);
  font: inherit; font-size: 17px; padding: 18px 20px; outline: none;
}
.cmdk-input:focus-visible { outline: none; }
.cmdk-list { list-style: none; max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-size: 13px; color: var(--muted); padding: 10px 12px 4px; }
.cmdk-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.cmdk-item strong { font-weight: 500; font-size: 15px; }
.cmdk-item span { font-size: 14px; color: var(--muted); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item.active { background: var(--soft); }
.cmdk-empty { padding: 20px 12px; color: var(--muted); font-size: 15px; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Features on project pages */
.features { margin-top: 104px; }
.features h2 { margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { background: var(--soft); border-radius: 16px; padding: 22px; transition: transform .25s ease, background .25s ease; }
.feature:hover { transform: translateY(-3px); background: var(--soft-hover); }
.feature strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.55; }

@media (max-width: 800px) {
  .kbd-btn { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .features { margin-top: 72px; }
  .cmdk-item span { display: none; }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  body, .feature, .toast, .cmdk, .cmdk-box { transition: none; }
}

.brand { white-space: nowrap; }
@media (max-width: 480px) {
  header nav { gap: 14px; font-size: 14px; }
  header nav a[href$="#work"] { display: none; }
  header .wrap { gap: 12px; }
  .brand { gap: 10px; font-size: 15px; }
  .brand img { width: 28px; height: 28px; }
  .icon-btn { height: 32px; min-width: 32px; }
}


/* Tool icons that follow the theme */
.pills .ti { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; position: relative; flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink); padding: 0; }
.pills .ti img { width: 14px; height: 14px; padding: 0; border-radius: 0; background: none; }
:root[data-theme="dark"] .pills .ti img { filter: invert(1); }
.pills span { transition: background .2s ease, transform .2s ease; }
.pills span:hover { background: var(--soft-hover); transform: translateY(-1px); }

/* ===== Project pages ===== */
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.project-page .back { margin-top: 36px; }
.project-page .p-hero { padding-top: 56px; }
.p-hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.p-hero-top .logo-lg { margin-bottom: 0; }
.p-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-page .p-hero h1 { font-size: clamp(56px, 10vw, 128px); letter-spacing: -0.05em; }
.project-page .p-line { font-size: clamp(20px, 2.4vw, 26px); color: var(--muted); max-width: 680px; margin-top: 20px; line-height: 1.4; }
.p-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-meta div { flex: 1; min-width: 160px; padding: 16px 24px 16px 0; }
.p-meta div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.p-meta dt { font-size: 13px; color: var(--muted); }
.p-meta dd { font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #22a55b; box-shadow: 0 0 0 4px rgba(34,165,91,.15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,165,91,0); } }
.project-page .p-hero .actions { margin-top: 32px; }

/* Browser and app window frames */
.chrome { border-radius: 16px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 24px 60px -20px rgba(0,0,0,.18); }
.chrome-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chrome .dots { position: absolute; left: 16px; display: flex; gap: 7px; }
.chrome .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.chrome-url { font-size: 13px; color: var(--muted); background: var(--soft); padding: 4px 16px; border-radius: 999px; min-width: 40%; text-align: center; }
.chrome-title { font-size: 13px; font-weight: 500; color: var(--muted); }
.chrome-window .chrome-bar { background: #1f1f22; border-bottom-color: #2b2b2f; }
.chrome-window .dots i:nth-child(1) { background: #ff5f57; }
.chrome-window .dots i:nth-child(2) { background: #febc2e; }
.chrome-window .dots i:nth-child(3) { background: #28c840; }
.chrome-window .chrome-title { color: #a1a1a6; }
.chrome-body img { width: 100%; display: block; }
.p-shot { margin-top: 64px; }

/* Key numbers */
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 96px; border-top: 1px solid var(--ink); }
.p-stats div { padding: 28px 24px 0 0; }
.p-stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.p-stats strong { display: block; font-size: clamp(40px, 5vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.p-stats span { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 220px; line-height: 1.45; }

/* Story */
.p-story { display: grid; grid-template-columns: 240px 1fr; gap: 48px; margin-top: 104px; }
.p-story h2 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.p-lead p { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.5; letter-spacing: -0.01em; }
.p-built { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; counter-reset: b; }
.p-built li { position: relative; padding: 16px 0 16px 36px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; counter-increment: b; }
.p-built li::before { content: ""; position: absolute; left: 0; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); }
.p-built li::after { content: ""; position: absolute; left: 6px; top: 25px; width: 8px; height: 5px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg); }

/* Gallery */
.p-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 120px; }
.p-gallery figure { margin: 0; }
.p-gallery .chrome-bar { height: 34px; }
.p-gallery .dots i { width: 9px; height: 9px; }
.p-gallery .chrome-url, .p-gallery .chrome-title { font-size: 12px; }
.p-gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Numbered features */
.project-page .features { margin-top: 120px; }
.project-page .features h2 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 40px; }
.project-page .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.project-page .feature { position: relative; background: none; border-radius: 0; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.project-page .feature:nth-child(3n+2), .project-page .feature:nth-child(3n) { padding-left: 28px; border-left: 1px solid var(--line); }
.project-page .feature:hover { transform: none; background: none; }
.project-page .feature:hover .f-num { color: var(--ink); }
.f-num { display: block; font-size: 13px; color: var(--muted); margin-bottom: 18px; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.project-page .feature strong { font-size: 18px; }
.project-page .p-next { margin-top: 120px; }

:root[data-theme="dark"] .chrome { box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
:root[data-theme="dark"] .chrome .dots i { background: #3a3a3f; }
:root[data-theme="dark"] .chrome-window .dots i:nth-child(1) { background: #ff5f57; }
:root[data-theme="dark"] .chrome-window .dots i:nth-child(2) { background: #febc2e; }
:root[data-theme="dark"] .chrome-window .dots i:nth-child(3) { background: #28c840; }

@media (max-width: 900px) {
  .p-story { grid-template-columns: 1fr; gap: 20px; margin-top: 80px; }
  .project-page .feature-grid { grid-template-columns: 1fr 1fr; }
  .project-page .feature:nth-child(3n+2), .project-page .feature:nth-child(3n) { padding-left: 0; border-left: 0; }
  .project-page .feature:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap-wide { padding: 0 16px; }
  .p-shot { margin-top: 48px; }
  .chrome { border-radius: 12px; }
  .chrome-bar { height: 32px; }
  .chrome .dots i { width: 8px; height: 8px; }
  .chrome-url { min-width: 0; font-size: 11px; padding: 3px 12px; }
  .p-meta div { min-width: 100%; padding: 14px 0; }
  .p-meta div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .p-stats { grid-template-columns: 1fr; margin-top: 72px; }
  .p-stats div, .p-stats div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .p-built { grid-template-columns: 1fr; }
  .p-gallery { grid-template-columns: 1fr; gap: 40px; margin-top: 88px; }
  .project-page .feature-grid { grid-template-columns: 1fr; }
  .project-page .feature, .project-page .feature:nth-child(2n), .project-page .feature:nth-child(3n+2), .project-page .feature:nth-child(3n) { padding: 22px 0 24px; border-left: 0; }
  .project-page .features, .project-page .p-next { margin-top: 88px; }
}


/* ===== Motion ===== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Headline words rise from behind a mask */
h1.split > span { display: block; }
h1.split i { font-style: normal; display: inline-block; }
.js h1.split i { opacity: 0; transform: translateY(0.35em); filter: blur(8px); }
.js h1.split.go i { animation: rise 1s cubic-bezier(.2,.7,.1,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

/* Softer, longer reveals */
.reveal { transition: opacity .9s cubic-bezier(.2,.7,.1,1), transform .9s cubic-bezier(.2,.7,.1,1), filter .9s ease; filter: blur(4px); }
.reveal.seen { filter: none; }

/* Journey dots fill as you pass them */
.journey .num { transition: background .4s ease, color .4s ease, border-color .4s ease, transform .4s cubic-bezier(.2,.7,.1,1); }
.journey .num.reached { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); transform: scale(1.06); }

/* Main project screenshot flattens as it arrives */
.p-shot { perspective: 1800px; }
.p-shot .chrome { transform-origin: 50% 0%; will-change: transform, opacity; }

/* Tilt toward the cursor */
.tilt { transition: transform .5s cubic-bezier(.2,.7,.1,1) !important; will-change: transform; }
.pcard .frame img, .sites a.frame img { transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.pcard .frame:hover img, .sites a.frame:hover img { transform: scale(1.025); }
.pcard .frame, .sites a.frame { overflow: hidden; }

/* Reading highlight on the opening paragraph */
.js .p-lead[data-read] span { color: var(--faint, #c2c2c7); transition: color .35s ease; }
:root[data-theme="dark"] .js .p-lead[data-read] span, :root[data-theme="dark"].js .p-lead[data-read] span { color: #4a4a50; }
.js .p-lead[data-read] span.lit { color: var(--ink); }
.no-motion .p-lead[data-read] span { color: var(--ink) !important; }

/* Page transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.7,.1,1); }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2,.7,.1,1); }

/* ===== Project story ===== */
.p-story .p-lead { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.45; letter-spacing: -0.015em; font-weight: 500; }
.p-decisions { margin-top: 120px; }
.p-decisions > h2 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 40px; }
.p-decisions ol { list-style: none; border-top: 1px solid var(--ink); }
.p-decisions li { display: grid; grid-template-columns: 64px 1fr 1.2fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.d-num { font-size: 14px; color: var(--muted); padding-top: 6px; font-variant-numeric: tabular-nums; }
.p-decisions h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.p-decisions p { color: var(--muted); font-size: 17px; line-height: 1.6; }
@media (max-width: 800px) {
  .p-decisions { margin-top: 88px; }
  .p-decisions li { grid-template-columns: 40px 1fr; gap: 8px 12px; padding: 24px 0; }
  .p-decisions li p { grid-column: 2; }
  .p-decisions h3 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .js h1.split i { opacity: 1; transform: none; filter: none; animation: none; }
  .reveal { filter: none; }
  .tilt, .pcard .frame img { transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
:root[data-theme="dark"].js .p-lead[data-read] span.lit { color: var(--ink); }

/* ===== Screenshot tour ===== */
.tour { position: relative; overflow: hidden; }
.tour-stage { position: relative; transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform 1.4s cubic-bezier(.2,.7,.1,1), transform-origin 1.4s cubic-bezier(.2,.7,.1,1); }
.tour.zoom .tour-stage { transform: scale(1.1); }
.tour-stage img { display: block; width: 100%; }
.hs {
  position: absolute; left: var(--x); top: var(--y); width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 0; padding: 0; border-radius: 50%; cursor: pointer; z-index: 2;
  background: #fff; box-shadow: 0 0 0 2px #1f1f21, 0 6px 18px rgba(0,0,0,.28);
  display: grid; place-items: center; transition: transform .3s cubic-bezier(.2,.7,.1,1), background .3s ease;
}
.hs i { width: 8px; height: 8px; border-radius: 50%; background: #1f1f21; transition: background .3s ease; }
.hs::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; opacity: 0; animation: ping 2.4s cubic-bezier(.2,.7,.1,1) infinite; }
.hs:hover, .hs.active { transform: scale(1.18); background: #1f1f21; }
.hs:hover i, .hs.active i { background: #fff; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
.tour-card {
  position: absolute; z-index: 3; left: calc(var(--x) + 22px); top: calc(var(--y) - 14px);
  max-width: 260px; padding: 12px 14px; border-radius: 12px;
  background: rgba(24,24,27,.94); color: #f2f2f2; font-size: 14px; line-height: 1.45;
  box-shadow: 0 12px 32px rgba(0,0,0,.3); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px) scale(.97); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.1,1);
}
.tour-card.flip { left: auto; right: calc(100% - var(--x) + 22px); }
.tour-card.up { top: auto; bottom: calc(100% - var(--y) - 14px); }
.tour-card.show { opacity: 1; transform: none; }
.tour-cursor {
  position: absolute; z-index: 4; left: var(--x, 50%); top: var(--y, 50%); margin: 6px 0 0 6px;
  opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
  transition: left .9s cubic-bezier(.65,0,.35,1), top .9s cubic-bezier(.65,0,.35,1), opacity .3s ease;
}
.tour-cursor.on { opacity: 1; }
.tour-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  font: inherit; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(24,24,27,.85); color: #f2f2f2; backdrop-filter: blur(8px);
}
.tour-toggle:hover { background: #1f1f21; }
@media (max-width: 640px) {
  .hs { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
  .hs i { width: 6px; height: 6px; }
  .tour-card, .tour-card.flip, .tour-card.up { left: 8px; right: 8px; top: auto; bottom: 8px; max-width: none; font-size: 13px; }
  .tour-toggle { top: 8px; bottom: auto; right: 8px; font-size: 12px; padding: 5px 10px; }
  .tour-cursor { display: none; }
}

/* Gallery full-size view */
.p-gallery .chrome { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  padding: 4vh 4vw; background: rgba(10,10,12,.78); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .25s ease; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox figure { margin: 0; max-width: 1400px; transform: scale(.96); transition: transform .35s cubic-bezier(.2,.7,.1,1); }
.lightbox.open figure { transform: none; }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); margin: 0 auto; }
.lightbox figcaption { margin-top: 14px; text-align: center; color: #d4d4d8; font-size: 15px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; font: inherit; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: none; color: #f2f2f2; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .tour-stage, .tour-card, .lightbox, .lightbox figure { transition: none; }
  .hs::after { animation: none; }
}


/* ===== Screen recordings ===== */
.vid { position: relative; }
.vid video, .pcard .frame video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; background: var(--soft); }
.pcard .frame video { border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08); transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.pcard .frame:hover video { transform: scale(1.02); }
.vid-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  font: inherit; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 0; background: rgba(24,24,27,.82); color: #f2f2f2; backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s ease;
}
.vid:hover .vid-toggle, .vid-toggle:focus-visible { opacity: 1; }
@media (hover: none) { .vid-toggle { opacity: 1; font-size: 12px; padding: 5px 11px; right: 8px; bottom: 8px; } }


/* Breadcrumb pill on project pages */
.crumb-bar { position: sticky; top: 16px; z-index: 30; max-width: 1000px; margin: 32px auto 0; padding: 0 32px; pointer-events: none; }
.crumb {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.08);
  font-size: 16px; font-weight: 500; margin-top: 0;
}
.crumb a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); transition: background .2s ease; }
.crumb a:hover { background: var(--soft); }
.crumb a svg { transition: transform .25s cubic-bezier(.2,.7,.1,1); }
.crumb a:hover svg { transform: translateX(-3px); }
.crumb span { padding: 8px 18px; border-radius: 999px; background: var(--soft); color: var(--ink); }
:root[data-theme="dark"] .crumb { box-shadow: 0 8px 28px rgba(0,0,0,.4); }
@media (max-width: 640px) { .crumb-bar { top: 10px; margin-top: 20px; padding: 0 20px; } .crumb { font-size: 15px; } .crumb span { padding: 7px 14px; } }

/* ===== Client case studies ===== */
.case-meta div { min-width: 150px; }
.case-hero { margin-top: 56px; }
.case-hero > img { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 24px 60px -20px rgba(0,0,0,.18); }
.phones-hero {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0;
  padding: 64px 24px 0; border-radius: 24px; background: var(--soft); overflow: hidden; height: clamp(380px, 52vw, 640px);
}
.phones-hero .hp { width: clamp(150px, 20vw, 260px); aspect-ratio: 428 / 926; object-fit: cover; object-position: top; border-radius: 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); border: 1px solid rgba(0,0,0,.06); }
.phones-hero .hp-0 { transform: translate(18%, 12%) rotate(-6deg); z-index: 1; }
.phones-hero .hp-1 { width: clamp(170px, 23vw, 300px); z-index: 2; transform: translateY(4%); }
.phones-hero .hp-2 { transform: translate(-18%, 12%) rotate(6deg); z-index: 1; }

.case-text { margin-top: 88px; }
.case-text h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 16px; }
.case-text h2 + p { margin-top: 0; }
.case-text p { font-size: 18px; line-height: 1.7; color: var(--ink); max-width: 720px; }
.case-text p + h2 { margin-top: 64px; }
.case-list { list-style: none; max-width: 720px; margin-top: 18px; }
.case-list li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.6; }
.case-list li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.case-quotes { display: grid; gap: 12px; margin-top: 24px; max-width: 720px; }
.case-quotes blockquote { margin: 0; padding: 18px 22px; border-radius: 14px; background: var(--soft); font-size: 18px; font-weight: 500; }

.case-media { margin-top: 48px; }
.case-shots { display: grid; gap: 20px; }
.case-shots.two { grid-template-columns: 1fr 1fr; }
.case-shots.three { grid-template-columns: repeat(3, 1fr); }
.case-shots figure { margin: 0; }
.case-shots img { width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 36px -18px rgba(0,0,0,.18); cursor: zoom-in; }
.case-shots figcaption, .phones figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.phones {
  display: flex; gap: 28px; justify-content: center; align-items: flex-start;
  padding: 36px 32px 32px; border-radius: 24px; background: var(--soft);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.phones figure { margin: 0; flex: 0 0 auto; width: clamp(170px, 17vw, 220px); scroll-snap-align: center; }
.phones img { width: 100%; border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -16px rgba(0,0,0,.28); cursor: zoom-in; transition: transform .4s cubic-bezier(.2,.7,.1,1); }
.phones img:hover { transform: translateY(-4px); }
.phones figcaption { text-align: center; }
:root[data-theme="dark"] .phones, :root[data-theme="dark"] .phones-hero { background: #18181b; }

@media (max-width: 900px) {
  .case-shots.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .case-text { margin-top: 64px; }
  .case-text p { font-size: 17px; }
  .case-shots.two, .case-shots.three { grid-template-columns: 1fr; }
  .phones { justify-content: flex-start; padding: 24px 20px; gap: 18px; border-radius: 18px; }
  .phones figure { width: 62vw; }
  .phones-hero { height: 340px; padding-top: 40px; border-radius: 18px; }
  .phones-hero .hp { width: 34vw; } .phones-hero .hp-1 { width: 40vw; }
}

/* Client work cards on the home page */
.client-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.client-card { display: block; text-decoration: none; border-radius: 18px; background: var(--soft); padding: 14px 14px 18px; transition: transform .35s cubic-bezier(.2,.7,.1,1), background .2s ease; }
.client-card:hover { transform: translateY(-4px); background: var(--soft-hover); }
.client-card .thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg); }
.client-card .ccap { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0 4px; }
.client-card .ccap img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.client-card strong { font-size: 17px; font-weight: 600; }
.client-card p { margin: 4px 4px 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
@media (max-width: 640px) { .client-grid { grid-template-columns: 1fr; } }

/* ===== Showcase boards ===== */
.board { background: var(--bb); border-radius: 28px; padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px); }
.board img { display: block; width: 100%; cursor: zoom-in; transition: transform .45s cubic-bezier(.2,.7,.1,1); }
.board img:hover { transform: translateY(-4px); }
.board.pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); justify-content: center; gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.board.pieces .bcol { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 32px); }
.board.pieces img { border-radius: 22px; box-shadow: 0 1px 2px rgba(15,30,70,.05), 0 20px 44px -22px rgba(15,30,70,.28); }
.board.screens { display: grid; gap: clamp(14px, 2vw, 28px); align-items: start; justify-content: center; }
.board.screens.n3 { grid-template-columns: repeat(3, minmax(0, 250px)); }
.board.screens.n4 { grid-template-columns: repeat(4, minmax(0, 240px)); }
.board.screens img { border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 24px 48px -22px rgba(0,0,0,.32); }
.board.screens img:nth-child(even) { margin-top: clamp(24px, 4vw, 56px); }
.board.dark img { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px -20px rgba(0,0,0,.7); }
.board.art { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 32px; align-items: center; }
.board.art img { box-shadow: none; cursor: zoom-in; }
.case-hero .board { border-radius: 28px; }
.case-media .board { margin-top: 8px; }
:root[data-theme="dark"] .board:not(.dark) { filter: saturate(.95); }
@media (max-width: 800px) {
  .board { border-radius: 20px; }
  .board.pieces { grid-template-columns: 1fr 1fr; gap: 12px; }
  .board.pieces .bcol { gap: 12px; }
  .board.pieces img { border-radius: 14px; }
  .board.screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; padding: 24px 20px; }
  .board.screens img { flex: 0 0 56vw; width: 56vw; scroll-snap-align: center; border-radius: 18px; }
  .board.screens img:nth-child(even) { margin-top: 24px; }
  .board.art { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Tags that separate designed from built work */
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.client-card .tag { margin-left: auto; }
.tag.built { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); margin-bottom: 14px; }
#designed .companies.pills { margin-top: 36px; }
.client-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .client-grid { grid-template-columns: 1fr; } }

/* ===== Floating pill navigation ===== */
body { padding-top: 84px; }
header { position: fixed; top: 14px; left: 0; right: 0; z-index: 40; border: 0; pointer-events: none; background: none; }
header .wrap {
  pointer-events: auto; max-width: 1000px; width: calc(100% - 32px); height: 58px; margin: 0 auto;
  padding: 0 8px 0 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--line); box-shadow: 0 10px 34px -12px rgba(0,0,0,.18);
  transition: box-shadow .3s ease, background .3s ease;
}
header nav { gap: 4px; }
header nav a { padding: 7px 13px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
header nav a:hover { background: var(--soft); color: var(--ink); }
header .icon-btn { margin-left: 4px; }
.brand img { width: 36px; height: 36px; }
:root[data-theme="dark"] header .wrap { box-shadow: 0 10px 34px -12px rgba(0,0,0,.6); }
.crumb-bar { top: 86px; }
[id] { scroll-margin-top: 100px; }
.hero { padding-top: 72px; }
@media (max-width: 640px) {
  body { padding-top: 76px; }
  header { top: 10px; }
  header .wrap { width: calc(100% - 20px); height: 54px; padding: 0 6px 0 8px; }
  header nav a { padding: 6px 9px; }
  .crumb-bar { top: 74px; }
  .hero { padding-top: 48px; }
}
@media (max-width: 480px) {
  header nav a[href$="#designed"], header nav a[href$="#work"] { display: none; }
  header nav { gap: 0; }
  header nav a { padding: 6px 8px; font-size: 14px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  header .icon-btn { margin-left: 2px; }
}

/* Case study chapters */
.case-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-toc span { font-size: 14px; color: var(--muted); margin-right: 6px; }
.case-toc a { font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--soft); transition: background .2s ease; }
.case-toc a:hover { background: var(--soft-hover); }
.case-text h2 { scroll-margin-top: 150px; }
.case-h3 { font-size: 20px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.insights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; max-width: 900px; }
.insight { background: var(--soft); border-radius: 18px; padding: 22px 22px 24px; }
.insight span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.insight strong { display: block; font-size: 18px; line-height: 1.35; margin: 10px 0 8px; }
.insight p { font-size: 15.5px !important; color: var(--muted) !important; line-height: 1.6 !important; margin: 0; }
@media (max-width: 640px) { .insights { grid-template-columns: 1fr; } }
.case-text > * + h2 { margin-top: 80px; }
.case-text > * + .case-h3 { margin-top: 48px; }
.case-text > h2 + .case-h3 { margin-top: 8px; }

/* Kora design library shot in the band */
.band-shot { margin-top: 64px; }
.band-shot img { width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); }
.band-shot figcaption { margin-top: 14px; font-size: 14px; color: var(--panel-muted); }

/* ===== Icon dock navigation ===== */
header .dock {
  pointer-events: auto; width: max-content; max-width: calc(100% - 20px); margin: 0 auto;
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px;
  background: #1d1d1f; border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 12px 34px -14px rgba(0,0,0,.45); font-size: 14px;
}
header .dock .dk {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 46px; min-width: 46px; padding: 0 13px; border: 0; border-radius: 999px;
  background: none; color: #f2f2f2; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  isolation: isolate; -webkit-tap-highlight-color: transparent;
  transition: color .3s ease, transform .15s ease;
}
header .dock .dk::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #f5f5f7;
  opacity: 0; transform: scale(.85); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
header .dock .dk:active { transform: scale(.95); }
header .dock .dk.on, header .dock .dk:hover, header .dock .dk:focus-visible { color: #1d1d1f; }
header .dock .dk.on::before, header .dock .dk:hover::before, header .dock .dk:focus-visible::before { opacity: 1; transform: scale(1); }
header .dock:hover .dk.on:not(:hover)::before { opacity: 0; transform: scale(.85); }
header .dock:hover .dk.on:not(:hover) { color: #f2f2f2; }
header .dock .dk:focus-visible { outline: 2px solid #f5f5f7; outline-offset: 2px; }
header .dock svg { flex: none; display: block; }
header .dock .lbl {
  display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; margin-left: 0;
  transition: max-width .5s cubic-bezier(.2,.8,.2,1), opacity .3s ease, margin-left .5s cubic-bezier(.2,.8,.2,1);
}
header .dock .dk:hover .lbl, header .dock .dk:focus-visible .lbl { max-width: 150px; opacity: 1; margin-left: 8px; }
header .dock .lbl b { font-weight: inherit; }
header .dock .lbl kbd { font-family: inherit; font-size: 12px; opacity: .6; margin-left: 4px; }
header .dock .t-light, :root[data-theme="dark"] header .dock .t-dark { display: none; }
:root[data-theme="dark"] header .dock .t-light { display: inline; }
header .dock .dock-sep { width: 1px; height: 22px; margin: 0 6px; background: rgba(255,255,255,.14); }
:root[data-theme="dark"] header .dock { background: #222225; border-color: rgba(255,255,255,.09); box-shadow: 0 12px 34px -14px rgba(0,0,0,.8); }
@media (hover: none) { header .dock .dk:hover .lbl { max-width: 0; opacity: 0; margin-left: 0; } }
@media (max-width: 420px) {
  header .dock { gap: 0; padding: 5px; }
  header .dock .dk { height: 42px; min-width: 40px; padding: 0 10px; }
  header .dock .dock-sep { margin: 0 3px; }
}
@media (max-width: 360px) { header .dock .dk[data-cmdk] { display: none; } }
@media (prefers-reduced-motion: reduce) { header .dock .lbl, header .dock .dk::before { transition: none; } }

/* ===== Contact: socials, hover copy, booking card ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
.mail-row { gap: 10px; }
.copy-ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--panel-text); border: 0;
  opacity: 0; transform: translateX(-6px) scale(.9); pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1), background .2s ease;
}
.mail-row:hover .copy-ic, .mail-row:focus-within .copy-ic { opacity: 1; transform: none; pointer-events: auto; }
.copy-ic:hover { background: rgba(255,255,255,.16); }
.copy-ic:active { transform: scale(.92); }
@media (hover: none) { .copy-ic { opacity: 1; transform: none; pointer-events: auto; } }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.socials a {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); color: var(--panel-text); text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.socials a:hover { background: var(--panel-text); color: var(--panel); }
.socials a:active { transform: scale(.94); }
.socials a.cv { width: auto; padding: 0 20px; font-size: 15px; font-weight: 500; }
.book { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 28px; }
.book-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book-top img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.book-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--panel-soft); padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.06); }
.book-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.book h3 { margin-top: 22px; font-size: 24px; color: var(--panel-text); letter-spacing: -0.02em; }
.book p { margin-top: 8px; color: var(--panel-soft); font-size: 16px; line-height: 1.55; }
.book-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: var(--panel-muted); }
.book-meta li { display: inline-flex; align-items: center; gap: 6px; }
.book-meta b { font-weight: 500; color: var(--panel-soft); }
.book-btn { margin-top: 24px; width: 100%; justify-content: center; background: var(--panel-text) !important; color: var(--panel) !important; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (prefers-reduced-motion: reduce) { .book-live i { animation: none; } }
.contact .mail-row { flex-wrap: nowrap; }
.contact .mail-row .mail { font-size: clamp(17px, 2.4vw, 30px); min-width: 0; overflow-wrap: anywhere; }
.copy-ic { flex: none; }
header .dock .i-sun, :root[data-theme="dark"] header .dock .i-moon { display: none; }
:root[data-theme="dark"] header .dock .i-sun { display: block; }
.contact .mail-row .mail { font-size: clamp(17px, 2vw, 26px); }
.contact-grid { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Booking card: hover lift, cursor light, arrow nudge */
.book { position: relative; overflow: hidden; isolation: isolate; transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s ease, background .3s ease, box-shadow .45s ease; }
.book::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.10), transparent 60%);
}
.book:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.book:hover::before { opacity: 1; }
.book-top { justify-content: flex-start; }
.book-top img { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.book:hover .book-top img { transform: scale(1.06) rotate(-3deg); }
.book-top strong { display: block; font-size: 15px; font-weight: 600; color: var(--panel-text); }
.book-top span { display: block; font-size: 13px; color: var(--panel-muted); margin-top: 2px; }
.book-btn { display: inline-flex; align-items: center; gap: 8px; }
.book-btn svg { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.book:hover .book-btn svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .book, .book-top img, .book-btn svg { transition: none; } .book:hover { transform: none; } }

/* ===== Mobile: the dock floats at the bottom ===== */
@media (max-width: 640px) {
  body { padding-top: 12px; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  header { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); }
  header .dock { box-shadow: 0 14px 40px -10px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.15); }
  .crumb-bar { top: 10px; }
  .index { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ===== Client card thumbnails: settle in on reveal, drift on hover ===== */
.client-grid .client-card { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.1,1), background .2s ease; }
.client-grid .client-card .thumb .stage { transform: scale(1.08); transition: transform 1.4s cubic-bezier(.2,.7,.1,1); }
.seen .client-grid .client-card { opacity: 1; transform: none; }
.seen .client-grid .client-card .thumb .stage { transform: none; }
.client-grid .client-card:nth-child(2), .client-grid .client-card:nth-child(2) .thumb .stage { transition-delay: 90ms; }
.client-grid .client-card:nth-child(3), .client-grid .client-card:nth-child(3) .thumb .stage { transition-delay: 180ms; }
.client-grid .client-card:nth-child(4), .client-grid .client-card:nth-child(4) .thumb .stage { transition-delay: 270ms; }
.seen .client-grid .client-card:hover { transform: translateY(-4px); transition-delay: 0s; }
.seen .client-grid .client-card:hover .thumb .stage { transform: scale(1.03); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .client-grid .client-card, .seen .client-grid .client-card:hover { opacity: 1; transform: none; transition: background .2s ease; }
  .client-grid .client-card .thumb .stage, .seen .client-grid .client-card:hover .thumb .stage { transform: none; transition: none; }
}

/* ===== Trusted by: a looping wall of company marks ===== */
.trusted { display: flex; align-items: center; gap: 28px; margin-top: 56px; }
.trusted-label { flex: none; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; padding-right: 28px; border-right: 1px solid var(--line); }
.ticker {
  display: flex; flex: 1; min-width: 0; overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-row { display: flex; flex: none; align-items: center; gap: 48px; padding-right: 48px; list-style: none; animation: ticker 38s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-row li {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  filter: grayscale(1); opacity: .45; transition: opacity .3s ease, filter .3s ease;
}
.ticker-row li:hover { filter: none; opacity: 1; }
.ticker-row img, .ticker-row i { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; }
.ticker-row i { display: grid; place-items: center; background: var(--ink); color: var(--bg); font-style: normal; font-size: 14px; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (max-width: 640px) {
  .trusted { margin-top: 44px; gap: 16px; }
  .trusted-label { font-size: 13px; padding-right: 16px; }
  .ticker-row { gap: 32px; padding-right: 32px; animation-duration: 28s; }
  .ticker-row li { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-row { flex-wrap: wrap; flex: 1; gap: 16px 32px; animation: none; }
  .ticker-row[aria-hidden] { display: none; }
}


/* ===== Client card thumbnails: the real designs, with their numbers and text in motion ===== */
.client-card .thumb .stage { position: relative; width: 100%; aspect-ratio: 4 / 3; transform-origin: 50% 0; container-type: inline-size; }
.client-card .thumb .stage > img { display: block; width: 100%; height: 100%; object-fit: fill; transform: none; transition: none; }
.thumb .fx { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); overflow: hidden; pointer-events: none; }
.thumb .fx img { position: absolute; max-width: none; height: auto; object-fit: fill; transform: none; transition: none; }
.thumb .fx .reel { position: absolute; inset: 0; will-change: transform; }
.thumb .fx .cell { position: relative; width: 100%; height: 100%; overflow: hidden; }
.thumb .fx .cell.blur { filter: blur(1.5px); opacity: .7; }
.thumb .fx[data-fx="fill"] { border-radius: 99px; }
.thumb .fx.call { overflow: visible; }
.thumb .fx.call > img { position: static; display: block; width: 100%; height: 100%; }
/* Purse Money balances are live text in the design's own type: Sora 600 at 22.2px on a 2000px frame */
.thumb .fx.count { background: rgb(240,247,255); color: #000; font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.1103cqw; letter-spacing: .0222cqw; line-height: 1.4cqw; white-space: nowrap; }
