/* Lofts Studio 2026: editorial motion system */

:root {
  --lofts-black: #090909;
  --lofts-white: #f7f7f3;
  --lofts-paper: #efefeb;
  --lofts-panel: #e5e5df;
  --lofts-lime: #dfff48;
  --lofts-blue: #3348ff;
  --lofts-sky: #a9ddff;
  --lofts-coral: #ff765f;
  --bg: var(--lofts-white);
  --bg-soft: var(--lofts-paper);
  --surface: #ffffff;
  --ink: var(--lofts-black);
  --ink-soft: #252525;
  --muted: #62625d;
  --muted-2: #8a8a84;
  --line: #d4d4ce;
  --line-soft: #e4e4de;
  --accent: #e25036;
  --accent-deep: #b83d28;
  --accent-soft: #ffe4dd;
  --r-sm: 2px;
  --r-md: 5px;
  --r-lg: 7px;
  --r-xl: 8px;
  --shadow-soft: 0 10px 32px -24px rgba(0, 0, 0, .34);
  --shadow-card: 0 24px 70px -46px rgba(0, 0, 0, .45);
  --shadow-pop: 0 30px 90px -50px rgba(0, 0, 0, .55);
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-soft: #131313;
  --surface: #181818;
  --ink: #f7f7f3;
  --ink-soft: #deded8;
  --muted: #a1a19a;
  --muted-2: #74746e;
  --line: #30302e;
  --line-soft: #252523;
  --accent: #ff765f;
  --accent-deep: #ff927e;
  --accent-soft: #2c1814;
}

html {
  background: var(--bg);
  overflow-x: clip;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  overflow-x: clip;
  font-family: var(--font-sans);
  font-synthesis:weight style;
  font-optical-sizing: auto;
  color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h-display,
.h-1,
.h-2,
.h-3,
.bignum,
.nav-logo,
.footer-logo {
  letter-spacing: 0;
}

p,
li,
.lead,
.prose {
  letter-spacing: 0;
}

.container {
  width: 100%;
  max-width: 1540px;
  padding-inline: clamp(1.25rem, 2.4vw, 2.25rem);
}

.paper,
.section,
.section-sm,
.section-lg {
  position: relative;
}

.section {
  padding-block: clamp(5.5rem, 9vw, 9rem);
}

.section-sm {
  padding-block: clamp(4rem, 6vw, 6.5rem);
}

.section-lg {
  padding-block: clamp(6.5rem, 11vw, 11rem);
}

.h-display {
  font-weight: 500;
  line-height: .94;
  letter-spacing: 0;
}

.h-1 {
  font-size: clamp(2.8rem, 5.7vw, 6.4rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: 0;
}

.h-2 {
  font-size: clamp(1.75rem, 3.15vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.48;
}

.italic-serif {
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 450;
  letter-spacing: 0;
}

.eyebrow {
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: 0;
}

.eyebrow::before {
  width: 1.8rem;
  background: currentColor;
}

.btn,
.btn-primary,
.btn-audit,
button,
input,
select,
textarea {
  border-radius: var(--r-md);
}

.btn,
.btn-primary,
.btn-audit {
  min-height: 46px;
  padding: .8rem 1.15rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.btn-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  border-color: var(--lofts-blue);
  background: var(--lofts-blue);
  color: #fff;
}

.btn-link {
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Floating studio navigation */
.nav-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.nav-bar.scrolled,
html[data-theme="dark"] .nav-bar,
html[data-theme="dark"] .nav-bar.scrolled {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.nav-inner {
  width: 100%;
  max-width: none;
  height: 76px;
  margin: 0;
  padding: 14px clamp(1.25rem, 2.4vw, 2.25rem);
  gap: .45rem;
  pointer-events: none;
}

.nav-inner > * {
  pointer-events: auto;
}

@media (max-width: 880px) {
  .nav-bar,
  .nav-bar.scrolled {
    height: 76px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(150%) blur(18px);
    -webkit-backdrop-filter: saturate(150%) blur(18px);
  }

  html[data-theme="dark"] .nav-bar,
  html[data-theme="dark"] .nav-bar.scrolled {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-bottom-color: color-mix(in srgb, var(--line) 72%, transparent);
  }
}

.nav-logo {
  align-self: center;
  margin-right: auto;
  padding: 0 0 2px;
  font-family: var(--font-logo);
  font-size: 1.32rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.nav-logo .logo-serif {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.nav-logo .logo-sans {
  display: inline-block;
  margin-left: .48rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .28em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .32em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(-.25em);
}

.nav-logo .logo-dot {
  display: none;
}

.nav-logo .dot {
  display: inline-block;
  margin-left: .42rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: .5rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .42em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(-1px);
}

.nav-logo .dot::after {
  content: none;
}

.mnav-logo {
  font-family: var(--font-logo);
  font-style: italic;
  letter-spacing: 0;
}

.mnav-logo span {
  font-family: var(--font-sans);
  font-style: normal;
}

.footer-logo-italic {
  font-family: var(--font-logo);
}

.nav-links,
.nav-actions,
.theme-toggle {
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 14px 36px -28px rgba(0, 0, 0, .55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-links {
  height: 48px;
  margin-left: auto;
  padding: 3px;
  gap: 0;
  border-radius: var(--r-lg);
}

.nav-link {
  min-height: 40px;
  padding: 0 .7rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}

.nav-actions {
  height: 48px;
  padding: 3px;
  gap: 3px;
  border-radius: var(--r-lg);
}

.nav-actions .btn {
  min-height: 40px;
  padding: .6rem .85rem;
  border: 0;
  border-radius: 4px;
}

.nav-actions .btn-audit {
  background: transparent;
  color: var(--ink);
}

.nav-actions .btn-audit:hover {
  background: var(--lofts-lime);
  color: var(--lofts-black);
}

.nav-actions .btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.theme-toggle {
  height: 48px;
  padding: 3px;
  border-radius: var(--r-lg);
}

.theme-opt {
  width: 38px;
  height: 40px;
  border-radius: 4px;
}

.scroll-progress {
  display: none;
}

.mega {
  top: calc(100% + .7rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 30px 80px -42px rgba(0, 0, 0, .58);
}

/* Shared editorial hero treatment */
body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type {
  min-height: min(76svh, 840px);
  padding: clamp(9rem, 14vw, 12.5rem) 0 clamp(4.5rem, 7vw, 7rem) !important;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: flex-end;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .h-display {
  max-width: 13ch;
  font-size: clamp(4rem, 9.2vw, 9.2rem);
  line-height: .88;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .lead {
  max-width: 58ch;
  margin-top: clamp(2rem, 4vw, 4rem) !important;
}

/* Homepage: work is the hero */
.home-page {
  padding-top: 0;
}

.home-page .hero-paper {
  min-height: auto;
  padding: 0 !important;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: visible;
}

.home-page .hero-paper > .container {
  max-width: none;
  padding-inline: clamp(1.25rem, 2.4vw, 2.25rem);
}

.home-page .hero-grid {
  position: relative;
  display: block;
  min-height: 0;
}

.home-page .hero-scroll-track {
  position: relative;
  height: 184svh;
  min-height: 1180px;
}

.home-page .hero-scroll-scene {
  --hero-copy-opacity: 1;
  --hero-copy-y: 0px;
  --hero-reel-left: 64%;
  --hero-reel-x: 0px;
  --hero-reel-scale: 1;
  --hero-reel-y: 0px;
  --hero-detail-opacity: 1;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(720px, 100svh);
  min-height: 720px;
  height: 100svh;
  overflow: clip;
  isolation: isolate;
}

.home-page .hero-main {
  position: relative;
  z-index: 4;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .62fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(2rem, 6vw, 7rem);
  align-self: end;
  padding: 8rem 0 2.25rem;
  opacity: var(--hero-copy-opacity);
  transform: translate3d(0, var(--hero-copy-y), 0);
  will-change: opacity, transform;
}

.home-page .hero-scroll-scene.hero-copy-away .hero-main {
  pointer-events: none;
}

.home-page .hero-main > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin-bottom: 1.25rem;
}

.home-page .hero-eyebrow-wide,
.home-page .hero-eyebrow-compact {
  display: inline;
}

.home-page .hero-eyebrow-compact {
  display: none;
}

.home-page .hero-title {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: end;
  max-width: none;
  margin: 0 !important;
  font-size: 5.75rem;
  font-weight: 500;
  line-height: .9;
  letter-spacing: 0;
  text-wrap: initial;
  overflow-wrap: normal;
}

.home-page .hero-title-primary,
.home-page .hero-title-wide,
.home-page .hero-title-compact {
  display: block;
}

.home-page .hero-title-compact {
  display: none;
}

.home-page .hero-title .hero-title-accent {
  display: block;
  max-width: 22ch;
  margin-top: .22em;
  font-size: .42em;
  line-height: 1.02;
}

.home-page .hero-title-accent > span {
  display: inline;
}

.home-page .hero-lead {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  max-width: 44ch !important;
  margin: 0 !important;
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.2vw, 1.2rem);
  line-height: 1.45;
}

.home-page .hero-actions {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  margin-top: 1.4rem;
}

.home-page .hero-sidecar {
  position: absolute;
  z-index: 2;
  top: clamp(8.5rem, 17vh, 11rem);
  left: var(--hero-reel-left);
  display: block;
  width: min(34vw, 460px);
  transform: translate3d(calc(-50% + var(--hero-reel-x)), var(--hero-reel-y), 0) scale(var(--hero-reel-scale));
  transform-origin: center center;
  will-change: left, transform;
}

@media (min-width: 981px) {
  .home-page .hero-main {
    padding-bottom: 6rem;
  }

  .home-page .hero-lead,
  .home-page .hero-actions {
    transform: translateY(1.25rem);
  }
}

.home-page .stack-scene {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  perspective: 1500px;
}

.home-page .stack-card-inner {
  border-radius: var(--r-lg);
  border-color: color-mix(in srgb, var(--ink) 24%, transparent);
  background: var(--surface);
  box-shadow: 0 36px 80px -48px rgba(0, 0, 0, .68);
}

.home-page .stack-card-chrome {
  height: 34px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.home-page .scc-dot {
  width: 7px;
  height: 7px;
}

.home-page .scc-url {
  background: var(--bg-soft);
  color: var(--muted);
}

.home-page .stack-card-foot {
  height: 42px;
  padding: 0 12px;
  background: var(--lofts-black);
  color: #fff;
}

.home-page .stack-card-img {
  height: calc(100% - 76px);
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.08) contrast(1.02);
}

.home-page .stack-badge {
  border-radius: var(--r-md);
  background: var(--lofts-lime);
  color: var(--lofts-black);
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .55);
}

.home-page .stack-badge--br {
  background: var(--lofts-sky);
}

.home-page .hero-sidecar-availability {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem !important;
  padding-top: .9rem !important;
  opacity: var(--hero-detail-opacity);
  transition: opacity .2s linear;
}

.home-page .hero-sidecar-availability-label,
.home-page .hero-sidecar-availability-value,
.home-page .hero-sidecar-availability-link {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

.home-page .hero-sidecar-availability-value {
  color: var(--muted);
}

.home-page .hero-proof-panel {
  grid-row: 2;
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7vw, 8rem);
  margin: 0;
  padding: clamp(4rem, 7vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.home-page .hero-proof-copy {
  align-content: space-between;
}

.home-page .founder-strip {
  display: grid;
  gap: .55rem;
}

.home-page .founder-pill {
  width: 100%;
  min-width: 0;
  padding: .8rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: none;
}

.home-page .trust-badges {
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.home-page .trust-badge {
  padding: .7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-page .hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  border: 0;
}

.home-page .hero-proof-strip .hero-stat {
  min-height: 13rem;
  justify-content: space-between;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--surface);
}

.home-page .hero-proof-strip .hero-stat:first-child {
  padding-left: 1.25rem;
  background: var(--lofts-blue);
  color: #fff;
}

.home-page .hero-proof-strip .hero-stat:nth-child(2) {
  background: var(--lofts-lime);
  color: var(--lofts-black);
}

.home-page .hero-proof-strip .hero-stat:nth-child(3) {
  background: var(--lofts-sky);
  color: var(--lofts-black);
}

.home-page .hero-proof-strip .hero-stat:last-child {
  border-right: 1px solid var(--line);
  background: var(--lofts-coral);
  color: var(--lofts-black);
}

.home-page .hero-proof-strip .bignum,
.home-page .hero-proof-strip .bignum-suffix,
.home-page .hero-proof-strip .hero-stat-lbl {
  color: inherit;
}

.home-page .hero-proof-strip .bignum {
  font-size: clamp(2.3rem, 4vw, 4.7rem);
  line-height: .9;
}

.home-page .hero-proof-strip .bignum-word {
  font-size: clamp(1.55rem, 2.6vw, 3rem) !important;
  line-height: .94;
}

.home-page .hero-proof-strip .hero-stat-lbl {
  max-width: 15ch;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: 0;
}

/* Stack rail */
.home-page .stack-band {
  overflow: hidden;
  padding: 1.25rem 0;
  border: 0;
  background: var(--lofts-black);
  color: #fff;
}

.home-page .stack-band .container {
  max-width: none;
  padding: 0;
}

.home-page .stack-head,
.home-page .builton-cred {
  display: none;
}

.home-page .stack-band .marq {
  border: 0;
}

.home-page .stack-band .marq-track {
  gap: 0;
  animation-duration: 34s;
}

.home-page .stack-band .chip {
  gap: .75rem;
  padding: 0 1.5rem;
  border: 0;
  border-right: 1px solid #373737;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 4.2vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-page .stack-band .chip-dot {
  width: .18em;
  height: .18em;
  background: var(--lofts-lime);
}

/* Editorial statement */
.home-page .essay-section {
  background: var(--lofts-black);
  color: #fff;
}

.home-page .essay-section .essay-grid {
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 8vw, 10rem);
}

.home-page .essay-section .essay-title,
.home-page .essay-section .essay-title-sub,
.home-page .essay-section .essay-side-note,
.home-page .essay-section .essay-meta-val,
.home-page .essay-section .essay-side-stat-num,
.home-page .essay-section .essay-pull-text,
.home-page .essay-section .essay-close,
.home-page .essay-section .essay-foot-link {
  color: #fff;
}

.home-page .essay-section .essay-lede em,
.home-page .essay-section .essay-para em {
  color: #fff;
}

.home-page .essay-title {
  max-width: 11ch;
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 7vw, 8.5rem);
  line-height: .88;
  letter-spacing: 0;
}

.home-page .essay-title-sub {
  display: block;
  font-size: .58em;
  line-height: .96;
}

.home-page .essay-lede,
.home-page .essay-para {
  max-width: 60ch;
  color: #c9c9c4;
}

.home-page .essay-pull {
  border-color: #444;
  background: #171717;
}

.home-page .essay-meta,
.home-page .essay-divider,
.home-page .essay-meta-row,
.home-page .essay-side-stats {
  border-color: #373737;
}

/* Homepage work wall */
.home-portfolio-stage {
  overflow: clip;
  background: var(--bg) !important;
  color: var(--ink) !important;
}

.home-portfolio-stage::before {
  content: "SELECTED WORK";
  position: absolute;
  top: 1.25rem;
  left: 0;
  z-index: 0;
  width: max-content;
  color: color-mix(in srgb, var(--ink) 7%, transparent);
  font-family: var(--font-sans);
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 600;
  line-height: .8;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}

.home-portfolio-stage .container {
  position: relative;
  z-index: 1;
}

.home-portfolio-stage .home-portfolio-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
  padding-top: clamp(4rem, 7vw, 8rem);
}

.home-portfolio-stage .home-portfolio-copy {
  max-width: 980px;
}

.home-portfolio-stage .h-1 {
  max-width: 12ch;
  margin-top: 1.25rem;
}

.home-portfolio-stage .home-portfolio-lead {
  max-width: 48ch;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.home-portfolio-stage .pf-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 5rem) clamp(1rem, 1.8vw, 2rem);
}

.home-portfolio-stage .pf-card,
.home-portfolio-stage .pf-card--featured {
  grid-column: span 4;
  display: block;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.home-portfolio-stage .pf-card--featured {
  grid-column: span 6;
}

.home-portfolio-stage .pf-card:nth-child(5n + 2),
.home-portfolio-stage .pf-card--featured:nth-child(5n + 2) {
  grid-column: span 3;
}

.home-portfolio-stage .pf-card:nth-child(5n + 3),
.home-portfolio-stage .pf-card--featured:nth-child(5n + 3) {
  grid-column: span 3;
}

.home-portfolio-stage .pf-card:nth-child(5n + 4),
.home-portfolio-stage .pf-card--featured:nth-child(5n + 4) {
  grid-column: span 5;
}

.home-portfolio-stage .pf-card:nth-child(5n),
.home-portfolio-stage .pf-card--featured:nth-child(5n) {
  grid-column: span 7;
}

.home-portfolio-stage .pf-card-img,
.home-portfolio-stage .pf-card--featured .pf-card-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--lofts-panel);
  box-shadow: none;
  transform: none;
}

.home-portfolio-stage .pf-card--featured .pf-card-img {
  aspect-ratio: 16 / 10;
}

.home-portfolio-stage .pf-card:nth-child(4n + 2) .pf-card-img {
  aspect-ratio: 1 / 1;
  background: var(--lofts-lime);
}

.home-portfolio-stage .pf-card:nth-child(4n + 3) .pf-card-img {
  aspect-ratio: 4 / 5;
  background: var(--lofts-sky);
}

.home-portfolio-stage .pf-card:nth-child(4n) .pf-card-img {
  aspect-ratio: 16 / 11;
  background: var(--lofts-coral);
}

.home-portfolio-stage .pf-card-img::before,
.home-portfolio-stage .pf-card-img::after,
.home-portfolio-stage .pf-card--featured .pf-card-img::before,
.home-portfolio-stage .pf-card--featured .pf-card-img::after {
  display: none;
}

.home-portfolio-stage .pf-card-img img,
.home-portfolio-stage .pf-card--featured .pf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: none;
  transform: translate3d(0, var(--lofts-media-y, 0px), 0) scale(var(--lofts-media-scale, 1.001));
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
  will-change: transform;
}

.home-portfolio-stage .pf-card:hover .pf-card-img img,
.home-portfolio-stage .pf-card--featured:hover .pf-card-img img {
  --lofts-media-scale: 1.045;
  filter: saturate(1.08);
}

.home-portfolio-stage .pf-card-num {
  top: .8rem;
  left: .8rem;
  z-index: 2;
  min-width: 2.5rem;
  min-height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-md);
  background: var(--lofts-black);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: 0;
}

.home-portfolio-stage .pf-card-body,
.home-portfolio-stage .pf-card--featured .pf-card-body {
  display: grid;
  gap: .55rem;
  padding: 1rem 0 0;
  background: transparent;
}

.home-portfolio-stage .pf-card-tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-portfolio-stage .pf-card-name,
.home-portfolio-stage .pf-card--featured .pf-card-name {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.1vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.home-portfolio-stage .pf-card-desc,
.home-portfolio-stage .pf-card--featured .pf-card-desc {
  max-width: 42ch;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: .9rem;
  line-height: 1.5;
}

.home-portfolio-stage .pf-card-foot {
  margin-top: .4rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
}

.home-portfolio-stage .pf-card-metric,
.home-portfolio-stage .pf-card-link {
  color: var(--ink);
}

/* Portfolio archive */
.portfolio-page .pf-filter-bar {
  top: 72px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: color-mix(in srgb, var(--bg) 92%, transparent) !important;
}

.portfolio-page .filter-btn {
  min-height: 38px;
  padding: .55rem .8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portfolio-page .filter-btn.active,
.portfolio-page .filter-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.portfolio-page .work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 6rem) clamp(1rem, 2vw, 2rem);
}

.portfolio-page .work-card,
.portfolio-page .work-card-featured {
  grid-column: span 4;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-page .work-card:nth-child(6n + 1),
.portfolio-page .work-card:nth-child(6n + 5) {
  grid-column: span 6;
}

.portfolio-page .work-card-img-link {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--lofts-panel);
}

.portfolio-page .work-card-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
}

.portfolio-page .work-card:nth-child(4n + 2) .work-card-img {
  aspect-ratio: 1 / 1;
}

.portfolio-page .work-card:nth-child(4n + 3) .work-card-img {
  aspect-ratio: 4 / 5;
}

.portfolio-page .work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: translate3d(0, var(--lofts-media-y, 0px), 0) scale(var(--lofts-media-scale, 1.001));
  transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
  will-change: transform;
}

.portfolio-page .work-card:hover .work-card-img img {
  --lofts-media-scale: 1.045;
  filter: saturate(1.08);
}

.portfolio-page .work-card-badge {
  top: .75rem;
  left: .75rem;
  border-radius: 4px;
  background: var(--lofts-black);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portfolio-page .work-card-body {
  padding: 1rem 0 0;
}

.portfolio-page .work-card-meta,
.portfolio-page .work-card-actions,
.portfolio-page .work-card-cs,
.portfolio-page .work-card-live {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portfolio-page .work-card-name {
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  letter-spacing: 0;
}

.portfolio-page .work-card-tag {
  font-family: var(--font-sans);
  font-size: .95rem;
  line-height: 1.45;
}

.work-card-designed {
  border-radius: var(--r-lg);
}

/* Cards and content bands */
.service-card,
.tool-card,
.post-card,
.review-card,
.metric-card,
.approach-item,
.industry-card,
.faq-item,
.audit-section,
.report-card,
.footer-start-card {
  border-radius: var(--r-lg);
  box-shadow: none;
}

.post-card,
.tool-card,
.service-card,
.review-card,
.metric-card {
  border-color: var(--line);
  background: var(--surface);
}

.post-card-img,
.post-card-link > img,
.tool-card-visual {
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.metrics-grid,
.services-grid,
.approach-list,
.tool-launchpad-grid,
.home-tools-grid {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metrics-grid > *,
.services-grid > *,
.approach-list > *,
.tool-launchpad-grid > *,
.home-tools-grid > * {
  border: 0;
  border-radius: 0;
}

/* Lead sections */
#contact,
.contact-section,
.diagnostic-hero {
  background: var(--lofts-paper) !important;
}

#contact .contact-grid {
  gap: clamp(3rem, 8vw, 9rem) !important;
}

#contact .contact-form-wrap,
#contact form,
.diagnostic-form-card {
  border-radius: var(--r-lg);
}

input,
select,
textarea {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--lofts-blue);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--lofts-blue) 18%, transparent);
}

/* Black closing field */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 9rem) 0 2rem;
  border-top: 0;
  background: var(--lofts-black);
  color: #fff;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--lofts-blue) 0 25%, var(--lofts-lime) 25% 50%, var(--lofts-coral) 50% 75%, var(--lofts-sky) 75% 100%);
}

.site-footer .container {
  position: relative;
}

.lofts-footer-call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(5rem, 10vw, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
  border-bottom: 1px solid #333;
}

.lofts-footer-call__link {
  display: inline-block;
  max-width: 10ch;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(4.1rem, 10vw, 11rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: 0;
}

.lofts-footer-call__link:hover {
  color: var(--lofts-lime);
}

.lofts-footer-call__note {
  max-width: 28ch;
  margin: 0;
  color: #aaa;
  font-size: .9rem;
  line-height: 1.5;
}

.site-footer .footer-top,
.site-footer .footer-now,
.site-footer .footer-grid,
.site-footer .footer-bottom {
  border-color: #333;
}

.site-footer .footer-logo,
.site-footer .footer-newsletter-title,
.site-footer .footer-now-text,
.site-footer .footer-start-card h3,
.site-footer strong {
  color: #fff;
}

.site-footer .footer-tag,
.site-footer .meta,
.site-footer .footer-newsletter-note,
.site-footer .footer-newsletter-eyebrow,
.site-footer .footer-label,
.site-footer .footer-now-label,
.site-footer .footer-now-tag,
.site-footer a {
  color: #aaa;
}

.site-footer .footer-start-card p:not(.footer-label) {
  color: #aaa;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .footer-newsletter-form,
.site-footer .footer-start-card,
.site-footer .footer-now-item {
  border-color: #333;
  background: #151515;
}

.site-footer .footer-newsletter-form input {
  background: transparent;
  color: #fff;
}

.site-footer .footer-newsletter-form button,
.site-footer .footer-start-card .btn-primary {
  background: var(--lofts-lime);
  color: var(--lofts-black);
}

.site-footer .footer-grid {
  grid-template-columns: .9fr .75fr .8fr 1.35fr;
  gap: clamp(2rem, 5vw, 6rem);
}

.site-footer .footer-start-card {
  border-radius: var(--r-lg);
}

.site-footer .footer-bottom {
  padding-top: 1.5rem;
}

/* Lightweight pointer response for media */
[data-lofts-tilt] {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-origin: center;
  transition: transform .18s ease-out;
  will-change: transform;
}

/* Scroll-directed motion: editorial reveals, depth, and a pinned opening reel */
html.lofts-motion-ready [data-lofts-reveal] {
  opacity: 0;
  clip-path: inset(0 0 12% 0);
  transform: translate3d(0, 46px, 0);
  transition:
    opacity .85s cubic-bezier(.2, .7, .2, 1),
    clip-path 1s cubic-bezier(.2, .7, .2, 1),
    transform 1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--lofts-reveal-delay, 0ms);
  will-change: opacity, clip-path, transform;
}

html.lofts-motion-ready [data-lofts-reveal].lofts-in-view {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translate3d(0, 0, 0);
}

[data-lofts-parallax] {
  overflow: hidden;
}

.home-page .essay-section {
  --essay-rule-progress: 0%;
  --essay-content-y: 0px;
  position: relative;
}

.home-page .essay-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: var(--essay-rule-progress);
  height: 4px;
  background: var(--lofts-lime);
  pointer-events: none;
}

.home-page .essay-section .essay-grid {
  transform: translate3d(0, var(--essay-content-y), 0);
  will-change: transform;
}

.home-page .stack-scene {
  filter: drop-shadow(0 calc(18px + var(--hero-echo-shadow, 0px)) calc(32px + var(--hero-echo-shadow, 0px)) rgba(0, 0, 0, .16));
}

@media (max-width: 1220px) and (min-width: 981px) {
  .home-page .hero-scroll-scene {
    --hero-reel-left: 66%;
  }

  .home-page .hero-sidecar {
    left: var(--hero-reel-left);
  }
}

@media (max-width: 1100px) and (min-width: 641px) {
  .a11y-launcher,
  .wa-launcher,
  .chat-launcher {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 50%;
  }

  .a11y-launcher {
    right: 4.75rem;
    bottom: 1rem;
    left: auto;
  }

  .wa-launcher {
    right: 1rem;
    bottom: 4.75rem;
  }

  .chat-launcher {
    right: 1rem;
    bottom: 1rem;
  }

  .a11y-launcher-label,
  .wa-launcher span,
  .chat-launcher-label {
    display: none;
  }
}

@media (max-width: 1220px) {
  .nav-link {
    padding-inline: .55rem;
  }

  .nav-actions .btn-audit {
    display: none;
  }

  .home-page .hero-main {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .7fr);
  }

  .home-page .hero-title {
    font-size: 4.9rem;
  }

  .home-page .hero-sidecar {
    left: 66%;
    width: min(33vw, 405px);
  }
}

@media (max-width: 980px) {
  .home-page .hero-grid {
    grid-template-rows: auto auto;
  }

  .home-page .hero-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-top: 8rem;
  }

  .home-page .hero-main > .eyebrow,
  .home-page .hero-title,
  .home-page .hero-lead,
  .home-page .hero-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .home-page .hero-title {
    max-width: none;
    font-size: 4.5rem;
  }

  .home-page .hero-title-wide {
    display: block;
  }

  .home-page .hero-title-compact {
    display: none;
  }

  .home-page .hero-lead {
    max-width: 48ch !important;
    margin-top: 2rem !important;
  }

  .home-page .hero-sidecar {
    position: relative;
    top: auto;
    left: auto;
    grid-row: 1;
    width: min(76vw, 620px);
    margin: 9rem 0 2rem auto;
    transform: none;
  }

  .home-page .hero-lead,
  .home-page .hero-actions {
    transform: none;
  }

  .home-page .hero-proof-panel {
    grid-template-columns: 1fr;
  }

  .home-page .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .hero-proof-strip .hero-stat:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .home-portfolio-stage .pf-grid,
  .portfolio-page .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-portfolio-stage .pf-card,
  .home-portfolio-stage .pf-card--featured,
  .home-portfolio-stage .pf-card:nth-child(n),
  .portfolio-page .work-card,
  .portfolio-page .work-card-featured,
  .portfolio-page .work-card:nth-child(n) {
    grid-column: span 1;
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  body {
    padding-top: 0;
  }

  .nav-inner {
    height: 64px;
    padding: 10px 1rem;
  }

  .nav-logo {
    padding-top: 0;
    font-size: 1.22rem;
  }

  .nav-logo .dot {
    transform: translateY(-1px);
  }

  .theme-toggle {
    height: 44px;
  }

  .theme-opt {
    width: 34px;
    height: 36px;
  }

  .menu-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  body:not(.home-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type {
    min-height: 64svh;
    padding: 8rem 0 3.5rem !important;
  }

  body:not(.home-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .h-display {
    font-size: clamp(3.3rem, 15vw, 6rem);
  }

  .home-page .hero-grid {
    display: block;
    min-height: 0;
  }

  .home-page .hero-main {
    display: block;
    max-width: 46rem;
    padding: 7rem 0 0;
  }

  .home-page .hero-main > .eyebrow {
    margin-bottom: 1.5rem;
  }

  .home-page .hero-title {
    max-width: none;
    font-size: 3.65rem;
    line-height: .92;
  }

  .home-page .hero-title .hero-title-accent {
    margin-top: .28em;
    font-size: .5em;
    line-height: 1.04;
  }

  .home-page .hero-lead {
    margin-top: 1.75rem !important;
    font-size: 1rem;
    line-height: 1.5;
  }

  .home-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.35rem;
  }

  .home-page .hero-sidecar {
    display: block;
    width: 100%;
    margin: 3rem 0 4.5rem;
  }

  .home-page .stack-scene {
    aspect-ratio: 16 / 11;
  }

  .home-page .stack-badge--tl {
    top: -12px;
    left: 10px;
  }

  .home-page .stack-badge--br {
    right: 10px;
    bottom: 48px;
  }

  .home-page .hero-sidecar-availability {
    grid-template-columns: 1fr auto;
  }

  .home-page .hero-sidecar-availability-value {
    display: none;
  }

  .home-page .hero-proof-panel {
    display: block;
    padding: 3.5rem 0;
  }

  .home-page .hero-proof-copy {
    margin-bottom: 2rem;
  }

  .home-page .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .hero-proof-strip .hero-stat {
    min-height: 9.6rem;
    padding: 1rem;
  }

  .home-page .hero-proof-strip .bignum {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .home-page .essay-section .essay-grid {
    grid-template-columns: 1fr;
  }

  .home-page .essay-meta {
    position: static;
  }

  .home-portfolio-stage .home-portfolio-head {
    grid-template-columns: 1fr;
  }

  .lofts-footer-call {
    grid-template-columns: 1fr;
  }

  .lofts-footer-call__link {
    font-size: clamp(3.7rem, 17vw, 7rem);
  }
}

@media (max-width: 640px) {
  html.has-mnav-accessibility .a11y-launcher {
    display: none !important;
  }

  .mnav-accessibility {
    appearance: none;
    width: 100%;
    min-height: 48px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(244, 240, 234, .22);
    background: transparent;
    color: rgba(244, 240, 234, .82);
    font: 500 12px/1 var(--font-mono);
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mnav-accessibility span {
    display: inline-grid;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border: 1px solid currentColor;
    place-items: center;
  }

  .mnav-accessibility:hover,
  .mnav-accessibility:focus-visible {
    color: #fff;
  }

  .section {
    padding-block: 4.8rem;
  }

  .section-sm {
    padding-block: 3.6rem;
  }

  .section-lg {
    padding-block: 5.5rem;
  }

  .container {
    padding-inline: 1rem;
  }

  .h-1 {
    font-size: clamp(2.65rem, 13.5vw, 4.1rem);
  }

  .home-page .hero-paper > .container {
    padding-inline: 1rem;
  }

  .home-page .hero-main {
    padding-top: 6.5rem;
  }

  .home-page .hero-title {
    font-size: 3.15rem;
  }

  .home-page .hero-title .hero-title-accent {
    font-size: .54em;
  }

  .home-page .hero-proof-strip .hero-stat {
    border: 1px solid var(--line);
  }

  .home-page .hero-proof-strip .hero-stat:nth-child(odd) {
    border-right: 0;
  }

  .home-portfolio-stage .pf-grid,
  .portfolio-page .work-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .home-portfolio-stage .pf-card-img,
  .home-portfolio-stage .pf-card--featured .pf-card-img,
  .home-portfolio-stage .pf-card:nth-child(n) .pf-card-img,
  .portfolio-page .work-card:nth-child(n) .work-card-img {
    aspect-ratio: 4 / 3;
  }

  .portfolio-page .pf-filter-bar {
    top: 64px !important;
  }

  .portfolio-page .pf-filter-bar .container {
    overflow-x: auto;
    padding-block: .65rem !important;
    scrollbar-width: none;
  }

  .portfolio-page .pf-filter-bar .container > div {
    width: max-content;
    flex-wrap: nowrap !important;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-top {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-now-grid {
    grid-template-columns: 1fr;
  }

  .audit-cta {
    display: none;
  }

  .mob-bar {
    min-height: 58px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mob-bar-item {
    min-height: 48px;
  }

  .mob-bar-primary {
    min-height: 42px;
    margin: 8px 0;
    border-radius: var(--r-md);
  }
}

@media (min-width: 881px) and (max-width: 1200px) {
  #contact .contact-grid {
    gap: 3rem !important;
    padding-right: 3.75rem;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: 4.25rem;
  }

  .site-footer .lofts-footer-call {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
  }

  .site-footer .lofts-footer-call__link {
    max-width: 9ch;
    font-size: 3.35rem;
    line-height: .88;
  }

  .site-footer .footer-top {
    gap: 2.25rem;
    padding-bottom: 2.75rem;
    margin-bottom: 2.75rem;
  }

  .site-footer .footer-newsletter,
  .site-footer .footer-start-card {
    display: none;
  }

  .site-footer.footer-rich .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2.25rem 1.5rem !important;
  }

  .site-footer .footer-grid > div:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  .site-footer .footer-grid > div:nth-child(3) .footer-label:nth-of-type(2),
  .site-footer .footer-grid > div:nth-child(3) ul:nth-of-type(2) {
    grid-column: 2;
  }

  .site-footer .footer-grid > div:nth-child(3) .footer-label:nth-of-type(2) {
    grid-row: 1;
    margin-top: 0 !important;
  }

  .site-footer .footer-grid > div:nth-child(3) ul:nth-of-type(2) {
    grid-row: 2;
  }

  .site-footer .footer-bottom {
    display: grid;
    gap: .75rem;
  }
}

@media (min-width: 1500px) {
  .home-page .hero-title {
    font-size: 6.25rem;
  }
}

@media (min-width: 981px) and (max-width: 1399px) {
  .home-page .hero-title-wide {
    display: none;
  }

  .home-page .hero-title-compact {
    display: block;
  }
}

@media (max-width: 520px) {
  .home-page .hero-main {
    padding-top: 6.25rem;
  }

  .home-page .hero-main > .eyebrow {
    max-width: none;
    margin-bottom: 1.25rem;
    line-height: 1.55;
  }

  .home-page .hero-eyebrow-wide {
    display: none;
  }

  .home-page .hero-eyebrow-compact {
    display: inline;
  }

  .home-page .hero-title {
    font-size: 2.75rem;
    line-height: .94;
  }

  .home-page .hero-title-wide {
    display: none;
  }

  .home-page .hero-title-compact {
    display: block;
  }

  .home-page .hero-title .hero-title-accent {
    margin-top: .38em;
    font-size: .62em;
    line-height: 1.02;
  }

  .home-page .hero-title-accent > span {
    display: block;
  }
}

@media (max-width: 360px) {
  .home-page .hero-title {
    font-size: 2.55rem;
  }
}

@media (max-width: 980px) {
  .home-page .hero-scroll-track {
    height: auto;
    min-height: 0;
  }

  .home-page .hero-scroll-scene {
    position: relative;
    top: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .home-page .hero-main {
    opacity: 1;
    transform: none;
  }

  .home-page .hero-sidecar {
    left: auto;
    transform: none;
  }

  .home-page .hero-sidecar-availability {
    opacity: 1;
  }
}

@media (min-width: 981px) and (max-height: 680px) {
  .home-page .hero-scroll-track {
    height: auto;
    min-height: 720px;
  }

  .home-page .hero-scroll-scene {
    position: relative;
    height: 720px;
  }

  .home-page .hero-main {
    opacity: 1;
    transform: none;
  }

  .home-page .hero-sidecar {
    left: var(--hero-reel-left);
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marq-track,
  .lofts-footer-call__link,
  [data-lofts-tilt] {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  .home-page .hero-scroll-track {
    height: auto !important;
    min-height: 0 !important;
  }

  .home-page .hero-scroll-scene {
    position: relative !important;
    top: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .home-page .hero-main,
  .home-page .hero-sidecar,
  .home-page .essay-section .essay-grid,
  [data-lofts-reveal],
  [data-lofts-parallax] img {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }

  .home-page .hero-sidecar {
    left: auto !important;
  }

  .home-page .essay-section::after {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   Above-fold correction: one compact editorial rhythm across every page.
   -------------------------------------------------------------------------- */

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type {
  padding: clamp(4.75rem, 6.5vw, 6.5rem) 0 clamp(3.25rem, 4.5vw, 4.75rem) !important;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type > .container::before,
.loc-hero > .container::before,
.region-hero > .container::before {
  width: 4rem;
  margin-bottom: clamp(1.75rem, 2.6vw, 2.5rem);
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .68fr);
  grid-template-rows: auto auto auto auto;
  gap: 0 clamp(3.5rem, 7vw, 8rem);
  align-items: start;
  max-width: none !important;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 1.25rem;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > .h-display {
  grid-column: 1;
  grid-row: 2 / span 4;
  align-self: start;
  max-width: 12ch !important;
  margin: 0 !important;
  font-size: clamp(3.15rem, 4.8vw, 4.75rem) !important;
  line-height: .96 !important;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > .lead {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  max-width: 48ch !important;
  margin: .15rem 0 0 !important;
  font-size: clamp(1rem, 1.15vw, 1.13rem);
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > .answer-box {
  grid-column: 2;
  grid-row: 3;
  margin: 1.25rem 0 0 !important;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > div:last-child:not(.answer-box) {
  grid-column: 2;
  grid-row: 4;
  margin-top: 1.25rem !important;
}

.portfolio-page .portfolio-archive-hero,
body.portfolio-page section.paper.portfolio-archive-hero:first-of-type {
  padding: clamp(4.75rem, 6.5vw, 6.5rem) 0 clamp(3rem, 4vw, 4rem) !important;
}

.portfolio-page .portfolio-hero-shell {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .55fr);
  gap: 1.25rem clamp(3.5rem, 7vw, 8rem);
  align-items: center;
}

.portfolio-page .portfolio-hero-shell::before {
  width: 4rem;
  margin-bottom: .25rem;
}

.portfolio-page .portfolio-hero-shell .h-display,
body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display {
  max-width: 12ch !important;
  font-size: clamp(3.65rem, 5.55vw, 5.8rem) !important;
  line-height: .93 !important;
}

.portfolio-page .portfolio-hero-lead {
  align-self: center;
  padding: 1.5rem 0 0;
}

.portfolio-page .portfolio-hero-stats {
  width: min(100%, 940px);
  margin-top: 1.25rem;
}

.loc-hero,
.region-hero {
  padding: clamp(4.75rem, 6.5vw, 6.5rem) 0 clamp(3.25rem, 4.5vw, 4.75rem) !important;
}

.loc-breadcrumb {
  margin-bottom: clamp(1.75rem, 2.5vw, 2.5rem);
}

.loc-hero-copy,
.region-hero .loc-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .68fr);
  grid-template-rows: auto auto auto;
  gap: 0 clamp(3.5rem, 7vw, 8rem);
  align-items: start;
  max-width: none;
}

.loc-hero-copy > .eyebrow,
.region-hero .loc-hero-copy > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 1.25rem;
}

.loc-hero-copy > .h-display,
.region-hero .loc-hero-copy > .h-display {
  grid-column: 1;
  grid-row: 2 / span 2;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.15rem, 4.8vw, 4.75rem);
  line-height: .96;
}

.loc-hero-copy > .lead,
.region-hero .loc-hero-copy > .lead {
  grid-column: 2;
  grid-row: 2;
  max-width: 48ch;
  margin: .15rem 0 0;
  font-size: clamp(1rem, 1.15vw, 1.13rem);
}

.loc-hero-copy > .loc-actions,
.region-hero .loc-hero-copy > .loc-actions {
  grid-column: 2;
  grid-row: 3;
  margin-top: 1.5rem;
}

.diagnostic-page .diagnostic-hero {
  padding: clamp(4rem, 5.5vw, 5.5rem) 0 clamp(3.5rem, 4.5vw, 4.5rem) !important;
  background: var(--bg) !important;
}

.diagnostic-hero > .diagnostic-shell::before {
  display: none !important;
}

.diagnostic-shell {
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .7fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.diagnostic-copy::before {
  content: "";
  display: block;
  width: 4rem;
  height: 3px;
  margin-bottom: clamp(1.75rem, 2.6vw, 2.5rem);
  background: var(--accent);
}

.diagnostic-copy .h-display,
.diagnostic-page .diagnostic-hero h1 {
  max-width: 10.5ch;
  margin-top: 1.25rem;
  font-size: clamp(3.15rem, 4.8vw, 4.75rem);
  line-height: .95;
}

.diagnostic-copy .lead {
  max-width: 58ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.12vw, 1.1rem);
}

.diagnostic-badges {
  gap: .45rem;
  margin-top: 1.25rem;
}

.diagnostic-badges span {
  min-height: 34px;
  padding: .35rem .7rem;
  border-radius: 5px;
  font-size: .76rem;
}

.diagnostic-panel {
  align-self: center;
  border-radius: 6px;
  box-shadow: 0 24px 60px -42px rgba(16, 16, 15, .42);
}

@media (max-width: 880px) {
  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead),
  .loc-hero-copy,
  .region-hero .loc-hero-copy {
    display: block;
  }

  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > .h-display,
  .loc-hero-copy > .h-display,
  .region-hero .loc-hero-copy > .h-display {
    max-width: 11ch !important;
  }

  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > .lead,
  .loc-hero-copy > .lead,
  .region-hero .loc-hero-copy > .lead {
    max-width: 58ch !important;
    margin-top: 1.5rem !important;
  }

  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > .answer-box,
  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > div:last-child:not(.answer-box),
  .loc-hero-copy > .loc-actions,
  .region-hero .loc-hero-copy > .loc-actions {
    margin-top: 1.25rem !important;
  }

  .portfolio-page .portfolio-hero-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type,
  .loc-hero,
  .region-hero {
    padding: 4.25rem 0 3.5rem !important;
  }

  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .container > [data-reveal]:has(> .h-display):has(> .lead) > .h-display,
  .loc-hero-copy > .h-display,
  .region-hero .loc-hero-copy > .h-display {
    max-width: none !important;
    font-size: clamp(2.55rem, 12vw, 3.35rem) !important;
    line-height: .97 !important;
  }

  .portfolio-page .portfolio-archive-hero,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type {
    padding: 4.25rem 0 2.75rem !important;
  }

  .portfolio-page .portfolio-hero-shell .h-display,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display {
    max-width: none !important;
    font-size: clamp(2.7rem, 12.6vw, 3.55rem) !important;
  }

  .diagnostic-page .diagnostic-hero {
    padding: 3.75rem 0 3.25rem !important;
  }

  .diagnostic-shell {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: stretch;
  }

  .diagnostic-copy {
    display: contents;
  }

  .diagnostic-copy::before {
    order: 0;
    width: 3.5rem;
    margin-bottom: .35rem;
  }

  .diagnostic-copy > .eyebrow { order: 1; }
  .diagnostic-copy > .h-display { order: 2; }
  .diagnostic-copy > .lead { order: 3; }
  .diagnostic-panel { order: 4; }
  .diagnostic-copy > .diagnostic-badges { order: 5; }
  .diagnostic-copy > .audit-resource-links { order: 6; }

  .diagnostic-copy .h-display,
  .diagnostic-page .diagnostic-hero h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(2.55rem, 12vw, 3.35rem);
    line-height: .97;
  }

  .diagnostic-copy .lead {
    margin: 0;
    font-size: .98rem;
  }
}

/* Cohesive homepage composition: motion enhances the layout instead of defining it. */
.home-page .hero-paper > .container {
  width: 100%;
  max-width: 1480px;
  padding-inline: 2.25rem;
}

.home-page .hero-scroll-track {
  height: auto;
  min-height: 0;
}

.home-page .hero-scroll-scene {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .78fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 5rem;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 9rem 0 6rem;
  overflow: visible;
}

.home-page .hero-main {
  display: block;
  align-self: center;
  padding: 0;
  opacity: 1;
  transform: translate3d(0, var(--hero-copy-y, 0), 0);
  pointer-events: auto !important;
}

.home-page .hero-main > .eyebrow {
  display: inline-flex;
  margin: 0 0 1.75rem;
}

.home-page .hero-title {
  max-width: 10ch;
  margin: 0 !important;
  font-size: 5.6rem;
  line-height: .91;
}

.home-page .hero-title-wide {
  display: block;
}

.home-page .hero-title-compact {
  display: none;
}

.home-page .hero-title .hero-title-accent {
  max-width: 18ch;
  margin-top: .28em;
  font-size: .43em;
  line-height: 1.04;
}

.home-page .hero-lead {
  max-width: 54ch !important;
  margin: 1.75rem 0 0 !important;
  font-size: 1.08rem;
  line-height: 1.55;
  transform: none;
}

.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  transform: none;
}

.home-page .hero-sidecar {
  position: relative;
  top: auto;
  left: auto;
  display: block;
  justify-self: end;
  width: 100%;
  max-width: 560px;
  margin: 0;
  transform: translate3d(0, var(--hero-reel-y, 0), 0);
  transform-origin: center;
}

.home-page .hero-sidecar-availability {
  opacity: 1;
}

.home-page .hero-proof-panel {
  grid-template-columns: minmax(270px, .68fr) minmax(0, 1.32fr);
  gap: 2.5rem;
  padding: 2.5rem 0 4.5rem;
}

.home-page .hero-proof-strip .hero-stat {
  min-height: 10rem;
}

.home-page .essay-section {
  padding-block: 7rem;
}

.home-page .essay-section .essay-grid {
  gap: 6rem;
  transform: translate3d(0, var(--essay-content-y), 0);
}

.home-page .essay-section .essay-meta {
  position: relative;
  top: auto;
}

.home-page .essay-title {
  font-size: 6.6rem;
}

.home-portfolio-stage {
  padding-block: 7rem;
}

.home-portfolio-stage::before {
  font-size: 10rem;
}

.home-portfolio-stage .home-portfolio-head {
  margin-bottom: 4.5rem;
  padding-top: 3rem;
}

.home-portfolio-stage .pf-grid {
  gap: 4.5rem 1.75rem;
}

.home-portfolio-stage .pf-card,
.home-portfolio-stage .pf-card--featured,
.home-portfolio-stage .pf-card:nth-child(n),
.home-portfolio-stage .pf-card--featured:nth-child(n) {
  grid-column: span 4;
}

.home-portfolio-stage .pf-card--featured:first-child {
  grid-column: span 7;
}

.home-portfolio-stage .pf-card:nth-child(2) {
  grid-column: span 5;
}

.home-portfolio-stage .pf-card:nth-child(6) {
  grid-column: 1 / -1;
}

.home-portfolio-stage .pf-card:nth-child(n + 7) {
  display: none;
}

.home-portfolio-stage .pf-card-img,
.home-portfolio-stage .pf-card--featured .pf-card-img,
.home-portfolio-stage .pf-card:nth-child(n) .pf-card-img {
  aspect-ratio: 4 / 3;
}

.home-portfolio-stage .pf-card--featured:first-child .pf-card-img,
.home-portfolio-stage .pf-card:nth-child(6) .pf-card-img {
  aspect-ratio: 16 / 9;
}

.home-portfolio-stage .home-portfolio-full {
  display: none;
}

@media (min-width: 1400px) {
  .home-page .hero-title {
    font-size: 6.4rem;
  }
}

@media (max-width: 1220px) {
  .home-page .hero-paper > .container {
    padding-inline: 2rem;
  }

  .home-page .hero-scroll-scene {
    grid-template-columns: minmax(0, 1.04fr) minmax(330px, .76fr);
    gap: 3rem;
  }

  .home-page .hero-title {
    font-size: 4.8rem;
  }

  .home-page .hero-sidecar {
    left: auto;
    width: 100%;
  }

  .home-page .essay-section .essay-grid {
    gap: 4rem;
  }

  .home-page .essay-title {
    font-size: 5.4rem;
  }
}

@media (max-width: 980px) {
  .home-page .hero-scroll-scene {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.75rem;
    padding: 7.5rem 0 5rem;
  }

  .home-page .hero-main {
    max-width: 48rem;
    padding: 0;
  }

  .home-page .hero-title {
    max-width: 10ch;
    font-size: 4.25rem;
  }

  .home-page .hero-sidecar {
    grid-row: auto;
    justify-self: center;
    width: min(100%, 680px);
    max-width: 680px;
    margin: 0 auto;
    transform: none;
  }

  .home-page .hero-proof-panel {
    grid-template-columns: 1fr;
    padding: 3rem 0 4rem;
  }

  .home-page .essay-section {
    padding-block: 5.5rem;
  }

  .home-page .essay-title {
    font-size: 4.5rem;
  }

  .home-portfolio-stage {
    padding-block: 5.5rem;
  }

  .home-portfolio-stage .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.75rem 1.25rem;
  }

  .home-portfolio-stage .pf-card,
  .home-portfolio-stage .pf-card--featured,
  .home-portfolio-stage .pf-card:nth-child(n),
  .home-portfolio-stage .pf-card--featured:nth-child(n) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .home-page .hero-paper > .container {
    padding-inline: 1rem;
  }

  .home-page .hero-scroll-scene {
    gap: 3rem;
    padding: 6.25rem 0 3.5rem;
  }

  .home-page .hero-main {
    padding: 0;
  }

  .home-page .hero-main > .eyebrow {
    margin-bottom: 1.25rem;
  }

  .home-page .hero-title {
    max-width: none;
    font-size: 3.05rem;
    line-height: .94;
  }

  .home-page .hero-title-wide {
    display: none;
  }

  .home-page .hero-title-compact {
    display: block;
  }

  .home-page .hero-title .hero-title-accent {
    margin-top: .35em;
    font-size: .58em;
  }

  .home-page .hero-title-accent > span {
    display: inline;
  }

  .home-page .hero-lead {
    margin-top: 1.5rem !important;
    font-size: 1rem;
  }

  .home-page .hero-actions {
    align-items: stretch;
  }

  .home-page .hero-actions .btn {
    flex: 1 1 12rem;
  }

  .home-page .hero-sidecar {
    display: block;
  }

  .home-page .hero-proof-panel {
    padding: 2.5rem 0 3.5rem;
  }

  .home-page .hero-proof-strip .hero-stat {
    min-height: 8.75rem;
  }

  .home-page .essay-section {
    padding-block: 4.5rem;
  }

  .home-page .essay-section .essay-grid {
    gap: 3rem;
  }

  .home-page .essay-title {
    font-size: 3.5rem;
  }

  .home-portfolio-stage {
    padding-block: 4.75rem;
  }

  .home-portfolio-stage::before {
    font-size: 5.5rem;
  }

  .home-portfolio-stage .home-portfolio-head {
    margin-bottom: 3rem;
    padding-top: 1.5rem;
  }

  .home-portfolio-stage .pf-grid {
    grid-template-columns: 1fr;
    gap: 3.25rem;
  }

  .home-portfolio-stage .pf-card-img,
  .home-portfolio-stage .pf-card--featured .pf-card-img,
  .home-portfolio-stage .pf-card:nth-child(n) .pf-card-img {
    aspect-ratio: 4 / 3;
  }

  .home-portfolio-stage .pf-card:nth-child(n + 5) {
    display: none;
  }

  .home-page #metrics .metrics-band {
    display: flex;
    gap: .85rem;
    margin-inline: -1rem;
    padding: 0 1rem 1rem;
    overflow-x: auto;
    border: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-page #metrics .metrics-band::-webkit-scrollbar {
    display: none;
  }

  .home-page #metrics .metric-cell {
    flex: 0 0 82vw;
    min-height: 22rem;
    padding: 1.5rem;
    border: 1px solid var(--line) !important;
    background: var(--surface);
    scroll-snap-align: center;
  }
}

@media (max-width: 420px) {
  .home-page .hero-title {
    font-size: 2.72rem;
  }

  .home-page .hero-title .hero-title-accent {
    font-size: .6em;
  }
}

/* --------------------------------------------------------------------------
   Homepage rhythm system - July 2026
   A single visual grammar for the complete homepage: quiet canvas, sharp
   editorial type, one vivid accent, project-led colour, and motion that never
   hides content while someone scrolls quickly.
   -------------------------------------------------------------------------- */

.home-page {
  --rhythm-canvas: #f4f4f0;
  --rhythm-paper: #ffffff;
  --rhythm-soft: #e9e9e3;
  --rhythm-ink: #090909;
  --rhythm-muted: #5f5f5a;
  --rhythm-line: rgba(9, 9, 9, .16);
  --rhythm-acid: #dfff43;
  --rhythm-coral: #a44729;
  --bg: var(--rhythm-canvas);
  --bg-soft: var(--rhythm-soft);
  --surface: var(--rhythm-paper);
  --ink: var(--rhythm-ink);
  --ink-soft: #31312f;
  --muted: var(--rhythm-muted);
  --line: var(--rhythm-line);
  --line-soft: rgba(9, 9, 9, .09);
  --accent: var(--rhythm-coral);
  background: var(--rhythm-canvas);
  color: var(--rhythm-ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

html[data-theme="dark"] .home-page {
  --rhythm-canvas: #0c0c0b;
  --rhythm-paper: #151514;
  --rhythm-soft: #20201e;
  --rhythm-ink: #f5f5ef;
  --rhythm-muted: #adada6;
  --rhythm-line: rgba(245, 245, 239, .17);
  --bg: var(--rhythm-canvas);
  --bg-soft: var(--rhythm-soft);
  --surface: var(--rhythm-paper);
  --ink: var(--rhythm-ink);
  --ink-soft: #d5d5ce;
  --muted: var(--rhythm-muted);
  --line: var(--rhythm-line);
  --line-soft: rgba(245, 245, 239, .09);
}

.home-page *,
.home-page *::before,
.home-page *::after {
  letter-spacing: 0;
}

.home-page main {
  width: 100%;
  overflow: clip;
}

.home-page .container,
.home-page .container-narrow {
  width: min(100% - 3rem, 1280px);
  margin-inline: auto;
}

.home-page .container-narrow {
  max-width: 960px;
}

.home-page .section,
.home-page .section-lg,
.home-page .section-sm {
  padding-block: 7rem;
}

.home-page .eyebrow,
.home-page .hero-sidecar-availability-label,
.home-page .hero-sidecar-availability-value,
.home-page .hero-sidecar-availability-link,
.home-page .pf-card-tag,
.home-page .public-proof-index,
.home-page .capabilities-grid > a > span,
.home-page .home-tool-topline,
.home-page .footer-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
}

.home-page .h-display,
.home-page .h-1,
.home-page .h-2,
.home-page .h-3,
.home-page h1,
.home-page h2,
.home-page h3,
.home-page p,
.home-page li,
.home-page a,
.home-page button,
.home-page input,
.home-page select,
.home-page textarea {
  letter-spacing: 0;
}

.home-page .h-1 {
  font-size: 4.75rem;
  line-height: .98;
  font-weight: 520;
  text-wrap: balance;
}

.home-page .h-2 {
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 520;
  text-wrap: balance;
}

.home-page .italic-serif,
.home-page .font-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.home-page .lead {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  line-height: 1.6;
}

/* Reveal state: movement is allowed; missing content is not. */
html.lofts-motion-ready .home-page [data-lofts-reveal],
html.lofts-motion-ready .home-page [data-lofts-reveal].lofts-in-view,
.home-page [data-reveal] {
  opacity: 1 !important;
  visibility: visible !important;
  clip-path: none !important;
  transform: none !important;
  will-change: auto !important;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease !important;
}

/* Navigation */
.home-page .nav-bar {
  height: 76px;
  min-height: 76px;
  border-bottom: 1px solid var(--rhythm-line);
  background: color-mix(in srgb, var(--rhythm-canvas) 94%, transparent);
  box-shadow: none;
}

html[data-theme="dark"] .home-page .nav-bar,
html[data-theme="dark"] .home-page .nav-bar.scrolled {
  background: color-mix(in srgb, var(--rhythm-canvas) 94%, transparent) !important;
  border-bottom-color: var(--rhythm-line) !important;
}

.home-page .nav-inner {
  width: min(100% - 3rem, 1320px);
  min-height: 76px;
  margin-inline: auto;
  padding-inline: 0;
}

.home-page .nav-logo {
  font-family: var(--font-logo);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

.home-page .nav-logo .dot {
  margin-left: .42rem;
  font-family: var(--font-sans);
  font-size: .74rem;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
}

.home-page .nav-links,
.home-page .nav-actions {
  gap: .15rem;
}

.home-page .nav-link {
  min-height: 44px;
  padding-inline: .72rem;
  font-size: .9rem;
}

.home-page .nav-actions .btn {
  min-height: 44px;
  border-radius: 4px;
  box-shadow: none;
}

.home-page .nav-actions .btn-audit {
  border-color: var(--rhythm-line);
  background: transparent;
}

.home-page .nav-actions .btn-primary {
  background: var(--rhythm-ink);
  color: var(--rhythm-canvas);
}

/* Hero */
.home-page .hero-paper {
  min-height: 0;
  padding: 0 !important;
  border-bottom: 0;
  background: var(--rhythm-canvas);
}

.home-page .hero-scroll-track {
  height: auto;
  min-height: 0;
}

.home-page .hero-scroll-scene {
  min-height: 0;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, .74fr);
  gap: 4.5rem;
  align-items: center;
  padding: 7.5rem 0 5.5rem;
}

.home-page .hero-main {
  align-self: center;
}

.home-page .hero-main > .eyebrow {
  margin-bottom: 1.5rem;
  color: var(--rhythm-muted);
}

.home-page .hero-title {
  max-width: 13ch;
  font-size: 5.35rem;
  line-height: .93;
  font-weight: 520;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-page .hero-title-wide,
.home-page .hero-title-compact {
  white-space: nowrap;
}

@media (max-width: 1399px) {
  .home-page .hero-title-wide {
    display: none;
  }

  .home-page .hero-title-compact {
    display: block;
  }
}

.home-page .hero-title .hero-title-accent {
  display: block;
  max-width: 16ch;
  margin-top: .3em;
  font-size: .43em;
  line-height: 1;
}

.home-page .hero-lead {
  max-width: 48ch !important;
  margin-top: 1.75rem !important;
  color: var(--rhythm-muted);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.62;
}

.home-page .hero-actions {
  margin-top: 2rem;
}

.home-page .hero-actions .btn {
  min-height: 50px;
  border-radius: 4px;
  box-shadow: none;
}

.home-page .hero-sidecar {
  width: 100%;
  max-width: 540px;
}

.home-page .stack-scene {
  min-height: 390px;
  filter: none;
}

.home-page .stack-card-inner {
  border-radius: 8px;
  box-shadow: 0 30px 72px -44px rgba(0, 0, 0, .62);
}

.home-page .stack-badge {
  border-radius: 4px;
  box-shadow: none;
}

.home-page .stack-badge--tl {
  background: var(--rhythm-acid);
  color: #090909;
}

.home-page .stack-badge--br {
  background: var(--rhythm-ink);
  color: var(--rhythm-canvas);
}

.home-page .hero-sidecar-availability {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.4rem !important;
  padding-top: 1.15rem !important;
}

.home-page .hero-sidecar-availability-value {
  color: var(--rhythm-muted);
}

.home-page .hero-sidecar-availability-link {
  color: var(--rhythm-ink);
}

.home-page .hero-proof-panel {
  grid-template-columns: minmax(290px, .58fr) minmax(0, 1.42fr);
  gap: 3rem;
  align-items: end;
  padding: 2rem 0 0;
  border-top: 1px solid var(--rhythm-line);
}

.home-page .founder-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.home-page .founder-pill {
  min-height: 76px;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
}

.home-page .founder-pill-avatar {
  width: 42px;
  height: 42px;
}

.home-page .trust-badges {
  margin-top: 1rem;
}

.home-page .trust-badge {
  border-radius: 3px;
  background: transparent;
}

.home-page .hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rhythm-line);
  border-radius: 8px;
  overflow: hidden;
}

.home-page .hero-proof-strip .hero-stat,
.home-page .hero-proof-strip .hero-stat:nth-child(n) {
  min-height: 11rem;
  padding: 1.25rem;
  border: 0;
  border-right: 1px solid var(--rhythm-line);
  background: var(--rhythm-paper);
  color: #090909;
}

.home-page .hero-proof-strip .hero-stat:nth-child(2) {
  background: var(--rhythm-soft);
}

.home-page .hero-proof-strip .hero-stat:nth-child(3) {
  background: var(--rhythm-acid);
}

.home-page .hero-proof-strip .hero-stat:nth-child(4) {
  border-right: 0;
  background: #111111;
  color: #f5f5ef;
}

.home-page .hero-proof-strip .bignum,
.home-page .hero-proof-strip .bignum-suffix,
.home-page .hero-proof-strip .hero-stat-lbl {
  color: inherit;
}

.home-page .hero-proof-strip .bignum {
  font-size: 2.5rem;
  line-height: .95;
}

.home-page .hero-proof-strip .bignum-word {
  font-size: 1.55rem;
  line-height: 1;
}

.home-page .hero-proof-strip .hero-stat-lbl {
  max-width: 10ch;
  font-family: var(--font-mono);
  font-size: .66rem;
  line-height: 1.45;
  text-transform: uppercase;
}

/* One compact platform ribbon. */
.home-page .stack-band {
  padding-block: 0;
  border-block: 1px solid rgba(255, 255, 255, .16);
  background: #0d0d0c;
  color: #f5f5ef;
}

.home-page .stack-band .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.home-page .stack-band .stack-head,
.home-page .stack-band .builton-cred {
  display: none;
}

.home-page .stack-band .marq {
  padding-block: .9rem;
}

.home-page .stack-band .chip {
  border-color: rgba(255, 255, 255, .16);
  border-radius: 3px;
  background: transparent;
  color: #f5f5ef;
}

.home-page .stack-band .chip-dot {
  background: var(--rhythm-acid);
}

/* Manifesto */
.home-page .home-manifesto {
  padding-block: 8rem;
  border: 0;
  background: #0d0d0c;
  color: #f5f5ef;
}

.home-page .manifesto-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  gap: 2rem 5rem;
  align-items: end;
}

.home-page .manifesto-head .eyebrow {
  grid-column: 1 / -1;
  color: var(--rhythm-acid);
}

.home-page .manifesto-head h2 {
  max-width: 14ch;
  margin: 0;
  font-size: 4.9rem;
  line-height: .96;
  font-weight: 520;
  color: #f5f5ef;
  text-wrap: balance;
}

.home-page .manifesto-head p {
  max-width: 44ch;
  margin: 0 0 .35rem;
  color: rgba(245, 245, 239, .68);
  font-size: 1.08rem;
  line-height: 1.65;
}

.home-page .manifesto-collage {
  position: relative;
  min-height: 590px;
  margin-top: 5rem;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 239, .18);
  border-radius: 8px;
  background: #1b1b18;
  isolation: isolate;
}

.home-page .manifesto-frame {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 239, .24);
  border-radius: 6px;
  background: #222;
  box-shadow: 0 28px 65px -34px rgba(0, 0, 0, .9);
}

.home-page .manifesto-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.04) contrast(1.03);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}

.home-page .manifesto-frame:hover img {
  transform: scale(1.025);
  filter: saturate(1.12) contrast(1.04);
}

.home-page .manifesto-frame--discova {
  z-index: 2;
  inset: 7% auto auto 4%;
  width: 49%;
  height: 74%;
}

.home-page .manifesto-frame--salud {
  z-index: 1;
  inset: 4% 4% auto auto;
  width: 43%;
  height: 52%;
}

.home-page .manifesto-frame--mercanto {
  z-index: 3;
  inset: auto 8% 7% auto;
  width: 39%;
  height: 43%;
}

.home-page .manifesto-collage-line {
  position: absolute;
  z-index: 5;
  right: 3.25rem;
  bottom: 2.5rem;
  max-width: 10ch;
  color: #fff;
  font-family: var(--font-display);
  font-size: 3.15rem;
  font-style: italic;
  line-height: .95;
  text-align: right;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .72);
}

.home-page .manifesto-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4.5rem;
  border-top: 1px solid rgba(245, 245, 239, .2);
}

.home-page .manifesto-principles article {
  min-height: 250px;
  padding: 2rem 2rem 0 0;
  border-right: 1px solid rgba(245, 245, 239, .2);
}

.home-page .manifesto-principles article + article {
  padding-left: 2rem;
}

.home-page .manifesto-principles article:last-child {
  border-right: 0;
}

.home-page .manifesto-principles span {
  color: var(--rhythm-acid);
  font-family: var(--font-mono);
  font-size: .75rem;
}

.home-page .manifesto-principles h3 {
  max-width: 16ch;
  margin: 3rem 0 .8rem;
  color: #f5f5ef;
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 520;
}

.home-page .manifesto-principles p {
  max-width: 34ch;
  margin: 0;
  color: rgba(245, 245, 239, .62);
  font-size: .95rem;
  line-height: 1.6;
}

/* Work archive preview */
.home-page .home-portfolio-stage {
  padding-block: 8rem;
  background: var(--rhythm-paper);
  color: var(--rhythm-ink);
}

.home-page .home-portfolio-stage::before {
  content: none;
}

.home-page .home-portfolio-stage .home-portfolio-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 4rem;
  align-items: end;
  margin: 0 0 4.5rem;
  padding: 0;
}

.home-page .home-portfolio-stage .h-1 {
  max-width: 12ch;
  margin-top: 1.25rem;
  font-size: 4.9rem;
  line-height: .96;
}

.home-page .home-portfolio-stage .home-portfolio-lead {
  max-width: 52ch;
  margin-top: 1.25rem;
  color: var(--rhythm-muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.home-page .home-portfolio-stage .home-portfolio-link {
  justify-self: end;
  margin-bottom: .5rem;
}

.home-page .home-portfolio-stage .pf-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4.25rem 1.5rem;
}

.home-page .home-portfolio-stage .pf-card,
.home-page .home-portfolio-stage .pf-card--featured,
.home-page .home-portfolio-stage .pf-card:nth-child(n),
.home-page .home-portfolio-stage .pf-card--featured:nth-child(n) {
  display: block;
  grid-column: span 3;
  width: 100%;
  margin: 0;
}

.home-page .home-portfolio-stage .pf-card--featured:first-child {
  grid-column: span 7;
}

.home-page .home-portfolio-stage .pf-card:nth-child(2) {
  grid-column: span 5;
}

.home-page .home-portfolio-stage .pf-card:nth-child(n + 7) {
  display: none;
}

.home-page .home-portfolio-stage .pf-card-img,
.home-page .home-portfolio-stage .pf-card--featured .pf-card-img,
.home-page .home-portfolio-stage .pf-card:nth-child(n) .pf-card-img,
.home-page .home-portfolio-stage .pf-card--featured:first-child .pf-card-img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--rhythm-line);
  border-radius: 8px;
  background: var(--rhythm-soft);
  box-shadow: none;
  transform: none;
}

.home-page .home-portfolio-stage .pf-card--featured:first-child .pf-card-img,
.home-page .home-portfolio-stage .pf-card:nth-child(2) .pf-card-img {
  aspect-ratio: 16 / 10;
}

.home-page .home-portfolio-stage .pf-card-img::before,
.home-page .home-portfolio-stage .pf-card--featured .pf-card-img::before {
  height: 30px;
}

.home-page .home-portfolio-stage .pf-card-img::after,
.home-page .home-portfolio-stage .pf-card--featured .pf-card-img::after {
  inset: 30px 0 0;
  opacity: .2;
}

.home-page .home-portfolio-stage .pf-card-img img,
.home-page .home-portfolio-stage .pf-card--featured .pf-card-img img,
.home-page .home-portfolio-stage .pf-card:nth-child(n) .pf-card-img img {
  top: 30px;
  height: calc(100% - 30px);
  filter: saturate(1.05) contrast(1.02);
}

.home-page .home-portfolio-stage .pf-card:hover .pf-card-img,
.home-page .home-portfolio-stage .pf-card--featured:hover .pf-card-img {
  border-color: rgba(9, 9, 9, .34);
  box-shadow: none;
  transform: translateY(-4px);
}

.home-page .home-portfolio-stage .pf-card-body,
.home-page .home-portfolio-stage .pf-card--featured .pf-card-body {
  padding: 1rem 0 0;
}

.home-page .home-portfolio-stage .pf-card--featured .pf-card-name,
.home-page .home-portfolio-stage .pf-card-name {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.05;
}

.home-page .home-portfolio-stage .pf-card--featured:first-child .pf-card-name,
.home-page .home-portfolio-stage .pf-card:nth-child(2) .pf-card-name {
  font-size: 2.1rem;
}

.home-page .home-portfolio-stage .pf-card:nth-child(n + 3) .pf-card-desc,
.home-page .home-portfolio-stage .pf-card:nth-child(n + 3) .pf-card-foot {
  display: none;
}

.home-page .home-portfolio-stage .pf-card-desc {
  max-width: 48ch;
  color: var(--rhythm-muted);
  font-family: var(--font-sans);
  font-size: .95rem;
  line-height: 1.55;
}

.home-page .home-portfolio-stage .pf-card-foot {
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.home-page .home-portfolio-stage .cta-after-cases {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-top: 5.5rem;
  padding: 2.75rem;
  border: 0;
  border-radius: 8px;
  background: var(--rhythm-soft);
  box-shadow: none;
}

.home-page .home-portfolio-stage .cta-after-cases .btn {
  border-radius: 4px;
}

/* Capabilities */
.home-page .home-capabilities {
  padding-block: 7.5rem;
  border-top: 1px solid var(--rhythm-line);
  background: var(--rhythm-canvas);
}

.home-page .capabilities-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 1.25rem 5rem;
  align-items: end;
}

.home-page .capabilities-head .eyebrow {
  grid-column: 1 / -1;
}

.home-page .capabilities-head .h-1 {
  max-width: 12ch;
  margin: 0;
}

.home-page .capabilities-head > p {
  max-width: 44ch;
  margin: 0 0 .4rem;
  color: var(--rhythm-muted);
  font-size: 1.03rem;
  line-height: 1.62;
}

.home-page .capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4.5rem;
  border-block: 1px solid var(--rhythm-line);
}

.home-page .capabilities-grid > a {
  min-height: 345px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-right: 1px solid var(--rhythm-line);
  background: transparent;
  color: var(--rhythm-ink);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.home-page .capabilities-grid > a:last-child {
  border-right: 0;
}

.home-page .capabilities-grid > a:hover,
.home-page .capabilities-grid > a:focus-visible {
  background: var(--rhythm-acid);
  color: #090909;
}

.home-page .capabilities-grid h3 {
  max-width: 15ch;
  margin: auto 0 1rem;
  font-size: 1.7rem;
  line-height: 1.05;
  font-weight: 520;
}

.home-page .capabilities-grid p {
  margin: 0;
  color: inherit;
  font-size: .9rem;
  line-height: 1.55;
  opacity: .72;
}

/* Inspectable public proof */
.home-page .home-public-proof {
  padding-block: 7.5rem;
  border-top: 1px solid var(--rhythm-line);
  background: var(--rhythm-soft);
}

.home-page .public-proof-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 1.25rem 5rem;
  align-items: end;
}

.home-page .public-proof-head .eyebrow {
  grid-column: 1 / -1;
}

.home-page .public-proof-head .h-1 {
  max-width: 13ch;
  margin: 0;
}

.home-page .public-proof-head > p {
  max-width: 44ch;
  margin: 0 0 .4rem;
  color: var(--rhythm-muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.home-page .public-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.home-page .public-proof-grid > * {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--rhythm-line);
  border-radius: 8px;
  background: var(--rhythm-paper);
  color: var(--rhythm-ink);
  text-decoration: none;
  box-shadow: none;
}

.home-page .public-proof-grid > a:hover,
.home-page .public-proof-grid > a:focus-visible {
  border-color: var(--rhythm-ink);
}

.home-page .public-proof-person {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
}

.home-page .public-proof-person i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rhythm-ink);
  color: var(--rhythm-paper);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.home-page .public-proof-person strong {
  font-size: 1.6rem;
  font-weight: 520;
}

.home-page .public-proof-grid p {
  max-width: 34ch;
  margin: 1.25rem 0;
  color: var(--rhythm-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.home-page .public-proof-link {
  padding-top: 1rem;
  border-top: 1px solid var(--rhythm-line);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
}

.home-page .public-proof-summary {
  background: var(--rhythm-acid);
  color: #090909;
}

.home-page .public-proof-summary > span {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
}

.home-page .public-proof-summary > strong {
  max-width: 13ch;
  margin-top: auto;
  font-size: 2rem;
  line-height: 1.02;
  font-weight: 520;
}

.home-page .public-proof-summary p {
  color: #090909;
  opacity: .72;
}

/* Process */
.home-page .home-approach {
  padding-block: 7.5rem;
  background: var(--rhythm-paper);
}

.home-page .home-approach .approach-grid {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
  gap: 6rem !important;
  max-width: 1180px !important;
}

.home-page .home-approach .h-1 {
  max-width: 12ch;
  font-size: 4.2rem;
}

.home-page .home-approach .lead,
.home-page .home-approach p {
  font-family: var(--font-sans) !important;
}

.home-page .home-approach .approach-grid > div:last-child > div > div {
  grid-template-columns: 48px 1fr !important;
  gap: 1.25rem !important;
  padding: 1.5rem 0 !important;
}

.home-page .home-approach .approach-grid > div:last-child > div > div > div:first-child {
  color: var(--rhythm-coral) !important;
  font-family: var(--font-mono) !important;
  font-size: .78rem !important;
  font-style: normal !important;
}

/* Diagnostics as the second dark chapter. */
.home-page .home-tools-section {
  padding-block: 7.5rem;
  border: 0;
  background: #0d0d0c;
  color: #f5f5ef;
}

.home-page .home-tools-head {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 5rem;
  margin-bottom: 4rem;
}

.home-page .home-tools-head .eyebrow {
  color: var(--rhythm-acid);
}

.home-page .home-tools-head .h-1 {
  max-width: 11ch;
  color: #f5f5ef;
  font-size: 4.65rem;
}

.home-page .home-tools-head p {
  color: rgba(245, 245, 239, .66);
  font-family: var(--font-sans);
  font-size: 1.02rem;
}

.home-page .home-tools-grid {
  gap: 1rem;
}

.home-page .home-tool-card,
.home-page .home-tool-card--aeo {
  min-height: 390px;
  padding: 2rem;
  border-color: rgba(245, 245, 239, .18);
  border-radius: 8px;
  background: #171716;
  color: #f5f5ef;
  box-shadow: none;
}

.home-page .home-tool-card::before {
  content: none;
}

.home-page .home-tool-card:hover {
  border-color: var(--rhythm-acid);
  transform: translateY(-4px);
  box-shadow: none;
}

.home-page .home-tool-card h3,
.home-page .home-tool-card strong {
  color: #f5f5ef;
}

.home-page .home-tool-card p,
.home-page .home-tool-topline {
  color: rgba(245, 245, 239, .64);
  font-family: var(--font-sans);
}

.home-page .home-tool-topline {
  font-family: var(--font-mono);
}

.home-page .home-tool-card h3 {
  max-width: 14ch;
  font-size: 2.65rem;
  line-height: 1;
}

.home-page .home-tool-meter {
  height: 4px;
  border-color: rgba(245, 245, 239, .18);
  border-radius: 0;
  background: rgba(245, 245, 239, .08);
}

.home-page .home-tool-meter span {
  background: var(--rhythm-acid);
}

/* One vivid bridge before integrations and contact. */
.home-page .home-compare-section {
  padding-block: 7.5rem;
  border: 0 !important;
  background: var(--rhythm-acid);
  color: #090909;
}

.home-page .home-compare-section > .container {
  max-width: 1120px !important;
}

.home-page .home-compare-section .h-1 {
  max-width: 11ch;
  font-size: 4.8rem;
}

.home-page .home-compare-section .lead {
  color: rgba(9, 9, 9, .72);
  font-family: var(--font-sans);
}

.home-page .home-compare-section .container > div:last-child {
  gap: 0 !important;
  border: 1px solid rgba(9, 9, 9, .28);
  border-radius: 8px;
  overflow: hidden;
}

.home-page .home-compare-section .container > div:last-child > div {
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .46) !important;
  box-shadow: none !important;
}

.home-page .home-compare-section .container > div:last-child > div + div {
  border-left: 1px solid rgba(9, 9, 9, .28) !important;
  background: #ffffff !important;
}

.home-page .home-compare-section li,
.home-page .home-compare-section li span,
.home-page .home-compare-section p {
  color: #090909 !important;
  font-family: var(--font-sans) !important;
}

/* Integrations */
.home-page .home-integrations {
  padding-block: 5.5rem;
  border: 0 !important;
  background: var(--rhythm-paper);
}

.home-page .home-integrations .stack-head--lg {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 1rem 5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.home-page .home-integrations .stack-head--lg .eyebrow {
  grid-column: 1 / -1;
}

.home-page .home-integrations .h-1 {
  margin: 0 !important;
  font-size: 3.8rem;
}

.home-page .home-integrations .lead {
  margin: 0 0 .3rem !important;
  color: var(--rhythm-muted);
  font-family: var(--font-sans);
}

.home-page .home-integrations .marq {
  border-block: 1px solid var(--rhythm-line);
  padding-block: .8rem;
}

.home-page .home-integrations .marq--rev,
.home-page .home-integrations .container > div:last-child {
  display: none;
}

.home-page .home-integrations .chip {
  border-radius: 3px;
  background: transparent;
}

/* Contact */
.home-page #contact.home-contact {
  padding-block: 8rem;
  border-block: 1px solid var(--rhythm-line) !important;
  background: var(--rhythm-soft) !important;
}

.home-page .home-contact .contact-grid {
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr) !important;
  gap: 6rem !important;
  max-width: 1180px !important;
}

.home-page .home-contact .h-1 {
  max-width: 11ch;
  font-size: 4.35rem;
}

.home-page .home-contact .lead,
.home-page .home-contact li span,
.home-page .home-contact p {
  font-family: var(--font-sans) !important;
}

.home-page .home-contact .contact-form-card {
  padding: 2.5rem !important;
  border: 1px solid var(--rhythm-line);
  border-radius: 8px;
  background: var(--rhythm-paper) !important;
  box-shadow: none;
}

.home-page .home-contact .contact-form-intro h3 {
  margin: .7rem 0 .5rem;
  font-size: 2.2rem;
  font-weight: 520;
}

.home-page .home-contact .form-field input,
.home-page .home-contact .form-field select,
.home-page .home-contact .form-field textarea {
  border-radius: 0;
}

.home-page .home-contact .form-editorial .btn {
  border-radius: 4px;
  box-shadow: none;
}

html[data-theme="dark"] .home-page #contact.home-contact {
  background: var(--rhythm-canvas) !important;
  color: var(--rhythm-ink);
}

html[data-theme="dark"] .home-page .home-contact .contact-form-card {
  background: var(--rhythm-paper) !important;
}

/* FAQ */
.home-page .home-faq {
  padding-block: 7rem;
  background: var(--rhythm-paper);
}

.home-page .home-faq .container-narrow {
  max-width: 980px;
}

.home-page .home-faq .container-narrow > div:first-child {
  margin-bottom: 3rem !important;
  text-align: left !important;
}

.home-page .home-faq .eyebrow {
  justify-content: flex-start !important;
}

.home-page .home-faq .h-1 {
  max-width: 14ch;
  font-size: 4.15rem;
}

.home-page .home-faq .faq {
  border-color: var(--rhythm-line);
}

.home-page .home-faq .faq:nth-of-type(n + 6) {
  display: none;
}

.home-page .home-faq .faq summary {
  min-height: 78px;
  padding-block: 1.35rem;
  font-size: 1.25rem;
}

.home-page .home-faq .faq-body {
  max-width: 68ch;
  padding-bottom: 1.5rem;
  color: var(--rhythm-muted);
  font-family: var(--font-sans);
  line-height: 1.65;
}

/* Footer */
.home-page .home-footer {
  padding: 6.5rem 0 2rem;
  border: 0;
  background: #0d0d0c;
  color: #f5f5ef;
}

.home-page .home-footer::before {
  content: none;
}

.home-page .home-footer .container {
  width: min(100% - 3rem, 1280px);
}

.home-page .home-footer .footer-top {
  display: block;
  padding: 0 0 4rem;
  border-bottom: 1px solid rgba(245, 245, 239, .18);
}

.home-page .home-footer .footer-brand {
  max-width: 900px;
}

.home-page .home-footer .footer-logo {
  margin: 0 0 2rem;
  color: #f5f5ef;
  font-size: 7.5rem;
  line-height: .82;
}

.home-page .home-footer .footer-logo-italic {
  font-family: var(--font-logo);
  font-style: italic;
  color: #f5f5ef !important;
}

.home-page .home-footer .footer-logo-caps {
  margin-left: 1rem;
  font-family: var(--font-sans);
  font-size: .17em;
  font-style: normal;
  text-transform: uppercase;
  color: rgba(245, 245, 239, .68) !important;
}

.home-page .home-footer .footer-tag {
  max-width: 72ch;
  color: rgba(245, 245, 239, .62) !important;
  font-family: var(--font-sans);
  font-size: .95rem;
  line-height: 1.6;
}

.home-page .home-footer .footer-tag strong {
  color: #f5f5ef;
}

.home-page .home-footer .footer-newsletter,
.home-page .home-footer .footer-start-card {
  display: none;
}

.home-page .home-footer.footer-rich .footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 4rem;
  padding-block: 4rem;
}

.home-page .home-footer .footer-grid > div:nth-child(3) {
  display: block;
}

.home-page .home-footer .footer-label {
  color: var(--rhythm-acid);
}

.home-page .home-footer a,
.home-page .home-footer .meta {
  color: rgba(245, 245, 239, .68);
}

.home-page .home-footer a:hover,
.home-page .home-footer a:focus-visible {
  color: #ffffff;
}

.home-page .home-footer .footer-bottom {
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 245, 239, .18);
}

/* Keep conversion choices available without covering the work. */
.home-page .audit-cta {
  display: none !important;
}

.home-page .a11y-launcher,
.home-page .chat-launcher,
.home-page .wa-launcher {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  font-size: 0;
}

.home-page .a11y-launcher svg,
.home-page .chat-launcher svg,
.home-page .wa-launcher svg {
  width: 20px;
  height: 20px;
}

/* Transform-only, scroll-linked polish. No opacity means no blank screens. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .home-page .manifesto-frame--discova {
      animation: rhythm-frame-left linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }

    .home-page .manifesto-frame--salud,
    .home-page .manifesto-frame--mercanto {
      animation: rhythm-frame-right linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }

    .home-page .home-portfolio-stage .pf-card-img {
      animation: rhythm-work-image linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
  }
}

@keyframes rhythm-frame-left {
  from { transform: translateY(34px) rotate(-1deg); }
  to { transform: translateY(0) rotate(0); }
}

@keyframes rhythm-frame-right {
  from { transform: translateY(52px) rotate(1deg); }
  to { transform: translateY(0) rotate(0); }
}

@keyframes rhythm-work-image {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}

@media (max-width: 1100px) {
  .home-page .nav-links {
    gap: 0;
  }

  .home-page .nav-link {
    padding-inline: .52rem;
    font-size: .83rem;
  }

  .home-page .nav-actions .btn-audit {
    display: none;
  }

  .home-page .hero-scroll-scene {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
    gap: 3rem;
  }

  .home-page .hero-title {
    font-size: 4.35rem;
  }

  .home-page .manifesto-head h2,
  .home-page .home-portfolio-stage .h-1,
  .home-page .capabilities-head .h-1,
  .home-page .public-proof-head .h-1,
  .home-page .home-tools-head .h-1,
  .home-page .home-compare-section .h-1 {
    font-size: 4rem;
  }

  .home-page .manifesto-collage {
    min-height: 520px;
  }

  .home-page .capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .capabilities-grid > a:nth-child(2) {
    border-right: 0;
  }

  .home-page .capabilities-grid > a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rhythm-line);
  }

  .home-page .home-contact .contact-grid {
    gap: 3.5rem !important;
  }

  .home-page .home-contact .h-1 {
    font-size: 3.7rem;
  }
}

@media (max-width: 880px) {
  .home-page .container,
  .home-page .container-narrow,
  .home-page .home-footer .container {
    width: min(100% - 2rem, 1280px);
  }

  .home-page .section,
  .home-page .section-lg,
  .home-page .section-sm {
    padding-block: 5.5rem;
  }

  .home-page .nav-inner {
    width: min(100% - 2rem, 1320px);
    min-height: 68px;
  }

  .home-page .nav-bar {
    height: 68px;
    min-height: 68px;
  }

  .home-page .hero-scroll-scene {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 6rem 0 4rem;
  }

  .home-page .hero-main {
    max-width: 700px;
  }

  .home-page .hero-title {
    max-width: 9.5ch;
    font-size: 4.35rem;
  }

  .home-page .hero-sidecar {
    width: min(100%, 620px);
    max-width: 620px;
    justify-self: center;
  }

  .home-page .hero-proof-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-page .manifesto-head,
  .home-page .home-portfolio-stage .home-portfolio-head,
  .home-page .capabilities-head,
  .home-page .public-proof-head,
  .home-page .home-tools-head,
  .home-page .home-integrations .stack-head--lg {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-page .manifesto-head .eyebrow,
  .home-page .capabilities-head .eyebrow,
  .home-page .public-proof-head .eyebrow,
  .home-page .home-integrations .stack-head--lg .eyebrow {
    grid-column: auto;
  }

  .home-page .manifesto-head h2,
  .home-page .home-portfolio-stage .h-1,
  .home-page .capabilities-head .h-1,
  .home-page .public-proof-head .h-1,
  .home-page .home-tools-head .h-1,
  .home-page .home-compare-section .h-1,
  .home-page .home-faq .h-1 {
    font-size: 3.65rem;
  }

  .home-page .manifesto-head p,
  .home-page .capabilities-head > p,
  .home-page .public-proof-head > p {
    margin: 0;
  }

  .home-page .manifesto-collage {
    min-height: 500px;
    margin-top: 3.5rem;
  }

  .home-page .manifesto-collage-line {
    right: 2rem;
    bottom: 2rem;
    font-size: 2.5rem;
  }

  .home-page .manifesto-principles {
    grid-template-columns: 1fr;
  }

  .home-page .manifesto-principles article,
  .home-page .manifesto-principles article + article {
    min-height: 0;
    padding: 1.75rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(245, 245, 239, .2);
  }

  .home-page .manifesto-principles article:last-child {
    border-bottom: 0;
  }

  .home-page .manifesto-principles h3 {
    margin-top: 1.25rem;
  }

  .home-page .home-portfolio-stage .home-portfolio-link {
    justify-self: start;
  }

  .home-page .home-portfolio-stage .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem 1rem;
  }

  .home-page .home-portfolio-stage .pf-card,
  .home-page .home-portfolio-stage .pf-card--featured,
  .home-page .home-portfolio-stage .pf-card:nth-child(n),
  .home-page .home-portfolio-stage .pf-card--featured:nth-child(n),
  .home-page .home-portfolio-stage .pf-card--featured:first-child,
  .home-page .home-portfolio-stage .pf-card:nth-child(2) {
    grid-column: span 1;
  }

  .home-page .home-portfolio-stage .pf-card--featured:first-child .pf-card-img,
  .home-page .home-portfolio-stage .pf-card:nth-child(2) .pf-card-img {
    aspect-ratio: 4 / 3;
  }

  .home-page .home-portfolio-stage .pf-card--featured:first-child .pf-card-name,
  .home-page .home-portfolio-stage .pf-card:nth-child(2) .pf-card-name {
    font-size: 1.7rem;
  }

  .home-page .home-portfolio-stage .pf-card-desc,
  .home-page .home-portfolio-stage .pf-card-foot {
    display: none;
  }

  .home-page .public-proof-grid {
    grid-template-columns: 1fr;
  }

  .home-page .public-proof-grid > * {
    min-height: 280px;
  }

  .home-page .home-approach .approach-grid,
  .home-page .home-contact .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 3.5rem !important;
  }

  .home-page .home-approach .h-1,
  .home-page .home-contact .h-1 {
    font-size: 3.65rem;
  }

  .home-page .home-compare-section .container > div:last-child > div + div {
    border-top: 1px solid rgba(9, 9, 9, .28) !important;
    border-left: 0 !important;
  }

  .home-page .home-footer .footer-logo {
    font-size: 5.75rem;
  }
}

@media (max-width: 640px) {
  .home-page .container,
  .home-page .container-narrow,
  .home-page .home-footer .container {
    width: min(100% - 2rem, 1280px);
  }

  .home-page .section,
  .home-page .section-lg,
  .home-page .section-sm {
    padding-block: 4.75rem;
  }

  .home-page .hero-scroll-scene {
    gap: 3.25rem;
    padding: 4.75rem 0 3.25rem;
  }

  .home-page .hero-main > .eyebrow {
    margin-bottom: 1rem;
  }

  .home-page .hero-title {
    max-width: 9.2ch;
    font-size: 3.2rem;
    line-height: .95;
  }

  .home-page .hero-title .hero-title-accent {
    max-width: 13ch;
    margin-top: .34em;
    font-size: .56em;
  }

  .home-page .hero-lead {
    font-size: .96rem;
  }

  .home-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
  }

  .home-page .hero-actions .btn {
    min-width: 0;
    min-height: 46px;
    padding-inline: .75rem;
    font-size: .76rem;
  }

  .home-page .stack-scene {
    min-height: 300px;
  }

  .home-page .stack-badge--br {
    display: none;
  }

  .home-page .hero-sidecar-availability {
    grid-template-columns: 1fr auto;
    gap: .45rem 1rem;
  }

  .home-page .hero-sidecar-availability-value {
    display: none;
  }

  .home-page .hero-proof-panel {
    padding-top: 1.5rem;
  }

  .home-page .founder-strip {
    grid-template-columns: 1fr;
  }

  .home-page .founder-pill {
    min-height: 68px;
  }

  .home-page .trust-badges {
    display: none;
  }

  .home-page .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .hero-proof-strip .hero-stat,
  .home-page .hero-proof-strip .hero-stat:nth-child(n) {
    min-height: 9rem;
    border-right: 1px solid var(--rhythm-line);
    border-bottom: 1px solid var(--rhythm-line);
  }

  .home-page .hero-proof-strip .hero-stat:nth-child(even) {
    border-right: 0;
  }

  .home-page .hero-proof-strip .hero-stat:nth-child(n + 3) {
    border-bottom: 0;
  }

  .home-page .hero-proof-strip .bignum {
    font-size: 2.15rem;
  }

  .home-page .home-manifesto,
  .home-page .home-portfolio-stage,
  .home-page .home-contact {
    padding-block: 5.25rem;
  }

  .home-page .manifesto-head h2,
  .home-page .home-portfolio-stage .h-1,
  .home-page .capabilities-head .h-1,
  .home-page .public-proof-head .h-1,
  .home-page .home-tools-head .h-1,
  .home-page .home-compare-section .h-1,
  .home-page .home-faq .h-1,
  .home-page .home-approach .h-1,
  .home-page .home-contact .h-1 {
    font-size: 3rem;
    line-height: .98;
  }

  .home-page .manifesto-collage {
    min-height: 530px;
    margin-top: 3rem;
  }

  .home-page .manifesto-frame--discova {
    inset: 5% auto auto 4%;
    width: 75%;
    height: 47%;
  }

  .home-page .manifesto-frame--salud {
    inset: 27% 4% auto auto;
    width: 59%;
    height: 41%;
  }

  .home-page .manifesto-frame--mercanto {
    inset: auto auto 5% 8%;
    width: 72%;
    height: 35%;
  }

  .home-page .manifesto-collage-line {
    right: 1.25rem;
    bottom: 1.25rem;
    font-size: 2.05rem;
  }

  .home-page .home-portfolio-stage .pf-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .home-page .home-portfolio-stage .pf-card:nth-child(n + 5) {
    display: none;
  }

  .home-page .home-portfolio-stage .pf-card-img,
  .home-page .home-portfolio-stage .pf-card--featured .pf-card-img,
  .home-page .home-portfolio-stage .pf-card:nth-child(n) .pf-card-img {
    aspect-ratio: 4 / 3;
  }

  .home-page .home-portfolio-stage .cta-after-cases {
    grid-template-columns: 1fr;
    margin-top: 3.5rem;
    padding: 1.5rem;
  }

  .home-page .home-portfolio-stage .cta-after-cases .h-2 {
    font-size: 2rem;
  }

  .home-page .capabilities-grid {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .home-page .capabilities-grid > a,
  .home-page .capabilities-grid > a:nth-child(n) {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--rhythm-line);
  }

  .home-page .capabilities-grid > a:last-child {
    border-bottom: 0;
  }

  .home-page .public-proof-grid {
    margin-top: 3rem;
  }

  .home-page .public-proof-grid > * {
    min-height: 250px;
    padding: 1.4rem;
  }

  .home-page .home-tools-grid {
    grid-template-columns: 1fr;
  }

  .home-page .home-tool-card,
  .home-page .home-tool-card--aeo {
    min-height: 330px;
    padding: 1.5rem;
  }

  .home-page .home-tool-card h3 {
    font-size: 2.15rem;
  }

  .home-page .home-compare-section .container > div:last-child {
    grid-template-columns: 1fr !important;
  }

  .home-page .home-integrations {
    padding-block: 4.5rem;
  }

  .home-page .home-integrations .h-1 {
    font-size: 2.8rem;
  }

  .home-page .home-contact .contact-form-card {
    padding: 1.4rem !important;
  }

  .home-page .home-faq .faq summary {
    min-height: 70px;
    padding-right: 2.25rem;
    font-size: 1.05rem;
  }

  .home-page .home-footer {
    padding-top: 4.75rem;
  }

  .home-page .home-footer .footer-logo {
    font-size: 4.2rem;
  }

  .home-page .home-footer.footer-rich .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3rem 1.5rem !important;
  }

  .home-page .home-footer .footer-grid > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .home-page .home-footer .footer-bottom {
    display: grid;
    gap: .75rem;
  }
}

@media (max-width: 390px) {
  .home-page .hero-title {
    font-size: 2.85rem;
  }

  .home-page .hero-actions {
    grid-template-columns: 1fr;
  }

  .home-page .home-footer .footer-logo {
    font-size: 3.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .manifesto-frame,
  .home-page .home-portfolio-stage .pf-card-img {
    animation: none !important;
    transform: none !important;
  }
}

/* Keep interface detail in portfolio screenshots pixel-sharp. */
.home-page .home-portfolio-stage .pf-card-img,
.home-page .home-portfolio-stage .pf-card--featured .pf-card-img,
.home-page .home-portfolio-stage .pf-card:nth-child(n) .pf-card-img {
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

.home-page .home-portfolio-stage .pf-card-img::after,
.home-page .home-portfolio-stage .pf-card--featured .pf-card-img::after {
  opacity: 0;
}

.home-page .home-portfolio-stage .pf-card-img img,
.home-page .home-portfolio-stage .pf-card--featured .pf-card-img img,
.home-page .home-portfolio-stage .pf-card:nth-child(n) .pf-card-img img,
.home-page .home-portfolio-stage .pf-card:hover .pf-card-img img,
.home-page .home-portfolio-stage .pf-card--featured:hover .pf-card-img img {
  filter: none !important;
  transform: none !important;
  transition: none;
  will-change: auto;
  image-rendering: auto;
}

.home-page .home-portfolio-stage .pf-card:hover .pf-card-img,
.home-page .home-portfolio-stage .pf-card--featured:hover .pf-card-img {
  transform: none !important;
  border-color: rgba(9, 9, 9, .34);
  box-shadow: 0 18px 42px -34px rgba(9, 9, 9, .55);
}

/* --------------------------------------------------------------------------
   Precision regression pass - July 31, 2026
   Removes the duplicated work reel, restores theme contrast, and keeps the
   homepage and archive on one restrained editorial system.
   -------------------------------------------------------------------------- */

.home-page,
.portfolio-page {
  --rhythm-acid: #9d4027;
  --lofts-lime: #9d4027;
}

html[data-theme="dark"] .home-page,
html[data-theme="dark"] .portfolio-page {
  --rhythm-acid: #f08a69;
  --lofts-lime: #f08a69;
}

/* The manifesto now carries the point once; portfolio imagery lives below. */
.home-page .home-manifesto {
  padding-block: clamp(5.5rem, 8vw, 7.5rem);
}

.home-page .manifesto-principles {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

html[data-theme="light"] .home-page .home-manifesto {
  background: var(--rhythm-paper);
  color: var(--rhythm-ink);
}

html[data-theme="light"] .home-page .manifesto-head h2,
html[data-theme="light"] .home-page .manifesto-principles h3 {
  color: var(--rhythm-ink);
}

html[data-theme="light"] .home-page .manifesto-head p,
html[data-theme="light"] .home-page .manifesto-principles p {
  color: var(--rhythm-muted);
}

html[data-theme="light"] .home-page .manifesto-principles,
html[data-theme="light"] .home-page .manifesto-principles article {
  border-color: var(--rhythm-line);
}

html[data-theme="light"] .home-page .home-tools-section {
  border-top: 1px solid var(--rhythm-line);
  background: var(--rhythm-paper);
  color: var(--rhythm-ink);
}

html[data-theme="light"] .home-page .home-tools-head .h-1,
html[data-theme="light"] .home-page .home-tool-card h3,
html[data-theme="light"] .home-page .home-tool-card strong {
  color: var(--rhythm-ink);
}

html[data-theme="light"] .home-page .home-tools-head p,
html[data-theme="light"] .home-page .home-tool-card p,
html[data-theme="light"] .home-page .home-tool-topline {
  color: var(--rhythm-muted);
}

html[data-theme="light"] .home-page .home-tool-card,
html[data-theme="light"] .home-page .home-tool-card--aeo {
  border-color: var(--rhythm-line);
  background: #fff;
  color: var(--rhythm-ink);
}

html[data-theme="light"] .home-page .home-tool-card--aeo {
  background: color-mix(in srgb, var(--rhythm-acid) 6%, #fff);
}

html[data-theme="light"] .home-page .home-tool-meter {
  border-color: var(--rhythm-line);
  background: var(--rhythm-soft);
}

/* Remove the acid-green collision while preserving one clear accent. */
.home-page .stack-badge--tl,
.home-page .hero-proof-strip .hero-stat:nth-child(3),
.home-page .public-proof-summary,
.home-page .capabilities-grid > a:hover,
.home-page .capabilities-grid > a:focus-visible {
  background: var(--rhythm-acid);
  color: #fff;
}

html[data-theme="light"] .home-page .home-compare-section {
  background: color-mix(in srgb, var(--rhythm-acid) 12%, var(--rhythm-paper));
  color: var(--rhythm-ink);
}

html[data-theme="dark"] .home-page .home-compare-section {
  background: color-mix(in srgb, #090909 76%, var(--rhythm-acid));
  color: #f5f5ef;
}

html[data-theme="dark"] .home-page .home-compare-section .h-1,
html[data-theme="dark"] .home-page .home-compare-section > .container > .eyebrow {
  color: #f5f5ef;
}

html[data-theme="dark"] .home-page .home-compare-section > .container > .lead {
  color: rgba(245, 245, 239, .76) !important;
}

.home-page .hero-proof-strip .hero-stat,
.home-page .hero-proof-strip .hero-stat:nth-child(n) {
  background: var(--rhythm-paper);
  color: var(--rhythm-ink);
}

.home-page .hero-proof-strip .hero-stat:nth-child(2) {
  background: var(--rhythm-soft);
}

.home-page .hero-proof-strip .hero-stat:nth-child(3) {
  background: color-mix(in srgb, var(--rhythm-acid) 16%, var(--rhythm-paper));
  color: var(--rhythm-ink);
}

.home-page .hero-proof-strip .hero-stat:nth-child(4) {
  background: #111;
  color: #f5f5ef;
}

html[data-theme="dark"] .home-page .hero-proof-strip .hero-stat,
html[data-theme="dark"] .home-page .hero-proof-strip .hero-stat:nth-child(n) {
  background: var(--rhythm-paper);
  color: var(--rhythm-ink);
}

html[data-theme="dark"] .home-page .hero-proof-strip .hero-stat:nth-child(2) {
  background: var(--rhythm-soft);
}

html[data-theme="dark"] .home-page .hero-proof-strip .hero-stat:nth-child(3) {
  background: color-mix(in srgb, var(--rhythm-acid) 16%, var(--rhythm-paper));
}

html[data-theme="dark"] .home-page .hero-proof-strip .hero-stat:nth-child(4) {
  background: #050505;
}

.home-page .hero-proof-strip .bignum,
.home-page .hero-proof-strip .bignum-suffix,
.home-page .hero-proof-strip .hero-stat-lbl {
  color: inherit !important;
}

/* A shorter, calmer work introduction that does not dominate the projects. */
.home-page .home-portfolio-stage {
  padding-block: clamp(5.5rem, 8vw, 7.5rem);
}

.home-page .home-portfolio-stage .home-portfolio-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .45fr);
  gap: 2rem 5rem;
  align-items: end;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.home-page .home-portfolio-stage .h-1 {
  max-width: 14ch;
  font-size: clamp(3rem, 4.8vw, 4.25rem);
  line-height: .98;
}

.home-page .home-portfolio-stage .home-portfolio-lead {
  max-width: 48ch;
}

/* Portfolio archive hero: first viewport contains the proposition and proof. */
.portfolio-page .portfolio-archive-hero,
body.portfolio-page section.paper.portfolio-archive-hero:first-of-type {
  min-height: 0;
  padding: clamp(6.5rem, 8vw, 8rem) 0 clamp(3rem, 4.5vw, 4.25rem) !important;
  display: block !important;
  align-items: initial !important;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.portfolio-page .portfolio-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(1.5rem, 3vw, 3.25rem) clamp(3rem, 7vw, 8rem);
  align-items: end;
  max-width: none;
}

.portfolio-page .portfolio-hero-shell > .eyebrow,
.portfolio-page .portfolio-hero-stats {
  grid-column: 1 / -1;
}

.portfolio-page .portfolio-hero-shell .h-display,
body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display {
  grid-column: 1;
  max-width: 12ch !important;
  margin: 0;
  font-size: clamp(3.75rem, 6.2vw, 6.2rem) !important;
  line-height: .92 !important;
  color: var(--ink);
}

.portfolio-page .portfolio-hero-lead {
  grid-column: 2;
  max-width: 44ch;
  margin: 0 !important;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.58;
}

.portfolio-page .portfolio-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 920px);
  margin-top: clamp(1rem, 2vw, 2rem);
  border-block: 1px solid var(--line);
}

.portfolio-page .portfolio-hero-stats .hero-stat {
  min-height: 104px;
  padding: 1.15rem 1.25rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
}

.portfolio-page .portfolio-hero-stats .hero-stat:last-child {
  border-right: 0;
}

.portfolio-page .portfolio-hero-stats .bignum,
.portfolio-page .portfolio-hero-stats .bignum-suffix {
  color: var(--ink);
}

.portfolio-page .portfolio-hero-stats .bignum {
  font-size: clamp(2rem, 3vw, 3rem);
}

.portfolio-page .portfolio-hero-stats .hero-stat-lbl {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .63rem;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Resolve the old two-column rule fighting the newer twelve-column spans. */
.portfolio-page #workGrid.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: clamp(3rem, 5vw, 5.5rem) clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: start;
}

.portfolio-page #workGrid > .work-card,
.portfolio-page #workGrid > .work-card-featured,
.portfolio-page #workGrid > .work-card:nth-child(n) {
  grid-column: auto !important;
  width: 100%;
  margin-top: 0;
}

.portfolio-page .work-card-img-link,
.portfolio-page .work-card-img {
  border-radius: 7px;
}

.portfolio-page .work-card-img img,
.portfolio-page .work-card:hover .work-card-img img {
  transform: none;
  filter: none;
  will-change: auto;
}

/* Keep the two conversion routes useful without making a floating tower. */
@media (min-width: 641px) {
  .wa-launcher,
  .chat-launcher {
    right: 1.25rem;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    font-size: 0;
  }

  .wa-launcher {
    bottom: 4.75rem;
  }

  .chat-launcher {
    bottom: 1.25rem;
  }

  .wa-launcher span,
  .chat-launcher-label {
    display: none;
  }
}

@media (max-width: 880px) {
  .portfolio-page .portfolio-archive-hero,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type {
    padding: 6rem 0 3.25rem !important;
  }

  .portfolio-page .portfolio-hero-shell {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .portfolio-page .portfolio-hero-shell .h-display,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display,
  .portfolio-page .portfolio-hero-lead {
    grid-column: 1;
  }

  .portfolio-page .portfolio-hero-shell .h-display,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display {
    max-width: 10ch;
    font-size: clamp(3.15rem, 10vw, 4.8rem) !important;
  }

  .portfolio-page .portfolio-hero-lead {
    max-width: 58ch;
  }

  .home-page .home-portfolio-stage .home-portfolio-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .home-page .home-manifesto,
  .home-page .home-portfolio-stage {
    padding-block: 4.75rem;
  }

  .home-page .home-portfolio-stage .h-1 {
    max-width: 10.5ch;
    font-size: 2.7rem;
  }

  .home-page .hero-proof-strip .hero-stat,
  .home-page .hero-proof-strip .hero-stat:nth-child(n) {
    min-height: 8rem;
    padding: 1rem;
  }

  .home-page .hero-proof-strip .bignum {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .home-page .hero-proof-strip .bignum-word {
    font-size: 1.35rem;
  }

  .portfolio-page .portfolio-archive-hero,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type {
    padding: 5.25rem 0 2.75rem !important;
  }

  .portfolio-page .portfolio-hero-shell .h-display,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display {
    max-width: 10.5ch;
    font-size: clamp(2.65rem, 12vw, 3.4rem) !important;
    line-height: .93;
  }

  .portfolio-page .portfolio-hero-stats {
    width: 100%;
    margin-top: .75rem;
  }

  .portfolio-page .portfolio-hero-stats .hero-stat {
    min-height: 92px;
    padding: .85rem .65rem;
  }

  .portfolio-page .portfolio-hero-stats .bignum {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .portfolio-page .portfolio-hero-stats .hero-stat-lbl {
    font-size: .54rem;
  }

  .portfolio-page #workGrid.work-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* --------------------------------------------------------------------------
   Cohesive studio system - August 1, 2026
   Editorial display contrast, restrained UI type, compact openings, and calm motion.
   The original Lofts wordmark remains intentionally serif.
   -------------------------------------------------------------------------- */

:root {

  --bg: #f4f4f0;
  --bg-soft: #e9e9e3;
  --surface: #fdfdf9;
  --ink: #10100f;
  --ink-soft: #292927;
  --muted: #686863;
  --muted-2: #92928b;
  --line: #d6d6cf;
  --line-soft: #e5e5df;
  --accent: #c64c34;
  --accent-deep: #963824;
  --accent-soft: #f3ddd7;
  --lofts-white: #f4f4f0;
  --lofts-paper: #e9e9e3;
  --lofts-panel: #deded7;
  --lofts-lime: #c64c34;
  --lofts-blue: #10100f;
  --lofts-sky: #e3e3dc;
  --lofts-coral: #c64c34;
  --rhythm-acid: #c64c34;
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 8px;
}

.home-page {

}

html[data-theme="dark"] {
  --bg: #0b0b0a;
  --bg-soft: #141413;
  --surface: #1a1a18;
  --ink: #f5f4ef;
  --ink-soft: #d7d6d0;
  --muted: #a3a29b;
  --muted-2: #777771;
  --line: #333330;
  --line-soft: #272725;
  --accent: #f07a5e;
  --accent-deep: #ff9b83;
  --accent-soft: #321b16;
  --lofts-white: #0b0b0a;
  --lofts-paper: #141413;
  --lofts-panel: #1a1a18;
  --lofts-lime: #f07a5e;
  --lofts-blue: #f5f4ef;
  --lofts-sky: #262624;
  --lofts-coral: #f07a5e;
  --rhythm-acid: #f07a5e;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

html body * {
  letter-spacing: 0 !important;
}

body {
  font-size: 16px;
  line-height: 1.62;
  background: var(--bg);
  color: var(--ink);
}

.nav-logo,
.mnav-logo,
.footer-logo-italic {
  font-family: var(--font-logo) !important;
}

.italic-serif,
.serif {
  font-family: var(--font-editorial);
}

.font-serif {
  font-family: var(--font-sans);
}

.italic-serif {
  font-style: italic;
  font-optical-sizing: auto;
}

.h-display,
.h-1,
.h-2,
.h-3,
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(3.25rem, 6.2vw, 6.5rem);
  line-height: .93;
}

.h-1 {
  font-size: clamp(2.7rem, 5vw, 5.25rem);
  line-height: .96;
}

.h-2 {
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1;
}

.lead {
  max-width: 58ch;
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.58;
  color: var(--ink-soft);
}

.eyebrow,
.hero-stat-lbl,
.work-card-meta,
.home-tool-topline,
.footer-label,
.footer-now-label,
.footer-now-tag {
  font-family: var(--font-mono);
  font-size: .66rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.nav-link,
.btn,
.btn-primary,
.btn-audit,
.btn-link,
.nav-actions .btn {
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 650;
}

.btn-primary:hover,
.nav-actions .btn-primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.nav-actions .btn-audit:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

/* Stable headings: no post-paint word wrapping or invisible split state. */
[data-split="words"],
[data-split="words"].split-static,
[data-split="words"].split-done {
  visibility: visible !important;
}

[data-split="words"] .word-mask,
[data-split="words"] .word,
.h-1 .word-mask,
.h-1 .word,
.h-2 .word-mask,
.h-2 .word {
  display: inline;
  overflow: visible;
  transform: none !important;
  animation: none !important;
}

/* Shared page openings */
body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type {
  min-height: 0;
  padding: clamp(7.5rem, 11vw, 10rem) 0 clamp(4.25rem, 7vw, 6.5rem) !important;
  display: block;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type > .container {
  position: relative;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type > .container::before,
.loc-hero > .container::before,
.diagnostic-hero > .container::before {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  background: var(--accent);
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .h-display {
  max-width: 12.5ch;
  font-size: clamp(3.4rem, 6.5vw, 6.7rem);
  line-height: .93;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .lead {
  max-width: 54ch;
  margin-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.loc-hero,
.region-hero,
.diagnostic-page .diagnostic-hero {
  min-height: 0;
  padding: clamp(7.5rem, 11vw, 10rem) 0 clamp(4.25rem, 7vw, 6.5rem) !important;
  border-bottom: 1px solid var(--line);
  background: var(--bg) !important;
  color: var(--ink);
}

.loc-hero-copy,
.region-hero .loc-hero-copy,
.diagnostic-page .diagnostic-hero-copy {
  max-width: 1120px;
}

.loc-hero-copy .h-display,
.region-hero .loc-hero-copy .h-display,
.diagnostic-page .diagnostic-hero .h-display,
.diagnostic-page .diagnostic-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 6.5vw, 6.7rem);
  line-height: .93;
}

/* Homepage opening: immediate proposition, project proof, then compact metrics. */
.home-page .hero-paper {
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  background: var(--bg);
}

.home-page .hero-grid,
.home-page .hero-scroll-track {
  min-height: 0;
  height: auto;
}

.home-page .hero-scroll-scene {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  grid-template-rows: auto;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  min-height: min(770px, 100svh);
  height: auto;
  padding: clamp(7.75rem, 12vh, 9.5rem) 0 clamp(4rem, 7vh, 6rem);
  overflow: visible;
}

.home-page .hero-main {
  position: relative;
  z-index: 3;
  display: block;
  align-self: center;
  padding: 0;
  opacity: 1;
  transform: none;
}

.home-page .hero-main > .eyebrow {
  display: inline-flex;
  margin: 0 0 1.75rem;
}

.home-page .hero-title {
  display: block;
  max-width: 10.5ch;
  margin: 0 !important;
  font-size: clamp(4rem, 6.2vw, 6.45rem);
  font-weight: 600;
  line-height: .94;
}

.home-page .hero-title .hero-title-accent {
  display: block;
  max-width: 18ch;
  margin-top: .4em;
  color: var(--accent-deep);
  font-family: var(--font-editorial);
  font-size: .36em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
}

.home-page .hero-lead {
  max-width: 48ch !important;
  margin: 2rem 0 0 !important;
  font-size: clamp(1.02rem, 1.18vw, 1.16rem);
  line-height: 1.58;
}

.home-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.75rem;
}

.home-page .hero-sidecar {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  justify-self: end;
  width: min(100%, 620px);
  transform: none;
}

.home-page .stack-scene {
  width: 100%;
  filter: drop-shadow(0 28px 34px rgba(16, 16, 15, .14));
}

.home-page .stack-card-inner,
.home-page .stack-card-img,
.home-page .stack-card-img img {
  image-rendering: auto;
  filter: none;
}

.home-page .stack-badge,
.home-page .stack-badge--tl,
.home-page .stack-badge--br {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: var(--surface);
  color: var(--ink);
}

.home-page .stack-badge svg {
  color: var(--accent);
}

.home-page .hero-sidecar-availability {
  opacity: 1;
}

.home-page .hero-proof-panel {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
  padding: clamp(2.75rem, 4vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.home-page .hero-proof-copy {
  display: grid;
  align-content: space-between;
}

.home-page .founder-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-page .hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.home-page .hero-proof-strip .hero-stat,
.home-page .hero-proof-strip .hero-stat:nth-child(n),
html[data-theme="dark"] .home-page .hero-proof-strip .hero-stat,
html[data-theme="dark"] .home-page .hero-proof-strip .hero-stat:nth-child(n) {
  min-height: 10.5rem;
  padding: 1.15rem;
  border: 0;
  background: var(--surface);
  color: var(--ink);
}

.home-page .hero-proof-strip .hero-stat:nth-child(3) {
  background: var(--accent-soft);
}

.home-page .hero-proof-strip .hero-stat:last-child,
html[data-theme="dark"] .home-page .hero-proof-strip .hero-stat:last-child {
  background: var(--ink);
  color: var(--bg);
}

.home-page .hero-proof-strip .bignum {
  font-size: clamp(2.15rem, 3.5vw, 3.35rem);
}

/* Portfolio archive opening */
.portfolio-page .portfolio-archive-hero,
body.portfolio-page section.paper.portfolio-archive-hero:first-of-type {
  min-height: 0;
  padding: clamp(7.5rem, 11vw, 10rem) 0 clamp(3.75rem, 6vw, 5.5rem) !important;
  background: var(--bg);
}

.portfolio-page .portfolio-hero-shell {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .68fr);
  gap: 2rem clamp(3rem, 8vw, 9rem);
  align-items: end;
}

.portfolio-page .portfolio-hero-shell::before {
  content: "";
  grid-column: 1 / -1;
  width: 4.5rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--accent);
}

.portfolio-page .portfolio-hero-shell .h-display,
body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display {
  max-width: 10ch !important;
  font-size: clamp(4rem, 6.6vw, 7rem) !important;
  line-height: .91 !important;
}

.portfolio-page .portfolio-hero-lead {
  max-width: 43ch;
  padding-bottom: .3rem;
  font-size: clamp(1.04rem, 1.25vw, 1.18rem);
}

.portfolio-page .portfolio-hero-stats {
  width: 100%;
  max-width: none;
  margin-top: 2rem;
}

.portfolio-page .portfolio-hero-stats .hero-stat {
  min-height: 112px;
  background: transparent;
}

.portfolio-page .portfolio-hero-stats .bignum {
  font-size: clamp(2.2rem, 3.3vw, 3.5rem);
}

.portfolio-page .pf-filter-bar {
  top: 76px !important;
  background: color-mix(in srgb, var(--bg) 92%, transparent) !important;
  border-bottom-color: var(--line) !important;
}

html[data-theme="dark"] .portfolio-page .pf-filter-bar {
  background: color-mix(in srgb, var(--bg) 92%, transparent) !important;
}

/* One light system and one dark system for sections that previously collided. */
.home-page .home-tools-section,
html[data-theme="light"] .home-page .home-tools-section {
  padding-block: clamp(5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
}

.home-page .home-tools-head {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.home-page .home-tools-head .eyebrow {
  color: var(--accent-deep);
}

.home-page .home-tools-head .h-1 {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(3rem, 5vw, 5rem);
}

.home-page .home-tools-head p,
.home-page .home-tool-card p,
.home-page .home-tool-topline {
  color: var(--muted);
}

.home-page .home-tools-grid {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.home-page .home-tool-card,
.home-page .home-tool-card--aeo,
html[data-theme="light"] .home-page .home-tool-card,
html[data-theme="light"] .home-page .home-tool-card--aeo {
  min-height: 330px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
}

.home-page .home-tool-card h3,
.home-page .home-tool-card strong {
  color: var(--ink);
}

.home-page .home-tool-card h3 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

.home-page .home-tool-card:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent-soft) 48%, var(--surface));
  transform: none;
}

html[data-theme="dark"] .home-page .home-tools-section {
  background: #10100f;
  color: var(--ink);
}

html[data-theme="dark"] .home-page .home-tool-card,
html[data-theme="dark"] .home-page .home-tool-card--aeo {
  background: #181817;
  color: #f5f4ef;
}

html[data-theme="dark"] .home-page .home-tool-card h3,
html[data-theme="dark"] .home-page .home-tool-card strong,
html[data-theme="dark"] .home-page .home-tools-head .h-1 {
  color: #f5f4ef;
}

html[data-theme="dark"] .home-page .home-tools-head p,
html[data-theme="dark"] .home-page .home-tool-card p,
html[data-theme="dark"] .home-page .home-tool-topline {
  color: #aaa9a2;
}

.home-page .home-compare-section,
html[data-theme="light"] .home-page .home-compare-section {
  background: var(--accent-soft);
  color: var(--ink);
}

html[data-theme="dark"] .home-page .home-compare-section {
  background: #20120f;
  color: #f5f4ef;
}

html[data-theme="dark"] .home-page .home-compare-section .container > div:last-child > div,
html[data-theme="dark"] .home-page .home-compare-section .container > div:last-child > div + div {
  background: #181817 !important;
}

html[data-theme="dark"] .home-page .home-compare-section li,
html[data-theme="dark"] .home-page .home-compare-section li span,
html[data-theme="dark"] .home-page .home-compare-section p {
  color: #f5f4ef !important;
}

.home-page #contact.home-contact,
html[data-theme="light"] .home-page #contact.home-contact {
  background: var(--bg-soft) !important;
}

html[data-theme="dark"] .home-page #contact.home-contact,
html[data-theme="dark"] #contact,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .diagnostic-hero {
  background: var(--bg-soft) !important;
  color: var(--ink);
}

/* Footer: useful, compact, and balanced instead of a large empty logo field. */
.site-footer,
.home-page .home-footer {
  padding: clamp(4.5rem, 7vw, 7rem) 0 2rem;
  background: #0d0d0c;
  color: #f5f4ef;
}

.site-footer::before,
.home-page .home-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--accent);
}

.lofts-footer-call,
.site-footer .lofts-footer-call,
.home-page .home-footer .lofts-footer-call {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr);
  gap: 2rem 5rem;
  align-items: end;
  margin: 0 0 clamp(3.5rem, 6vw, 5.5rem);
  padding: 0 0 clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid #333330;
}

.lofts-footer-call__link,
.site-footer .lofts-footer-call__link {
  max-width: 12ch;
  font-size: clamp(3.25rem, 6vw, 6.5rem);
  line-height: .92;
}

.lofts-footer-call__link:hover {
  color: var(--accent);
}

.site-footer .footer-top,
.home-page .home-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding: 0 0 clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid #333330;
}

.site-footer .footer-brand,
.home-page .home-footer .footer-brand {
  max-width: 720px;
}

.site-footer .footer-logo,
.home-page .home-footer .footer-logo {
  margin: 0 0 1.75rem;
  color: #f5f4ef;
  font-size: clamp(3.8rem, 6vw, 6rem);
  line-height: .9;
}

.site-footer .footer-logo-caps,
.home-page .home-footer .footer-logo-caps {
  margin-left: .75rem;
  font-family: var(--font-sans);
  font-size: .16em;
  color: #a4a39c !important;
}

.site-footer .footer-tag,
.home-page .home-footer .footer-tag {
  max-width: 62ch;
  color: #aaa9a2 !important;
  font-family: var(--font-sans);
  font-size: .96rem;
  line-height: 1.62;
}

.site-footer .footer-newsletter,
.home-page .home-footer .footer-newsletter {
  display: flex !important;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid #333330;
  border-radius: 6px;
  background: #171716;
}

.site-footer .footer-newsletter-title,
.home-page .home-footer .footer-newsletter-title {
  margin: .2rem 0 .75rem;
  color: #f5f4ef;
  font-size: clamp(1.65rem, 2.4vw, 2.5rem);
  line-height: 1.05;
}

.site-footer .footer-newsletter-form {
  border-color: #3b3b38;
  background: #111110;
}

.site-footer .footer-newsletter-form button {
  background: var(--accent);
  color: #fff;
}

.site-footer .footer-now {
  padding-block: 2.5rem;
  border-color: #333330;
}

.site-footer .footer-now-grid {
  gap: 1px;
  border: 1px solid #333330;
  background: #333330;
}

.site-footer .footer-now-item {
  padding: 1.25rem;
  border: 0;
  background: #171716;
}

.site-footer .footer-now-text {
  color: #f5f4ef;
}

.site-footer .footer-grid,
.home-page .home-footer.footer-rich .footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .85fr .85fr 1.2fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.site-footer .footer-start-card,
.home-page .home-footer .footer-start-card {
  display: block;
  border-color: #333330;
  background: #171716;
}

.site-footer .footer-start-card .btn-primary {
  background: var(--accent);
  color: #fff;
}

/* Calm motion with stable layout and sharp media. */
html.lofts-motion-ready [data-lofts-reveal] {
  opacity: 0;
  clip-path: none;
  transform: translate3d(0, 22px, 0);
  transition: opacity .72s cubic-bezier(.22, .75, .2, 1), transform .82s cubic-bezier(.22, .75, .2, 1);
  transition-delay: var(--lofts-reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.lofts-motion-ready [data-lofts-reveal].lofts-in-view {
  opacity: 1;
  clip-path: none;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* A listing must never depend on scroll observers to become readable. */
.route-blog #posts-grid[data-lofts-reveal],
.route-blog #posts-grid .post-card[data-lofts-reveal] {
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

@keyframes loftsHeroEnter {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.home-page .hero-main > .eyebrow,
.home-page .hero-title,
.home-page .hero-lead,
.home-page .hero-actions,
.home-page .hero-sidecar {
  animation: loftsHeroEnter .86s cubic-bezier(.22, .75, .2, 1) both;
}

.home-page .hero-title { animation-delay: .06s; }
.home-page .hero-lead { animation-delay: .12s; }
.home-page .hero-actions { animation-delay: .18s; }
.home-page .hero-sidecar { animation-delay: .14s; }

.home-portfolio-stage .pf-card-img,
.portfolio-page .work-card-img-link,
[data-lofts-tilt] {
  transform: none !important;
}

.home-portfolio-stage .pf-card-img img,
.portfolio-page .work-card-img img,
.case-study .case-image img {
  transform: none !important;
  filter: none !important;
  image-rendering: auto;
  backface-visibility: hidden;
}

@media (max-width: 980px) {
  .home-page .hero-scroll-scene {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: 0;
    padding: 7.5rem 0 4rem;
  }

  .home-page .hero-main {
    max-width: 760px;
    padding: 0;
  }

  .home-page .hero-title {
    max-width: 10.5ch;
    font-size: clamp(4rem, 10vw, 6rem);
  }

  .home-page .hero-sidecar {
    justify-self: center;
    width: min(100%, 700px);
  }

  .home-page .hero-proof-panel {
    grid-template-columns: 1fr;
  }

  .portfolio-page .portfolio-hero-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-page .portfolio-hero-shell .h-display,
  .portfolio-page .portfolio-hero-lead {
    grid-column: 1;
  }

  .portfolio-page .portfolio-hero-lead {
    max-width: 56ch;
  }

  .site-footer .footer-top,
  .home-page .home-footer .footer-top,
  .lofts-footer-call,
  .site-footer .lofts-footer-call {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .site-footer .footer-grid,
  .home-page .home-footer.footer-rich .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container,
  .container-narrow,
  .home-page .hero-paper > .container {
    padding-inline: 1.15rem;
  }

  .section,
  .section-lg {
    padding-block: 4.5rem;
  }

  .section-sm {
    padding-block: 3.75rem;
  }

  .h-display,
  .h-1 {
    overflow-wrap: anywhere;
  }

  .h-display {
    font-size: clamp(2.65rem, 12vw, 3.6rem);
    line-height: .96;
  }

  .h-1 {
    font-size: clamp(2.35rem, 10.8vw, 3.2rem);
    line-height: .98;
  }

  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type,
  .loc-hero,
  .region-hero,
  .diagnostic-page .diagnostic-hero {
    padding: 6.75rem 0 3.75rem !important;
  }

  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .h-display,
  .loc-hero-copy .h-display,
  .region-hero .loc-hero-copy .h-display,
  .diagnostic-page .diagnostic-hero .h-display,
  .diagnostic-page .diagnostic-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 12.5vw, 3.7rem);
    line-height: .96;
  }

  .home-page .hero-scroll-scene {
    gap: 2.5rem;
    padding: 6.5rem 0 3.25rem;
  }

  .home-page .hero-main > .eyebrow {
    margin-bottom: 1.15rem;
  }

  .home-page .hero-title {
    max-width: none;
    font-size: clamp(3rem, 13.3vw, 4rem);
    line-height: .93;
  }

  .home-page .hero-title .hero-title-accent {
    max-width: 16ch;
    margin-top: .42em;
    font-size: .43em;
  }

  .home-page .hero-lead {
    margin-top: 1.5rem !important;
    font-size: .98rem;
  }

  .home-page .hero-actions {
    align-items: stretch;
    margin-top: 1.5rem;
  }

  .home-page .hero-actions .btn {
    flex: 1 1 12rem;
  }

  .home-page .hero-actions .btn-link {
    flex: 1 1 10rem;
    justify-content: center;
  }

  .home-page .stack-scene {
    aspect-ratio: 1.12 / 1;
  }

  .home-page .hero-sidecar-availability {
    grid-template-columns: 1fr auto;
    gap: .55rem 1rem;
  }

  .home-page .hero-sidecar-availability-value {
    display: none;
  }

  .home-page .hero-proof-panel {
    gap: 2rem;
    padding: 2.5rem 0 3.25rem;
  }

  .home-page .founder-strip {
    grid-template-columns: 1fr;
  }

  .home-page .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .hero-proof-strip .hero-stat,
  .home-page .hero-proof-strip .hero-stat:nth-child(n) {
    min-height: 8.5rem;
    padding: 1rem;
  }

  .home-page .hero-proof-strip .bignum {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  .portfolio-page .portfolio-archive-hero,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type {
    padding: 6.75rem 0 3rem !important;
  }

  .portfolio-page .portfolio-hero-shell .h-display,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display {
    max-width: 10ch !important;
    font-size: clamp(2.8rem, 13vw, 3.9rem) !important;
    line-height: .95 !important;
  }

  .portfolio-page .portfolio-hero-stats .hero-stat {
    min-height: 96px;
    padding: .85rem .7rem;
  }

  .portfolio-page .portfolio-hero-stats .bignum {
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .portfolio-page .pf-filter-bar {
    top: 64px !important;
  }

  .home-page .home-tools-head,
  .home-page .home-tools-grid {
    grid-template-columns: 1fr;
  }

  .home-page .home-tool-card,
  .home-page .home-tool-card--aeo {
    min-height: 0;
    padding: 1.35rem;
  }

  .home-page .home-tool-card h3 {
    font-size: 2.25rem;
  }

  .site-footer,
  .home-page .home-footer {
    padding-top: 4rem;
  }

  .site-footer .footer-logo,
  .home-page .home-footer .footer-logo {
    font-size: 3.75rem;
  }

  .site-footer .footer-newsletter,
  .home-page .home-footer .footer-newsletter {
    padding: 1.15rem;
  }

  .site-footer .footer-newsletter-form {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-newsletter-form button {
    width: 100%;
  }

  .site-footer .footer-now-grid,
  .site-footer .footer-grid,
  .home-page .home-footer.footer-rich .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .site-footer .footer-start-card,
  .home-page .home-footer .footer-start-card {
    grid-column: 1;
  }

  .lofts-footer-call__link,
  .site-footer .lofts-footer-call__link {
    font-size: clamp(3rem, 13vw, 4.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  html.lofts-motion-ready [data-lofts-reveal],
  .home-page .hero-main > *,
  .home-page .hero-sidecar {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* FINAL PRECISION PASS: stable first paint and one compact opening rhythm. */
.home-page .hero-main > .eyebrow,
.home-page .hero-title,
.home-page .hero-lead,
.home-page .hero-actions,
.home-page .hero-sidecar {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Concise SEO research notes use the same studio system as the main journal. */
body.lofts-brief-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.lofts-brief-nav {
  position: sticky;
  z-index: 120;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.lofts-brief-nav__inner.nav-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(100% - 3rem, 1320px);
  min-height: 72px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.lofts-brief-brand {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
}

.lofts-brief-brand strong {
  font-family: var(--font-logo);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.lofts-brief-brand span {
  color: var(--muted);
  font: 500 .64rem/1 var(--font-mono);
  letter-spacing: .18em;
}

.lofts-brief-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
  margin-right: 1rem;
}

.lofts-brief-links a {
  color: var(--ink-soft);
  font: 600 .82rem/1 var(--font-sans);
  text-decoration: none;
}

.lofts-brief-links a:last-child {
  padding: .75rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.lofts-brief-page .post-shell {
  width: min(100% - 3rem, 940px) !important;
  max-width: 940px !important;
  margin: 0 auto !important;
  padding: clamp(5rem, 8vw, 7.5rem) 0 clamp(5rem, 8vw, 7rem) !important;
  color: var(--ink) !important;
  font-family: var(--font-sans) !important;
  line-height: 1.72 !important;
}

.lofts-brief-page .post-shell > p:first-child {
  margin: 0 0 2rem;
  color: var(--muted);
  font: 500 .7rem/1.4 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lofts-brief-page .post-shell > p:first-child a {
  color: inherit;
}

.lofts-brief-page .post-shell h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  font: 600 clamp(3.2rem, 7vw, 6.6rem)/.96 var(--font-display);
  letter-spacing: 0;
}

.lofts-brief-page .post-shell > h1 + p {
  max-width: 720px;
  margin: 2rem 0 3rem;
  color: var(--ink-soft) !important;
  font: 400 clamp(1.15rem, 2vw, 1.45rem)/1.58 var(--font-sans) !important;
}

.lofts-brief-page .post-shell section {
  margin: 0 0 3rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) !important;
  border: 1px solid var(--line) !important;
  border-radius: 4px !important;
  background: var(--surface) !important;
}

.lofts-brief-page .post-shell section h2 {
  margin-top: 0;
}

.lofts-brief-page .post-shell h2 {
  max-width: 24ch;
  margin: 4.5rem 0 1rem;
  color: var(--ink);
  font: 550 clamp(1.75rem, 3vw, 2.65rem)/1.06 var(--font-sans);
  letter-spacing: 0;
}

.lofts-brief-page .post-shell p,
.lofts-brief-page .post-shell li {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.lofts-brief-page .post-shell ul,
.lofts-brief-page .post-shell ol {
  margin: 1rem 0 2rem;
  padding-left: 1.4rem;
}

.lofts-brief-page .post-shell li + li {
  margin-top: .55rem;
}

.lofts-brief-page .post-shell a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: .2em;
}

.lofts-brief-page .post-shell figure {
  margin: 3rem 0 !important;
}

.lofts-brief-page .post-shell figure img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border: 1px solid var(--line) !important;
  border-radius: 4px !important;
  background: var(--surface);
}

.lofts-brief-page .post-shell figcaption {
  margin-top: .7rem;
  color: var(--muted);
  font: 500 .7rem/1.4 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lofts-brief-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
}

.lofts-brief-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 3rem, 1320px);
  margin-inline: auto;
  padding: 2.25rem 0;
}

.lofts-brief-footer p {
  margin: 0;
  color: color-mix(in srgb, var(--bg) 66%, transparent);
  font-size: .84rem;
}

.lofts-brief-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.lofts-brief-footer a {
  color: var(--bg);
  font-size: .84rem;
  text-decoration: none;
}

@media (max-width: 640px) {
  .lofts-brief-nav__inner.nav-inner {
    grid-template-columns: auto 1fr auto;
    width: min(100% - 2rem, 1320px);
    min-height: 64px;
  }

  .lofts-brief-links {
    gap: .75rem;
    margin-right: .5rem;
  }

  .lofts-brief-links a:not(:last-child) {
    display: none;
  }

  .lofts-brief-links a:last-child {
    padding: .65rem .78rem;
    font-size: .74rem;
  }

  .lofts-brief-page .post-shell {
    width: min(100% - 2rem, 940px) !important;
    padding: 3.75rem 0 4.5rem !important;
  }

  .lofts-brief-page .post-shell h1 {
    font-size: clamp(2.65rem, 13vw, 3.75rem);
    line-height: .96;
  }

  .lofts-brief-page .post-shell > h1 + p {
    margin: 1.5rem 0 2.25rem;
    font-size: 1.05rem !important;
  }

  .lofts-brief-page .post-shell h2 {
    margin-top: 3.25rem;
  }

  .lofts-brief-footer__inner {
    display: grid;
    width: min(100% - 2rem, 1320px);
  }
}

html.lofts-motion-ready .home-page .hero-paper [data-lofts-reveal],
html.lofts-motion-ready body:not(.home-page) main > section:first-child [data-lofts-reveal],
html.lofts-motion-ready .portfolio-archive-hero [data-lofts-reveal],
html.lofts-motion-ready .loc-hero [data-lofts-reveal],
html.lofts-motion-ready .region-hero [data-lofts-reveal],
html.lofts-motion-ready .diagnostic-hero [data-lofts-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type {
  padding: clamp(4.75rem, 7vw, 6.25rem) 0 clamp(3.25rem, 5vw, 4.5rem) !important;
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type > .container::before,
.loc-hero > .container::before,
.region-hero > .container::before,
.diagnostic-copy::before {
  width: 4rem;
  margin-bottom: clamp(1.6rem, 2.5vw, 2.25rem);
}

body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .h-display {
  font-size: clamp(3.15rem, 4.8vw, 4.7rem) !important;
  line-height: .95 !important;
}

.portfolio-page .portfolio-archive-hero,
body.portfolio-page section.paper.portfolio-archive-hero:first-of-type {
  padding: clamp(4.75rem, 6.5vw, 6rem) 0 clamp(2.75rem, 4vw, 3.75rem) !important;
}

.portfolio-page .portfolio-hero-shell {
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .62fr);
  gap: 1.35rem clamp(3.5rem, 7vw, 8rem);
  align-items: center;
}

.portfolio-page .portfolio-hero-shell::before {
  margin-bottom: .35rem;
}

.portfolio-page .portfolio-hero-shell .h-display,
body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display {
  max-width: 12ch !important;
  font-size: clamp(3.75rem, 5.45vw, 5.25rem) !important;
  line-height: .93 !important;
}

.portfolio-page .portfolio-hero-lead {
  align-self: center;
  padding: 1rem 0 0;
}

.portfolio-page .portfolio-hero-stats {
  margin-top: 1rem;
}

.portfolio-page .portfolio-hero-stats .hero-stat {
  min-height: 98px;
  padding-block: 1rem;
}

.loc-hero,
.region-hero {
  padding: clamp(4.75rem, 6.5vw, 6rem) 0 clamp(3.25rem, 5vw, 4.5rem) !important;
}

.loc-hero-copy > .h-display,
.region-hero .loc-hero-copy > .h-display {
  max-width: 12.5ch;
  font-size: clamp(3.15rem, 4.85vw, 4.8rem) !important;
  line-height: .95 !important;
}

.diagnostic-page .diagnostic-hero {
  padding: clamp(4.25rem, 6vw, 5.5rem) 0 clamp(3.25rem, 4vw, 4rem) !important;
}

.diagnostic-copy .h-display,
.diagnostic-page .diagnostic-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.15rem, 4.85vw, 4.8rem) !important;
  line-height: .95 !important;
}

@media (max-width: 880px) {
  .portfolio-page .portfolio-hero-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type,
  .loc-hero,
  .region-hero {
    padding: 4rem 0 3.25rem !important;
  }

  .home-page .hero-scroll-scene {
    gap: 2.15rem;
    padding: 5rem 0 3rem;
  }

  .home-page .hero-title {
    font-size: clamp(2.95rem, 13vw, 3.75rem);
    line-height: .94;
  }

  .portfolio-page .portfolio-archive-hero,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type {
    padding: 4rem 0 2.6rem !important;
  }

  .portfolio-page .portfolio-hero-shell .h-display,
  body.portfolio-page section.paper.portfolio-archive-hero:first-of-type .h-display,
  body:not(.home-page):not(.portfolio-page):not(.diagnostic-page):not(.booking-page):not(.agency-command-page) section.paper:first-of-type .h-display,
  .loc-hero-copy > .h-display,
  .region-hero .loc-hero-copy > .h-display,
  .diagnostic-copy .h-display,
  .diagnostic-page .diagnostic-hero h1 {
    max-width: none !important;
    font-size: clamp(2.55rem, 12vw, 3.35rem) !important;
    line-height: .97 !important;
  }

  .diagnostic-page .diagnostic-hero {
    padding: 3.75rem 0 3rem !important;
  }
}
