@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --blue: #172F52;
  --pink: #D6285F;
  --gray: #F7F4EE;
  --white: #ffffff;
  --ink: #172F52;
  --muted: #66758B;
  --line: rgba(16, 21, 40, 0.08);
  --shadow: 0 18px 50px rgba(41, 75, 239, 0.12);
  --radius: 22px;
  --display: "Bebas Neue", "Anton", Impact, sans-serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ink: #101528;
  --name: var(--pink);
  --rose: var(--pink);
  --clip: var(--pink);
  --pink-wash: color-mix(in srgb, var(--pink) 28%, var(--white));
  --paper: var(--white);
  --ivory: var(--gray);
  --cream: var(--gray);
  --nav: rgba(255, 255, 255, 0.9);
  --serif: var(--sans);
  --news: var(--sans);
  --script: var(--display);
  --blackletter: var(--display);
}

/* Per-project skins. Home stays Lolli Glow (--blue / --pink). */
html[data-theme="ar"] {
  --blue: #1B365D;
  --pink: #1B365D;
  --gray: #F4EFE4;
  --ink: #1B365D;
  --muted: #4A5F7A;
  --shadow: 0 18px 50px rgba(27, 54, 93, 0.16);
}
html[data-theme="tmdb"] {
  --blue: #253A82;
  --pink: #253A82;
  --gray: #EFEAFF;
  --ink: #253A82;
  --muted: #5A548C;
  --shadow: 0 18px 50px rgba(37, 58, 130, 0.16);
}
html[data-theme="happy"] {
  --blue: #2A56F2;
  --pink: #9DFECB;
  --gray: #EEF2FF;
  --ink: #1A2F9E;
  --muted: #3D5FD6;
  --shadow: 0 18px 50px rgba(42, 86, 242, 0.14);
}
html[data-theme="sql"] {
  --blue: #2A56F2;
  --pink: #2A56F2;
  --gray: #E8FFF4;
  --ink: #1E3AB8;
  --muted: #3D5FD6;
  --shadow: 0 18px 50px rgba(42, 86, 242, 0.16);
}
html[data-theme="model"] {
  --blue: #2e3440;
  --pink: #b8e986;
  --gray: #f3f4f2;
  --ink: #1c2018;
  --muted: #5c6358;
  --shadow: 0 18px 50px rgba(46, 52, 64, 0.14);
}
html[data-theme="access"] {
  --blue: #1a6b8a;
  --pink: #9fd4e8;
  --gray: #eef5f8;
  --ink: #0e2430;
  --muted: #4e6773;
  --shadow: 0 18px 50px rgba(26, 107, 138, 0.14);
}
html[data-theme="lulu"] {
  --blue: #d45c64;
  --pink: #f3cfd2;
  --gray: #faf6f5;
  --white: #ffffff;
  --ink: #2a1416;
  --muted: #7a5558;
  --shadow: 0 18px 50px rgba(212, 92, 100, 0.16);
}
html[data-theme="nike"] {
  --blue: #1c1c1c;
  --pink: #ff6a00;
  --gray: #f3f2ef;
  --white: #ffffff;
  --ink: #141414;
  --muted: #5c5c58;
  --shadow: 0 18px 50px rgba(28, 28, 28, 0.18);
}
html[data-theme="odds"] {
  --blue: #2A56F2;
  --pink: #ff6a00;
  --gray: #FBF7F1;
  --white: #ffffff;
  --ink: #1A2F9E;
  --muted: #3D5FD6;
  --shadow: 0 18px 50px rgba(42, 86, 242, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gray);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
}
img { max-width: 100%; }
img.brand-photo,
img.hero-photo,
img.about-photo { max-width: none; }
a { color: var(--blue); }
a:hover { color: var(--ink); }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.site-nav.is-past-profile {
  background: var(--blue);
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: 0 10px 28px rgba(16, 21, 40, 0.18);
}
.site-nav.is-past-profile .brand,
.site-nav.is-past-profile .brand .brand-script,
.site-nav.is-past-profile .brand .brand-serif {
  color: var(--white);
}
.site-nav.is-past-profile .nav-links a {
  color: var(--white);
}
.site-nav.is-past-profile .nav-links a:hover {
  color: color-mix(in srgb, var(--white) 80%, var(--pink));
}
.site-nav.is-past-profile .nav-links .btn {
  background: var(--white);
  color: var(--blue);
}
.site-nav.is-past-profile .nav-links .btn:hover {
  background: var(--pink);
  color: var(--white);
}
.nav-social {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
html:not([data-theme="home"]) .nav-social,
.site-nav.is-past-profile .nav-social {
  display: flex;
}
.nav-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--gray);
  text-decoration: none;
}
.nav-ico svg { width: 16px; height: 16px; display: block; }
.nav-ico:hover { background: var(--pink); color: var(--ink); }
.site-nav.is-past-profile .nav-ico {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}
.site-nav.is-past-profile .nav-ico:hover {
  background: var(--pink);
  color: var(--ink);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand,
.brand .brand-script,
.brand .brand-serif {
  text-decoration: none;
  color: var(--pink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.brand-photo,
.hero-photo,
.about-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}
.hero-photo {
  width: 240px;
  height: 240px;
  aspect-ratio: 1;
  border: 3px solid var(--white);
  box-shadow: 0 12px 32px rgba(16, 21, 40, 0.12);
  margin: 0;
}
.about-photo {
  width: 180px;
  height: 180px;
  border: 3px solid var(--white);
  box-shadow: 0 8px 28px rgba(16, 21, 40, 0.1);
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--blue); }
.nav-links .btn {
  border: 0;
  background: var(--blue);
  color: var(--white);
  padding: 9px 14px;
  border-radius: 999px;
}
.nav-links .btn:hover { background: var(--ink); color: var(--white); }

/* Full-bleed page shell — product, not a paper sheet */
.stage {
  width: 100%;
  margin: 0;
  background: var(--gray);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 72px;
  overflow: visible;
}
.spine { display: none; }
.page-col { min-width: 0; }

/* Case study subnav */
.hang-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 16px 0;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.hang-tab,
.folder-tab {
  position: relative;
  background: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: none;
}
.hang-tab::before,
.folder-tab::before { display: none; }
.hang-tab.is-active,
.folder-tab.is-active { background: var(--blue); color: var(--white); }
.hang-tab:hover,
.folder-tab:hover { color: var(--blue); }

.folder { background: transparent; border: 0; padding: 0; box-shadow: none; }

.paper,
.sheet,
.about-band,
.contact-band,
.folder-paper,
.news-hero,
.notebook {
  position: relative;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 28px 0 8px;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.paper, .sheet { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.about-band, .contact-band { width: min(1100px, calc(100% - 40px)); }

.folder-heading,
.folder-heading span,
.title-tab,
.launch-line,
.covers-kicker,
.section-kicker {
  display: block;
  background: none;
  border: 0;
  clip-path: none;
  padding: 0;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: left;
  line-height: 1;
  margin: 0 0 10px;
}

.display,
.article-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
}
.display em,
.case-body h3 em {
  font-style: italic;
}
.case-subtitle {
  margin: -2px 0 14px;
  max-width: 42rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.script-logo,
.script-cover {
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  margin: 0;
  text-align: left;
  line-height: 0.9;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.script-logo + .byline,
.script-cover + .launch-line { margin-top: 8px; }

.byline,
.byline-caps {
  margin: 0 0 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.article-lede,
.hero-lede,
.section-intro {
  font-family: var(--sans);
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1.55;
  text-align: left;
  max-width: 42rem;
  margin: 0 0 22px;
  color: var(--muted);
}

.masthead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  padding: 0 0 12px;
  margin: 0 0 8px;
}
.masthead span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.masthead .blackletter,
.blackletter {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--blue);
  letter-spacing: 0.04em;
}

.ticker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 28px 0 8px;
  padding: 16px 22px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
}
.ticker b { font-weight: 700; }
a.ticker, a.ticker:hover { color: var(--white); }
.ticker:hover { background: var(--ink); }
.ticker b:nth-of-type(n+2),
.ticker span { display: none; }

.poster-stack {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 8.4rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pink);
}
.poster-stack span { display: block; }

.date-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0 16px;
}
.pill,
.pill-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
a.pill:hover { background: var(--blue); color: var(--white); }
.date-row .byline-caps { margin: 0; letter-spacing: 0.2em; }

.rule-line,
.paper-rule {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  color: var(--blue);
  font-family: var(--sans);
  font-style: normal;
}

.news-trio,
.paper-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.news-col,
.paper-box {
  border: 0;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
}
.news-col h3,
.paper-box h3 {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.news-col p,
.paper-box p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}
.news-mark { display: none; }
.news-flower,
.press-vine,
.nb-flower,
.paper-mark { display: none; }

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.role-strip {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Clean cards — no tape, clips, or polaroid tilt */
.polaroid,
.work-card,
.cover,
.file-card {
  position: relative;
  background: var(--white);
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}
.polaroid::before,
.polaroid::after,
.work-card::before,
.work-card::after,
.cover::before,
.cover::after,
.hw-tape,
.hw-clip,
.hw-pin,
.clip-paper::before,
.clip-paper::after { display: none !important; content: none !important; }

.polaroid-shot,
.cover-visual,
.file-window {
  background: var(--gray);
  min-height: 140px;
  padding: 20px 18px;
  border: 0;
}
.polaroid figcaption,
.polaroid .caption {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  text-align: left;
  padding: 14px 18px 16px;
  color: var(--muted);
  font-weight: 500;
}
.polaroid-row,
.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 8px 0 28px;
}
.polaroid.tilt-l,
.polaroid.tilt-r,
.polaroid.tilt-l2,
.polaroid.tilt-r2 { transform: none; }

.id-card {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  padding: 8px 22px 12px;
}
.id-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  align-items: baseline;
}
.id-row:last-child { border-bottom: 0; }
.id-row.split { grid-template-columns: 118px 1fr 90px 1fr; }
.id-row dt {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.id-row dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.id-kicker {
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--pink);
  margin: 4px 0 0;
}

.pie-block {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 150px;
}
.pie {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pie-mix {
  background: conic-gradient(var(--blue) 0 64%, var(--pink) 64% 96%, var(--gray) 96% 100%);
}
.pie-age {
  background: conic-gradient(
    color-mix(in srgb, var(--blue) 30%, var(--white)) 0 41%,
    color-mix(in srgb, var(--blue) 55%, var(--white)) 41% 60%,
    var(--pink) 60% 68.6%,
    var(--blue) 68.6% 100%
  );
}
.pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
}
.pie-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
}
.pie-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}
.swatch-ins { background: var(--blue); }
.swatch-card { background: var(--pink); }
.swatch-other { background: var(--gray); }
.swatch-a { background: color-mix(in srgb, var(--blue) 22%, var(--white)); }
.swatch-b { background: color-mix(in srgb, var(--blue) 45%, var(--white)); }
.swatch-c { background: var(--pink); }
.swatch-d { background: var(--blue); }

.yoy {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  height: 168px;
  padding: 8px 8px 0;
}
.yoy-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 72px;
  height: 100%;
  justify-content: flex-end;
}
.yoy-col em {
  display: block;
  width: 100%;
  background: var(--pink-wash);
  border-radius: 8px 8px 2px 2px;
  font-style: normal;
}
.yoy-col.now em { background: var(--blue); }
.yoy-col span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.yoy-col strong {
  display: block;
  margin-top: -4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.lift-shot,
.drop-shot { min-height: 210px; }
.lift-shot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 14px 10px;
}
.yoy-lift { flex: 1; height: 176px; gap: 22px; padding: 0; }
.yoy-lift .yoy-col { width: 78px; }
.lift-stamp {
  background: var(--pink);
  color: var(--ink);
  min-width: 112px;
  padding: 16px 12px 14px;
  text-align: center;
  border-radius: 16px;
  transform: none;
  margin-bottom: 28px;
}
.lift-stamp b {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.9;
  font-weight: 400;
}
.lift-stamp span {
  display: block;
  margin-top: 8px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drop-shot { padding: 12px 10px 8px; }
.drop-kicker {
  margin: 0 0 8px;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.drop-pair {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 172px;
}
.drop-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 92px;
  height: 100%;
}
.drop-col b {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.drop-col em {
  display: block;
  width: 100%;
  font-style: normal;
  border-radius: 8px 8px 2px 2px;
}
.drop-col.was em { background: var(--pink); }
.drop-col.now em { background: var(--blue); }
.drop-col span {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.drop-arrow {
  font-size: 1.4rem;
  color: var(--blue);
  padding-bottom: 38px;
  line-height: 1;
}

.covers-section,
.stack-block { margin: 0; padding: 0; }
.notebook { padding: 10px 0 20px; }
.notebook::before { display: none; }

.covers,
.file-row,
.work-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 8px 0 12px;
}
.cover,
.file-card,
.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 0;
  transform: none !important;
  margin: 0 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cover:hover,
.file-card:hover,
.work-card:hover {
  color: inherit;
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow);
  z-index: 2;
}
.file-tab, .file-spine { display: none; }
.cover-visual,
.file-window {
  flex: 1;
  min-height: 188px;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}
.cover-visual .cv-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.cover-visual b,
.file-window b {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 0.9;
  color: var(--ink);
}
.cover-visual small { font-size: 0.75rem; color: var(--muted); }
.cover-visual.cv-ar,
.cover-visual.cv-tmdb,
.cover-visual.cv-happy,
.cover-visual.cv-sql,
.cover-visual.cv-lulu,
.cover-visual.cv-odds,
.cover-visual.cv-nike { background: var(--gray); color: var(--ink); }
.case-visual .thumb-viz,
.case-visual .cv-tmdb,
.case-visual .cv-happy,
.case-visual .cv-sql,
.case-visual .cv-odds,
.case-visual .cv-nike,
.case-visual .cv-lulu {
  background: inherit !important;
  color: inherit;
}
.cv-bars { display: flex; align-items: flex-end; gap: 6px; height: 88px; margin-top: 12px; }
.cv-bars i { flex: 1; background: var(--blue); display: block; border-radius: 4px 4px 0 0; }
.cv-ar { justify-content: flex-start; gap: 14px; }
.cv-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cv-fact .cv-label { display: block; margin-bottom: 4px; }
.cv-ar .cv-fact b { font-size: 1.7rem; display: block; }
.cv-fact small { display: block; margin-top: 4px; font-size: 0.7rem; color: var(--ink); }
.cv-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: end;
}
.cv-h-bars { display: flex; flex-direction: column; gap: 8px; }
.cv-h-row {
  display: grid;
  grid-template-columns: 36px 1fr 52px;
  gap: 6px;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cv-h-row b {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}
.cv-h-row em {
  display: block;
  height: 12px;
  background: var(--pink-wash);
  border-radius: 99px;
  font-style: normal;
}
.cv-h-row.now em { background: var(--blue); }
.cv-mini-drop {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  height: 86px;
}
.cv-mini-drop span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
  width: 42px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cv-mini-drop i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; }
.cv-mini-drop .was i { background: var(--pink); height: 100%; }
.cv-mini-drop .down i { background: var(--blue); height: 45%; }
.cv-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.cv-row em {
  display: block;
  height: 8px;
  width: 78%;
  background: var(--blue);
  border-radius: 99px;
  font-style: normal;
}
.cv-row.short em { width: 60%; }
.cv-row.mid em { width: 28%; background: var(--pink); }
.cv-dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 14px;
  margin: 12px 0 4px;
  max-width: 200px;
}
.cv-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  display: block;
  opacity: 0.25;
}
.cv-dots i:nth-child(3n) { opacity: 1; transform: translate(12px, -6px); background: var(--pink); }
.cv-dots i:nth-child(5n) { opacity: 0.55; transform: translate(6px, 8px); }
.cv-sql ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.7;
  font-family: var(--mono);
}
.cv-lulu .cv-row em { width: 72%; }
.cv-lulu .cv-row.mid em { width: 22%; background: var(--pink); }
.cv-nike .cv-row em { width: 68%; }
.cv-nike .cv-row.mid em { width: 28%; background: var(--pink); }
.cv-odds .cv-row em { width: 58%; }
.cv-odds .cv-row.mid em { width: 36%; background: var(--pink); }
.cover-meta,
.file-meta {
  padding: 16px 18px 18px;
  background: var(--white);
  margin: 0;
}
.cover-meta span,
.file-meta span {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.cover-meta h2,
.file-meta h2 {
  font-family: var(--display);
  font-size: 1.7rem;
  margin: 6px 0 6px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.cover-meta p,
.file-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-dark, .btn-primary { background: var(--ink); color: var(--white); }
.btn-dark:hover, .btn-primary:hover { background: var(--blue); color: var(--white); }
.btn-line, .btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-line:hover, .btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-pink { background: var(--pink); color: var(--ink); }
.btn-pink:hover { background: var(--white); color: var(--ink); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--ink); color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.about-grid {
  display: grid;
  grid-template-columns: 200px 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
.about-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 48px 40px;
  box-shadow: var(--shadow);
}
.about-panel .display {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.about-copy {
  max-width: 760px;
}
.about-copy .about-lead {
  margin: 0 0 14px;
  max-width: 760px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.about-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.75;
  margin: 0;
}
.skill-group { margin-bottom: 28px; }
.skill-group h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.skill-group p {
  margin: 0;
  max-width: 760px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
}
.skill-aside {
  margin: 4px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.edu-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  max-width: 44rem;
}
.edu-list li {
  display: block;
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}
.skills {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.skills h3 {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.skill-pills li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 9%, var(--white));
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.skill-pills li:nth-child(3n) {
  background: color-mix(in srgb, var(--pink) 26%, var(--white));
}
.skill-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--blue);
}
.skill-pills li:nth-child(3n) .skill-icon {
  color: #c4478d;
}
.contact-band h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 10px;
  font-weight: 400;
  text-align: left;
  color: var(--ink);
}
.portrait {
  border: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  background: var(--pink);
  border-radius: var(--radius);
}

footer, .site-footer {
  background: var(--white);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-footer, footer .wrap, .site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
footer a, .site-footer a { color: var(--ink); text-decoration: none; }
footer a:hover, .site-footer a:hover { color: var(--blue); }

.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 36px 0 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose p, .prose li {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0 0 6px; }
.prose a { font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 6px 0 22px;
}
.stat {
  background: var(--white);
  border: 0;
  border-radius: 18px;
  padding: 18px 16px;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  color: var(--blue);
  line-height: 0.95;
  font-weight: 400;
  white-space: nowrap;
}
.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.two-col, .pa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.panel, .pa {
  background: var(--white);
  border: 0;
  border-radius: 18px;
  padding: 18px;
}
.panel h3, .pa h3 {
  margin: 0 0 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.pa p, .panel p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}
.panel table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.panel th, .panel td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.panel tr:last-child th, .panel tr:last-child td { border-bottom: 0; }
.panel th { font-weight: 600; width: 38%; font-size: 0.78rem; letter-spacing: 0.04em; }

.bars { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 8px; }
.bar-row {
  display: grid;
  grid-template-columns: 148px 1fr 78px;
  gap: 10px;
  align-items: center;
  font-size: 0.84rem;
}
.bar-track { height: 8px; background: var(--gray); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--blue); border-radius: 99px; }
.bar-row span:last-child, .bar-row b {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.notice {
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  margin: 0 0 16px;
}
.note-strip {
  border: 0;
  padding: 8px 0 0;
  margin-top: 10px;
  font-size: 0.95rem;
  text-align: left;
  color: var(--muted);
}

code, .code { font-family: var(--mono); font-size: 0.82rem; }
pre.code {
  background: var(--ink);
  color: var(--gray);
  padding: 18px;
  overflow: auto;
  line-height: 1.45;
  border: 0;
  border-radius: 16px;
  font-size: 0.78rem;
}

.demo {
  background: var(--white);
  border: 0;
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0 8px;
}
.demo h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.demo .hint { color: var(--muted); margin: 0 0 16px; font-size: 0.95rem; }
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}
label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
}
.demo button {
  border: 0;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 999px;
}
.demo button:hover { background: var(--ink); }
.result {
  margin-top: 16px;
  padding: 12px 14px;
  font-weight: 700;
  border: 0;
  border-radius: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.result.late { background: var(--pink); color: var(--ink); }
.result.ontime { background: color-mix(in srgb, var(--blue) 14%, var(--white)); color: var(--blue); }
.result.still { background: var(--gray); color: var(--ink); }

.heat {
  display: grid;
  grid-template-columns: 120px repeat(5, 1fr);
  gap: 3px;
  font-size: 0.72rem;
  margin: 16px 0;
}
.heat div { padding: 10px 6px; text-align: center; border-radius: 8px; }
.heat .h { background: transparent; color: var(--muted); text-align: left; padding-left: 0; }
.q1 { background: color-mix(in srgb, var(--blue) 12%, var(--white)); }
.q2 { background: var(--pink-wash); }
.q3 { background: var(--white); }
.q4 { background: var(--pink); }

.table-wrap { overflow: auto; border: 0; margin: 12px 0 20px; border-radius: 16px; background: var(--white); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table-wrap th, .table-wrap td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table-wrap th {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--white);
}
.table-wrap tr:last-child td { border-bottom: 0; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pager a { color: var(--ink); text-decoration: none; }
.pager a:hover { color: var(--blue); }

/* —— Product home —— */
.home-hero {
  background: var(--blue);
  color: var(--white);
  padding: 110px 0 90px;
  overflow: hidden;
  text-align: center;
}
.hero-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: 52rem;
  margin: 0 auto;
}
.home-hero .hero-photo {
  margin: 0;
}
.hero-copy,
.hero-text {
  flex: 1 1 18rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-id {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  min-width: 0;
}
.hero-person {
  margin: 24px 0 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.82);
  min-height: 0;
}
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #F7F4EE;
  min-height: 0.95em;
}
.hero-title .type-text,
.hero-person .type-text { white-space: pre-wrap; }
html.can-type .hero-title:not(.is-typing):not(.is-settled) .type-text,
html.can-type .hero-person:not(.is-typing):not(.is-settled) .type-text {
  opacity: 0;
}
.caret {
  display: none;
  width: 0.07em;
  height: 0.78em;
  margin-left: 0.08em;
  background: var(--pink);
  vertical-align: 0.02em;
  animation: caret-blink 1s step-end infinite;
}
.hero-person .caret { background: var(--white); }
html.can-type .hero-title.is-typing .caret,
html.can-type .hero-person.is-typing .caret {
  display: inline-block;
}
html.can-type .hero-title.is-settled .caret,
html.can-type .hero-person.is-settled .caret {
  display: none;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}
.hero-kicker,
.hero-name { display: none; }
.hero-tag {
  margin: 18px 0 0;
  max-width: 700px;
  display: block;
  text-align: center;
  white-space: normal;
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(247, 244, 238, 0.92);
}
.hero-tools {
  margin: 22px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: rgba(247, 244, 238, 0.7);
}
.hero-mail {
  margin-top: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(247, 244, 238, 0.55);
  text-decoration: none;
}
.hero-mail:hover { color: #F7F4EE; }
.hero-tag .hero-line { display: inline; }
html.can-type .hero-tag .hero-line {
  opacity: 0;
  transition: opacity 1.35s ease;
}
html.can-type .hero-tag .hero-line.is-in { opacity: 1; }
.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  text-decoration: none;
  color: var(--white);
  background: var(--blue);
}
.hero-icon span { display: none; }
.hero-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.hero-icon:hover { background: var(--ink); color: var(--white); }
.hero-icon.is-mail {
  background: var(--blue);
  color: var(--white);
  box-shadow: none;
}
.hero-icon.is-mail:hover { background: var(--ink); color: var(--white); }
.home-hero .hero-icon,
.home-hero .hero-icon.is-mail {
  background: var(--white);
  color: var(--blue);
}
.home-hero .hero-icon:hover,
.home-hero .hero-icon.is-mail:hover {
  background: var(--pink);
  color: var(--ink);
}
.home-hero .hero-actions { justify-content: center; gap: 12px; margin-top: 22px; }
.contact-soon {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 8px;
}

.section {
  padding: 72px 0 24px;
}
html[data-theme="home"] .section {
  padding: 100px 0 72px;
}
html[data-theme="home"] .section-head { margin-bottom: 45px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}
.section-head p {
  margin: 12px 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  isolation: isolate;
}
.work-grid .case-card {
  min-height: 0;
  border-radius: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-grid .case-visual {
  flex: 1 1 auto;
  min-height: 300px;
  padding: 28px;
}
.work-grid .thumb-viz {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 8px;
  min-height: 0;
  padding-top: 0;
}
.work-grid .case-no {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.work-code {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.work-code:hover { color: var(--pink); }
.more-work { margin-top: 42px; }
.more-work h3 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.tech-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tech-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 280px;
  border: 1px solid rgba(23, 47, 82, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.tech-pill strong { font-size: 0.95rem; }
.tech-pill span { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.tech-pill:hover { border-color: var(--blue); }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 8px 0 22px;
}
.contact-links a {
  color: #F7F4EE;
  font-weight: 600;
  text-decoration: none;
}
.contact-links a:hover { color: #F3B87B; }
.work-grid .thumb-kpi {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 5.4vw, 5.6rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
}
.work-grid .thumb-sub {
  margin: 10px 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}
.work-grid .thumb-age {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 118px;
  margin-top: 28px;
}
.work-grid .thumb-age span {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 6px;
}
.work-grid .thumb-age i {
  display: block;
  width: 100%;
  border-radius: 8px 8px 2px 2px;
  background: currentColor;
  opacity: 0.32;
}
.work-grid .thumb-age .hot i { opacity: 1; }
.work-grid .thumb-age .age-a i { height: 72%; }
.work-grid .thumb-age .age-b i { height: 100%; }
.work-grid .thumb-age .age-c i { height: 58%; }
.work-grid .thumb-age .age-d i { height: 26%; }
.work-grid .thumb-age em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-grid .thumb-pipe {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.2;
}
.work-grid .thumb-pipe li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.work-grid .thumb-pipe i {
  display: block;
  height: 8px;
  width: 36%;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}
.work-grid .thumb-pipe li:nth-child(2) i { width: 52%; opacity: 0.7; }
.work-grid .thumb-pipe li:nth-child(3) i { width: 68%; opacity: 1; }
.work-grid .thumb-bars { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.work-grid .cv-dots {
  margin-top: 28px;
  max-width: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 16px;
}
.work-grid .cv-dots i {
  width: 12px;
  height: 12px;
}
.work-grid .thumb-spread {
  position: relative;
  height: 78px;
  margin-top: 30px;
}
.work-grid .spread-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  height: 3px;
  background: currentColor;
  opacity: 0.35;
  border-radius: 99px;
}
.work-grid .tick {
  position: absolute;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
}
.work-grid .tick.phi { left: 16%; }
.work-grid .tick.close { left: 56%; }
.work-grid .tick em {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.work-grid .case-body {
  position: static;
  opacity: 1;
  background: #F7F4EE;
  color: #172F52;
}
.work-grid .case-body h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: #172F52;
}
.work-grid .card-q {
  margin: 0;
  color: #66758B;
  font-size: 0.98rem;
  line-height: 1.5;
}
.work-grid .project-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #172F52;
  opacity: 0.72;
}
.work-grid .case-card:hover .project-link,
.work-grid .case-card:focus-visible .project-link { opacity: 1; }
.work-grid .case-card:hover,
.work-grid .case-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(23, 47, 82, 0.12);
}
@media (hover: none) {
  .work-grid .case-card { min-height: 0; }
  .work-grid .case-visual { min-height: 300px; }
  .work-grid .case-body {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
  }
}
.case-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 560px;
  scale: 1;
  box-shadow: 0 1px 2px rgba(16, 21, 40, 0.04), 0 10px 28px rgba(16, 21, 40, 0.06);
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: scale 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, outline-color 0.32s ease;
}
.case-card:hover,
.case-card:focus-visible {
  scale: 1.02;
  z-index: 4;
  box-shadow: 0 16px 40px rgba(16, 21, 40, 0.12);
  color: inherit;
}
.case-card:focus-visible {
  outline: 2px solid var(--blue);
}
.case-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.case-visual {
  background: var(--gray);
  padding: 32px 32px 28px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.case-visual .thumb-viz {
  margin-top: auto;
  padding-top: 12px;
  background: inherit !important;
}
.case-visual .thumb-viz b {
  display: block;
  font-family: var(--display);
  font-size: 2.45rem;
  line-height: 0.9;
  margin-bottom: 8px;
}
.case-card.featured .case-visual {
  background: #1b2fd4;
  color: var(--white);
  min-height: 100%;
}
.case-card.featured .case-visual b,
.case-card.featured .case-visual li,
.case-card.featured .case-visual small {
  color: var(--white);
}
.case-card.featured .cv-label {
  color: var(--pink);
}
.case-no {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--pink);
}
.case-card.featured .case-no { color: var(--pink); }
.case-card[data-accent="ar"] .case-visual,
.case-card[data-accent="ar"].featured .case-visual {
  background: #172F52;
  color: #F7F4EE;
}
.case-card[data-accent="ar"] .case-no { color: #F7F4EE; }
.case-card[data-accent="ar"] .case-visual h3,
.case-card[data-accent="ar"] .thumb-kpi,
.case-card[data-accent="ar"] .case-kpis b { color: #F7F4EE; }
.case-card[data-accent="ar"] .case-kpis span { color: rgba(244, 239, 228, 0.75); }
.case-card[data-accent="ar"].featured .case-visual li,
.case-card[data-accent="ar"].featured .case-visual small,
.case-card[data-accent="ar"].featured .cv-label {
  color: #F4EFE4;
}
.case-card[data-accent="tmdb"] .case-visual { background: #9B90EE; color: #172F52; }
.case-card[data-accent="tmdb"] .case-no,
.case-card[data-accent="tmdb"] .case-visual h3,
.case-card[data-accent="tmdb"] .thumb-kpi,
.case-card[data-accent="tmdb"] .case-visual b { color: #172F52; }
.case-card[data-accent="tmdb"] .cv-row { color: #172F52; }
.case-card[data-accent="tmdb"] .cv-row em { background: #172F52; }
.case-card[data-accent="happy"] .case-visual { background: #3D63DD; color: #A5F0CF; }
.case-card[data-accent="happy"] .case-no,
.case-card[data-accent="happy"] .case-visual h3,
.case-card[data-accent="happy"] .thumb-kpi,
.case-card[data-accent="happy"] .case-visual b,
.case-card[data-accent="happy"] .thumb-viz small { color: #A5F0CF; }
.case-card[data-accent="happy"] .cv-dots i { color: #A5F0CF; background: #A5F0CF; }
.case-card[data-accent="school"] .case-visual,
.case-card[data-accent="school"].featured .case-visual { background: #D6285F; color: #FFF9F5; }
.case-card[data-accent="school"] .case-no,
.case-card[data-accent="school"] .case-visual h3,
.case-card[data-accent="school"] .thumb-kpi,
.case-card[data-accent="school"] .thumb-sub,
.case-card[data-accent="school"] .case-visual b,
.case-card[data-accent="school"] .thumb-pipe { color: #FFF9F5; }
.case-card[data-accent="sql"] .case-visual,
.case-card[data-accent="sql"].featured .case-visual { background: #9DFECB; color: #2A56F2; }
.case-card[data-accent="sql"] .case-no,
.case-card[data-accent="sql"] .case-visual h3,
.case-card[data-accent="sql"] .thumb-kpi,
.case-card[data-accent="sql"] .case-visual b { color: #2A56F2; }
.case-card[data-accent="sql"] .cv-sql ul { color: #2A56F2; }
.case-card[data-accent="lulu"] .case-visual { background: #d45c64; color: #fff; }
.case-card[data-accent="nike"] .case-visual { background: #F0EBDD; color: #172F52; }
.case-card[data-accent="nike"] .case-no,
.case-card[data-accent="nike"] .case-visual h3,
.case-card[data-accent="nike"] .thumb-kpi,
.case-card[data-accent="nike"] .case-visual b { color: #172F52; }
.case-card[data-accent="nike"] .cv-row { color: #66758B; }
.case-card[data-accent="nike"] .cv-row em { background: #ff6a00; }
.case-card[data-accent="odds"] .case-visual { background: #F3B87B; color: #244ECA; }
.case-card[data-accent="odds"] .case-no,
.case-card[data-accent="odds"] .case-visual h3,
.case-card[data-accent="odds"] .thumb-kpi,
.case-card[data-accent="odds"] .case-visual b { color: #244ECA; }
.case-card[data-accent="odds"] .cv-row { color: #244ECA; }
.case-card[data-accent="odds"] .cv-row em,
.case-card[data-accent="odds"] .cv-row.mid em { background: #244ECA; }
.work-grid .case-card[data-accent="ar"],
.work-grid .case-card[data-accent="ar"] .case-body { background: #172F52; color: #F7F4EE; }
.work-grid .case-card[data-accent="ar"] .case-body h3,
.work-grid .case-card[data-accent="ar"] .card-q,
.work-grid .case-card[data-accent="ar"] .project-link { color: #F7F4EE; }
.work-grid .case-card[data-accent="school"],
.work-grid .case-card[data-accent="school"] .case-body { background: #D6285F; color: #FFF9F5; }
.work-grid .case-card[data-accent="school"] .case-body h3,
.work-grid .case-card[data-accent="school"] .card-q,
.work-grid .case-card[data-accent="school"] .project-link { color: #FFF9F5; }
.work-grid .case-card[data-accent="tmdb"],
.work-grid .case-card[data-accent="tmdb"] .case-body { background: #9B90EE; color: #172F52; }
.work-grid .case-card[data-accent="tmdb"] .case-body h3,
.work-grid .case-card[data-accent="tmdb"] .card-q,
.work-grid .case-card[data-accent="tmdb"] .project-link { color: #172F52; }
.work-grid .case-card[data-accent="nike"],
.work-grid .case-card[data-accent="nike"] .case-body { background: #F0EBDD; color: #172F52; }
.work-grid .case-card[data-accent="nike"] .case-body h3,
.work-grid .case-card[data-accent="nike"] .card-q,
.work-grid .case-card[data-accent="nike"] .project-link { color: #172F52; }
.work-grid .case-card[data-accent="nike"] .cv-row em { background: #F3B87B; }
.work-grid .case-card[data-accent="happy"],
.work-grid .case-card[data-accent="happy"] .case-body { background: #3D63DD; color: #A5F0CF; }
.work-grid .case-card[data-accent="happy"] .case-body h3,
.work-grid .case-card[data-accent="happy"] .card-q,
.work-grid .case-card[data-accent="happy"] .project-link { color: #A5F0CF; }
.work-grid .case-card[data-accent="odds"],
.work-grid .case-card[data-accent="odds"] .case-body { background: #F3B87B; color: #244ECA; }
.work-grid .case-card[data-accent="odds"] .case-body h3,
.work-grid .case-card[data-accent="odds"] .card-q,
.work-grid .case-card[data-accent="odds"] .project-link { color: #244ECA; }
html[data-theme="sql"] .result.late {
  background: #2A56F2;
  color: #9DFECB;
}
html[data-theme="happy"] .ticker {
  background: #2A56F2;
  color: #9DFECB;
}
html[data-theme="happy"] a.ticker,
html[data-theme="happy"] a.ticker:hover { color: #9DFECB; }
html[data-theme="tmdb"] .ticker {
  background: #AB9DFF;
  color: #253A82;
}
html[data-theme="tmdb"] a.ticker,
html[data-theme="tmdb"] a.ticker:hover { color: #253A82; }
html[data-theme="odds"] .ticker {
  background: #ff6a00;
  color: #2A56F2;
}
html[data-theme="odds"] a.ticker,
html[data-theme="odds"] a.ticker:hover { color: #2A56F2; }
html[data-theme="sql"] .ticker {
  background: #9DFECB;
  color: #2A56F2;
}
html[data-theme="sql"] a.ticker,
html[data-theme="sql"] a.ticker:hover { color: #2A56F2; }
html[data-theme="ar"] .ticker {
  background: #1B365D;
  color: #F4EFE4;
}
html[data-theme="ar"] a.ticker,
html[data-theme="ar"] a.ticker:hover { color: #F4EFE4; }
html[data-theme="nike"] .ticker {
  background: #F4EFE4;
  color: #1c1c1c;
}
html[data-theme="nike"] a.ticker,
html[data-theme="nike"] a.ticker:hover { color: #1c1c1c; }
.case-visual h3,
.case-body h3 {
  margin: 10px 0 10px;
  font-family: var(--display);
  font-size: clamp(2.05rem, 3.2vw, 3rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}
.case-body {
  padding: 28px 32px 36px;
}
.case-body span,
.case-meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}
.case-body p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.hover-kpi {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  transition: max-height 0.28s ease, opacity 0.28s ease, margin 0.28s ease;
}
.case-card:hover .hover-kpi,
.case-card:focus-visible .hover-kpi {
  max-height: 4.5rem;
  opacity: 1;
  margin: 8px 0 6px;
}
@media (hover: none) {
  .hover-kpi {
    max-height: 4.5rem;
    opacity: 1;
    margin: 8px 0 6px;
  }
}
.case-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.case-kpis b {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  line-height: 0.9;
  color: var(--white);
}
.case-kpis span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.about-block { padding: 40px 0 8px; scroll-margin-top: 80px; }

.contact-band {
  background: var(--blue);
  color: var(--white);
  width: 100%;
  max-width: none;
  margin: 48px 0 0;
  padding: 64px 0 56px;
  border-radius: 0;
  text-align: center;
}
.contact-band .wrap { width: min(720px, calc(100% - 40px)); }
.contact-band .launch-line { color: rgba(255, 255, 255, 0.7); text-align: center; }
.contact-band h2,
.contact-band .display {
  color: var(--white);
  text-align: center;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.contact-band .section-intro {
  margin: 0 auto 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}
.contact-band .contact-phone {
  display: block;
  margin: 0 auto 8px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(247, 244, 238, 0.72);
  text-decoration: none;
  line-height: 1.4;
}
.contact-phone-hint {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.contact-band .contact-phone:hover {
  color: var(--pink);
}
.contact-band .contact-phone:hover .contact-phone-hint {
  color: var(--pink);
}
.contact-band .btn-line {
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--white);
}

/* Phone frame */
.phone {
  margin: 0 auto;
  width: min(280px, 100%);
  filter: drop-shadow(0 28px 40px rgba(8, 12, 40, 0.35));
}
.phone-bezel {
  background: #0c1020;
  border-radius: 36px;
  padding: 12px 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.phone-notch {
  width: 88px;
  height: 18px;
  background: #0c1020;
  border-radius: 0 0 14px 14px;
  margin: -2px auto 8px;
}
.phone-screen {
  background: var(--white);
  color: var(--ink);
  border-radius: 24px;
  padding: 16px 14px 18px;
  min-height: 430px;
}
.ph-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.ph-title {
  margin: 4px 0 14px;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 0.9;
  letter-spacing: 0.03em;
}
.ph-kpi {
  background: var(--gray);
  border-radius: 14px;
  padding: 12px 12px 10px;
  margin: 0 0 8px;
}
.ph-kpi.hot { background: var(--blue); color: var(--white); }
.ph-kpi span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ph-kpi b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 0.95;
  margin-top: 4px;
}
.ph-kpi em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
}
.ph-kpi.hot em { color: var(--pink); }
.ph-list { margin-top: 12px; }
.ph-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
}
.ph-row b {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, var(--white));
  padding: 3px 7px;
  border-radius: 999px;
}

.phone-inline {
  margin: 8px 0 28px;
  display: flex;
  justify-content: center;
}
.case-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 12px;
}

.rise {
  animation: rise 0.55s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html[data-theme="home"] .hero .hero-copy > *,
  html[data-theme="home"] .hero .hero-side { animation: none; }
  .caret { display: none !important; animation: none; }
  html.can-type .hero-title .type-text,
  html.can-type .hero-person .type-text { opacity: 1; }
  html.can-type .hero-tag .hero-line {
    opacity: 1;
    transition: none;
  }
  .case-card {
    transition: box-shadow 0.2s ease, outline-color 0.2s ease;
  }
  .case-card:hover,
  .case-card:focus-visible {
    scale: 1;
    transform: none;
    box-shadow: 0 10px 28px rgba(16, 21, 40, 0.1);
    outline-color: color-mix(in srgb, var(--blue) 55%, transparent);
  }
  .work-grid .case-body {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    transition: none !important;
  }
  .work-grid .case-visual { min-height: 300px; }
}
@media (max-width: 900px) {
  .case-card.featured,
  .case-hero,
  .about-grid, .two-col, .stats, .pa-grid, .covers, .file-row, .work-collage, .paper-cols, .polaroid-row, .collage, .id-row.split, .news-trio, .date-row, .masthead, .section-head {
    grid-template-columns: 1fr;
  }
  .case-hero,
  .case-hero > * {
    min-width: 0;
    max-width: 100%;
  }
  .article-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .article-meta .pill {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .sheet .display,
  .case-subtitle,
  .paper-rule,
  .role-strip,
  .article-lede {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .home-hero { padding: 56px 0 48px; }
  .hero-stack {
    flex-direction: column;
    gap: 28px;
    max-width: none;
  }
  .home-hero .hero-photo { width: 176px; height: 176px; }
  .phone { width: min(250px, 72%); }
}
@media (max-width: 1199px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 36px;
  }
  .work-grid .case-card {
    min-height: 0;
  }
  .work-grid .case-visual {
    min-height: 280px;
    padding: 22px;
  }
  .work-grid .thumb-kpi {
    font-size: clamp(4.2rem, 8vw, 6.6rem);
  }
}
@media (max-width: 859px) {
  .work-grid,
  .case-card.featured {
    grid-template-columns: 1fr;
  }
  .work-grid { gap: 32px; }
  .case-card { min-height: 0; }
  .work-grid .case-card { min-height: 0; }
  .case-visual { min-height: 280px; }
  .work-grid .case-visual { min-height: 300px; padding: 20px 18px 18px; }
  .work-grid .thumb-kpi { font-size: clamp(3.6rem, 16vw, 5.4rem); }
  .case-body h3 { font-size: clamp(2.1rem, 7vw, 2.8rem); }
  .case-body p { font-size: 1.08rem; }
}
@media (max-width: 720px) {
  .home-hero .wrap,
  .case-card.featured,
  .case-hero {
    grid-template-columns: 1fr;
  }
  .home-hero .wrap { min-height: 0; padding-bottom: 0; }
  .phone { width: min(240px, 78%); }
  .cover:nth-child(n), .work-card:nth-child(n) { transform: none; margin-top: 0; }
  .heat { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 1fr; }
  .ticker b:nth-of-type(n+3),
  .ticker span:nth-of-type(n+3) { display: none; }
  .lift-shot { flex-direction: column; align-items: center; }
  .lift-stamp { margin-bottom: 4px; }
  .brand { font-size: 0.86rem; }
  .site-nav .wrap { gap: 10px; min-height: 58px; }
  #work { scroll-margin-top: 2.5rem; }
  .work-grid .case-card,
  .work-grid .case-body,
  .work-grid .case-visual {
    min-width: 0;
    max-width: 100%;
  }
  .work-grid .case-body {
    padding: 22px 20px 24px;
  }
  .work-grid .case-body h3 {
    font-size: 1.45rem;
    line-height: 1.05;
    overflow-wrap: break-word;
  }
  .work-grid .card-q,
  .work-grid .case-no,
  .work-grid .thumb-sub {
    overflow-wrap: break-word;
  }
  .work-grid .case-visual {
    min-height: 240px;
    padding: 22px 18px 16px;
  }
  .work-grid .thumb-kpi {
    font-size: clamp(2.8rem, 12vw, 3.6rem);
  }
  .sheet .display {
    font-size: clamp(2.15rem, 9vw, 2.8rem);
    line-height: 1;
  }
  .table-wrap,
  .viz-chart,
  pre.code {
    max-width: 100%;
  }
  .nav-links { gap: 12px; }
  .section { padding: 48px 0 12px; }
  .about-panel { padding: 32px 22px 28px; }
}
@media (max-width: 520px) {
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 0.62rem; letter-spacing: 0.08em; }
  .nav-ico { width: 30px; height: 30px; }
  .hero-title { font-size: clamp(2.6rem, 14vw, 3.8rem); }
  .hero-person { font-size: clamp(1.45rem, 2.6vw, 2rem); }
}

/* Tableau-style story board (Nike case) */
.viz-story {
  margin: 28px 0 36px;
  padding: 22px 20px 18px;
  background: var(--gray);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.viz-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.viz-kpi {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
}
.viz-kpi span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.viz-kpi b {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
}
.viz-kpi em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}
.viz-steps,
.viz-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}
.viz-step,
.viz-filter {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.viz-step.is-active,
.viz-filter.is-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.viz-step:hover,
.viz-filter:hover {
  border-color: var(--ink);
}
.viz-filter-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-right: 4px;
}
.viz-caption {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 40rem;
}
.viz-chart {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 12px;
  margin-bottom: 16px;
}
.viz-bars { margin: 0; }
.viz-table-wrap { margin: 0; }
html[data-theme="nike"] .viz-chart .bar-fill { background: var(--pink); }
@media (max-width: 720px) {
  .viz-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .viz-kpis { grid-template-columns: 1fr; }
}

/* Student performance: school palette, dark type on light ground */
html[data-theme="school"] .site-nav.is-past-profile {
  background: #1C2430;
}
html[data-theme="school"] .site-nav.is-past-profile .nav-links .btn {
  color: #1C2430;
}
html[data-theme="school"] {
  --blue: #4D96FF;
  --pink: #D61C59;
  --gray: #FFF8EE;
  --ink: #1C2430;
  --muted: #3E4A5C;
  --line: rgba(28, 36, 48, 0.14);
  --shadow: 0 18px 50px rgba(77, 150, 255, 0.14);
}
html[data-theme="school"] .sheet,
html[data-theme="school"] .viz-story,
html[data-theme="school"] .viz-chart,
html[data-theme="school"] .pa {
  color: #1C2430;
}
html[data-theme="school"] pre.code {
  background: #fff;
  color: #1C2430;
  border: 1px solid rgba(28, 36, 48, 0.14);
}
html[data-theme="school"] .paper-rule,
html[data-theme="school"] .folder-heading span { color: #D61C59; }
html[data-theme="school"] .stats .stat:nth-child(1) { background: #FFD93D; }
html[data-theme="school"] .stats .stat:nth-child(2) { background: #BCD86B; }
html[data-theme="school"] .stats .stat:nth-child(3) { background: #4D96FF; }
html[data-theme="school"] .stats .stat:nth-child(1) b,
html[data-theme="school"] .stats .stat:nth-child(1) span,
html[data-theme="school"] .stats .stat:nth-child(2) b,
html[data-theme="school"] .stats .stat:nth-child(2) span { color: #1C2430; }
html[data-theme="school"] .stats .stat:nth-child(3) b,
html[data-theme="school"] .stats .stat:nth-child(3) span { color: #fff; }
html[data-theme="school"] .viz-kpi:nth-child(1) { background: #FFD93D; border-color: transparent; }
html[data-theme="school"] .viz-kpi:nth-child(2) { background: #BCD86B; border-color: transparent; }
html[data-theme="school"] .viz-kpi:nth-child(3) { background: #4D96FF; border-color: transparent; }
html[data-theme="school"] .viz-kpi:nth-child(4) { background: #D61C59; border-color: transparent; }
html[data-theme="school"] .viz-kpi:nth-child(1) span,
html[data-theme="school"] .viz-kpi:nth-child(1) b,
html[data-theme="school"] .viz-kpi:nth-child(1) em,
html[data-theme="school"] .viz-kpi:nth-child(2) span,
html[data-theme="school"] .viz-kpi:nth-child(2) b,
html[data-theme="school"] .viz-kpi:nth-child(2) em { color: #1C2430; }
html[data-theme="school"] .viz-kpi:nth-child(3) span,
html[data-theme="school"] .viz-kpi:nth-child(3) b,
html[data-theme="school"] .viz-kpi:nth-child(3) em,
html[data-theme="school"] .viz-kpi:nth-child(4) span,
html[data-theme="school"] .viz-kpi:nth-child(4) b,
html[data-theme="school"] .viz-kpi:nth-child(4) em { color: #fff; }
html[data-theme="school"] .pa:nth-child(1) { border-top: 4px solid #D61C59; }
html[data-theme="school"] .pa:nth-child(2) { border-top: 4px solid #FFD93D; }
html[data-theme="school"] .pa:nth-child(3) { border-top: 4px solid #BCD86B; }
html[data-theme="school"] .pa:nth-child(4) { border-top: 4px solid #4D96FF; }
html[data-theme="school"] .prose,
html[data-theme="school"] .prose p,
html[data-theme="school"] .prose li,
html[data-theme="school"] .notice,
html[data-theme="school"] .article-lede { color: #1C2430; }
html[data-theme="school"] .ticker { background: #4D96FF; color: #fff; }

/* Blue & pink copy of the current homepage layout. */
html[data-theme="lolli"] {
  --blue: #294bef;
  --pink: #ff88cf;
  --gray: #f6f6f6;
  --ink: #101528;
  --muted: #5c6478;
  --shadow: 0 18px 50px rgba(41, 75, 239, 0.12);
}
html[data-theme="lolli"] .hero-title { color: #ff88cf; letter-spacing: 0.02em; }
html[data-theme="lolli"] .hero-person { color: rgba(255, 255, 255, 0.92); }
html[data-theme="lolli"] .hero-tag { color: rgba(255, 255, 255, 0.94); }
html[data-theme="lolli"] .hero-tools { color: rgba(255, 255, 255, 0.75); }
html[data-theme="lolli"] .hero-mail { color: rgba(255, 255, 255, 0.62); }
html[data-theme="lolli"] .hero-mail:hover { color: #fff; }
html[data-theme="lolli"] .caret { background: #ff88cf; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="ar"],
html[data-theme="lolli"] .work-grid .case-card[data-accent="ar"] .case-visual,
html[data-theme="lolli"] .work-grid .case-card[data-accent="ar"] .case-body { background: #1B365D; color: #F4EFE4; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="ar"] .case-no,
html[data-theme="lolli"] .work-grid .case-card[data-accent="ar"] .thumb-kpi,
html[data-theme="lolli"] .work-grid .case-card[data-accent="ar"] .thumb-sub,
html[data-theme="lolli"] .work-grid .case-card[data-accent="ar"] .case-body h3,
html[data-theme="lolli"] .work-grid .case-card[data-accent="ar"] .card-q,
html[data-theme="lolli"] .work-grid .case-card[data-accent="ar"] .project-link { color: #F4EFE4; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"],
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"] .case-visual,
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"] .case-body { background: #D61C59; color: #fff; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"] .case-no,
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"] .thumb-kpi,
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"] .thumb-sub,
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"] .thumb-pipe,
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"] .case-body h3,
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"] .card-q,
html[data-theme="lolli"] .work-grid .case-card[data-accent="school"] .project-link { color: #fff; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"],
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"] .case-visual,
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"] .case-body { background: #AB9DFF; color: #253A82; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"] .case-no,
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"] .thumb-kpi,
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"] .case-body h3,
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"] .card-q,
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"] .project-link,
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"] .cv-row { color: #253A82; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="tmdb"] .cv-row em { background: #253A82; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"],
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"] .case-visual,
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"] .case-body { background: #F4EFE4; color: #1c1c1c; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"] .case-no,
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"] .thumb-kpi,
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"] .case-body h3,
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"] .card-q,
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"] .project-link { color: #1c1c1c; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"] .cv-row { color: #5c5c58; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="nike"] .cv-row em { background: #ff6a00; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="happy"],
html[data-theme="lolli"] .work-grid .case-card[data-accent="happy"] .case-visual,
html[data-theme="lolli"] .work-grid .case-card[data-accent="happy"] .case-body { background: #2A56F2; color: #9DFECB; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="happy"] .case-no,
html[data-theme="lolli"] .work-grid .case-card[data-accent="happy"] .thumb-kpi,
html[data-theme="lolli"] .work-grid .case-card[data-accent="happy"] .case-body h3,
html[data-theme="lolli"] .work-grid .case-card[data-accent="happy"] .card-q,
html[data-theme="lolli"] .work-grid .case-card[data-accent="happy"] .project-link { color: #9DFECB; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="happy"] .cv-dots i { background: #9DFECB; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="odds"],
html[data-theme="lolli"] .work-grid .case-card[data-accent="odds"] .case-visual,
html[data-theme="lolli"] .work-grid .case-card[data-accent="odds"] .case-body { background: #FFC48A; color: #2A56F2; }
html[data-theme="lolli"] .work-grid .case-card[data-accent="odds"] .case-no,
html[data-theme="lolli"] .work-grid .case-card[data-accent="odds"] .thumb-kpi,
html[data-theme="lolli"] .work-grid .case-card[data-accent="odds"] .case-body h3,
html[data-theme="lolli"] .work-grid .case-card[data-accent="odds"] .card-q,
html[data-theme="lolli"] .work-grid .case-card[data-accent="odds"] .project-link { color: #2A56F2; }

/* Homepage — onyx / cream / beige. Scoped so case studies keep their own skins. */
html[data-theme="home"] {
  --blue: #1C1C1B;
  --pink: #1C1C1B;
  --gray: #EDE9DC;
  --white: #F6F3EA;
  --ink: #1C1C1B;
  --muted: #6E675E;
  --line: rgba(28, 28, 27, 0.14);
  --shadow: none;
  --cream: #EDE9DC;
  --paper: #E4DCCB;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  background: #EDE9DC;
  overflow-x: clip;
}
html[data-theme="home"] body {
  background: #EDE9DC;
  color: #1C1C1B;
  overflow-x: clip;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
html[data-theme="home"] .wrap {
  width: min(1440px, calc(100% - 48px));
}

html[data-theme="home"] a { color: inherit; }
html[data-theme="home"] ::selection { background: #1C1C1B; color: #EDE9DC; }

/* Nav sits on the onyx hero, then turns paper once you scroll past it. */
html[data-theme="home"] .site-nav {
  background: color-mix(in srgb, #1C1C1B 86%, transparent);
  border-bottom: 1px solid rgba(237, 233, 220, 0.14);
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}
html[data-theme="home"] .site-nav .wrap {
  min-height: 64px;
  min-width: 0;
  gap: 12px 20px;
}
html[data-theme="home"] .brand,
html[data-theme="home"] .brand .brand-script,
html[data-theme="home"] .brand .brand-serif,
html[data-theme="home"] .nav-links a {
  color: #EDE9DC;
  font-weight: 500;
  letter-spacing: 0.08em;
}
html[data-theme="home"] .brand { font-size: 0.82rem; letter-spacing: -0.01em; text-transform: none; }
html[data-theme="home"] .brand-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(237, 233, 220, 0.35);
}
html[data-theme="home"] .nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 6px 18px;
}
html[data-theme="home"] .nav-links a { font-size: 0.68rem; }
html[data-theme="home"] .nav-links a:hover { color: #EDE9DC; opacity: 0.72; }
html[data-theme="home"] .nav-links .btn {
  background: transparent;
  color: #EDE9DC;
  border: 1px solid rgba(237, 233, 220, 0.42);
  box-shadow: none;
  padding: 8px 14px;
  font-weight: 500;
}
html[data-theme="home"] .nav-links .btn:hover {
  background: #EDE9DC;
  color: #1C1C1B;
  filter: none;
  opacity: 1;
}
html[data-theme="home"] .site-nav.is-past-profile {
  background: color-mix(in srgb, #EDE9DC 90%, transparent);
  border-bottom-color: rgba(28, 28, 27, 0.12);
  box-shadow: none;
}
html[data-theme="home"] .site-nav.is-past-profile .brand,
html[data-theme="home"] .site-nav.is-past-profile .brand .brand-script,
html[data-theme="home"] .site-nav.is-past-profile .brand .brand-serif,
html[data-theme="home"] .site-nav.is-past-profile .nav-links a {
  color: #1C1C1B;
}
html[data-theme="home"] .site-nav.is-past-profile .nav-links a:hover { color: #1C1C1B; opacity: 0.62; }
html[data-theme="home"] .site-nav.is-past-profile .brand-photo { border-color: rgba(28, 28, 27, 0.28); }
html[data-theme="home"] .site-nav.is-past-profile .nav-links .btn,
html[data-theme="home"] .site-nav.is-past-profile .nav-links .btn:hover {
  background: #1C1C1B;
  color: #EDE9DC;
  border-color: #1C1C1B;
  filter: none;
  opacity: 1;
}
html[data-theme="home"] .nav-ico {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  color: #1C1C1B;
  border: 1px solid rgba(28, 28, 27, 0.22);
}
html[data-theme="home"] .site-nav.is-past-profile .nav-ico { color: #1C1C1B; background: transparent; }
html[data-theme="home"] .nav-ico:hover,
html[data-theme="home"] .site-nav.is-past-profile .nav-ico:hover {
  background: #1C1C1B;
  color: #EDE9DC;
  border-color: #1C1C1B;
}

/* Studio charcoal hero. Static; no typewriter. */
html[data-theme="home"] .hero {
  background: #1C1C1B;
  color: #EDE9DC;
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 8vw, 88px);
  overflow-x: clip;
  text-align: left;
}
html[data-theme="home"] .hero .wrap {
  width: min(1120px, 100%);
  padding-inline: clamp(18px, 4vw, 40px);
}
html[data-theme="home"] .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-width: 0;
}
html[data-theme="home"] .hero .hero-copy {
  display: block;
  flex: none;
  min-width: 0;
  padding: 0;
  border: 0;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}
html[data-theme="home"] .hero .hero-copy:after { content: none; }
html[data-theme="home"] .hero .hero-copy > * + * { margin-top: 14px; }
html[data-theme="home"] .hero h1,
html[data-theme="home"] .hero p { margin: 0; }
html[data-theme="home"] .hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 7.2vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: none;
  color: #EDE9DC;
  white-space: nowrap;
  max-width: 100%;
}
html[data-theme="home"] .hero-role {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  color: #EDE9DC;
}
html[data-theme="home"] .hero .hero-tag {
  display: block;
  margin: 0;
  max-width: none;
  text-align: left;
  white-space: normal;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: #EDE9DC;
}
html[data-theme="home"] .hero .hero-tag em { font-style: italic; }
html[data-theme="home"] .hero .hero-tools {
  margin: 0;
  max-width: 36rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #EDE9DC;
}
html[data-theme="home"] .hero .hero-mail {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-wrap: anywhere;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  color: #EDE9DC;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
html[data-theme="home"] .hero .hero-mail:hover { color: #EDE9DC; }
html[data-theme="home"] .hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
html[data-theme="home"] .hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(237, 233, 220, 0.75);
  border-radius: 50%;
  color: #EDE9DC;
  text-decoration: none;
}
html[data-theme="home"] .hero-social a:hover {
  border-color: #EDE9DC;
  background: rgba(237, 233, 220, 0.08);
  color: #EDE9DC;
}
html[data-theme="home"] .hero-side { min-width: 0; }
html[data-theme="home"] .hero-visual {
  position: relative;
  width: 260px;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 1;
}
html[data-theme="home"] .hero-arcs {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 132%;
  height: 132%;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
html[data-theme="home"] .hero .portrait {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  position: relative;
  z-index: 1;
}
html[data-theme="home"] .hero a:focus-visible {
  outline: 1px solid #EDE9DC;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  html[data-theme="home"] .hero .hero-copy > * { animation: hero-fadeup 0.8s both; }
  html[data-theme="home"] .hero .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  html[data-theme="home"] .hero .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
  html[data-theme="home"] .hero .hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
  html[data-theme="home"] .hero .hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
  html[data-theme="home"] .hero .hero-copy > *:nth-child(5) { animation-delay: 0.36s; }
  html[data-theme="home"] .hero .hero-copy > *:nth-child(6) { animation-delay: 0.44s; }
  html[data-theme="home"] .hero .hero-side { animation: hero-fadeup 1s 0.2s both; }
}
@keyframes hero-fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (min-width: 900px) {
  html[data-theme="home"] .hero-grid { min-height: calc(100svh - 72px - 40px); }
  html[data-theme="home"] .hero .hero-tag { white-space: nowrap; }
}
@media (max-width: 860px) {
  html[data-theme="home"] .hero {
    background: #1C1C1B;
    overflow-x: clip;
  }
  html[data-theme="home"] .hero-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="home"] .hero-visual { width: min(48vw, 180px); }
  html[data-theme="home"] .hero .hero-tag { white-space: normal; }
}
@media (max-width: 480px) {
  html[data-theme="home"] .hero h1 { white-space: normal; }
}

/* Paper about. */
html[data-theme="home"] .section {
  padding: 92px 0 72px;
}
html[data-theme="home"] .about-block { padding: 88px 0 36px; }
html[data-theme="home"] .about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  column-gap: 56px;
  row-gap: 8px;
  align-items: start;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 8px 0 0;
}
html[data-theme="home"] .about-intro {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  min-width: 0;
}
html[data-theme="home"] .about-panel .launch-line {
  margin: 0 0 14px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #6E675E;
}
html[data-theme="home"] .about-panel .display {
  margin: 0;
  max-width: 8ch;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: none;
  color: #1C1C1B;
}
html[data-theme="home"] .about-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  max-width: 40rem;
  padding-bottom: 8px;
}
html[data-theme="home"] .about-copy .about-lead {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #1C1C1B;
}
html[data-theme="home"] .about-copy p {
  color: #5C564E;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 400;
}
html[data-theme="home"] .about-copy em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: #1C1C1B;
}
html[data-theme="home"] .edu-list { margin-top: 22px; max-width: none; }
html[data-theme="home"] .edu-list li {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(28, 28, 27, 0.12);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
}
html[data-theme="home"] .edu-list li strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
}
html[data-theme="home"] .skills {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(28, 28, 27, 0.14);
}
html[data-theme="home"] .skills h3 {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #6E675E;
}
html[data-theme="home"] .skill-group { margin: 0; min-width: 0; background: transparent; }
html[data-theme="home"] .skill-group h4 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #1C1C1B;
}
html[data-theme="home"] .skill-group p,
html[data-theme="home"] .skill-aside {
  color: #5C564E;
  font-size: 0.95rem;
  line-height: 1.55;
  background: transparent;
}
html[data-theme="home"] .skill-aside {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* Work, hairline paper grid. */
html[data-theme="home"] #work { padding-top: 28px; }
html[data-theme="home"] .section-head {
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(28, 28, 27, 0.14);
}
html[data-theme="home"] .section-head h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: none;
  max-width: 10ch;
}
html[data-theme="home"] .section-head p {
  margin: 14px 0 0;
  max-width: 28rem;
  color: #5C564E;
  font-size: 1rem;
  line-height: 1.55;
}
html[data-theme="home"] .work-code {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #1C1C1B;
  border-bottom: 1px solid rgba(28, 28, 27, 0.28);
  padding-bottom: 1px;
}
html[data-theme="home"] .work-code:hover { color: #1C1C1B; opacity: 0.65; }
html[data-theme="home"] .work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(28, 28, 27, 0.14);
  border: 1px solid rgba(28, 28, 27, 0.14);
  isolation: isolate;
}
html[data-theme="home"] .work-grid .case-card,
html[data-theme="home"] .case-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  scale: 1;
  background: #F6F3EA;
  color: #1C1C1B;
  overflow: hidden;
}
html[data-theme="home"] .work-grid .case-card .case-visual,
html[data-theme="home"] .work-grid .case-card .case-body,
html[data-theme="home"] .work-grid .case-card[data-accent] .case-visual,
html[data-theme="home"] .work-grid .case-card[data-accent] .case-body {
  background: transparent;
  color: #1C1C1B;
}
html[data-theme="home"] .work-grid .case-visual {
  min-height: 250px;
  padding: 22px 22px 8px;
}
html[data-theme="home"] .work-grid .case-card .case-no,
html[data-theme="home"] .work-grid .case-card .thumb-sub,
html[data-theme="home"] .work-grid .case-card .case-body h3,
html[data-theme="home"] .work-grid .case-card .card-q,
html[data-theme="home"] .work-grid .case-card .project-link,
html[data-theme="home"] .work-grid .case-card .thumb-kpi,
html[data-theme="home"] .work-grid .case-card .thumb-pipe,
html[data-theme="home"] .work-grid .case-card .thumb-pipe li,
html[data-theme="home"] .work-grid .case-card .cv-row,
html[data-theme="home"] .work-grid .case-card .tick em {
  color: #1C1C1B;
}
html[data-theme="home"] .work-grid .case-card .case-no {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
  color: #6E675E;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-theme="home"] .work-grid .thumb-kpi {
  margin-top: 28px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(3.2rem, 4.4vw, 4.6rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: #1C1C1B;
  overflow-wrap: anywhere;
}
html[data-theme="home"] .work-grid .case-card .thumb-sub {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #6E675E;
  opacity: 1;
  overflow-wrap: anywhere;
}
html[data-theme="home"] .work-grid .thumb-age i,
html[data-theme="home"] .work-grid .thumb-pipe i,
html[data-theme="home"] .work-grid .case-card .cv-row em,
html[data-theme="home"] .work-grid .case-card .cv-row.mid em,
html[data-theme="home"] .work-grid .case-card .cv-row.short em,
html[data-theme="home"] .work-grid .cv-dots i,
html[data-theme="home"] .work-grid .tick {
  background: #1C1C1B;
}
html[data-theme="home"] .work-grid .thumb-age i { opacity: 0.28; border-radius: 2px; }
html[data-theme="home"] .work-grid .thumb-age .hot i { opacity: 0.9; }
html[data-theme="home"] .work-grid .spread-line { background: #1C1C1B; opacity: 0.28; }
html[data-theme="home"] .work-grid .thumb-spread { overflow: hidden; }
html[data-theme="home"] .work-grid .tick em {
  white-space: normal;
  max-width: 6.2rem;
  text-align: center;
  line-height: 1.3;
  color: #5C564E;
}
html[data-theme="home"] .work-grid .cv-row { min-width: 0; color: #5C564E; }
html[data-theme="home"] .work-grid .cv-row span { min-width: 0; overflow-wrap: anywhere; }
html[data-theme="home"] .work-grid .case-body {
  position: static;
  opacity: 1;
  padding: 8px 22px 24px;
}
html[data-theme="home"] .work-grid .case-card .case-body h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-transform: none;
  overflow-wrap: anywhere;
  color: #1C1C1B;
}
html[data-theme="home"] .work-grid .case-card .card-q {
  color: #5C564E;
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
html[data-theme="home"] .work-grid .case-card .project-link {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #1C1C1B;
  opacity: 0.72;
}
html[data-theme="home"] .work-grid .case-card:hover,
html[data-theme="home"] .work-grid .case-card:focus-visible,
html[data-theme="home"] .case-card:hover,
html[data-theme="home"] .case-card:focus-visible {
  scale: 1;
  transform: none;
  box-shadow: none;
  background: #EFEAE0;
  color: #1C1C1B;
  filter: none;
  outline-color: #1C1C1B;
}
html[data-theme="home"] .work-grid .case-card:hover .project-link,
html[data-theme="home"] .work-grid .case-card:focus-visible .project-link { opacity: 1; }

/* Homepage thumbnails invert on hover. Case-study pages keep their own colors. */
@media (hover: hover) {
  html[data-theme="home"] .work-grid .case-card .case-visual,
  html[data-theme="home"] .work-grid .case-card[data-accent] .case-visual {
    background: #F6F3EA;
    transition: background-color 200ms ease, color 200ms ease;
  }
  html[data-theme="home"] .work-grid .case-visual .case-no,
  html[data-theme="home"] .work-grid .case-visual .thumb-sub,
  html[data-theme="home"] .work-grid .case-visual .thumb-kpi,
  html[data-theme="home"] .work-grid .case-visual .thumb-pipe,
  html[data-theme="home"] .work-grid .case-visual .thumb-pipe li,
  html[data-theme="home"] .work-grid .case-visual .cv-row,
  html[data-theme="home"] .work-grid .case-visual .tick em,
  html[data-theme="home"] .work-grid .case-visual .thumb-age em,
  html[data-theme="home"] .work-grid .thumb-age i,
  html[data-theme="home"] .work-grid .thumb-pipe i,
  html[data-theme="home"] .work-grid .case-card .cv-row em,
  html[data-theme="home"] .work-grid .cv-dots i,
  html[data-theme="home"] .work-grid .tick,
  html[data-theme="home"] .work-grid .spread-line {
    transition: background-color 200ms ease, color 200ms ease, opacity 200ms ease;
  }
  html[data-theme="home"] .work-grid .case-card:hover .case-visual,
  html[data-theme="home"] .work-grid .case-card:focus-visible .case-visual,
  html[data-theme="home"] .work-grid .case-card[data-accent]:hover .case-visual,
  html[data-theme="home"] .work-grid .case-card[data-accent]:focus-visible .case-visual {
    background: #1C1C1B;
    color: #EDE9DC;
  }
  html[data-theme="home"] .work-grid .case-card:hover .case-visual .thumb-kpi,
  html[data-theme="home"] .work-grid .case-card:focus-visible .case-visual .thumb-kpi,
  html[data-theme="home"] .work-grid .case-card:hover .case-visual .thumb-pipe,
  html[data-theme="home"] .work-grid .case-card:focus-visible .case-visual .thumb-pipe,
  html[data-theme="home"] .work-grid .case-card:hover .case-visual .thumb-pipe li,
  html[data-theme="home"] .work-grid .case-card:focus-visible .case-visual .thumb-pipe li,
  html[data-theme="home"] .work-grid .case-card:hover .case-visual .thumb-age em,
  html[data-theme="home"] .work-grid .case-card:focus-visible .case-visual .thumb-age em {
    color: #EDE9DC;
  }
  html[data-theme="home"] .work-grid .case-card:hover .case-visual .case-no,
  html[data-theme="home"] .work-grid .case-card:focus-visible .case-visual .case-no,
  html[data-theme="home"] .work-grid .case-card:hover .case-visual .thumb-sub,
  html[data-theme="home"] .work-grid .case-card:focus-visible .case-visual .thumb-sub,
  html[data-theme="home"] .work-grid .case-card:hover .case-visual .cv-row,
  html[data-theme="home"] .work-grid .case-card:focus-visible .case-visual .cv-row,
  html[data-theme="home"] .work-grid .case-card:hover .case-visual .tick em,
  html[data-theme="home"] .work-grid .case-card:focus-visible .case-visual .tick em {
    color: rgba(237, 233, 220, 0.72);
  }
  html[data-theme="home"] .work-grid .case-card:hover .thumb-age i,
  html[data-theme="home"] .work-grid .case-card:focus-visible .thumb-age i,
  html[data-theme="home"] .work-grid .case-card:hover .thumb-pipe i,
  html[data-theme="home"] .work-grid .case-card:focus-visible .thumb-pipe i,
  html[data-theme="home"] .work-grid .case-card:hover .cv-row em,
  html[data-theme="home"] .work-grid .case-card:focus-visible .cv-row em,
  html[data-theme="home"] .work-grid .case-card:hover .cv-dots i,
  html[data-theme="home"] .work-grid .case-card:focus-visible .cv-dots i,
  html[data-theme="home"] .work-grid .case-card:hover .tick,
  html[data-theme="home"] .work-grid .case-card:focus-visible .tick,
  html[data-theme="home"] .work-grid .case-card:hover .spread-line,
  html[data-theme="home"] .work-grid .case-card:focus-visible .spread-line {
    background: #EDE9DC;
  }
}
html[data-theme="home"] .more-work { margin-top: 36px; }
html[data-theme="home"] .more-work h3 {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #6E675E;
}
html[data-theme="home"] .tech-pill {
  max-width: none;
  border-radius: 999px;
  border: 1px solid rgba(28, 28, 27, 0.18);
  background: transparent;
  color: #1C1C1B;
  padding: 10px 16px;
  gap: 2px;
}
html[data-theme="home"] .tech-pill strong { font-size: 0.88rem; font-weight: 600; letter-spacing: -0.02em; }
html[data-theme="home"] .tech-pill span { font-size: 0.75rem; color: #6E675E; }
html[data-theme="home"] .tech-pill:hover {
  background: #1C1C1B;
  border-color: #1C1C1B;
  color: #EDE9DC;
}
html[data-theme="home"] .tech-pill:hover span { color: rgba(237, 233, 220, 0.72); }

/* Contact stays four pills, on the dark closer. */
html[data-theme="home"] .contact-band {
  width: 100%;
  max-width: none;
  margin-top: 72px;
  padding: 88px 0 72px;
  background: #1C1C1B;
  color: #EDE9DC;
  text-align: left;
}
html[data-theme="home"] .contact-band .wrap {
  width: min(1440px, calc(100% - 48px));
  text-align: left;
}
html[data-theme="home"] .contact-band h2,
html[data-theme="home"] .contact-band .display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: none;
  text-align: left;
  color: #EDE9DC;
  max-width: 12ch;
}
html[data-theme="home"] .contact-band .section-intro {
  margin: 18px 0 28px;
  text-align: left;
  color: rgba(237, 233, 220, 0.68);
  font-size: 1.02rem;
}
html[data-theme="home"] .contact-links {
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 22px;
}
html[data-theme="home"] .contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(237, 233, 220, 0.4);
  background: transparent;
  color: #EDE9DC;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
html[data-theme="home"] .contact-links a:hover {
  background: #EDE9DC;
  color: #1C1C1B;
  border-color: #EDE9DC;
}
html[data-theme="home"] .contact-band .contact-phone,
html[data-theme="home"] .contact-phone-hint {
  color: rgba(237, 233, 220, 0.62);
  text-align: left;
}
html[data-theme="home"] .contact-band .contact-phone { margin: 4px 0 0; }
html[data-theme="home"] .contact-band .contact-phone:hover,
html[data-theme="home"] .contact-band .contact-phone:hover .contact-phone-hint { color: #EDE9DC; }

html[data-theme="home"] footer,
html[data-theme="home"] .site-footer {
  background: #EDE9DC;
  color: #6E675E;
  border-top: 1px solid rgba(28, 28, 27, 0.12);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.78rem;
}
html[data-theme="home"] footer .wrap,
html[data-theme="home"] .site-footer {
  width: min(1440px, calc(100% - 48px));
  min-width: 0;
}
html[data-theme="home"] footer a,
html[data-theme="home"] .site-footer a { color: #1C1C1B; }
html[data-theme="home"] footer a:hover,
html[data-theme="home"] .site-footer a:hover { color: #6E675E; }
html[data-theme="home"] .version-links { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  html[data-theme="home"] .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme="home"] .skills { grid-template-columns: 1fr 1fr; }
  html[data-theme="home"] .skills h3 { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  html[data-theme="home"] .wrap,
  html[data-theme="home"] .contact-band .wrap,
  html[data-theme="home"] footer .wrap,
  html[data-theme="home"] .site-footer {
    width: min(1440px, calc(100% - 32px));
  }
  html[data-theme="home"] .about-panel,
  html[data-theme="home"] .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-theme="home"] .about-intro,
  html[data-theme="home"] .about-copy {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
  }
  html[data-theme="home"] .about-copy { margin-top: 22px; }
  html[data-theme="home"] .about-panel .display,
  html[data-theme="home"] .section-head h2,
  html[data-theme="home"] .contact-band .display { max-width: none; }
  html[data-theme="home"] .work-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-theme="home"] .work-grid .case-visual { min-height: 0; }
  html[data-theme="home"] .work-grid .case-body h3 { font-size: 1.35rem; }
  html[data-theme="home"] .skills { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  html[data-theme="home"] .section { padding: 64px 0 40px; }
  html[data-theme="home"] .contact-band { padding: 64px 0 52px; }
}
@media (max-width: 420px) {
  html[data-theme="home"] .nav-links { gap: 6px 10px; }
  html[data-theme="home"] .nav-links a { letter-spacing: 0.06em; font-size: 0.62rem; }
  html[data-theme="home"] .work-grid .thumb-kpi { font-size: clamp(2.8rem, 14vw, 3.6rem); }
  html[data-theme="home"] .contact-links a { padding: 10px 13px; }
}


/* Project pages use the homepage format. Colors stay on each data-theme. */
html[data-layout="study"] {
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  overflow-x: clip;
}
html[data-layout="study"] body {
  overflow-x: clip;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
html[data-layout="study"] .site-nav .wrap {
  min-height: 64px;
  min-width: 0;
  gap: 10px 16px;
}
html[data-layout="study"] .brand {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
html[data-layout="study"] .brand-photo {
  width: 28px;
  height: 28px;
}
html[data-layout="study"] .nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 6px 14px;
}
html[data-layout="study"] .nav-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
html[data-layout="study"] .nav-links .btn {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 500;
  box-shadow: none;
}
html[data-layout="study"] .nav-ico {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
html[data-theme="nike"][data-layout="study"] .brand,
html[data-theme="nike"][data-layout="study"] .site-nav.is-past-profile .brand {
  color: #ff6a00;
}

html[data-layout="study"] .stage {
  padding-bottom: 64px;
  overflow-x: clip;
}
html[data-layout="study"] .hang-rail {
  justify-content: flex-start;
  gap: 8px;
  width: min(1100px, calc(100% - 48px));
  padding: 28px 0 4px;
}
html[data-layout="study"] .hang-tab,
html[data-layout="study"] .folder-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--ink);
  max-width: 100%;
}
html[data-layout="study"] .hang-tab:hover,
html[data-layout="study"] .folder-tab:hover {
  color: var(--ink);
  background: var(--white);
}
html[data-layout="study"] .hang-tab.is-active,
html[data-layout="study"] .folder-tab.is-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

html[data-layout="study"] .sheet,
html[data-layout="study"] .paper {
  width: min(1100px, calc(100% - 48px));
  min-width: 0;
  padding-top: 36px;
  overflow-x: clip;
}
html[data-layout="study"] .folder-heading,
html[data-layout="study"] .role-strip,
html[data-layout="study"] .paper-rule {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
html[data-layout="study"] .display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: none;
  overflow-wrap: anywhere;
  max-width: 100%;
  margin: 0 0 14px;
}
html[data-layout="study"] .case-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: none;
  overflow-wrap: anywhere;
  max-width: min(40rem, 100%);
  margin: 0 0 16px;
}
html[data-layout="study"] .article-lede {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: min(42rem, 100%);
  overflow-wrap: anywhere;
}
html[data-layout="study"] .case-hero {
  gap: 40px;
  align-items: center;
  padding: 8px 0 48px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
html[data-layout="study"] .case-hero > * { min-width: 0; max-width: 100%; }
html[data-layout="study"] .sheet > .article-lede {
  padding-bottom: 36px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
html[data-layout="study"] .article-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0 0 22px;
}
html[data-layout="study"] .pill,
html[data-layout="study"] .pill-date {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
html[data-layout="study"] a.pill:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

html[data-layout="study"] .prose h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--ink);
  margin: 48px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
html[data-layout="study"] .prose h2:first-of-type {
  border-top: 0;
  padding-top: 8px;
}
html[data-layout="study"] .prose p,
html[data-layout="study"] .prose li {
  overflow-wrap: anywhere;
  line-height: 1.65;
}
html[data-layout="study"] .stat,
html[data-layout="study"] .panel,
html[data-layout="study"] .pa,
html[data-layout="study"] .notice,
html[data-layout="study"] .polaroid,
html[data-layout="study"] .viz-kpi,
html[data-layout="study"] .viz-chart,
html[data-layout="study"] .table-wrap,
html[data-layout="study"] .demo {
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  min-width: 0;
}
html[data-layout="study"] .viz-story {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 0 0;
  margin-top: 36px;
}
html[data-layout="study"] .stat b,
html[data-layout="study"] .viz-kpi b,
html[data-layout="study"] .ph-title,
html[data-layout="study"] .ph-kpi b {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-layout="study"] .panel h3,
html[data-layout="study"] .pa h3,
html[data-layout="study"] .viz-kpi span {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 400;
  letter-spacing: 0.12em;
}
html[data-layout="study"] .viz-step,
html[data-layout="study"] .viz-filter {
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
}
html[data-layout="study"] .ticker {
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  max-width: 100%;
}
html[data-layout="study"] .pager a {
  border-bottom: 1px solid var(--line);
}
html[data-layout="study"] footer,
html[data-layout="study"] .site-footer {
  background: transparent;
  border-top: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.78rem;
}
html[data-layout="study"] footer .wrap { min-width: 0; width: min(1100px, calc(100% - 48px)); }
html[data-layout="study"] .phone { max-width: 100%; }
html[data-layout="study"] pre.code,
html[data-layout="study"] pre.code code {
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}
html[data-layout="study"] pre.code {
  border: 1px solid var(--line);
  max-width: 100%;
}
html[data-layout="study"] :not(pre) > code {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}
html[data-layout="study"] .table-wrap { overflow: auto; max-width: 100%; }

@media (min-width: 901px) {
  html[data-layout="study"] .case-hero > div:first-child {
    padding-right: 36px;
    border-right: 1px solid var(--line);
  }
}
@media (max-width: 720px) {
  html[data-layout="study"] .display { font-size: clamp(2.05rem, 9vw, 2.8rem); }
  html[data-layout="study"] .case-subtitle { font-size: 1.45rem; }
  html[data-layout="study"] .hang-rail,
  html[data-layout="study"] .sheet,
  html[data-layout="study"] footer .wrap {
    width: min(1100px, calc(100% - 28px));
  }
  html[data-layout="study"] .nav-links { gap: 6px 10px; }
  html[data-layout="study"] .nav-links a { letter-spacing: 0.05em; font-size: 0.62rem; }
  html[data-layout="study"] .hang-tab,
  html[data-layout="study"] .folder-tab { letter-spacing: 0.04em; padding: 7px 11px; }
  html[data-layout="study"] .case-hero { gap: 22px; padding-bottom: 32px; }
}
@media (max-width: 420px) {
  html[data-layout="study"] .nav-social { gap: 6px; }
  html[data-layout="study"] .nav-ico { width: 28px; height: 28px; }
}
