:root {
  /* Primitive brand tokens */
  --color-regia-black: #0b0d0f;
  --color-graphite: #171b1f;
  --color-operational-paper: #f3f0e8;
  --color-smoke: #b5b0a6;
  --color-steel: #77808a;
  --color-signal-yellow: #e7b743;
  --color-signal-yellow-hover: #d6a52f;
  --color-burnt-coral: #c75a3b;

  /* Semantic color tokens */
  --color-bg-primary: var(--color-regia-black);
  --color-bg-secondary: var(--color-graphite);
  --color-bg-light: var(--color-operational-paper);
  --color-text-on-dark: var(--color-operational-paper);
  --color-text-secondary-on-dark: var(--color-smoke);
  --color-text-on-light: var(--color-regia-black);
  --color-text-muted: var(--color-steel);
  --color-action-primary: var(--color-signal-yellow);
  --color-action-primary-hover: var(--color-signal-yellow-hover);
  --color-action-primary-text: var(--color-regia-black);
  --color-editorial-accent: var(--color-burnt-coral);
  --color-border-dark: rgba(181, 176, 166, 0.22);
  --color-border-dark-strong: rgba(181, 176, 166, 0.42);
  --color-border-light: rgba(11, 13, 15, 0.18);
  --color-overlay-soft: rgba(11, 13, 15, 0.35);
  --color-overlay-medium: rgba(11, 13, 15, 0.72);
  --color-overlay-strong: rgba(11, 13, 15, 0.92);
  --color-signal-wash: rgba(231, 183, 67, 0.12);
  --color-coral-wash: rgba(199, 90, 59, 0.12);
  --shadow-light: 0 12px 32px rgba(11, 13, 15, 0.08);

  /* Compatibility aliases used by the lateral guide */
  --blue-950: var(--color-regia-black);
  --blue-850: var(--color-graphite);
  --blue-700: var(--color-regia-black);
  --red-600: var(--color-signal-yellow);
  --red-700: var(--color-signal-yellow-hover);
  --red-on-dark: var(--color-signal-yellow);
  --red-100: var(--color-signal-wash);
  --gray-950: var(--color-regia-black);
  --gray-750: var(--color-graphite);
  --gray-550: var(--color-steel);
  --gray-200: var(--color-border-light);
  --gray-100: var(--color-operational-paper);
  --white: var(--color-operational-paper);
  --surface-warm: var(--color-operational-paper);
  --surface-cool: var(--color-signal-wash);

  --font-body: "Source Sans 3", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Source Sans 3", Arial, sans-serif;
  --page-max: 1180px;
  --measure: 68ch;
  --gutter: 28px;
  --section-y: 96px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: var(--color-signal-yellow);
  --focus-ink: var(--color-regia-black);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--color-text-on-light);
  background: var(--color-bg-light);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
}

body:not(.intent-page):not(.editorial-page),
.intent-page {
  color: var(--color-text-on-dark);
  background: var(--color-bg-primary);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:where(a, button, input):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  min-height: 44px;
  padding: 9px 14px;
  color: var(--color-action-primary-text);
  background: var(--color-action-primary);
  border-radius: 4px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--font-display);
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.1vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  line-height: 1.18;
}

p {
  text-wrap: pretty;
}

/* Shared navigation */
.site-header {
  z-index: 500;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  width: 100%;
  min-height: 70px;
  padding: 10px max(var(--gutter), calc((100vw - var(--page-max)) / 2));
  color: var(--color-text-on-dark);
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border-dark);
}

body:not(.intent-page):not(.editorial-page) .site-header {
  position: sticky;
  top: 0;
}

.intent-page .site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: var(--color-overlay-strong);
}

.editorial-page .site-header {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  place-items: center;
  color: var(--color-action-primary-text);
  background: var(--color-action-primary);
  border-radius: 50%;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.3vw, 22px);
  margin-left: auto;
  color: var(--color-text-secondary-on-dark);
  font-size: 0.93rem;
  font-weight: 750;
  white-space: nowrap;
}

.main-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.main-nav a {
  justify-content: center;
  padding-inline: 5px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
}

.main-nav a:hover {
  color: var(--color-text-on-dark);
  text-decoration-color: var(--color-action-primary);
}

.main-nav a[aria-current="page"] {
  color: var(--color-text-on-dark);
  text-decoration-color: var(--color-action-primary);
}

.theme-dot {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  color: var(--color-action-primary);
  background: transparent;
  border: 1px solid var(--color-border-dark);
  border-radius: 50%;
  cursor: default;
  font-size: 1.2rem;
}

.side-index {
  display: none;
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-align: center;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--color-action-primary-text);
  background: var(--color-action-primary);
}

.button.primary:hover {
  background: var(--color-action-primary-hover);
}

.button.secondary {
  color: var(--color-text-on-dark);
  background: transparent;
  border-color: var(--color-steel);
}

.button.secondary:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-smoke);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 18px;
  color: var(--color-action-primary);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--color-text-on-dark);
  text-decoration-color: var(--color-action-primary);
}

.editorial-page .text-link {
  color: var(--color-text-on-light);
  text-decoration-color: var(--color-action-primary);
}

/* Opening sequence: a short operational signal, not a spectacle */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: var(--color-bg-primary);
  animation: intro-fade 1.55s var(--ease-out) forwards;
}

.intro-frame {
  display: grid;
  gap: 12px;
  width: min(34rem, 78vw);
  color: var(--color-text-secondary-on-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.setup-network {
  position: relative;
  width: min(34rem, 78vw);
  aspect-ratio: 520 / 220;
}

.setup-network svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.setup-network path {
  fill: none;
  stroke: var(--color-action-primary);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: setup-line 900ms var(--ease-out) forwards 100ms;
}

.setup-network i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(0.8rem, 2.8vw, 1.05rem);
  height: clamp(0.8rem, 2.8vw, 1.05rem);
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-action-primary);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  animation: setup-node 360ms var(--ease-out) forwards;
  animation-delay: calc(180ms + var(--d));
}

.led-wall {
  display: none;
}

@keyframes setup-line {
  to { stroke-dashoffset: 0; }
}

@keyframes setup-node {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes intro-fade {
  0%, 72% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* Homepage */
body:not(.intent-page):not(.editorial-page) main {
  overflow: clip;
}

.hero,
body:not(.intent-page):not(.editorial-page) .section,
body:not(.intent-page):not(.editorial-page) .site-footer {
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(42px, 6vw, 84px);
  align-items: center;
  min-height: 640px;
  padding: clamp(48px, 5vw, 68px) 0 clamp(76px, 7vw, 96px);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 44px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--color-border-dark);
}

.hero::before {
  position: absolute;
  bottom: 40px;
  left: 0;
  z-index: 1;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--color-action-primary);
}

.hero-copy {
  max-width: 710px;
}

.value-line,
.eyebrow,
.case-list span {
  margin: 0 0 14px;
  color: var(--color-action-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.hero h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 4.55vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-lead,
.prose,
.section-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.contact p {
  max-width: var(--measure);
  color: var(--color-text-secondary-on-dark);
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.66;
}

.hero-lead {
  max-width: 63ch;
  margin: 26px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-media,
.section-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
}

.hero-media {
  aspect-ratio: 16 / 11;
}

.hero-media img,
.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  object-position: 44% 50%;
}

.hero-media figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 14px;
  color: var(--color-text-on-dark);
  background: var(--color-overlay-strong);
  border-top: 1px solid var(--color-action-primary);
}

.hero-media figcaption strong,
.hero-media figcaption span {
  display: block;
}

.hero-media figcaption span {
  margin-top: 2px;
  color: var(--color-text-secondary-on-dark);
  font-size: 0.9rem;
}

body:not(.intent-page):not(.editorial-page) .section {
  padding: clamp(72px, 8vw, 112px) 0;
  border-top: 1px solid var(--color-border-dark);
}

.split,
.paired,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 6vw, 78px);
  align-items: start;
}

.paired {
  align-items: center;
}

body:not(.intent-page):not(.editorial-page) h2,
body:not(.intent-page):not(.editorial-page) h3 {
  color: var(--color-text-on-dark);
}

.prose p:first-child {
  margin-top: 0;
}

.stats {
  counter-reset: signal-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 !important;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark) !important;
}

.stats article {
  counter-increment: signal-step;
  min-width: 0;
  padding: clamp(28px, 3.4vw, 44px);
  border-right: 1px solid var(--color-border-dark);
}

.stats article:last-child {
  border-right: 0;
}

.stats span {
  display: block;
  margin-bottom: 22px;
  color: var(--color-action-primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.stats span::before {
  content: "0" counter(signal-step) " — ";
}

.stats strong {
  display: block;
  color: var(--color-text-on-dark);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  text-wrap: balance;
}

.stats p,
.service-list p,
.case-list p,
.reference-notes span,
.method-steps span {
  color: var(--color-text-secondary-on-dark);
  line-height: 1.58;
}

.section-heading {
  max-width: 880px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.service-list,
.case-list,
.reference-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border-dark);
  border-left: 1px solid var(--color-border-dark);
}

.service-list article,
.case-list article,
.reference-notes article {
  min-width: 0;
  padding: clamp(25px, 3vw, 36px);
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
}

.service-list p,
.case-list p {
  max-width: 58ch;
  margin: 13px 0 0;
}

.section-media {
  aspect-ratio: 4 / 3;
}

.method-steps {
  counter-reset: method-step;
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border-dark);
}

.method-steps li {
  counter-increment: method-step;
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.method-steps strong {
  color: var(--color-text-on-dark);
}

.method-steps strong::before {
  display: block;
  margin-bottom: 4px;
  color: var(--color-action-primary);
  content: "0" counter(method-step) " —";
  font-size: 0.78rem;
}

.cases-band {
  width: 100% !important;
  max-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--page-max)) / 2)) !important;
  background: var(--color-bg-secondary);
}

.references .section-copy > p:not(.eyebrow) {
  margin-bottom: 28px;
}

.reference-notes strong,
.reference-notes span {
  display: block;
}

.reference-notes strong {
  margin-bottom: 8px;
  color: var(--color-text-on-dark);
}

body:not(.intent-page):not(.editorial-page) .contact {
  position: relative;
  align-items: center;
  margin-top: clamp(18px, 3vw, 42px);
  padding: clamp(38px, 6vw, 70px);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
}

body:not(.intent-page):not(.editorial-page) .contact::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: clamp(72px, 10vw, 150px);
  height: 3px;
  content: "";
  background: var(--color-action-primary);
}

body:not(.intent-page):not(.editorial-page) .contact .button {
  justify-self: end;
}

/* Intent pages: events and processes share one operational grammar */
.intent-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  color: var(--color-text-on-dark);
}

.intent-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.intent-hero .hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-overlay-strong) 0%, var(--color-overlay-strong) 45%, var(--color-overlay-soft) 100%);
}

.intent-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  min-height: 700px;
  margin: 0 auto;
  padding: 148px 0 78px;
}

.intent-hero-copy {
  max-width: 860px;
}

.intent-hero h1 {
  max-width: 830px;
  margin: 0;
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7vw, 5.75rem);
  line-height: 0.99;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.intent-hero .lead {
  max-width: 65ch;
  margin: 26px 0 0;
  color: var(--color-text-secondary-on-dark);
  font-size: 1.15rem;
  line-height: 1.67;
}

.intent-hero .hero-actions {
  margin-top: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--color-text-secondary-on-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: var(--color-action-primary);
  text-underline-offset: 4px;
}

.intent-section {
  padding: var(--section-y) max(var(--gutter), calc((100vw - var(--page-max)) / 2));
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border-dark);
}

.intent-section:nth-of-type(even) {
  background: var(--color-bg-secondary);
}

.intent-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 6vw, 78px);
  align-items: start;
}

.intent-section h2,
.intent-section h3 {
  color: var(--color-text-on-dark);
}

.intent-section h2 {
  max-width: 15ch;
}

.intent-prose {
  max-width: var(--measure);
  color: var(--color-text-secondary-on-dark);
  font-size: 1.05rem;
}

.intent-prose > :first-child {
  margin-top: 0;
}

.intent-prose strong,
.intent-list strong,
.deliverable-list strong {
  color: var(--color-text-on-dark);
}

.intent-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border-dark);
}

.intent-list li {
  display: grid;
  grid-template-columns: minmax(145px, 0.35fr) minmax(0, 1fr);
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.intent-list span,
.deliverable-list p,
.faq-list p,
.intent-profile p {
  color: var(--color-text-secondary-on-dark);
}

.deliverable-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--color-border-dark);
  border-left: 1px solid var(--color-border-dark);
}

.deliverable-list article {
  min-height: 170px;
  padding: 28px;
  background: var(--color-bg-primary);
  border-right: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
}

.deliverable-list p {
  margin: 10px 0 0;
}

.intent-note {
  padding: 34px;
  color: var(--color-text-on-dark);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
  border-radius: 6px;
}

.intent-note h2 {
  color: var(--color-text-on-dark);
  font-size: 2.2rem;
}

.intent-note p {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--color-text-secondary-on-dark);
}

.faq-list {
  border-top: 1px solid var(--color-border-dark);
}

.faq-list article {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.faq-list p {
  max-width: 62ch;
  margin: 0;
}

.intent-profile {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.intent-profile img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--color-border-dark);
  border-radius: 6px;
}

.intent-page .contact {
  align-items: center;
  width: min(var(--page-max), calc(100% - (var(--gutter) * 2)));
  margin: var(--section-y) auto;
  padding: clamp(38px, 6vw, 70px);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-dark);
}

.intent-page .contact h2 {
  color: var(--color-text-on-dark);
}

.intent-page .contact .button {
  justify-self: end;
}

/* Editorial: a light reading surface within the same brand */
.editorial-page {
  --color-text-muted: #596169;
  color: var(--color-text-on-light);
  background: var(--color-bg-light);
}

.editorial-page-head {
  position: relative;
  padding: clamp(76px, 10vw, 132px) max(var(--gutter), calc((100vw - var(--page-max)) / 2));
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border-light);
}

.editorial-page-head::after {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--page-max)) / 2));
  bottom: -4px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--color-editorial-accent);
}

.editorial-page-head .breadcrumb {
  color: var(--color-text-muted);
}

.editorial-page-head-inner {
  max-width: 900px;
}

.editorial-page-head h1 {
  max-width: 820px;
  margin: 0;
  color: var(--color-text-on-light);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.editorial-page-head .lead {
  max-width: 65ch;
  margin: 28px 0 0;
  color: var(--color-graphite);
  font-size: 1.18rem;
  line-height: 1.7;
}

.editorial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  color: var(--color-text-on-light);
  font-weight: 800;
}

.editorial-author img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
}

.editorial-page-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 6vw, 78px);
  padding: var(--section-y) max(var(--gutter), calc((100vw - var(--page-max)) / 2));
}

.editorial-page-body h2 {
  max-width: 13ch;
  color: var(--color-text-on-light);
}

.editorial-page-prose {
  max-width: var(--measure);
  color: var(--color-graphite);
  font-size: 1.06rem;
}

.editorial-page-prose p:first-child {
  margin-top: 0;
}

.editorial-status,
.editorial-entry {
  margin-top: 34px;
  padding: 26px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.editorial-status strong,
.editorial-status span {
  display: block;
}

.editorial-status strong {
  color: var(--color-text-on-light);
  font-size: 1.25rem;
}

.editorial-status span,
.editorial-entry time,
.article-meta {
  color: var(--color-text-muted);
}

.editorial-entry {
  position: relative;
  padding-top: 38px;
}

.editorial-entry::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 54px;
  height: 3px;
  content: "";
  background: var(--color-editorial-accent);
}

.editorial-entry time,
.article-meta {
  font-size: 0.92rem;
  font-weight: 700;
}

.editorial-entry h3 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
}

.editorial-entry h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-on-light);
  text-decoration: underline;
  text-decoration-color: var(--color-action-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.article-page-head {
  padding-bottom: 72px;
}

.article-page-head h1 {
  font-size: clamp(2.9rem, 7vw, 5.2rem);
}

.article-wrap {
  padding: 72px max(var(--gutter), calc((100vw - 760px) / 2)) var(--section-y);
}

.article-body {
  max-width: 68ch;
  color: var(--color-text-on-light);
  font-size: 1.18rem;
  line-height: 1.82;
}

.article-body p {
  margin: 0 0 1.5em;
}

.article-body p:last-child {
  white-space: pre-line;
}

.writing-collection {
  padding: var(--section-y) max(var(--gutter), calc((100vw - var(--page-max)) / 2));
}

.writing-collection-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: end;
}

.writing-collection-head h2,
.writing-entry h3,
.writing-work h2 {
  letter-spacing: 0;
}

.writing-collection-head > p {
  max-width: 60ch;
  margin: 0;
  color: var(--color-graphite);
  font-size: 1.06rem;
}

.archive-folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.archive-folder {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
}

.archive-folder-main {
  display: contents;
}

.archive-folder-label {
  margin: 0 0 22px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.archive-folder h2,
.archive-folder h3 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.archive-folder h2 a,
.archive-folder h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.archive-folder h2 a:hover,
.archive-folder h3 a:hover {
  text-decoration-color: var(--color-editorial-accent);
}

.archive-folder-details {
  margin: 12px 0 20px;
  color: var(--color-text-muted);
}

.archive-folder .writing-entry-link {
  justify-self: start;
}

/* Scritti index: two compact editorial chapters, not a card catalogue. */
.writing-root-page {
  --writing-paper: #ede6da;
  --writing-rule: #c8bbaa;
}

.writing-root-page .editorial-page-head {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(46px, 6vw, 72px);
}

.writing-root-collection {
  padding-top: clamp(26px, 4vw, 48px);
  padding-bottom: clamp(34px, 5vw, 64px);
  background: var(--writing-paper);
}

.writing-root-collection .archive-folder-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}

.writing-root-collection .archive-folder {
  grid-template-rows: none;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 96px);
  min-height: 0;
  padding: clamp(30px, 4.5vw, 54px) 0;
  border: 0;
  border-top: 1px solid var(--writing-rule);
  border-radius: 0;
}

.writing-root-collection .archive-folder:last-child {
  border-bottom: 1px solid var(--writing-rule);
}

.writing-root-collection .archive-folder-main {
  display: block;
}

.writing-root-collection .archive-folder-label {
  margin-bottom: 12px;
  color: #76584d;
}

.writing-root-collection .archive-folder h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.writing-root-collection .archive-folder-details {
  margin: 10px 0 18px;
  color: #665f57;
}

.archive-folder-children {
  align-self: stretch;
  padding-left: clamp(24px, 4vw, 52px);
  border-left: 1px solid var(--writing-rule);
}

.archive-folder-children > p {
  margin: 0 0 8px;
  color: #76584d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.archive-folder-children ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.archive-folder-children a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--color-text-on-light);
  border-bottom: 1px solid rgb(118 88 77 / 24%);
  text-decoration: none;
}

.archive-folder-children a:hover {
  color: #76584d;
}

.archive-folder-children a span:last-child {
  flex: 0 0 auto;
  color: var(--color-editorial-accent);
}

.archive-page-head h1 {
  letter-spacing: 0;
}

.archive-context {
  max-width: 66ch;
  margin: 28px 0 0;
  color: var(--color-text-muted);
}

.archive-page-body {
  padding: var(--section-y) max(var(--gutter), calc((100vw - var(--page-max)) / 2));
}

.archive-subsection + .archive-subsection {
  margin-top: var(--section-y);
}

.archive-subsection > h2 {
  max-width: 18ch;
  color: var(--color-text-on-light);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
}

.archive-subsection > .writing-index {
  margin-top: 36px;
}

.archive-empty {
  padding: 20px 0;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.writing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 54px;
  border-bottom: 1px solid var(--color-border-light);
}

.writing-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 18px;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.writing-filter span {
  min-width: 24px;
  padding: 1px 6px;
  color: var(--color-graphite);
  background: rgba(11, 13, 15, 0.07);
  border-radius: 3px;
  font-size: 0.82rem;
  text-align: center;
}

.writing-filter:hover,
.writing-filter.is-active {
  color: var(--color-text-on-light);
  border-bottom-color: var(--color-editorial-accent);
}

.writing-index {
  border-bottom: 1px solid var(--color-border-light);
}

.writing-entry {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1.25fr) auto;
  gap: 28px;
  align-items: start;
  padding: 38px 0;
  border-top: 1px solid var(--color-border-light);
}

.writing-entry[hidden] {
  display: none;
}

.writing-entry-meta {
  display: flex;
  flex-direction: column;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.writing-entry h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.writing-entry h3 a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.writing-entry h3 a:hover {
  text-decoration-color: var(--color-editorial-accent);
}

.writing-entry p {
  max-width: 64ch;
  margin: 12px 0 0;
  color: var(--color-graphite);
}

.writing-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--color-text-on-light);
  font-weight: 800;
  white-space: nowrap;
}

.writing-entry-link span {
  color: var(--color-editorial-accent);
  font-size: 1.35rem;
}

.writing-count {
  margin: 18px 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.writing-work {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 82px);
  width: min(1040px, 100%);
  max-width: none;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.writing-note {
  align-self: start;
  padding-top: 16px;
  border-top: 3px solid var(--color-editorial-accent);
  color: var(--color-graphite);
}

.writing-note p {
  margin: 0;
}

.writing-note p:first-child {
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.writing-note .writing-byline {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.writing-note a,
.writing-related a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.writing-navigation {
  align-items: end;
}

.writing-related {
  margin-top: 24px;
}

.writing-related .section-kicker {
  color: var(--color-smoke);
}

.writing-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.writing-related a {
  color: var(--color-text-on-dark);
}

.poem-text {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.9;
}

.writing-signature {
  margin-top: 42px !important;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.editorial-crosslink {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 36px;
  align-items: center;
  padding: 52px max(var(--gutter), calc((100vw - var(--page-max)) / 2));
  color: var(--color-text-on-dark);
  background: var(--color-bg-secondary);
}

.editorial-crosslink h2 {
  color: var(--color-text-on-dark);
  font-size: 2.45rem;
}

.editorial-crosslink p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--color-text-secondary-on-dark);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(var(--gutter), calc((100vw - var(--page-max)) / 2));
  color: var(--color-text-secondary-on-dark);
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-dark);
}

body:not(.intent-page):not(.editorial-page) .site-footer {
  padding: 32px 0 42px;
  background: var(--color-bg-primary);
}

.site-footer p {
  margin: 0;
  color: var(--color-text-secondary-on-dark);
  font-size: 0.9rem;
}

.footer-identity {
  flex: 0 0 auto;
}

.site-footer .footer-legal-data {
  margin-top: 5px;
  color: var(--color-text-on-dark);
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--color-text-secondary-on-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-nav a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.footer-nav a:hover {
  color: var(--color-text-on-dark);
  text-decoration-color: var(--color-action-primary);
}

/* Legal information: readable like a short document, not a wall of clauses. */
.legal-page-head {
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(50px, 7vw, 84px);
}

.legal-page-head h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.legal-updated {
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

.legal-content {
  width: min(820px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding-block: clamp(54px, 8vw, 100px);
  color: var(--color-graphite);
  font-size: 1.06rem;
  line-height: 1.72;
}

.legal-content section + section {
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid var(--color-border-light);
}

.legal-content h2 {
  max-width: 20ch;
  margin: 0 0 18px;
  color: var(--color-text-on-light);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin: 24px 0 8px;
  color: var(--color-text-on-light);
  font-family: var(--font-body);
  font-size: 1.12rem;
  letter-spacing: 0;
}

.legal-content p,
.legal-content ul {
  margin-top: 0;
  margin-bottom: 18px;
}

.legal-content ul {
  padding-left: 1.25em;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  font-weight: 700;
  text-decoration-color: var(--color-editorial-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.legal-content code {
  padding: 0.08em 0.28em;
  font-size: 0.9em;
  background: #e5ded2;
  border: 1px solid var(--color-border-light);
}

@media (min-width: 1440px) {
  :root {
    --page-max: 1240px;
    --section-y: 108px;
  }

  .hero {
    min-height: 680px;
  }
}

@media (min-width: 1800px) {
  :root {
    --page-max: 1320px;
  }

  .hero {
    min-height: 720px;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3rem, 6.5vw, 4.6rem);
  }

  .split,
  .paired,
  .contact,
  .intent-layout,
  .editorial-page-body {
    gap: 42px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 22px;
    --section-y: 78px;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 4px 14px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 8px;
    overflow-x: auto;
    padding-top: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding-inline: 6px;
  }

  .theme-dot {
    margin-left: auto;
  }

  .hero,
  .split,
  .paired,
  .contact,
  .intent-layout,
  .editorial-page-body,
  .writing-collection-head,
  .writing-work {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
    padding-top: 54px;
  }

  .hero h1 {
    max-width: 15ch;
  }

  .hero-media {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stats article {
    border-right: 0;
    border-bottom: 1px solid var(--color-border-dark);
  }

  .stats article:last-child {
    border-bottom: 0;
  }

  .intent-section h2,
  .editorial-page-body h2 {
    max-width: 18ch;
  }

  .intent-hero,
  .intent-hero-inner {
    min-height: 720px;
  }

  .intent-hero-inner {
    padding-top: 180px;
  }

  .intent-page .contact .button,
  body:not(.intent-page):not(.editorial-page) .contact .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
    --section-y: 66px;
  }

  body {
    font-size: 16px;
  }

  .brand span:last-child {
    font-size: 0.96rem;
  }

  .main-nav {
    font-size: 0.86rem;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 88px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 12vw, 3.55rem);
    line-height: 1;
  }

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

  .button {
    min-height: 52px;
  }

  .service-list,
  .case-list,
  .reference-notes,
  .deliverable-list,
  .archive-folder-grid {
    grid-template-columns: 1fr;
  }

  .writing-root-collection .archive-folder {
    grid-template-columns: minmax(180px, 0.62fr) minmax(0, 1.38fr);
    gap: 28px;
  }

  .archive-folder-children {
    padding-left: 28px;
  }

  .method-steps li,
  .intent-list li,
  .faq-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-media {
    aspect-ratio: 16 / 10;
  }

  .intent-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .intent-hero .lead {
    font-size: 1.02rem;
  }

  .intent-profile {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
  }

  .intent-profile img {
    width: 96px;
    height: 96px;
  }

  .editorial-page-head h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .editorial-crosslink {
    grid-template-columns: 1fr;
  }

  .writing-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .writing-entry-meta {
    flex-direction: row;
    gap: 8px;
  }

  .writing-entry-meta span + span::before {
    margin-right: 8px;
    content: "·";
  }

  .writing-entry-link {
    justify-self: start;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .writing-root-page .editorial-page-head {
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .writing-root-collection {
    padding-top: 18px;
    padding-bottom: 38px;
  }

  .writing-root-collection .archive-folder {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 0;
  }

  .archive-folder-children {
    padding: 20px 0 0;
    border-top: 1px solid var(--writing-rule);
    border-left: 0;
  }

  .archive-folder-children ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

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

  .button {
    width: 100%;
    white-space: normal;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
  }

  .hero-media figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .intent-hero .hero-actions {
    display: grid;
  }

  .intent-page .contact,
  body:not(.intent-page):not(.editorial-page) .contact {
    padding: 28px 22px;
  }

  .editorial-author {
    align-items: flex-start;
  }
}

@media (max-width: 340px) {
  :root {
    --gutter: 14px;
  }

  .main-nav a {
    font-size: 0.82rem;
  }

  .hero h1,
  .intent-hero h1 {
    font-size: 2.35rem;
  }

  .intent-profile {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .button:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  :where(a, button, input):focus-visible {
    outline: 3px solid Highlight;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .intro-screen {
    display: none;
  }

  .button:hover {
    transform: none;
  }
}
