/* Local Anti-Slop preview. Isolated from the production stylesheet. */

:root {
  --preview-bg: #0b0a0a;
  --preview-surface: #121111;
  --preview-surface-2: #191717;
  --preview-ink: #f3efe9;
  --preview-muted: #c9c2ba;
  --preview-soft: #a59d95;
  --preview-line: rgba(243, 239, 233, .18);
  --preview-accent: #9d6ef0;
  --text-display: clamp(2.75rem, 4vw, 4.65rem);
  --text-heading: clamp(2.5rem, 5vw, 5.5rem);
  --text-body: clamp(1rem, 1.15vw, 1.125rem);
  --text-meta: .8125rem;
  --text-control: .875rem;
  --serif: 'Instrument Sans', system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
}

html { background: var(--preview-bg); }
body {
  background: var(--preview-bg);
  color: var(--preview-ink);
  font-family: var(--sans);
  font-weight: 400;
}

nav {
  padding: 1.15rem clamp(1.25rem, 4vw, 4.5rem);
  background: rgba(11, 10, 10, .94);
  border-bottom-color: var(--preview-line);
  backdrop-filter: none;
}
nav.scrolled { background: rgba(11, 10, 10, .97); backdrop-filter: none; }
.nav-logo { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { margin-left: auto; margin-right: 2rem; }
.nav-links a {
  color: var(--preview-muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: none;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--preview-ink); }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .8rem 1.15rem;
  border-radius: 0;
  font-family: var(--sans);
  font-size: var(--text-control);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.action--primary { color: var(--preview-bg); background: var(--preview-ink); border: 1px solid var(--preview-ink); }
.action--primary:hover,
.action--primary:focus-visible { background: var(--preview-accent); border-color: var(--preview-accent); color: #fff; transform: none; }
.action--secondary { color: var(--preview-ink); background: transparent; border: 1px solid var(--preview-line); }
.action--secondary:hover,
.action--secondary:focus-visible { color: var(--preview-bg); background: var(--preview-ink); border-color: var(--preview-ink); }
.nav-cta { white-space: nowrap; }

.hero {
  min-height: 100svh;
  padding: clamp(8.5rem, 11vw, 11rem) clamp(1.5rem, 5vw, 5.5rem) clamp(5rem, 8vw, 8rem);
  grid-template-columns: minmax(0, .68fr) minmax(520px, 1.32fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
  overflow: visible;
}
.hero-left { max-width: 700px; padding-bottom: 1.25rem; }
h1.hero-title {
  max-width: 700px;
  margin-bottom: 2rem;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: var(--text-display);
  font-weight: 620;
  line-height: .96;
  letter-spacing: -.035em;
  opacity: 1;
  animation: none;
}
h1.hero-title span { display: block; }
h1.hero-title .hero-title__main { max-width: 9.5ch; text-wrap: balance; }
h1.hero-title .hero-title__audience {
  max-width: 34ch;
  margin-top: 1.35rem;
  color: var(--preview-muted);
  font-size: clamp(.92rem, 1.15vw, 1.05rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .01em;
}
.hero-sub {
  max-width: 610px;
  margin-bottom: 2rem;
  color: var(--preview-muted);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  opacity: 1;
  animation: none;
}
.hero-btns { opacity: 1; animation: none; }
.hero-btns-refined { max-width: none; }
.hero-btns-refined .action { min-height: 48px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.35rem;
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
  color: var(--preview-soft);
  font-size: .78rem;
}
.hero-proof li { display: flex; align-items: center; gap: .55rem; }
.hero-proof li::before { content: ''; width: 5px; height: 5px; background: var(--preview-accent); border-radius: 50%; }

.hero-right { opacity: 1; animation: none; transform: none; }
.hero-featured {
  display: block;
  color: inherit;
  text-decoration: none;
  align-self: center;
}
.hero-featured figure { position: relative; margin: 0; background: transparent; }
.hero-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transition: transform .45s ease;
}
.hero-featured:hover img { transform: scale(1.015); }
.hero-featured figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: .25rem 1rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--preview-line);
  color: var(--preview-ink);
}
.hero-featured figcaption span { grid-column: 1; grid-row: 1; font-size: var(--text-meta); color: var(--preview-soft); }
.hero-featured figcaption strong { grid-column: 2; grid-row: 1; justify-self: end; font-size: clamp(1.05rem, 1.5vw, 1.45rem); line-height: 1; }
.hero-featured figcaption small { grid-column: 1 / -1; font-size: var(--text-meta); color: var(--preview-muted); }

.ticker-wrap { display: none; }
.hero-bg-glow,
.statement-glow,
.toolset::before,
.toolset::after,
.diag-section::before { display: none; }
.diag-orb { animation: none; box-shadow: none; }

.statement {
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5.5rem);
  background: var(--preview-bg);
  text-align: left;
}
.statement-big { margin-left: 0; max-width: 980px; }
.statement-sub { margin-left: 0; max-width: 690px; color: var(--preview-muted); }

.section-label,
.case-kicker,
.case-section-title,
.tool-kicker,
.tool-meta,
.pj-cat,
.pj-strip-cat,
.ps-t,
.diag-mini-kicker {
  letter-spacing: .04em;
  text-transform: none;
}
.section-label,
.case-kicker,
.case-section-title,
.tool-kicker,
.pj-cat,
.pj-strip-cat { color: var(--preview-accent); }
.diag-mini-kicker { color: #bda0ff; }
.diag-mini-note,
.diag-count,
.diag-help,
.diag-option span,
.diag-option em,
.diag-submit-status { color: var(--preview-muted); }

.services,
.portfolio,
.process,
.contact,
.toolset,
.diag-section { padding-left: clamp(1.5rem, 5vw, 5.5rem); padding-right: clamp(1.5rem, 5vw, 5.5rem); }
.services-intro,
.toolset-intro,
.tool-desc,
.tool-note,
.svc-desc,
.ps-d,
.contact-sub,
.case-desc { color: var(--preview-muted); font-weight: 400; }

.service-paths { border-top: 1px solid var(--preview-line); }
.service-path {
  display: grid;
  grid-template-columns: minmax(120px, .55fr) minmax(300px, 1.45fr) minmax(220px, .75fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
  padding: clamp(2.25rem, 4vw, 4rem) 0;
  border-bottom: 1px solid var(--preview-line);
}
.service-path__index { color: var(--preview-accent); font-size: .74rem; font-weight: 650; letter-spacing: .04em; }
.service-path h3 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 3.7rem);
  font-weight: 560;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.service-path p { max-width: 610px; color: var(--preview-muted); line-height: 1.7; }
.service-path ul { margin: 0; padding: 0; list-style: none; color: var(--preview-muted); font-size: .84rem; }
.service-path li { padding: .72rem 0; border-bottom: 1px solid var(--preview-line); }

.toolset { background: var(--preview-surface); }
.tool-grid { gap: 0; }
.tool-card {
  min-height: 0;
  padding: 2rem 2rem 2rem 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--preview-line);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.tool-card:hover { transform: none; border-color: var(--preview-accent); box-shadow: none; }
.tool-logo { width: 72px; height: 72px; background: transparent; border: 0; }
.tool-meta { color: var(--preview-soft); }

.filter-btn {
  min-width: 76px;
  min-height: 44px;
  padding: .7rem 1rem;
  color: var(--preview-muted);
  border-color: var(--preview-line);
  border-radius: 0;
  font-size: var(--text-control);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}
.filter-btn.active,
.filter-btn:hover,
.filter-btn:focus-visible { border-color: var(--preview-ink); color: var(--preview-ink); background: transparent; }
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--preview-line);
}
.portfolio-grid .pj,
.portfolio-grid .pj:nth-child(n),
.portfolio-grid .pj.pj--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--preview-line);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.portfolio-grid .pj:nth-child(even) { grid-template-columns: minmax(280px, .65fr) minmax(0, 1.55fr); }
.portfolio-grid .pj:nth-child(even) .pj-media { order: 2; }
.portfolio-grid .pj:nth-child(even) .pj-overlay { order: 1; }
.portfolio-grid .pj .pj-media,
.portfolio-grid .pj[data-project] .pj-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--preview-surface-2);
}
.portfolio-grid .pj .pj-media img,
.portfolio-grid .pj .pj-media video,
.portfolio-grid .pj .pj-media iframe { width: 100%; height: 100%; object-fit: cover; }
.portfolio-grid .pj[data-project="popit"] .pj-media img,
.portfolio-grid .pj[data-project="bolt"] .pj-media img { object-fit: contain; }
.portfolio-grid .pj-overlay,
.portfolio-grid .pj-strip {
  position: static;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 3.5rem);
  color: var(--preview-ink);
  background: transparent;
  opacity: 1;
}
.portfolio-grid .pj-seq { margin-bottom: auto; color: var(--preview-soft); font-size: .72rem; letter-spacing: .06em; }
.portfolio-grid .pj-name { margin: .45rem 0 .8rem; font-size: clamp(1.55rem, 2.5vw, 3rem); font-weight: 560; letter-spacing: -.035em; }
.portfolio-grid .pj-year { max-width: 34ch; font-size: .78rem; line-height: 1.6; }
.portfolio-grid .pj-play { top: 1rem; right: 1rem; bottom: auto; left: auto; opacity: 1; }
.pj-year { color: var(--preview-muted); }
.svc-n,
.ps-n { color: #8f79ad; }

.process {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}
.process-intro { position: sticky; top: 8rem; }
.process-intro p { max-width: 34ch; margin-top: 1.5rem; color: var(--preview-muted); line-height: 1.7; }
.process-steps { display: block; margin-top: 0; border-top: 1px solid var(--preview-line); }
.process-steps .ps {
  display: grid;
  grid-template-columns: 90px minmax(150px, .65fr) minmax(220px, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--preview-line);
}
.process-steps .ps::after { display: none; }
.process-steps .ps-n { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--preview-accent); }
.process-steps .ps-t { margin: 0; font-size: 1rem; font-weight: 620; letter-spacing: -.01em; }
.process-steps .ps-d { margin: 0; font-size: .9rem; line-height: 1.7; }

.c-link::before { content: none; }
.c-link,
.site-service-links a,
.contact-links a { min-height: 44px; align-items: center; color: var(--preview-muted); }
.foot-copy,
.foot-svc { color: var(--preview-soft); }

a:active,
button:active { transform: translateY(1px); }

@media (max-width: 900px) {
  nav { padding: .8rem 1rem; }
  .nav-cta { display: none; }
  .nav-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 44px;
    padding: .65rem .9rem;
    color: var(--preview-ink);
    background: transparent;
    border: 1px solid var(--preview-line);
    border-radius: 0;
    font-family: inherit;
    font-size: var(--text-control);
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: .5rem 1rem 1.25rem;
    flex-direction: column;
    gap: 0;
    background: var(--preview-bg);
    border-bottom: 1px solid var(--preview-line);
  }
  nav.menu-open .nav-links { display: flex; }
  .nav-links li { border-top: 1px solid var(--preview-line); }
  .nav-links a { display: flex; align-items: center; min-height: 52px; font-size: 1rem; }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6.5rem 1.25rem 4.5rem;
  }
  .hero-left { display: contents; }
  h1.hero-title { order: 1; margin: 0 0 1.35rem; font-size: clamp(2.75rem, 9vw, 4.5rem); }
  .hero-sub { order: 2; margin: 0 0 2rem; }
  .hero-featured { order: 3; margin-bottom: 2rem; }
  .hero-btns { order: 4; margin-bottom: 1.5rem; }
  .hero-proof { order: 5; margin-top: 0; }
  .hero-featured img { aspect-ratio: 16 / 9; }
  .service-path { grid-template-columns: 110px 1fr; }
  .service-path ul { grid-column: 2; }
  .portfolio-grid .pj,
  .portfolio-grid .pj:nth-child(n) { grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr); }
  .portfolio-grid .pj:nth-child(even) { grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr); }
  .process { grid-template-columns: 1fr; }
  .process-intro { position: static; }
}

@media (max-width: 620px) {
  .hero-featured figcaption { grid-template-columns: 1fr; gap: .3rem; }
  .hero-featured figcaption span,
  .hero-featured figcaption strong,
  .hero-featured figcaption small { grid-column: 1; grid-row: auto; justify-self: start; }
  .hero-btns-refined { flex-direction: column; align-items: stretch; }
  .hero-btns-refined .action { width: 100%; justify-content: center; }
  .hero-proof { display: grid; gap: .55rem; }
  .service-path { grid-template-columns: 1fr; gap: 1.25rem; }
  .service-path ul { grid-column: auto; }
  .portfolio-grid .pj,
  .portfolio-grid .pj:nth-child(n) { display: flex; flex-direction: column; }
  .portfolio-grid .pj:nth-child(even) .pj-media,
  .portfolio-grid .pj:nth-child(even) .pj-overlay { order: initial; }
  .portfolio-grid .pj-overlay { min-height: 0; padding: 1.5rem 0 2rem; }
  .portfolio-grid .pj-seq { margin-bottom: 2rem; }
  .portfolio-grid .pj-play { top: 1rem; right: 1rem; }
  .process-steps .ps { grid-template-columns: 54px 1fr; gap: 1rem; }
  .process-steps .ps-d { grid-column: 2; }
  .tool-card { padding-right: 0; }
  .portfolio-filter { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .filter-btn { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-featured img { transition: none; }
}

/* Editorial direction — approved audit 26–35 */
main { display: flex; flex-direction: column; }
.hero { order: 1; }
.portfolio { order: 2; }
.statement { order: 3; }
.services { order: 4; }
.toolset { order: 5; }
.process { order: 6; }
.diag-section { order: 7; }
.contact { order: 8; }
.ticker-wrap { order: 9; }
.project-modal,
.image-zoom { order: 10; }

nav {
  min-height: 78px;
  padding-inline: clamp(1.25rem, 5vw, 5.5rem);
}
.nav-logo img { width: 42px; height: 42px; }
.nav-links { gap: clamp(1.5rem, 2.6vw, 3rem); }
.nav-links a { font-size: var(--text-control); }

.hero {
  min-height: calc(100svh - 78px);
  padding-top: clamp(7rem, 9vw, 9rem);
  padding-bottom: clamp(4rem, 6vw, 6.5rem);
  grid-template-columns: minmax(370px, .65fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 4.5vw, 5.5rem);
}
.hero-left { max-width: 610px; }
h1.hero-title { font-size: clamp(3rem, 4vw, 4.65rem); }
h1.hero-title .hero-title__main { max-width: 10ch; }
.hero-sub { max-width: 54ch; font-size: clamp(1rem, 1.15vw, 1.12rem); }
.hero-featured img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-featured figcaption { padding-top: .9rem; }
.hero-proof { font-size: var(--text-meta); }

.portfolio {
  padding: clamp(6rem, 9vw, 10rem) clamp(1.25rem, 5vw, 5.5rem);
  background: var(--preview-surface);
}
.portfolio-head { margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.portfolio .section-label { display: none; }
.portfolio .section-title { max-width: 10ch; font-size: clamp(3.25rem, 6vw, 6rem); line-height: .92; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 5rem) clamp(1rem, 2vw, 2rem);
}
.portfolio-grid .pj,
.portfolio-grid .pj:nth-child(n) {
  display: block;
  grid-template-columns: none;
  min-height: 0;
  border: 0;
}
.portfolio-grid .pj:nth-child(1) { grid-column: span 8; }
.portfolio-grid .pj:nth-child(2) { grid-column: span 4; align-self: end; }
.portfolio-grid .pj:nth-child(3),
.portfolio-grid .pj:nth-child(4),
.portfolio-grid .pj:nth-child(5) { grid-column: span 4; }
.portfolio-grid .pj:nth-child(6),
.portfolio-grid .pj:nth-child(7) { grid-column: span 6; }
.portfolio-grid .pj-media,
.portfolio-grid .pj:nth-child(n) .pj-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0b0a0a;
  overflow: hidden;
}
.portfolio-grid .pj:nth-child(1) .pj-media { aspect-ratio: 16 / 9; }
.portfolio-grid .pj:nth-child(4) .pj-media,
.portfolio-grid .pj:nth-child(5) .pj-media { aspect-ratio: 4 / 5; }
.portfolio-grid .pj-media img,
.portfolio-grid .pj-media video { width: 100%; height: 100%; object-fit: cover; }
.portfolio-grid .pj:nth-child(6) .pj-media img { object-position: 68% 66%; }
.portfolio-grid .pj-media--editorial img { object-fit: contain; }
.portfolio-grid .pj-overlay,
.portfolio-grid .pj:nth-child(n) .pj-overlay {
  position: static;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem 1rem;
  padding: 1rem 0 0;
  background: none;
  color: var(--preview-ink);
}
.portfolio-grid .pj-seq { grid-column: 1; grid-row: 1 / span 3; color: var(--preview-muted); font-size: var(--text-meta); }
.portfolio-grid .pj-cat { grid-column: 2; color: #c9b5ed; font-size: var(--text-meta); line-height: 1.4; }
.portfolio-grid .pj-name { grid-column: 2; margin: .1rem 0; font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.05; }
.portfolio-grid .pj-year { grid-column: 2; color: var(--preview-muted); font-size: var(--text-meta); line-height: 1.5; }
.portfolio-grid .pj-play { top: .85rem; right: .85rem; }

.statement {
  padding: clamp(7rem, 11vw, 12rem) clamp(1.25rem, 8vw, 9rem);
  background: #17121f;
}
.statement-big { max-width: 20ch; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .94; }
.statement-sub { max-width: 62ch; margin-top: 2rem; }

.services { background: var(--preview-ink); color: var(--preview-bg); }
.services .section-label { display: none; }
.services .section-title,
.services h3 { color: var(--preview-bg); }
.services-head > p,
.service-path p,
.service-path ul { color: rgba(11, 10, 10, .72); }
.service-path,
.services-head { border-color: rgba(11, 10, 10, .18); }
.service-path__index { color: #6840a6; }

.toolset .section-label,
.process .section-label,
.contact > .section-label { display: none; }
.toolset { padding-block: clamp(6rem, 9vw, 10rem); }
.toolset-head { align-items: end; }
.tool-grid { border-top: 1px solid var(--preview-line); }
.tool-card { padding-block: 2rem; }

.process { padding-block: clamp(6rem, 9vw, 10rem); background: #0b0a0a; }
.process-intro .section-title { font-size: clamp(3rem, 5vw, 5.5rem); line-height: .95; }

.diag-section { padding-block: clamp(6rem, 9vw, 9rem); }
.diag-mini-head { margin-bottom: 1.25rem; }

.contact { padding-block: clamp(7rem, 10vw, 11rem); }
.contact-grid { grid-template-columns: minmax(0, 850px); justify-content: center; }
.contact-grid > div:last-child { display: block; }
.contact-tag { max-width: 15ch; font-size: clamp(3rem, 6vw, 6.5rem); line-height: .94; }
.contact-tag span { font-style: normal; }
.contact-sub { max-width: 62ch; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid .pj:nth-child(n) { grid-column: span 1; }
  .portfolio-grid .pj:nth-child(1) { grid-column: 1 / -1; }
  .portfolio-grid .pj:nth-child(4) .pj-media,
  .portfolio-grid .pj:nth-child(5) .pj-media { aspect-ratio: 16 / 10; }
  .portfolio-grid .pj:nth-child(4) .pj-media img { object-fit: cover; object-position: 50% 35%; }
  .portfolio-grid .pj:nth-child(5) .pj-media img { object-fit: cover; object-position: 50% 42%; }
  .statement-big { font-size: clamp(3rem, 10vw, 5rem); }
}

@media (max-width: 620px) {
  nav { min-height: 70px; }
  .nav-logo img { width: 38px; height: 38px; }
  .hero { padding-top: 6.25rem; }
  h1.hero-title { font-size: clamp(2.625rem, 11vw, 3rem); }
  .diag-question { font-size: clamp(1.85rem, 8vw, 2.2rem); line-height: 1.04; }
  .diag-option { font-size: var(--text-control); }
  .diag-btn { min-height: 44px; font-size: var(--text-control); }
  .portfolio { padding-block: 5.5rem; }
  .portfolio-head { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .portfolio .section-title { max-width: 100%; font-size: clamp(2.75rem, 13vw, 4rem); }
  .portfolio-filter { width: 100%; justify-content: flex-start; overflow: visible; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .portfolio-grid .pj:nth-child(n) { grid-column: 1; }
  .portfolio-grid .pj:nth-child(n) .pj-media { aspect-ratio: 16 / 10; }
  .portfolio-grid .pj:nth-child(4) .pj-media,
  .portfolio-grid .pj:nth-child(5) .pj-media { aspect-ratio: 16 / 10; }
  .statement { padding-block: 6rem; }
  .statement-big { font-size: clamp(2.7rem, 12vw, 4rem); }
  .services,
  .toolset,
  .process,
  .diag-section,
  .contact { padding-block: 5.5rem; }
  .contact-tag { font-size: clamp(3rem, 13vw, 4.5rem); }
}

/* Hero typographic direction: approved owner feedback, 2026-11-05. */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 0;
  align-items: start;
  min-height: auto;
  padding-top: clamp(8rem, 10vw, 10rem);
}
.hero-left { display: contents; }
h1.hero-title {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-columns: subgrid;
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(3rem, 6vw, 6rem);
  font-family: var(--sans);
  text-align: left;
}
h1.hero-title > span { display: block; }
h1.hero-title .hero-title__lead {
  grid-column: 1 / span 9;
  font-size: clamp(4.8rem, 9vw, 9rem);
  font-weight: 690;
  line-height: .82;
  letter-spacing: -.07em;
}
h1.hero-title .hero-title__for,
h1.hero-title .hero-title__final {
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  font-weight: 560;
  line-height: .92;
  letter-spacing: -.055em;
}
h1.hero-title .hero-title__for {
  grid-column: 3 / -1;
  margin-top: clamp(1.25rem, 2vw, 2rem);
}
h1.hero-title .hero-title__final { grid-column: 5 / -1; }
h1.hero-title .hero-title__final em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--preview-accent);
  text-stroke: 1.5px var(--preview-accent);
}
.hero-sub {
  grid-column: 1 / span 4;
  grid-row: 2;
  align-self: start;
  margin: 0 0 2rem;
  padding-right: clamp(1rem, 2vw, 2rem);
}
.hero-btns-refined {
  grid-column: 1 / span 4;
  grid-row: 3;
  align-self: start;
}
.hero-proof {
  grid-column: 1 / span 4;
  grid-row: 4;
  align-self: start;
  margin: 1.5rem 0 0;
}
.hero-featured {
  grid-column: 5 / -1;
  grid-row: 2 / span 3;
  width: 100%;
  margin: 0;
  align-self: start;
}
.hero-featured figure { border-left: 1px solid var(--preview-line); padding-left: clamp(1rem, 2vw, 2rem); }

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 6.5rem;
  }
  .hero-left { display: contents; }
  h1.hero-title {
    order: 1;
    display: block;
    width: 100%;
    margin: 0 0 2.5rem;
    text-align: left;
  }
  h1.hero-title .hero-title__lead {
    font-size: clamp(2.85rem, 12vw, 4.75rem);
    line-height: .88;
  }
  h1.hero-title .hero-title__for,
  h1.hero-title .hero-title__final {
    font-size: clamp(2rem, 8.2vw, 3.25rem);
    line-height: .96;
  }
  h1.hero-title .hero-title__for { margin-top: 1.1rem; }
  .hero-sub { order: 2; width: 100%; max-width: 38rem; padding-right: 0; }
  .hero-featured { order: 3; width: 100%; margin: .75rem 0 2rem; }
  .hero-featured figure { border-left: 0; padding-left: 0; }
  .hero-btns-refined { order: 4; width: 100%; }
  .hero-proof { order: 5; width: 100%; }
}

@media (max-width: 620px) {
  .hero { padding-inline: 1.25rem; }
  h1.hero-title .hero-title__lead { font-size: clamp(2.75rem, 12.2vw, 3.4rem); }
  h1.hero-title .hero-title__for,
  h1.hero-title .hero-title__final { font-size: clamp(1.9rem, 8.4vw, 2.35rem); }
  h1.hero-title .hero-title__final em { -webkit-text-stroke-width: 1px; text-stroke-width: 1px; }
}

/* Centered kinetic hero: typography changes without layout shift. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  padding: clamp(8rem, 10vw, 10rem) clamp(1.25rem, 5vw, 5.5rem) clamp(5rem, 8vw, 8rem);
  text-align: center;
}
.hero-left { display: contents; }
h1.hero-title {
  order: 1;
  display: block;
  width: min(100%, 1280px);
  max-width: none;
  margin: 0 0 clamp(2rem, 3.5vw, 3.5rem);
  text-align: center;
}
h1.hero-title > span { display: block; }
h1.hero-title .hero-title__lead {
  font-size: clamp(4.8rem, 9vw, 9rem);
  font-weight: 690;
  line-height: .84;
  letter-spacing: -.07em;
}
h1.hero-title .hero-title__for,
h1.hero-title .hero-title__final {
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 560;
  line-height: .98;
  letter-spacing: -.052em;
}
h1.hero-title .hero-title__for { margin-top: clamp(1.25rem, 2vw, 2rem); }
h1.hero-title .hero-title__final em { color: inherit; -webkit-text-stroke: 0; text-stroke: 0; }
h1.hero-title .type-cycle {
  display: inline-grid;
  align-items: baseline;
  vertical-align: baseline;
  white-space: nowrap;
}
.type-cycle__base,
.type-cycle__alt { grid-area: 1 / 1; justify-self: center; }
.type-cycle__base { animation: hero-type-base 12s steps(1, end) infinite; }
.type-cycle__alt {
  color: var(--preview-accent);
  font-family: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  font-size: 1em;
  font-style: normal;
  font-weight: 650;
  font-stretch: 100%;
  font-optical-sizing: auto;
  letter-spacing: -.052em;
  line-height: 1;
  opacity: 0;
  animation: hero-type-alt 12s steps(1, end) infinite;
}
.type-cycle--1 .type-cycle__base,
.type-cycle--1 .type-cycle__alt { animation-delay: 0s; }
.type-cycle--2 .type-cycle__base,
.type-cycle--2 .type-cycle__alt { animation-delay: -8s; }
.type-cycle--3 .type-cycle__base,
.type-cycle--3 .type-cycle__alt { animation-delay: -4s; }
@keyframes hero-type-base {
  0%, 33.32% { opacity: 0; }
  33.33%, 100% { opacity: 1; }
}
@keyframes hero-type-alt {
  0%, 33.32% { opacity: 1; }
  33.33%, 100% { opacity: 0; }
}
.hero-sub {
  order: 2;
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto clamp(2rem, 3vw, 3rem);
  padding: 0;
  text-align: center;
}
.hero-featured {
  order: 3;
  width: min(100%, 1120px);
  margin: 0 auto 2rem;
}
.hero-featured figure { border-left: 0; padding-left: 0; }
.hero-btns-refined {
  order: 4;
  display: flex;
  justify-content: center;
  width: min(100%, 1120px);
}
.hero-proof {
  order: 5;
  justify-content: center;
  width: min(100%, 1120px);
  margin: 1.25rem auto 0;
}

@media (max-width: 900px) {
  .hero { align-items: center; padding-top: 6.5rem; text-align: center; }
  h1.hero-title { width: 100%; margin-bottom: 2rem; text-align: center; }
  h1.hero-title .hero-title__lead { font-size: clamp(2.85rem, 12vw, 4.75rem); line-height: .88; }
  h1.hero-title .hero-title__for,
  h1.hero-title .hero-title__final {
    font-size: clamp(1.5rem, 6vw, 2.75rem);
    line-height: 1.05;
    white-space: nowrap;
  }
  h1.hero-title .hero-title__for { margin-top: 1.1rem; }
  .hero-sub { width: min(100%, 38rem); text-align: center; }
  .hero-featured { width: 100%; margin: .5rem 0 2rem; }
  .hero-btns-refined,
  .hero-proof { width: 100%; justify-content: center; }
}

@media (max-width: 620px) {
  .hero { padding-inline: 1.25rem; }
  h1.hero-title .hero-title__lead { font-size: clamp(2.7rem, 11.8vw, 3.35rem); }
  h1.hero-title .hero-title__for,
  h1.hero-title .hero-title__final { font-size: clamp(1.45rem, 6.2vw, 1.9rem); }
  .hero-proof { justify-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .type-cycle__base { animation: none; opacity: 1; }
  .type-cycle__alt { animation: none; opacity: 0; }
}

/* Editorial refinement: clearer rhythm, capabilities and project actions. */
.hero-featured img { object-fit: cover; object-position: center; }
.hero-featured figcaption small { font-size: .875rem; }
.hero-sequence__stage {
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  touch-action: pan-y;
}
.hero-featured .hero-sequence__stage img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}
.hero-featured .hero-sequence__stage img.is-active { opacity: 1; }
.hero-featured figcaption strong a { color: inherit; text-decoration: none; }
.hero-sequence__toggle {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: end;
  padding: 0;
  border: 1px solid var(--preview-line);
  background: transparent;
  color: var(--preview-muted);
  font: 650 .78rem/1 'Instrument Sans', sans-serif;
  cursor: pointer;
}
.hero-sequence__toggle:hover,
.hero-sequence__toggle:focus-visible { color: var(--preview-ink); border-color: var(--preview-soft); }
.hero-sequence__toggle[aria-pressed="true"] { color: var(--preview-accent); border-color: var(--preview-accent); }

.statement-big {
  max-width: 24ch;
  font-size: clamp(2.85rem, 5.2vw, 5.6rem);
}

.capability-list {
  margin-top: clamp(3rem, 5vw, 5.5rem);
  border-top: 1px solid var(--preview-line);
}
.capability-row {
  display: grid;
  grid-template-columns: 64px minmax(220px, .7fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: start;
  padding: clamp(1.75rem, 3vw, 2.75rem) 0;
  border-bottom: 1px solid var(--preview-line);
}
.capability-row > span {
  color: var(--preview-accent);
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.4;
}
.capability-row h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.25vw, 2.35rem);
  font-weight: 590;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.capability-row p {
  max-width: 58ch;
  margin: 0;
  color: var(--preview-muted);
  font-size: .975rem;
  line-height: 1.7;
}
.tool-note {
  margin-top: 1.4rem;
  color: var(--preview-soft);
  font-size: .875rem;
}

.portfolio-grid .pj { position: relative; }
.portfolio-grid .pj-cat { font-size: .875rem; }
.portfolio-grid .pj-year { font-size: .9rem; }
.pj-case-action {
  position: absolute;
  z-index: 2;
  top: .85rem;
  right: .85rem;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .65rem .85rem;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(8,8,8,.82);
  color: #fff;
  font-size: .8rem;
  font-weight: 650;
  line-height: 1;
}

.process-steps .ps-d { font-size: .975rem; }

.site-service-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .15rem .55rem;
  font-size: .875rem;
}
.site-service-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: .2rem;
}

@media (max-width: 900px) {
  .capability-row { grid-template-columns: 54px minmax(0, 1fr); }
  .capability-row h3,
  .capability-row p { grid-column: 2; }
}

@media (max-width: 620px) {
  .hero-featured figcaption { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-featured figcaption span { grid-column: 1; grid-row: 1; }
  .hero-featured figcaption strong { grid-column: 1; grid-row: 2; justify-self: start; }
  .hero-featured figcaption small { grid-column: 1 / -1; grid-row: 3; }
  .hero-sequence__toggle { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .statement-big { max-width: 100%; font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .capability-list { margin-top: 2.75rem; }
  .capability-row { gap: .45rem 1rem; padding-block: 1.6rem; }
  .capability-row h3 { font-size: 1.55rem; }
  .capability-row p { font-size: .95rem; }
  .portfolio-grid .pj-cat { font-size: .85rem; }
  .portfolio-grid .pj-year { font-size: .9rem; }
  .pj-case-action { top: .75rem; right: .75rem; }
  .site-service-links { flex-direction: column; gap: 0; }
  .site-service-links > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-featured .hero-sequence__stage img { transition: none; }
  .hero-sequence__toggle { display: none; }
}

/* Standalone Visual Scope page. */
.scope-mode { min-height: 100%; background: var(--preview-bg); }
.scope-mode .scope-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: .8rem clamp(1.25rem, 5vw, 5.5rem);
  background: rgba(11, 10, 10, .96);
  border-bottom: 1px solid var(--preview-line);
}
.scope-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--preview-muted);
  font-size: var(--text-control);
  font-weight: 600;
  text-decoration: none;
}
.scope-back:hover,
.scope-back:focus-visible { color: var(--preview-ink); }
.scope-page {
  display: block;
  width: 100%;
  min-height: calc(100svh - 72px);
}
.scope-intro {
  width: min(100% - 2.5rem, 1080px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
}
.scope-intro__kicker {
  margin: 0 0 1rem;
  color: var(--preview-accent);
  font-size: var(--text-meta);
  font-weight: 650;
}
.scope-intro h1 {
  max-width: 14ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 650;
  line-height: .94;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.scope-intro > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--preview-muted);
  font-size: var(--text-body);
  line-height: 1.65;
}
.scope-mode .scope-diagnostic {
  display: block;
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 5.5rem) clamp(5rem, 9vw, 9rem);
  background: var(--preview-bg);
}
.scope-mode .scope-diagnostic .diag-wrap { max-width: 1180px; margin: 0 auto; }
.scope-mode .scope-diagnostic .diag-mini-head { display: none; }
.scope-mode .scope-diagnostic .diag-bubble { margin-top: 0; }
.scope-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 5vw, 5.5rem);
  color: var(--preview-soft);
  border-top: 1px solid var(--preview-line);
  font-size: var(--text-meta);
}
.scope-footer a { color: var(--preview-ink); text-decoration: none; }

@media (max-width: 620px) {
  .scope-mode .scope-nav { min-height: 66px; }
  .scope-intro { width: min(100% - 2.5rem, 1080px); padding-top: 3.5rem; }
  .scope-intro h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .scope-mode .scope-diagnostic { padding-inline: 1rem; }
  .scope-footer { flex-direction: column; }
}
