/* Base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { color: var(--ink); }

a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* Header */
.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark .dot { color: var(--brand); }
.wordmark:hover { color: var(--ink); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--text-body);
  text-decoration: none;
}
.site-nav a:hover { color: var(--brand-text); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand); }
.site-nav .nav-cta a {
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
}
.site-nav .nav-cta a:hover { background: var(--ink); color: #FFFFFF; }

/* Shared type */
.label {
  margin: 0;
  color: var(--brand-text);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.bar {
  display: block;
  width: 88px;
  height: 5px;
  border-radius: 3px;
  background: var(--brand);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button:hover { transform: translateY(-2px); }

.button-primary { background: var(--brand); color: var(--on-brand); }
.button-primary:hover { background: var(--ink); color: #FFFFFF; }

.button-secondary { border: 1.5px solid var(--ink); color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: #FFFFFF; }

/* Hero (Home) */
.hero {
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero .label { margin-bottom: 24px; }

.hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: flex-end;
}

.hero h1 {
  flex: 999 1 560px;
  min-width: 0;
  margin: 0;
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.portrait-frame {
  flex: 0 1 300px;
  width: 300px;
  max-width: 100%;
}

.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  object-fit: cover;
  object-position: center top;
}

.hero .bar { margin: 32px 0 28px; }

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
}

.lead {
  flex: 999 1 460px;
  max-width: 640px;
  margin: 0;
  color: var(--text-body);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.actions {
  flex: 1 1 280px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin: 0 0 96px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats li {
  padding: 24px 24px 24px 0;
}
.stats b {
  display: block;
  color: var(--ink);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stats b span { color: var(--brand); }
.stats li > span { color: var(--text-muted); font-size: 15px; }

/* Sections */
.section { padding-bottom: 104px; scroll-margin-top: 80px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-head h2 {
  margin: 10px 0 0;
  font-size: var(--fs-section);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.section-head p { max-width: 440px; margin: 0; color: var(--text-muted); }

/* Filter chips */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.filters button {
  min-height: var(--tap-min);
  padding: 0 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* Project grid: uniform cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.card[hidden] { display: none; }

.thumb {
  aspect-ratio: 16 / 10;
  background: var(--panel);
}
.thumb svg { width: 100%; height: 100%; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px 24px 24px;
}
.card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.card p { margin: 0; }
.card .summary { color: var(--text-body); font-size: 16px; }
.card .more {
  margin-top: auto;
  padding-top: 8px;
  color: var(--brand-text);
  font-size: 15px;
  font-weight: 700;
}

/* Closing call to action */
.cta { border-top: 1px solid var(--border); }

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 96px;
  padding-bottom: 96px;
}

.cta h2 {
  flex: 999 1 520px;
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.cta h2 .accent { color: var(--brand); }

.cta-links {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 18px;
}
.cta-links .link-plain {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--ink);
}

/* Footer */
.site-footer {
  padding-top: 24px;
  padding-bottom: 32px;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer p { margin: 0; }

/* Inner pages */
.page-head { padding-top: 80px; padding-bottom: 56px; }
.page-head h1 {
  margin: 14px 0 0;
  max-width: 980px;
  font-size: var(--fs-page);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.page-head .bar { margin: 28px 0 24px; }
.page-head .intro {
  max-width: 720px;
  margin: 0;
  color: var(--text-body);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.breadcrumb { margin: 0; font-size: 15px; font-weight: 600; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-text); }

/* Case study */
.cs-hero {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--panel);
  margin-bottom: 40px;
}
.cs-hero svg { width: 100%; height: 100%; }
@media (max-width: 600px) { .cs-hero { aspect-ratio: 16 / 10; } }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  margin: 0 0 72px;
  padding: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.facts > div { padding: 22px 24px; background: var(--surface); }
.facts dt { margin-bottom: 8px; }
.facts dd { margin: 0; color: var(--ink); font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.cs-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-bottom: 96px;
}
@media (min-width: 900px) {
  .cs-body { grid-template-columns: 220px 1fr; gap: 64px; }
}

.cs-toc { position: sticky; top: 96px; align-self: start; display: none; }
@media (min-width: 900px) { .cs-toc { display: block; } }
.cs-toc ol { margin: 14px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--border); }
.cs-toc a { display: flex; align-items: center; min-height: 44px; padding-left: 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.cs-toc a:hover { color: var(--ink); border-left-color: var(--brand); }

.cs-section { max-width: 760px; scroll-margin-top: 96px; }
.cs-section + .cs-section { margin-top: 56px; }
.cs-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.cs-section h2 .n { color: var(--brand); font-size: 0.6em; letter-spacing: 0; }
.cs-section p { margin: 0 0 16px; }
.cs-section ul.points { margin: 0 0 16px; padding: 0; list-style: none; }
.cs-section ul.points li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--border); }
.cs-section ul.points li::before { content: ""; position: absolute; left: 0; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.cs-section ol.steps { counter-reset: step; margin: 0 0 16px; padding: 0; list-style: none; }
.cs-section ol.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--border); }
.cs-section ol.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px; color: var(--brand-text); font-weight: 800; }

.callout {
  margin: 8px 0 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--ink);
}
.callout b { display: block; margin-bottom: 4px; }

.media-slot {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 8px 0 0;
  padding: 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-media);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
}

.note { color: var(--text-muted); font-size: 15px; }

.next-up {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Lists on inner pages */
.two-col { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }

.panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.panel h3 a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.panel h3 { margin: 10px 0 12px; overflow-wrap: anywhere; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.panel p { margin: 0 0 12px; }

.refs { margin: 0; padding: 0; list-style: none; }
.refs li { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.refs li:last-child { border-bottom: 0; }

/* Small screens */
@media (max-width: 480px) {
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .page-head { padding-top: 48px; }
  .card-body { padding: 18px 20px 20px; }
  .cta-inner { padding-top: 64px; padding-bottom: 64px; }
  .panel { padding: 22px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .card { transition: none; }
  .button:hover, .card:hover { transform: none; }
}

/* Video players */
.video { margin: 0; }
.video video {
  display: block;
  width: 100%;
  border-radius: var(--radius-card);
  background: var(--panel);
}
.video figcaption { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.video figcaption b { display: block; color: var(--ink); font-size: 16px; }
.video-tall { max-width: 440px; }
.cs-section .video { margin: 8px 0 0; }

.videos { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) {
  .videos { grid-template-columns: 1fr 1fr; align-items: start; }
  .videos .video-tall { grid-row: span 2; }
}

/* Home reel: falcon opening beside the promo */
.reel { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .reel { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.reel-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* Image galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.shot {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.shot:hover { border-color: var(--border-strong); box-shadow: var(--shadow-hover); color: var(--ink); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #F0EFED; }
.shot span { padding: 10px 14px 12px; }
.cs-section .gallery { margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }

h2.sub { margin: 10px 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }

/* ================================================================
   Studio-clean layer (modeled on devlinpeck.com)
   ================================================================ */
body { font-weight: 400; }
h1, h2, h3 { font-weight: 600; }

/* Header */
.site-header-bar { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--border); }
.wordmark { font-weight: 600; font-size: 21px; }
.wordmark .dot { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav ul { font-weight: 500; }
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--brand-text); }
.site-nav a[aria-current="page"] { color: var(--brand-text); box-shadow: inset 0 -2px 0 var(--brand); }
.site-nav .nav-cta a { padding: 0 18px; border-radius: 6px; background: var(--grad); color: #FFFFFF; box-shadow: 0 6px 16px rgba(0, 105, 217, 0.25); }
.site-nav .nav-cta a:hover { background: var(--grad-hover); color: #FFFFFF; }

/* Labels, links, bar */
.label { color: var(--brand-text); font-weight: 600; }
.bar { width: 88px; height: 4px; border-radius: 2px; background: var(--grad); }
:focus-visible { outline-color: var(--brand); }

/* Buttons */
.button { border-radius: 6px; font-weight: 500; min-height: 50px; }
.button:hover { transform: none; }
.button-primary { background: var(--grad); color: #FFFFFF; box-shadow: 0 8px 20px rgba(0, 105, 217, 0.22); }
.button-primary:hover { background: var(--grad-hover); color: #FFFFFF; }
.button-secondary { border: 1.5px solid var(--ink); color: var(--ink); background: #FFFFFF; }
.button-secondary:hover { background: var(--ink); color: #FFFFFF; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 0; }
.hero h1 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.hero .label { margin-bottom: 16px; }
.portrait { border-radius: 14px; }
.hero .bar { margin: 64px 0 0; }
.hero-bottom { margin-top: 28px; padding-bottom: 72px; }
.lead { color: var(--text-body); }

/* Section rhythm: white / pale blue-grey alternate */
.alt { background: var(--alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section { padding-top: 80px; padding-bottom: 80px; }
.section-head h2 { font-weight: 600; letter-spacing: -0.01em; }
.section-head p { color: var(--text-body); }

/* Dark numbers section with dot texture */
.dark-dots {
  background-color: var(--dark);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.1px, transparent 1.3px);
  background-size: 18px 18px;
  color: var(--on-dark-muted);
}
.dark-dots h2 { color: #FFFFFF; }
.dark-dots .label { color: var(--stat-blue); }
.dark-dots .section-head p { color: var(--on-dark-muted); }
.stats { margin: 0; border: 0; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.stats li { padding: 26px 24px; border-radius: var(--radius-card); background: var(--dark-card); border: 1px solid var(--dark-border); }
.stats b { color: var(--stat-blue); font-weight: 600; font-size: clamp(32px, 3.4vw, 44px); }
.stats li:nth-child(even) b { color: var(--stat-violet); }
.stats b span { color: inherit; }
.stats li > span { color: var(--on-dark-muted); }

/* Cards */
.grid { gap: 20px; }
.card { border-radius: var(--radius-card); border: 1px solid var(--border); }
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-hover); }
.thumb { background: var(--dark); }
.card-body { gap: 8px; }
.card .label {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--soft);
  font-size: 11px;
}
.card h3 { font-weight: 600; font-size: 20px; letter-spacing: 0; }
.card .summary { color: var(--text-body); font-size: 15.5px; }
.card .more { color: var(--brand-text); font-weight: 600; font-size: 15px; }

/* Filters */
.filters button { border-radius: 6px; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #FFFFFF; }

/* Inner page heads: white with gradient bar */
.page-head { padding-top: 72px; padding-bottom: 40px; }
.page-head h1 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.breadcrumb a { color: var(--text-muted); }

/* Case-study bits */
.facts { border-radius: var(--radius-card); }
.chips li { border-radius: 4px; background: var(--soft); color: var(--brand-text); font-weight: 500; }
.cs-section h2 { font-weight: 600; }
.cs-section h2 .n { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.cs-section ul.points li::before { background: var(--grad); }
.cs-section ol.steps li::before { color: var(--brand-text); }
.callout { background: var(--soft); border-radius: 10px; }
.panel { border-radius: var(--radius-card); }
.cs-toc a:hover { border-left-color: var(--brand); color: var(--ink); }

/* Closing CTA: soft blue band like a newsletter block; dark footer */
.cta { background: var(--soft); border-top: 1px solid var(--border); }
.cta h2 { font-weight: 600; letter-spacing: -0.02em; font-size: clamp(32px, 4vw, 48px); }
.cta h2 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-links .link-plain { color: var(--brand-text); }
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 40px 0 44px; max-width: none; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: #FFFFFF; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ================================================================
   3D motion headers
   ================================================================ */
.hero3d-band {
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
  background-image:
    radial-gradient(circle at 78% 40%, rgba(109, 74, 238, 0.28), transparent 45%),
    radial-gradient(circle at 92% 90%, rgba(0, 105, 217, 0.25), transparent 40%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1.1px, transparent 1.3px);
  background-size: auto, auto, 18px 18px;
  color: var(--on-dark-muted);
}
.hero3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero3d-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 24, 29, 0.92) 0%, rgba(22, 24, 29, 0.7) 38%, rgba(22, 24, 29, 0) 68%);
}
@media (max-width: 760px) {
  .hero3d-band::after { background: linear-gradient(180deg, rgba(22, 24, 29, 0.55), rgba(22, 24, 29, 0.85)); }
}
.hero3d-band > .container, .hero3d-band > .hero { position: relative; z-index: 1; }
.hero3d-band h1, .hero3d-band h2 { color: #FFFFFF; }
.hero3d-band .label { color: var(--stat-blue); }
.hero3d-band .intro, .hero3d-band .lead { color: #D5DCE6; }
.hero3d-band .breadcrumb a { color: var(--on-dark-muted); }
.hero3d-band .breadcrumb a:hover { color: #FFFFFF; }
.hero3d-band :focus-visible { outline-color: #FFFFFF; }
.hero3d-band .button-secondary { background: transparent; border-color: rgba(255, 255, 255, 0.8); color: #FFFFFF; }
.hero3d-band .button-secondary:hover { background: #FFFFFF; color: var(--ink); }

.hero3d-band .page-head { min-height: 440px; padding-top: 96px; padding-bottom: 96px; margin-bottom: 0; }
.hero3d-band .page-head h1 { max-width: 640px; }
.hero3d-band .page-head .intro { max-width: 560px; }
.hero3d-band + .container .cs-hero, .hero3d-band + .container > .section:first-child { margin-top: 56px; }
.hero3d-band + .container .cs-hero { margin-top: 56px; }

.home-band .hero { padding-top: 96px; }
.home-band .hero h1 { max-width: 720px; }
.home-band .portrait { border: 4px solid rgba(255, 255, 255, 0.9); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.home-band .hero-top { position: relative; }

/* Home studio panel: 3D cartoon-making scene */
.reel-3d {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  text-decoration: none;
}
.reel-3d.hero3d-band::after { background: linear-gradient(0deg, rgba(22, 24, 29, 0.92) 0%, rgba(22, 24, 29, 0.35) 45%, rgba(22, 24, 29, 0) 70%); }
.reel-3d-label {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: grid;
  gap: 4px;
  color: #D5DCE6;
  font-size: 15px;
}
.reel-3d-label b { color: #FFFFFF; font-size: 22px; font-weight: 600; }
.reel-3d:hover .reel-3d-label b { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .reel-3d { aspect-ratio: 4 / 3; } }

/* ================================================================
   Readable type scale (Jost has a small x-height, so sizes run large)
   ================================================================ */
body { font-size: var(--fs-body); }
p, li, dd { max-width: 70ch; }
.site-nav ul { font-size: 17px; }
.wordmark { font-size: 23px; }
.label { font-size: var(--fs-label); }
.card .label { font-size: 14px; padding: 4px 10px; }
.card h3 { font-size: 23px; line-height: 1.25; }
.card .summary { font-size: 17px; line-height: 1.55; }
.card .more { font-size: 17px; }
.card-body { padding: 24px 26px 26px; gap: 10px; }
.section-label { font-size: 15px; }
.section-head p { font-size: 19px; }
.filters button { font-size: 17px; padding: 0 20px; }
.lead, .page-head .intro { font-size: var(--fs-lead); line-height: 1.5; }
.hero h1, .page-head h1 { line-height: 1.06; }
.breadcrumb { font-size: 17px; }
.facts dd { font-size: 18px; }
.chips li { font-size: 16px; padding: 5px 12px; }
.cs-toc a { font-size: 17px; }
.cs-section h2 { font-size: clamp(28px, 3.2vw, 38px); }
.cs-section p, .cs-section li { font-size: 19px; }
.note { font-size: 17px; }
.video figcaption { font-size: 17px; }
.video figcaption b { font-size: 19px; }
.shot span { font-size: 16px; }
.panel h3 { font-size: 25px; }
.refs li { font-size: 18px; }
h2.sub { font-size: 30px; }
.reel-3d-label { font-size: 17px; }
.reel-3d-label b { font-size: 26px; }
.cta h2 { font-size: clamp(34px, 4.4vw, 54px); }
.cta-links { font-size: 19px; }
.site-footer { font-size: 17px; }
.media-slot { font-size: 17px; }
@media (max-width: 480px) {
  body { font-size: 18px; }
  .card h3 { font-size: 22px; }
  .lead, .page-head .intro { font-size: 20px; }
}

/* ================================================================
   Peck proportions at the larger reading size
   ================================================================ */
.hero h1, .page-head h1 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
.lead, .page-head .intro { font-size: var(--fs-lead); line-height: 1.65; }
.section-head h2, h2.sub, .cs-section h2 { font-weight: 600; letter-spacing: -0.01em; }
.section-head h2 { font-size: var(--fs-section); }
.card h3, .panel h3 { font-size: 23px; font-weight: 600; }
.label { font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; }
.card .label { font-size: 13px; letter-spacing: 0.06em; }
.site-nav ul { font-size: 17px; font-weight: 500; }
.wordmark { font-size: 24px; font-weight: 700; letter-spacing: -0.012em; }
.button { font-size: 18px; font-weight: 600; letter-spacing: 0.01em; min-height: 56px; padding: 0 28px; border-radius: 6px; }
.site-nav .nav-cta a { font-size: 17px; font-weight: 600; padding: 0 20px; min-height: 48px; }
.cta h2 { font-weight: 700; }
@media (max-width: 480px) {
  .hero h1, .page-head h1 { font-size: 40px; }
  .button { font-size: 17px; padding: 0 22px; }
}

/* Photo figure inside case studies */
.photo { margin: 8px 0 20px; }
.photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-media); }
.photo figcaption { margin-top: 10px; color: var(--text-muted); font-size: 17px; }

/* Teaching: current-role panel over the Doha skyline */
.panel-photo {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 0;
  color: #E6EBF2;
  background:
    linear-gradient(90deg, rgba(10, 12, 18, 0.92) 0%, rgba(10, 12, 18, 0.78) 55%, rgba(10, 12, 18, 0.35) 100%),
    url("/media/doha-skyline.webp") center 40% / cover;
}
.panel-photo h3 { color: #FFFFFF; }
.panel-photo .label { color: var(--stat-blue); }
.panel-photo p { color: #E6EBF2; max-width: 62ch; }
.cs-hero img { object-position: center 45%; }
