/* dolangoods.com — tokens mirror the Framer project's color and text styles */
:root {
  --bg: #000;
  --fg: #fff;
  --fg-75: rgba(255,255,255,.75);
  --fg-50: rgba(255,255,255,.5);
  --line: rgba(255,255,255,.25);
  --gray-card: rgb(222,222,222);
  --card-text: rgba(0,0,0,.8);
  --blue: rgb(2,80,217);
  --off-white: rgb(220,219,206);
  --accent: hsl(148,100%,50%);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 60px);
  --max: 1920px;
  --radius: 4px;
  --page-top: clamp(40px, 5vw, 72px);   /* distance from nav rule to the first label on every page */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.75 var(--sans); letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
figure { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--fg); color: var(--bg); padding: 8px 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Type scale (from Framer text styles) */
.h1 { font-weight: 400; font-size: clamp(44px, 7.2vw, 104px); line-height: 1.15; letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.h2 { font-weight: 500; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.2; letter-spacing: -0.04em; margin: 0 0 .4em; text-wrap: balance; }
.h3 { font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.5; letter-spacing: -0.3px; margin: 0; }
.mono { font-family: var(--mono); font-size: clamp(15px, 1.4vw, 20px); line-height: 1.4; letter-spacing: 0; margin: 0; color: var(--fg-75); }
.mono a { text-decoration: none; }
.mono a:hover { color: var(--fg); }
.lede { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.75; letter-spacing: -0.4px; color: var(--fg-75); max-width: 60ch; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav { padding: 24px var(--gutter) 0; flex-wrap: wrap; }
.nav::after { content: ""; flex-basis: 100%; height: 1px; background: var(--line); margin-top: 24px; }
.nav .nav__brand { font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -0.02em; text-decoration: none; color: var(--fg); }
.nav ul { list-style: none; display: flex; gap: clamp(16px, 3.5vw, 70px); margin: 0; padding: 0; font-size: clamp(15px, 1.35vw, 20px); letter-spacing: -0.02em; }
.nav a { text-decoration: none; color: var(--fg-75); }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--fg); }
.nav__icon-link { display: inline-flex; align-items: center; height: 100%; }
.nav__icon-link svg { width: .95em; height: .95em; }

/* Mobile menu */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav__toggle { display: none; position: relative; z-index: 7; align-items: center; gap: 18px; margin-left: auto; padding: 8px 0; border: 0; background: none;
  color: var(--fg-50); font: 400 clamp(22px, 6vw, 26px)/1 var(--sans); letter-spacing: -0.03em; cursor: pointer; }
.nav__toggle[aria-expanded="true"] { color: var(--fg); }
.nav__label::before { content: "menu"; }
.nav__toggle[aria-expanded="true"] .nav__label::before { content: "close"; }
.nav__icon { position: relative; width: 22px; height: 18px; }
.nav__icon::before, .nav__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s, top .25s, bottom .25s; }
.nav__icon::before { top: 2px; }
.nav__icon::after { bottom: 2px; }
.nav__toggle[aria-expanded="true"] .nav__icon::before { top: 8px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__icon::after { bottom: 8px; transform: rotate(-45deg); }
@media (max-width: 700px) {
  /* backdrop-filter on the header would trap the fixed overlay inside it */
  .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__toggle { display: inline-flex; }
  .nav > nav { width: 0; }
  .nav .nav__brand { position: relative; z-index: 7; }
  .nav ul { position: fixed; inset: 0; z-index: 6; flex-direction: column; align-items: flex-end; gap: clamp(28px, 7vw, 44px);
    padding: clamp(150px, 36vw, 190px) var(--gutter) 40px; background: rgba(0,0,0,.72);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    font-size: clamp(34px, 10vw, 44px); letter-spacing: -0.035em; line-height: 1.2;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  .nav ul a { color: var(--off-white); }
  .nav ul a:hover, .nav ul a[aria-current] { color: var(--fg); }
  .nav.is-open ul { opacity: 1; visibility: visible; transition: opacity .25s; }
  .nav.is-open::after { opacity: 0; }
  body.menu-open { overflow: hidden; }
}

/* Wavy underline on hover (and on the current page in the nav) */
.nav a:hover, .nav a[aria-current],
.footer__links a:not(.button):hover, .case__next a:hover, .mono a:hover, .prose a:hover,
.post-list a:hover .post-list__title, .post-grid a:hover .post-grid__title {
  text-decoration: underline wavy;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-skip-ink: none;
}

/* Tagline rule: ".about ———————" */
.tagline { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; font-family: var(--mono); font-size: clamp(15px, 1.4vw, 20px); }
.tagline i { flex: 1; height: 1px; background: var(--line); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 220px;
  padding: 14px 18px; border: 1px solid var(--fg); border-radius: var(--radius); background: transparent; color: var(--fg);
  font: 400 16px/1.2 var(--mono); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.button::after { content: "→"; }
.button:hover { background: var(--fg); color: var(--bg); }
.button-row { display: flex; justify-content: flex-end; margin-top: 48px; }

/* Home hero */
.hero { padding-top: clamp(40px, 8vw, 100px); padding-bottom: clamp(80px, 14vw, 180px); display: grid; gap: clamp(60px, 12vw, 180px); }
.rotator { display: block; color: var(--fg-50); }
.rotator__word { display: inline-block; transition: opacity .35s, transform .35s; }
.rotator__word.is-out { opacity: 0; transform: translateY(.2em); }

/* Stacked sticky cards */
.stack { display: grid; gap: 60px; padding-bottom: 160px; }
.stack__item { position: sticky; top: 120px; }
.stack .card { height: min(90vh, 900px); }

/* Card */
.card { display: grid; grid-template-rows: auto 1fr; gap: 24px; padding: clamp(20px, 3vw, 40px); border-radius: var(--radius);
  background: var(--card-bg, var(--gray-card)); color: var(--card-fg, var(--card-text)); text-decoration: none; overflow: hidden; }
.card__text { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.card__title { font-size: clamp(22px, 2.4vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; margin: 0; }
.card__meta { color: inherit; opacity: .7; font-size: 15px; }
.card__img { overflow: hidden; border-radius: var(--radius); min-height: 0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card:hover { --hover-scale: 1.04; }

/* Projects grid */
.page-head { padding-top: var(--page-top); padding-bottom: 48px; }
.page-head .mono { margin-bottom: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filter { font: 400 14px/1 var(--mono); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--fg-75); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 24px; padding-bottom: 120px; }
.grid .card { aspect-ratio: 4 / 3.4; }
.grid .card[hidden] { display: none; }

/* About teaser */
.about-teaser, .posts-teaser { padding-block: clamp(60px, 10vw, 140px) 0; }
.about-teaser__grid { display: grid; grid-template-columns: 4fr 3fr; gap: clamp(24px, 6vw, 120px); align-items: end; }
.about-teaser__grid figure { border-radius: var(--radius); overflow: hidden; max-width: 450px; justify-self: end; }
.about-teaser__grid img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
@media (max-width: 800px) { .about-teaser__grid { grid-template-columns: 1fr; } .about-teaser__grid figure { justify-self: start; } }

/* Post lists */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list__title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.post-grid { list-style: none; margin: 0; padding: 0 0 120px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 40px 24px; }
.post-grid a { display: grid; gap: 12px; text-decoration: none; }
.post-grid img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: var(--radius); }
.post-grid__title { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }

/* Case study */
.case__head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 48px; }
.case__head .mono { margin-bottom: 20px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.meta dt { font-family: var(--mono); font-size: 14px; color: var(--fg-50); }
.meta dd { margin: 4px 0 0; }
.case__hero { max-width: var(--max); margin: 0 auto 80px; padding-inline: var(--gutter); }
.case__hero img, .case__wide img { width: 100%; border-radius: var(--radius); }
.case__wide { margin-bottom: 80px; }
.case__wide > figure { max-width: 1000px; margin-inline: auto; }
.case__wide figure, .gallery figure, .post__hero figure, .px-frame, .ab-hello figure { overflow: hidden; border-radius: var(--radius); }
.px-frame { display: block; }
.embed { margin-bottom: 80px; }
.embed iframe { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: var(--radius); }
.case__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-block: 40px 100px; max-width: 1100px; }
.case__lists h3 { font-family: var(--mono); font-weight: 400; font-size: 16px; color: var(--fg-50); margin: 0 0 12px; }
.case__lists ul { list-style: none; margin: 0; padding: 0; }
.case__lists li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: 80px; }
.gallery img { width: 100%; border-radius: var(--radius); }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .gallery--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.case__next { display: flex; flex-direction: column; gap: 8px; padding-block: 60px 100px; border-top: 1px solid var(--line); }
.case__next a { font-size: clamp(28px, 4vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.2; text-decoration: none; }

/* Long-form text */
.prose { max-width: 1100px; padding-bottom: 60px; }
.prose > * { max-width: 72ch; }
.prose h2, .prose h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin: 2.2em 0 .6em; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { font-size: clamp(17px, 1.3vw, 20px); letter-spacing: -0.3px; color: var(--fg-75); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .6em; }
.prose blockquote { margin: 2em 0; padding-left: 24px; border-left: 2px solid var(--accent); }
.prose blockquote p { color: var(--fg); font-size: clamp(22px, 2vw, 28px); }
.prose img { border-radius: var(--radius); margin-block: 2em; }
.prose a { text-underline-offset: 4px; }
.post__hero { margin-bottom: 60px; }
.post__hero img { width: 100%; max-height: 70vh; object-fit: cover; }

/* Contact */
.contact-email { display: inline-block; font-size: clamp(28px, 4.4vw, 64px); letter-spacing: -0.04em; line-height: 1.2; text-decoration: none; margin-bottom: 120px; word-break: break-word; }
.contact-email:hover { text-decoration: underline wavy; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-skip-ink: none; }

/* Contact form */
.form { display: grid; gap: 20px; max-width: 640px; padding-bottom: 120px; }
.form label { display: grid; gap: 8px; font-family: var(--mono); font-size: 14px; color: var(--fg-75); }
.form input, .form textarea { font: 16px/1.5 var(--sans); padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--fg); }
.form .button { justify-self: start; }

/* Footer */
.footer { max-width: var(--max); margin: 160px auto 0; padding: 40px var(--gutter) 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer__orbit { grid-column: 1 / -1; width: 112px; aspect-ratio: 1; pointer-events: none; }
.footer__orbit canvas { display: block; width: 100%; height: 100%; }
.footer__brand { text-decoration: none; font-size: 18px; letter-spacing: -0.02em; }
.footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; font-size: 15px; }
.footer ul a { text-decoration: none; color: var(--fg-75); }
.footer ul a:hover, .footer ul a[aria-current] { color: var(--fg); text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: .28em; text-decoration-skip-ink: none; }
.footer__social { justify-self: end; color: var(--fg-50); }
.footer__social:hover { color: var(--fg); }
.footer__social svg { display: block; width: 20px; height: 20px; }
@media (max-width: 700px) { .footer { grid-template-columns: 1fr; justify-items: start; } .footer__social { justify-self: start; } }

/* "Aim" rule: hairline with a small circle at the right end */
.aim-rule { position: relative; height: 1px; background: var(--line); margin-block: 56px 0; margin-right: calc(-1 * min(var(--gutter), 18px)); }
.aim-rule::after, .aim { content: ""; position: absolute; right: 0; top: 50%; width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 50%; transform: translate(-2px, -50%); }

/* About page (uses the cs-* case-study language) */
.ab-title { margin: 0; font-size: clamp(56px, 8vw, 128px); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.ab-statement { margin: clamp(20px, 2.4vw, 36px) 0 0; max-width: 22ch; font-size: clamp(26px, 3vw, 46px); line-height: 1.2; letter-spacing: -0.03em; color: var(--off-white); }
.ab-facts { grid-template-columns: repeat(3, 1fr); }
.ab-hello { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 64px); align-items: end; max-width: none; }
.ab-hello figure { overflow: hidden; border-radius: var(--radius); }
.ab-hello img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(1); }
.ab-hello p { margin: 0; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.45; letter-spacing: -0.02em; }
.ab-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 4vw, 60px); }
.ab-jobs li { border-left: 1px solid var(--fg); padding-left: clamp(16px, 2vw, 32px); }
.ab-jobs__dates { margin: 0 0 12px; font-family: var(--mono); font-size: 14px; color: var(--fg-50); }
.ab-jobs__company { margin: 0; font-size: clamp(24px, 2.4vw, 36px); font-weight: 400; line-height: 1.15; letter-spacing: -0.03em; color: var(--off-white); }
.ab-jobs__role { display: inline-block; margin: 12px 0 16px; padding: .6em 1em; background: rgba(255,255,255,.1); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.ab-jobs__summary { margin: 0; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.75; color: var(--fg-75); }
.ab-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 44px); max-width: none; }
.ab-tools li { border-left: 1px solid var(--fg); padding-left: clamp(14px, 1.6vw, 24px); }
.cs-sec__body.ab-tools img { width: 40px; height: 40px; border-radius: 2px; margin: 0 0 14px; }
.ab-tools__name { margin: 0 0 10px; font-size: clamp(16px, 1.3vw, 20px); letter-spacing: -0.01em; }
.ab-tools__use { display: inline-block; padding: .6em 1em; background: rgba(255,255,255,.1); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.3; }
/* About intro: paragraph with the "view timeline" button under it */
.ab-hello__text { display: grid; gap: clamp(28px, 3vw, 40px); justify-items: start; }
.ab-facts dd a { text-decoration: none; }
.ab-facts dd a:hover { text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-skip-ink: none; }
@media (max-width: 800px) {
  .ab-facts { grid-template-columns: 1fr 1fr; }
  .ab-hello { grid-template-columns: 1fr; }
  .ab-hello figure { max-width: 70%; }
  .ab-tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) { .ab-facts, .ab-tools { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .nav { padding-top: 16px; }
  .nav::after { margin-top: 16px; }
  .stack__item { top: 90px; }
  .stack .card { height: 72vh; }
  .button { min-width: 0; width: 100%; }
}

/* Parallax (driven by site.js; off for reduced motion) */
.px { --py: 0px; transform: translate3d(0, var(--py), 0) scale(calc(var(--px-scale, 1.14) * var(--hover-scale, 1))); transition: transform .7s cubic-bezier(.2,.7,.2,1); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .px { transform: none !important; } }

/* Data panels (case studies) — HTML versions of the grey slide graphics */
.panel { --ink: #000; --paper: #fff; --chip: #f2f2f2; --track: #fff; --row: #f3f3f3; --mid: #8a8a8a; background: rgb(222,222,222); color: var(--ink); border-radius: var(--radius);
  padding: clamp(28px, 8.5%, 170px) clamp(24px, 10.4%, 200px); container-type: inline-size; }
.panel h4 { margin: 0; font-weight: 400; font-size: clamp(18px, 2.2cqi, 34px); letter-spacing: -0.02em; line-height: 1.2; }
.panel p { margin: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 5.5cqi, 100px); }
.panel__tag { display: inline-block; margin: 0 0 12px !important; padding: .45em .9em; background: var(--ink); color: var(--paper); font-size: clamp(11px, 1.3cqi, 20px); letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; }
.panel__title { margin: 0; font-size: clamp(28px, 4.6cqi, 64px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.04; max-width: 20ch; text-wrap: balance; }
.panel__note { position: relative; width: min(100%, 32cqi); min-width: 220px; padding: clamp(20px, 3cqi, 44px) clamp(20px, 2.2cqi, 32px) clamp(20px, 3cqi, 44px) clamp(56px, 6cqi, 90px);
  background: var(--ink); color: var(--paper); font-size: clamp(14px, 1.45cqi, 22px); line-height: 1.5; text-align: right; }
.panel__bang { position: absolute; left: 0; top: 0; width: clamp(34px, 3.2cqi, 60px); aspect-ratio: 1; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-weight: 600; }
.panel__bang--dark { position: static; flex: none; width: 2.6em; background: var(--ink); color: var(--paper); letter-spacing: 0; }
.panel__chip { display: inline-block; padding: .6em 1.1em; background: var(--chip); font-size: clamp(10px, 1.1cqi, 18px); letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.panel__sub { font-size: clamp(13px, 1.3cqi, 19px); line-height: 1.4; margin-top: 4px !important; }
.panel__num { flex: none; display: inline-grid; place-items: center; width: clamp(28px, 2.6cqi, 48px); aspect-ratio: 1; background: var(--ink); color: var(--paper); font-size: clamp(12px, 1.3cqi, 20px); line-height: 1; }
.panel__num--sm { width: clamp(24px, 2cqi, 36px); font-size: clamp(11px, 1cqi, 16px); }

/* stats */
.panel__stats { margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(28px, 4cqi, 56px) clamp(24px, 6cqi, 120px); }
.panel__stat { border-left: 1px solid var(--ink); padding-left: clamp(16px, 2.7cqi, 50px); display: flex; flex-direction: column; }
.panel__stat dt { display: flex; align-items: flex-start; gap: clamp(10px, 1.4cqi, 26px); flex-wrap: wrap; }
.panel__stat dt .panel__chip { margin-top: .8em; }
.panel__value { font-size: clamp(48px, 8cqi, 130px); line-height: .9; letter-spacing: -0.03em; }
.panel__stat dd { margin: 10px 0 0; font-size: clamp(15px, 1.9cqi, 30px); line-height: 1.3; letter-spacing: -0.01em; }
.panel--row .panel__stat dd:not(.panel__stat-chip) { flex: 1; margin-bottom: clamp(20px, 3.5cqi, 60px); }
.panel__stat-chip { margin-top: auto !important; }

/* steps (numbered flags) */
.panel__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(28px, 2.6cqi, 36px) clamp(24px, 6cqi, 120px); }
.panel__steps li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: clamp(14px, 1.3cqi, 24px); row-gap: clamp(10px, 1.6cqi, 26px); align-content: start; border-left: 1px solid var(--ink); }
.panel__steps .panel__num { grid-row: 1; margin-left: -1px; }
.panel__steps h4 { grid-row: 1; align-self: center; }
.panel__steps p, .panel__steps .panel__chip { grid-column: 2; font-size: clamp(14px, 1.3cqi, 20px); line-height: 1.45; max-width: 46ch; }
.panel__steps .panel__chip { justify-self: start; font-size: clamp(10px, 1.1cqi, 18px); line-height: 1; }

/* groups (persona columns) */
.panel__groups { display: grid; grid-template-columns: repeat(var(--cols), 1fr); }
.panel__groups section { padding: 0 clamp(14px, 2cqi, 36px); border-left: 1px solid var(--ink); }
.panel__groups section:first-child { padding-left: 0; border-left: 0; }
.panel__groups ul { list-style: none; margin: clamp(18px, 2.4cqi, 40px) 0 0; padding: 0; display: grid; gap: clamp(12px, 1.6cqi, 26px); }
.panel__groups li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.panel__groups li .panel__num { grid-row: span 2; align-self: start; }
.panel__groups strong { font-weight: 400; font-size: clamp(14px, 1.3cqi, 20px); }
.panel__groups li span:last-child { font-size: clamp(12px, 1cqi, 16px); }

/* bars */
.panel__bars { display: grid; gap: clamp(22px, 3cqi, 44px); }
.panel__track { position: relative; height: 6px; background: var(--track); margin: clamp(14px, 1.6cqi, 24px) 0 clamp(30px, 3cqi, 44px); }
.panel__track i { position: absolute; top: 0; bottom: 0; background: var(--ink); }
.panel__track b { position: absolute; top: -10px; bottom: -10px; width: 2px; margin-left: -1px; background: var(--ink); }
.panel__track b span { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: 400; font-size: clamp(12px, 1.1cqi, 18px); }
.panel__track b[style="left: 100%"] span { transform: translateX(-100%); }
.panel__features { list-style: none; margin: clamp(8px, 2cqi, 30px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3cqi, 48px) clamp(24px, 3cqi, 48px); }
.panel__features li { border-left: 1px solid var(--ink); padding-left: clamp(16px, 2.7cqi, 50px); }
.panel__features p { margin-top: 10px !important; font-size: clamp(13px, 1.2cqi, 18px); }

/* table */
.panel__table-wrap { overflow-x: auto; }
.panel__table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: clamp(13px, 1.1cqi, 17px); line-height: 1.45; }
.panel__table thead th { background: var(--ink); color: var(--paper); text-align: left; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; font-size: .85em; padding: .8em 1em; }
.panel__table tbody th, .panel__table td { text-align: left; vertical-align: top; padding: 1.4em 1em 1.8em; font-weight: 400; }
.panel__table tbody th { font-weight: 500; font-size: 1.15em; width: 20%; }
.panel__table tbody tr:nth-child(odd) { background: var(--row); }
.panel__impacts, .panel__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.panel__impacts li, .panel__legend li { display: flex; align-items: center; gap: .6em; }
.panel__impacts li::before, .panel__legend li::before { content: ""; width: .8em; height: .8em; border: 1px solid var(--ink); }
.is-high::before { background: var(--ink); }
.is-medium::before { background: var(--mid); border-color: var(--mid) !important; }
.panel__legend { display: flex; gap: 2em; margin-top: 1.4em; font-size: clamp(12px, 1.1cqi, 17px); }

/* timeline */
.panel__timeline { --gap: 0px; }
.panel__phases, .panel__timeline ol { display: grid; grid-template-columns: repeat(var(--steps), 1fr); }
.panel__phases span { position: relative; text-align: center; font-size: clamp(12px, 1.25cqi, 19px); padding-bottom: 14px; margin-bottom: 18px; border: 1px solid var(--ink); border-top: 0; border-bottom: 0; }
.panel__phases span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.panel__phases span + span { border-left: 0; }
.panel__timeline ol { list-style: none; margin: 0; padding: 0; }
.panel__timeline li { position: relative; padding-right: 14px; }
.panel__timeline li::before { content: ""; position: absolute; left: 0; right: 0; top: calc(clamp(28px, 2.6cqi, 48px) / 2); height: 2px; background: var(--ink); z-index: 0; }
.panel__timeline li .panel__num { position: relative; z-index: 1; }
.panel__timeline li:last-child::after { content: "!"; position: absolute; right: 0; top: 0; z-index: 1; display: grid; place-items: center; width: clamp(28px, 2.6cqi, 48px); aspect-ratio: 1; background: var(--ink); color: var(--paper); font-size: clamp(12px, 1.3cqi, 20px); }
.panel__timeline h4 { font-size: clamp(14px, 1.3cqi, 20px); margin-top: clamp(12px, 1.4cqi, 22px); }
.panel__timeline p { font-size: clamp(12px, 1cqi, 16px); line-height: 1.6; margin-top: 10px !important; }

/* compare */
.panel__compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 2.6cqi, 48px); align-items: start; }
.panel__compare h4 { margin-bottom: clamp(16px, 2.4cqi, 40px); }
.panel__boxes { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, .8cqi, 14px); }
.panel__boxes li, .panel__boxes--dark { background: var(--chip); padding: .75em 1em; text-align: center; letter-spacing: .18em; text-transform: uppercase; font-size: clamp(11px, 1.1cqi, 18px); line-height: 1.2; }
.panel__boxes--dark { background: var(--ink); color: var(--paper); }
.panel__arrow { margin-top: calc(clamp(18px, 2.2cqi, 34px) * 1.2 + clamp(16px, 2.4cqi, 40px)); display: grid; place-items: center; width: clamp(28px, 2.6cqi, 48px); aspect-ratio: 1; background: var(--ink); color: var(--paper); font-size: clamp(12px, 1.2cqi, 18px); }
.panel__numbered { list-style: none; margin: clamp(14px, 1.6cqi, 28px) 0 0; padding: 0; display: grid; gap: clamp(8px, .8cqi, 12px); }
.panel__numbered li { display: flex; align-items: center; gap: clamp(12px, 1.3cqi, 24px); font-size: clamp(16px, 1.8cqi, 28px); letter-spacing: -0.01em; }

/* footer */
.panel__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: clamp(28px, 4cqi, 60px); }
.panel__footnote { display: inline-flex; align-items: stretch; background: var(--chip); letter-spacing: .18em; text-transform: uppercase; font-size: clamp(10px, 1.1cqi, 18px); line-height: 1.3; }
.panel__footnote { padding: .7em 1.1em; }
.panel__footnote:has(.panel__bang) { padding: 0 1.1em 0 0; }
.panel__footnote .panel__bang { margin-right: 1.1em; }
.panel__footnote:has(.panel__bang) { align-items: center; }
.panel__scale { font-size: clamp(11px, 1cqi, 15px); }

@container (max-width: 640px) {
  .panel__stats, .panel__steps, .panel__features, .panel__groups { grid-template-columns: 1fr; }
  .panel__groups { gap: 28px; }
  .panel__groups section { padding: 0; border-left: 0; }
  .panel__note { width: 100%; text-align: left; }
  .panel__compare { grid-template-columns: 1fr; }
  .panel__arrow { margin: 0; transform: rotate(90deg); }
  .panel__phases { display: none; }
  .panel__timeline ol { grid-template-columns: 1fr; gap: 22px; }
  .panel__timeline li { padding-left: calc(clamp(28px, 2.6cqi, 48px) + 16px); }
  .panel__timeline li .panel__num { position: absolute; left: 0; top: 0; }
  .panel__timeline li::before { left: calc(clamp(28px, 2.6cqi, 48px) / 2 - 1px); right: auto; width: 2px; top: 0; bottom: -22px; }
  .panel__timeline li:last-child::before, .panel__timeline li:last-child::after { display: none; }
  .panel__timeline h4 { margin-top: 4px; }
}

/* brand (logo, color, type overview) */
.brand { display: grid; gap: clamp(40px, 6cqi, 100px); }
.brand__logos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6cqi, 24px); }
.brand__logo { display: grid; place-items: center; grid-template-rows: minmax(0, 1fr); aspect-ratio: 16 / 9; border-radius: var(--radius); padding: 12%; }
.brand__logo img { width: 100%; max-width: 420px; height: auto; max-height: 100%; min-height: 0; object-fit: contain; }
.brand__sec h4 { margin-bottom: clamp(18px, 2.4cqi, 40px); }
.brand__name { font-size: clamp(16px, 1.6cqi, 24px); letter-spacing: -0.01em; }
.brand__colors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(20px, 2.6cqi, 48px); }
.brand__swatch { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); margin-bottom: clamp(12px, 1.4cqi, 20px); }
.brand__codes { margin: clamp(12px, 1.4cqi, 20px) 0 0; display: grid; gap: 6px; font-family: var(--mono); font-size: clamp(11px, 1cqi, 15px); }
.brand__codes div { display: flex; gap: 1em; border-top: 1px solid var(--track); padding-top: 6px; }
.brand__codes dt { width: 4.5em; color: var(--mid); }
.brand__codes dd { margin: 0; }
.brand__type { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4cqi, 64px); }
.brand__type > li { display: flex; gap: clamp(16px, 2.4cqi, 40px); align-items: flex-start; border-left: 1px solid var(--ink); padding-left: clamp(16px, 2.7cqi, 50px); }
.brand__specimen { font-family: var(--face); font-weight: 700; font-size: clamp(56px, 8cqi, 130px); line-height: .9; letter-spacing: -0.02em; }
.brand__weights { list-style: none; margin: clamp(12px, 1.4cqi, 20px) 0 0; padding: 0; display: grid; gap: 4px; font-family: var(--face); font-size: clamp(15px, 1.6cqi, 24px); }
@container (max-width: 640px) {
  .brand__logos, .brand__type { grid-template-columns: 1fr; }
  .brand__colors { grid-template-columns: 1fr 1fr; }
}

/* Panel without the grey card: sits directly on the black page */
.panel--bare { --ink: #fff; --paper: #000; --chip: rgba(255,255,255,.1); --track: rgba(255,255,255,.2); --row: rgba(255,255,255,.05); --mid: rgba(255,255,255,.5);
  background: none; border-radius: 0; padding: clamp(40px, 6cqi, 90px) 0; border-top: 1px solid var(--line); }

/* Case study layout — same visual language as the data panels */
.cs-head { padding-top: var(--page-top); padding-bottom: clamp(56px, 7vw, 110px); }
.cs-labelrow { display: flex; align-items: baseline; gap: 20px; margin-bottom: 16px; }
.cs-labelrow .cs-label { margin: 0; }
.cs-labelrow .cs-label + .cs-label { margin-left: -14px; }
.cs-back { font-size: 14px; color: var(--fg-50); text-decoration: none; }
.cs-back:hover { color: var(--fg); text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-skip-ink: none; }
.cs-label, .cs-sec__tag { display: inline-block; margin: 0 0 16px; padding: .5em .9em; background: var(--fg); color: var(--bg);
  font: 400 clamp(11px, .9vw, 14px)/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.cs-title { margin: 0; max-width: 18ch; font-size: clamp(40px, 6vw, 96px); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.cs-pilot { margin: 20px 0 0; padding-left: 14px; border-left: 2px solid var(--fg-50); max-width: 60ch; font-size: 15px; line-height: 1.5; color: var(--fg-75); }
.cs-lede { margin: clamp(20px, 2.4vw, 36px) 0 0; max-width: 46ch; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.45; letter-spacing: -0.02em; color: var(--fg-75); }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px clamp(16px, 3vw, 48px); margin: clamp(48px, 6vw, 90px) 0 0; }
.cs-meta div { border-left: 1px solid var(--fg); padding-left: clamp(14px, 1.6vw, 24px); }
.cs-meta dt { display: inline-block; margin-bottom: 12px; padding: .5em .9em; background: rgba(255,255,255,.1); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.cs-meta dd { margin: 0; font-size: clamp(16px, 1.4vw, 22px); line-height: 1.35; letter-spacing: -0.01em; }
@media (max-width: 800px) { .cs-meta { grid-template-columns: 1fr 1fr; } }

.cs-body { padding-bottom: clamp(40px, 5vw, 80px); }
.cs-sec { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2.4fr); gap: 24px clamp(24px, 5vw, 96px);
  padding-block: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); }
.cs-sec__tag { align-self: start; justify-self: start; position: sticky; top: 120px; }
.cs-sec__body { max-width: 760px; }
.cs-sec__body > p { margin: 0 0 1.1em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.7; letter-spacing: -0.01em; color: var(--fg-75); }
.cs-sec__body > p:first-child { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.45; letter-spacing: -0.02em; color: var(--fg); }
.cs-sec__body a { color: var(--fg); text-underline-offset: 4px; }
.cs-sec__body a:hover { text-decoration: underline wavy; text-decoration-thickness: 1px; text-decoration-skip-ink: none; }
/* Plain list of links (e.g. related case studies): same size as body text, no bullets */
.cs-sec__body ul.cs-links { list-style: none; padding: 0; display: grid; gap: 1.1em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.7; letter-spacing: -0.01em; }
.cs-sec__body img { width: 100%; border-radius: var(--radius); margin-block: 1.5em; }

/* Bullets led by a bold phrase become numbered outcome cards */
.cs-sec__body ul { margin: 0; padding-left: 1.1em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--fg-75); }
.cs-sec__body ul:has(> li > strong:first-child) { list-style: none; padding: 0; counter-reset: out; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 48px); }
.cs-sec__body ul:has(> li > strong:first-child) > li { counter-increment: out; position: relative; border-left: 1px solid var(--fg); padding-left: calc(clamp(28px, 2.4vw, 36px) + 16px); }
.cs-sec__body ul:has(> li > strong:first-child) > li::before { content: counter(out); position: absolute; left: -1px; top: 0; display: grid; place-items: center;
  width: clamp(28px, 2.4vw, 36px); aspect-ratio: 1; background: var(--fg); color: var(--bg); font-size: 13px; }
.cs-sec__body ul:has(> li > strong:first-child) strong:first-child { display: block; margin-bottom: 8px; color: var(--fg); font-weight: 400; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -0.02em; }
@media (max-width: 800px) {
  .cs-sec { grid-template-columns: 1fr; }
  .cs-sec__tag { position: static; }
  .cs-sec__body ul:has(> li > strong:first-child) { grid-template-columns: 1fr; }
}

/* Pull quotes */
.cs-sec__body blockquote { margin: 1.6em 0 0; padding: 0 0 0 clamp(18px, 2vw, 32px); border-left: 1px solid var(--fg); }
.cs-sec__body blockquote p { margin: 0; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.2; letter-spacing: -0.03em; color: var(--fg); }
.cs-sec__body blockquote strong { font-weight: 400; }
.cs-sec__body blockquote em { display: block; margin-top: 14px; font-style: normal; font-family: var(--mono); font-size: 14px; letter-spacing: 0; color: var(--fg-50); }

/* Artifacts & methods as chips */
.cs-chips { list-style: none !important; padding: 0 !important; display: flex !important; flex-wrap: wrap; gap: 10px; }
.cs-chips li { padding: .7em 1.1em; background: rgba(255,255,255,.1); color: var(--fg); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; }

/* Next case study */
.cs-next { margin-top: clamp(40px, 6vw, 100px); padding-block: clamp(40px, 5vw, 80px) clamp(60px, 8vw, 120px); border-top: 1px solid var(--line); }
.cs-next a { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 24px; text-decoration: none; }
.cs-next__title { font-size: clamp(34px, 5vw, 80px); line-height: 1.05; letter-spacing: -0.04em; }
.cs-next__meta { grid-row: 2; font-size: 14px; }
.cs-next__arrow { grid-row: 1 / span 2; font-size: clamp(34px, 5vw, 80px); transition: transform .3s; }
.cs-next a:hover .cs-next__title { text-decoration: underline wavy; text-decoration-thickness: 2px; text-underline-offset: .15em; text-decoration-skip-ink: none; }
.cs-next a:hover .cs-next__arrow { transform: translateX(12px); }

/* Shared chip (Work, Blog) + blog meta */
.w-chip { display: inline-block; padding: .6em 1em; background: rgba(255,255,255,.1); color: var(--fg); font: 400 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.post-grid__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--fg-50); }
.post__meta { margin: clamp(24px, 3vw, 40px) 0 0; }
.page-head > .cs-label { margin-bottom: 20px; }
.post__head { padding-bottom: clamp(40px, 5vw, 70px); }
/* Blog prose: headings in the panel voice */
.post .prose { padding-top: clamp(32px, 4vw, 60px); border-top: 1px solid var(--line); }
.post .prose h3 { font-weight: 400; letter-spacing: -0.03em; color: var(--fg); }
.post .prose > p:first-child { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.45; letter-spacing: -0.02em; color: var(--fg); }

/* Split title: two lines that slide apart and fade on scroll (same as "Selected work." on the Work page) */
/* Chromatic split on [data-chroma] headlines: --ca (set in motion.js from scroll speed) pushes red and cyan
   channels apart; alternate lines split the other way */
[data-chroma] { --ca: 0; }
[data-chroma] > span { --dir: 1; text-shadow: calc(var(--ca) * var(--dir) * -1px) calc(var(--ca) * .15px) 0 rgba(255, 0, 64, .85),
  calc(var(--ca) * var(--dir) * 1px) calc(var(--ca) * -.15px) 0 rgba(0, 224, 255, .85); }
[data-chroma] > span:nth-child(even) { --dir: -1; }
.split-title { margin: 0; font-weight: 500; font-size: clamp(48px, 7.5vw, 128px); line-height: .92; letter-spacing: -0.06em; }
.split-title__line { display: block; white-space: nowrap; }
.split-title__line--em { font-style: italic; font-weight: 400; color: var(--fg); }
.split-head > .cs-label { margin-bottom: clamp(16px, 3vw, 32px); }
.split-head__foot { margin-top: clamp(32px, 4vw, 60px); }
.split-head__foot .lede { margin: 0; max-width: 36ch; }
.split-head .ab-statement { margin-top: clamp(32px, 4vw, 60px); }

/* Category chips overlaid on card images (homepage + work page) */
.img-chips { position: absolute; z-index: 2; top: 0; right: 0; display: flex; gap: 1px; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.img-chips li { display: grid; place-items: center; height: clamp(34px, 2.8vw, 46px); padding: 0 1.1em; background: #fff; color: #000; font: 400 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.img-chips li:last-child { border-radius: 0 6px 0 0; }

/* Showcase: bento mosaic for logo and swag collections (front matter: showcase).
   Each item takes size: sm | wide | tall | lg | half (3x2) | halfwide (3x1) | full (whole row)
   and tone: light | charcoal | pink (white only for art with its own white panel). tight: true trims the padding (posters); roomy: true adds padding; grow: true widens a tile to 2 columns on tablet and phone to close a gap.
   Group layout: "even" shows equal 2:1 tiles, three across, last row centered; "photos" shows images at natural shape, five across.
   fill: true stretches a tile across the row in the 4-column (tablet) layout to close a gap. */
.showcase { padding-bottom: clamp(60px, 6vw, 100px); }
.showcase__head { padding-bottom: clamp(24px, 3vw, 40px); }
.showcase__head .cs-sec__tag { position: static; }
.showcase__grid { --cols: 6; --gap: clamp(8px, 1vw, 16px);
  list-style: none; margin: 0; padding: 0; container-type: inline-size;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-flow: dense; gap: var(--gap); }
@supports (width: 1cqi) { .showcase__grid { grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols)); } }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tile-bg); }
.tile figure { position: absolute; inset: 0; margin: 0; padding: 14%; }
.tile img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tile:hover img { transform: scale(1.06) rotate(-2deg); }
.tile figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; line-height: 1.3; color: var(--tile-ink); opacity: .7; }
.tile--wide { grid-column: span 2; }
.tile--wide figure { padding: 10% 9%; }
.tile--tall { grid-row: span 2; }
.tile--tall figure { padding: 16% 14%; }
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--lg figure { padding: 12%; }
.tile--half { grid-column: span 3; grid-row: span 2; }
.tile--half figure { padding: 9% 12%; }
.tile--halfwide { grid-column: span 3; }
.tile--halfwide figure { padding: 7% 12%; }
.tile--full { grid-column: 1 / -1; }
.tile--full figure { padding: 4% 14%; }
.showcase .tile--tight figure { padding: 6%; }
.showcase .tile--roomy figure { padding: 17% 30%; }
/* layout: even — equal tiles, three across, last row centered (size is ignored) */
.showcase__grid--even { display: flex; flex-wrap: wrap; justify-content: center; }
.showcase__grid--even .tile { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); aspect-ratio: 2; }
.showcase__grid--even .tile figure { padding: 10% 11%; }
@media (max-width: 1100px) { .showcase__grid--even .tile { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 600px)  { .showcase__grid--even .tile { flex-basis: 100%; } }
/* layout: photos — images at their natural shape, no tile background or padding */
.showcase__grid--photos { grid-template-columns: repeat(5, 1fr); grid-auto-rows: auto !important; }
.showcase__grid--photos .tile { background: none; }
.showcase__grid--photos .tile figure { position: static; padding: 0; }
.showcase__grid--photos .tile img { height: auto; object-fit: initial; }
.showcase__grid--photos .tile:hover img { transform: scale(1.03); }
@media (max-width: 1100px) { .showcase__grid--photos { grid-template-columns: repeat(2, 1fr); } }
/* layout: phones — mobile screenshots, four across */
.showcase__grid--phones { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto !important; }
.showcase__grid--phones .tile { background: none; }
.showcase__grid--phones .tile figure { position: static; padding: 0; }
.showcase__grid--phones .tile img { height: auto; object-fit: initial; border-radius: 18px; }
@media (max-width: 1100px) { .showcase__grid--phones { grid-template-columns: repeat(2, 1fr); } }
.tone--light    { --tile-bg: rgb(222,222,222); --tile-ink: #000; }
.tone--charcoal { --tile-bg: rgb(29,37,43); --tile-ink: #fff; }
.tone--white    { --tile-bg: #fff; --tile-ink: #000; }
.tone--pink     { --tile-bg: rgb(219,16,171); --tile-ink: #fff; }
.showcase.is-ready .tile { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 45ms); }
.showcase.is-ready .tile.is-in { opacity: 1; transform: none; }
@media (max-width: 1100px) { .showcase__grid { --cols: 4; } .tile--half, .tile--halfwide { grid-column: span 2; } .tile--halfwide figure { padding: 10% 9%; } .tile--fill { grid-column: span 4; } .tile--fill figure { padding: 3% 14%; } .tile--grow { grid-column: span 2; } }
@media (max-width: 600px)  { .showcase__grid { --cols: 2; } .tile--lg { grid-row: span 2; } .tile--fill { grid-column: span 2; } .tile--fill figure { padding: 10% 9%; } }

/* Brand guideline panels (panel: palette | type) */
.panel--palette, .panel--type { container-type: inline-size; }
.pal { display: grid; gap: clamp(12px, 1.6cqi, 24px); }
.pal__main { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(120px, 16cqi, 240px); padding: clamp(16px, 2cqi, 32px); background: var(--c); color: var(--on); border-radius: var(--radius) var(--radius) 0 0; }
.pal__name { font-size: clamp(20px, 2.6cqi, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.pal__spec { margin-top: 10px !important; font-family: var(--mono); font-size: clamp(11px, 1.1cqi, 15px); line-height: 1.6; opacity: .85; }
.pal__tints { display: grid; grid-template-columns: repeat(var(--n), 1fr); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.pal__tints span { min-width: 0; overflow: hidden; aspect-ratio: 1.6; background: var(--t); display: flex; align-items: flex-end; padding: 6px; font-family: var(--mono); font-size: clamp(8px, .8cqi, 11px); color: var(--on); }
.pal__tints span.is-light { color: #1d252c; }
.pal__tints span.is-dark { color: #fff; }
/* Steampunk type panel: fonts served from the site so they always load */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/roboto-latin.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("/assets/fonts/nunito-sans-latin.woff2") format("woff2"); }
.type { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4cqi, 72px); }
.type__face { border-left: 1px solid var(--ink); padding-left: clamp(16px, 2.4cqi, 40px); }
.type__role { font-family: var(--mono); font-size: clamp(11px, 1.1cqi, 15px); letter-spacing: .12em; text-transform: uppercase; color: var(--mid); }
.type__name { margin: 6px 0 14px !important; font-size: clamp(40px, 7cqi, 110px); line-height: 1; letter-spacing: -0.01em; }
.type__glyphs { font-size: clamp(15px, 1.8cqi, 26px); line-height: 1.45; word-break: break-word; }
.type__use { margin-top: 16px !important; font-size: clamp(14px, 1.4cqi, 19px); line-height: 1.5; max-width: 42ch; }
.type__sample { grid-column: 1 / -1; background: #1d252c; color: #fff; padding: clamp(20px, 3cqi, 48px); border-radius: var(--radius); }
.type__sample .t-tag { font-family: "Nunito Sans", sans-serif; letter-spacing: .12em; font-size: clamp(11px, 1.1cqi, 15px); }
.type__sample .t-title { font-family: "Roboto", sans-serif; font-size: clamp(28px, 4cqi, 56px); color: #da10ab; line-height: 1.15; margin: 8px 0 12px; }
.type__sample .t-body { font-family: "Nunito Sans", sans-serif; font-size: clamp(15px, 1.5cqi, 20px); line-height: 1.55; max-width: 60ch; opacity: .9; }
@container (max-width: 640px) { .type { grid-template-columns: 1fr; } .pal { grid-template-columns: 1fr !important; } .pal__main { min-height: 0; } .pal__tints span { font-size: 0; padding: 0; } }

/* Pilots slider (Innovations Hub): child case studies as horizontal cards */
.pilots { --card: min(78vw, 460px); }
.pilots__track { list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; display: flex; gap: clamp(16px, 2vw, 32px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.pilots__track::-webkit-scrollbar { display: none; }
.pilots__item { flex: 0 0 var(--card); scroll-snap-align: start; display: flex; }
.pilots__card { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 1.6vw, 24px); background: var(--row); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background .3s; }
.pilots__card:hover { background: rgba(255,255,255,.1); }
.pilots__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.pilots__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pilots__card:hover .pilots__img img { transform: scale(1.04); }
.pilots__meta { display: flex; justify-content: space-between; margin-top: 6px !important; font-size: 14px; color: var(--mid); }
.pilots__card h4 { font-size: clamp(22px, 2vw, 30px); }
.pilots__result { font-size: 16px; line-height: 1.5; color: var(--ink); opacity: .8; }
.pilots__card .panel__chip { align-self: flex-start; font-size: 11px; }
.pilots__go { margin-top: auto; padding-top: 10px; font-size: 14px; }
.pilots__card:hover .pilots__go { text-decoration: underline wavy; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-skip-ink: none; }
.pilots__controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.pilots__btn { width: 48px; aspect-ratio: 1; display: grid; place-items: center; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; font-size: 20px; cursor: pointer; transition: background .2s, opacity .2s; }
.pilots__btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.pilots__btn:disabled { opacity: .3; cursor: default; }
.pilots__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
