*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal: #16140f;
  --charcoal-2: #1f1c17;
  --charcoal-3: #28241e;
  --near-black: #0d0c0a;
  --ivory: #f4ede1;
  --ivory-dim: #e8dfd1;
  --stone: #a89c8d;
  --stone-dim: #8f8578;
  --champagne: #c9b89a;
  --champagne-dim: #9a8d75;
  --rose: #b89a92;
  --mauve: #8a7a82;
  --plum: #5d4a55;
  --violet: #7c6db3;
  --violet-soft: #9d8fc7;
  --line: rgba(244, 237, 225, 0.10);
  --line-2: rgba(244, 237, 225, 0.18);
  --line-strong: rgba(244, 237, 225, 0.30);
  --ease-quiet: cubic-bezier(.22, 1, .36, 1);
  --ease-precise: cubic-bezier(.4, 0, .2, 1);
  --ease-emphasis: cubic-bezier(.16, 1, .3, 1);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1400px;
  --max-w-narrow: 860px;
  --max-w-wide: 1600px;
  --page-gutter: clamp(20px, 2.3vw, 48px);
  --world-base: #171a17;
  --world-depth: #25251f;
  --world-ink: #f4ede1;
  --world-champagne: #c9b89a;
  --world-line: rgba(216, 208, 194, 0.14);
  --world-line-strong: rgba(216, 208, 194, 0.28);
  --world-signal: #8fa39c;
  --world-panel: rgba(33, 31, 26, 0.82);
}

html { scroll-behavior: auto; }
body {
  background: var(--near-black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-nav-open { overflow: hidden; }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--charcoal);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Custom cursor */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--champagne);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s var(--ease-quiet), height 0.3s var(--ease-quiet), opacity 0.3s, background 0.3s, border 0.3s;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-hover { width: 36px; height: 36px; background: transparent; border: 1px solid var(--champagne); mix-blend-mode: normal; }
@media (pointer: coarse) { .cursor-dot { display: none; } }

/* Typography */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.5rem; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--centered { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
em { font-style: italic; }

.h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; }
.h1 em { color: var(--champagne); font-weight: 300; }
.h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1.05; }
.h2 em { color: var(--champagne); font-weight: 300; }
.h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.1; }

.lead {
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ivory-dim);
  font-weight: 300;
}

/* Layout */
.section { padding: 8rem 2rem; position: relative; }
.container { max-width: var(--max-w); margin: 0 auto; }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; }
.container--wide { max-width: var(--max-w-wide); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: all 0.5s var(--ease-quiet);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--ivory); color: var(--charcoal); }
.btn--primary:hover { background: var(--champagne); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--ivory); }
.btn--ghost:hover { border-color: var(--champagne); color: var(--champagne); }
.btn__arrow { display: inline-block; transition: transform 0.4s var(--ease-quiet); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s var(--ease-quiet), padding 0.5s var(--ease-quiet), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(13, 12, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  border-bottom-color: var(--line);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__brand-mark {
  width: 24px; height: 24px;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.nav__brand-mark::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: var(--champagne);
  border-radius: 50%;
}
.nav__menu { display: flex; gap: 2rem; align-items: center; }
.nav__link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--stone);
  cursor: pointer;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease-quiet);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 1px;
  background: var(--champagne);
  transition: right 0.5s var(--ease-quiet);
}
.nav__link:hover, .nav__link.is-active { color: var(--ivory); }
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }
.nav__cta {
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--line-2);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  cursor: pointer;
  transition: all 0.4s var(--ease-quiet);
}
.nav__cta:hover { border-color: var(--champagne); color: var(--champagne); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 120;
  margin-right: -6px;
}
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 1px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease-quiet), opacity 0.3s, top 0.4s var(--ease-quiet);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 28px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed; inset: 0;
  z-index: 110;
  background: rgba(13, 12, 10, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-quiet), visibility 0.45s;
}
.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-drawer__menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 28rem;
}
.nav-drawer__link {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ivory);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav-drawer__link.is-active,
.nav-drawer__link:hover,
.nav-drawer__link:focus-visible { color: var(--champagne); }
.nav-drawer__cta {
  margin-top: 2.5rem;
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* View system */
.view { display: none; opacity: 0; transition: opacity 0.5s var(--ease-quiet); }
.view.is-active { display: block; opacity: 1; }

/* Portal — Home only */
.portal {
  position: relative;
  height: auto;
}
.portal__sticky {
  position: relative;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.portal__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.portal__video,
.portal__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal__canvas { z-index: 1; }
.portal__video {
  opacity: 0;
  transition: opacity 0.8s var(--ease-quiet);
}
.portal__video.is-playing { opacity: 1; }
.portal__poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.portal__vignette {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 18%, rgba(13,12,10,0.35) 52%, rgba(13,12,10,0.88) 100%);
  pointer-events: none;
}
.portal__veil {
  position: absolute; inset: 0; z-index: 3;
  background: var(--near-black);
  opacity: 0;
  pointer-events: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 8rem var(--page-gutter) 5rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, var(--charcoal-2) 0%, var(--charcoal) 50%, var(--near-black) 100%);
}
.portal .hero {
  min-height: 100vh;
  width: 100%;
  background: transparent;
  z-index: 4;
}
.portal .hero__ambient { opacity: 0.18; }
.portal .hero__glow { opacity: 0.08; }
.hero__ambient { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
}
.hero__glow--1 { width: 600px; height: 600px; background: var(--champagne); top: -200px; right: -100px; animation: drift1 22s var(--ease-quiet) infinite; }
.hero__glow--2 { width: 500px; height: 500px; background: var(--mauve); bottom: -150px; left: -100px; animation: drift2 28s var(--ease-quiet) infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px, 60px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, -50px) scale(0.9); } }

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(72rem, 100%);
  max-width: none;
  margin: 0;
  text-align: left;
}
.hero__eyebrow { margin-bottom: 2.5rem; opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease-quiet), transform 1s var(--ease-quiet); }
.hero.is-in .hero__eyebrow { opacity: 1; transform: none; transition-delay: 0.2s; }

.hero__title {
  font-family: var(--sans);
  font-size: clamp(2.125rem, 5.2vw, 4.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: none;
  margin-bottom: 2.5rem;
  color: var(--ivory);
  text-align: left;
}
.hero__title-line { display: block; overflow: hidden; padding: 0.05em 0; }
.hero__title-line span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-emphasis);
}
.hero.is-in .hero__title-line:nth-child(1) span { transform: none; transition-delay: 0.4s; }
.hero.is-in .hero__title-line:nth-child(2) span { transform: none; transition-delay: 0.55s; }
@media (min-width: 1600px) {
  .hero__title-line:first-child span { white-space: nowrap; }
}
.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--champagne);
  font-size: 1.05em;
  letter-spacing: -0.015em;
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ivory-dim);
  max-width: 580px;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s var(--ease-quiet) 0.9s, transform 1s var(--ease-quiet) 0.9s;
}
.hero.is-in .hero__sub { opacity: 1; transform: none; }

.hero__cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: flex-start;
  opacity: 0; transform: translateY(20px);
  transition: opacity 1s var(--ease-quiet) 1.1s, transform 1s var(--ease-quiet) 1.1s;
}
@media (max-width: 600px) {
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .hero__scroll {
    left: auto;
    right: var(--page-gutter);
    transform: none;
  }
}
.hero.is-in .hero__cta { opacity: 1; transform: none; }

.hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone-dim);
  opacity: 0;
  transition: opacity 1s var(--ease-quiet) 1.5s;
}
.hero.is-in .hero__scroll { opacity: 1; }
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--champagne), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: var(--ivory);
  animation: scrollPulse 2.5s var(--ease-quiet) infinite;
}
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

.hero__side {
  position: absolute;
  right: 2rem; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone-dim);
  white-space: nowrap;
}
@media (max-width: 900px) { .hero__side { display: none; } }

/* Intro */
.intro { padding: 10rem 2rem; background: var(--near-black); position: relative; }
.intro__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 5rem; align-items: start;
}
.intro__label { position: sticky; top: 8rem; }
.intro__body {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.35;
  font-weight: 300;
  color: var(--ivory);
  letter-spacing: -0.005em;
}
.intro__body em { color: var(--champagne); }
.intro__body p { margin-bottom: 2rem; }
.intro__body .intro__detail {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--stone);
  font-weight: 300;
  margin-top: 2rem;
}
.intro__signoff {
  margin-top: 3rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex; align-items: center; gap: 1rem;
}
.intro__signoff::before { content: ''; width: 2rem; height: 1px; background: var(--champagne); }
@media (max-width: 900px) { .intro__inner { grid-template-columns: 1fr; gap: 2rem; } .intro__label { position: static; } }

/* Services carousel */
.services { padding: 8rem 0 8rem 2rem; background: var(--charcoal); position: relative; overflow: hidden; }
.services__header {
  max-width: var(--max-w); margin: 0 0 5rem;
  padding-right: 2rem;
  display: flex; justify-content: space-between; align-items: end; gap: 3rem;
}
.services__header-left h2 { margin-top: 1.5rem; max-width: 700px; }
.services__nav { display: flex; gap: 0.75rem; flex-shrink: 0; }
.services__nav-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease-quiet);
  color: var(--ivory);
  font-size: 1.125rem;
}
.services__nav-btn:hover { border-color: var(--champagne); color: var(--champagne); }

.services__track {
  display: flex; gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-right: 2rem; padding-bottom: 2rem;
}
.services__track::-webkit-scrollbar { display: none; }

.service-card {
  flex: 0 0 calc(50vw - 3rem);
  min-width: 420px;
  max-width: 620px;
  scroll-snap-align: start;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--ease-quiet);
  cursor: pointer;
  display: flex; flex-direction: column;
  min-height: 600px;
}
.service-card:hover {
  border-color: var(--champagne-dim);
  background: var(--charcoal-3);
  transform: translateY(-4px);
}
.service-card__num {
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--champagne);
  margin-bottom: 2rem;
}
.service-card__visual {
  height: 200px;
  margin-bottom: 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}
.service-card__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--ivory);
}
.service-card__title em { color: var(--champagne); font-weight: 300; }
.service-card__desc {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ivory-dim);
  font-weight: 300;
  margin-bottom: 1.5rem;
  flex: 1;
}
.service-card__tags {
  font-size: 0.8125rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.service-card__link {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--champagne);
  transition: gap 0.4s var(--ease-quiet);
}
.service-card:hover .service-card__link { gap: 1.25rem; }
.service-card--ai .service-card__num,
.service-card--ai .service-card__title em,
.service-card--ai .service-card__link { color: var(--violet-soft); }

.services__progress {
  margin-top: 3rem; margin-right: 2rem;
  max-width: var(--max-w);
  height: 1px; background: var(--line);
  position: relative;
}
.services__progress-bar {
  position: absolute; top: 0; left: 0;
  height: 1px; background: var(--champagne);
  width: 25%;
  transition: width 0.4s var(--ease-quiet);
}

.svc-visual { width: 100%; height: 100%; }
.svc-visual svg { width: 100%; height: 100%; }

@media (max-width: 768px) {
  .service-card { flex: 0 0 85vw; min-width: 0; padding: 2rem; min-height: 520px; }
}

/* Cursor reveal — removed. Structural diagram lives in avs-world.css. */

/* Work section */
.work { padding: 8rem 2rem; background: var(--charcoal); }
.work__header {
  max-width: var(--max-w); margin: 0 auto 5rem;
  display: flex; justify-content: space-between; align-items: end; gap: 3rem;
}
.work__header h2 { margin-top: 1.5rem; }
.work__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem 3rem;
}
.work__item { position: relative; }
a.work__item { cursor: pointer; }
.work__visual {
  aspect-ratio: 16/11;
  background: var(--charcoal-2);
  position: relative; overflow: hidden;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line);
}
.work__visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 1.5s var(--ease-quiet);
  filter: brightness(0.85) saturate(0.8);
}
.work__item:hover .work__visual img { transform: scale(1.05); filter: brightness(0.95) saturate(1); }
.work__visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,12,10,0.7) 100%);
  display: flex; align-items: end; padding: 1.5rem;
  opacity: 0; transition: opacity 0.6s var(--ease-quiet);
}
.work__item:hover .work__visual-overlay { opacity: 1; }
.work__visual-tag {
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--champagne);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--champagne);
  background: rgba(13,12,10,0.6);
  backdrop-filter: blur(8px);
}
.work__meta { display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
.work__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 400; line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--ivory);
}
.work__title em { color: var(--champagne); }
.work__category { font-size: 0.8125rem; color: var(--stone); margin-bottom: 0.5rem; }
.work__year { font-size: 0.75rem; color: var(--stone-dim); letter-spacing: 0.1em; white-space: nowrap; }
.work__concept {
  display: inline-block;
  font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mauve);
  border: 1px solid var(--line-2);
  padding: 0.2rem 0.5rem;
  margin-top: 0.5rem;
}
@media (max-width: 900px) { .work__grid { grid-template-columns: 1fr; gap: 3rem; } }

/* Approach */
.approach { padding: 10rem 2rem; background: var(--near-black); position: relative; }
.approach__header { max-width: var(--max-w); margin: 0 auto 6rem; text-align: center; }
.approach__header h2 { margin-top: 1.5rem; }
.approach__timeline { max-width: var(--max-w); margin: 0 auto; position: relative; }
.approach__timeline::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--line);
  transform: translateX(-50%);
}
.approach__step {
  display: grid; grid-template-columns: 1fr 80px 1fr;
  gap: 2rem; margin-bottom: 5rem;
  position: relative; align-items: center;
}
.approach__step:last-child { margin-bottom: 0; }
.approach__step:nth-child(odd) .approach__content { text-align: right; grid-column: 1; }
.approach__step:nth-child(odd) .approach__spacer { grid-column: 3; }
.approach__step:nth-child(even) .approach__content { grid-column: 3; }
.approach__step:nth-child(even) .approach__spacer { grid-column: 1; }
.approach__num {
  grid-column: 2;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--champagne);
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  background: var(--near-black);
  position: relative; z-index: 2;
  margin: 0 auto;
  transition: all 0.6s var(--ease-quiet);
}
.approach__step.is-in .approach__num { border-color: var(--champagne); background: var(--charcoal-2); }
.approach__content { padding: 0 1rem; }
.approach__step-num {
  font-family: var(--sans);
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone-dim); margin-bottom: 0.75rem;
}
.approach__step-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 400; color: var(--ivory);
  margin-bottom: 1rem; line-height: 1.1;
}
.approach__step-title em { color: var(--champagne); }
.approach__step-desc { font-size: 0.9375rem; line-height: 1.6; color: var(--stone); }

@media (max-width: 768px) {
  .approach__timeline::before { left: 30px; }
  .approach__step { grid-template-columns: 60px 1fr; gap: 1.5rem; }
  .approach__step:nth-child(odd) .approach__content,
  .approach__step:nth-child(even) .approach__content { grid-column: 2; text-align: left; }
  .approach__step:nth-child(odd) .approach__spacer,
  .approach__step:nth-child(even) .approach__spacer { display: none; }
  .approach__num { grid-column: 1; margin: 0; }
}

/* Founder */
.founder { padding: 10rem 2rem; background: var(--charcoal); position: relative; overflow: hidden; }
.founder__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 5fr 6fr;
  gap: 5rem; align-items: center;
}
.founder__visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--charcoal-2);
  overflow: hidden;
  border: 1px solid var(--line);
}
.founder__visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) brightness(0.8) sepia(0.1);
}
.founder__visual-tag {
  position: absolute; top: 1.5rem; left: 1.5rem;
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--champagne);
  background: rgba(13,12,10,0.7);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--line-2);
}
.founder__content { padding: 1rem 0; }
.founder__content h2 { margin: 1.5rem 0 2.5rem; }
.founder__body {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.5;
  color: var(--ivory-dim);
  font-weight: 300;
  margin-bottom: 2rem;
}
.founder__body em { color: var(--champagne); }
.founder__body-detail {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--stone);
  font-weight: 300;
}
.founder__credentials {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.founder__credential { display: flex; flex-direction: column; }
.founder__credential-label {
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone-dim); margin-bottom: 0.5rem;
}
.founder__credential-value {
  font-family: var(--serif);
  font-size: 1.0625rem; color: var(--ivory);
}
@media (max-width: 900px) { .founder__inner { grid-template-columns: 1fr; gap: 3rem; } }

/* Why */
.why { padding: 10rem 2rem; background: var(--near-black); }
.why__header { max-width: var(--max-w); margin: 0 auto 5rem; }
.why__header h2 { margin-top: 1.5rem; max-width: 800px; }
.why__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.why__item {
  padding: 3rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.6s var(--ease-quiet);
}
.why__item:hover { background: rgba(244, 237, 225, 0.02); }
.why__item-num {
  font-family: var(--serif);
  font-size: 0.875rem; color: var(--champagne);
  letter-spacing: 0.2em; margin-bottom: 1.5rem;
}
.why__item-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 400; color: var(--ivory);
  margin-bottom: 1rem; line-height: 1.15;
}
.why__item-title em { color: var(--champagne); }
.why__item-desc { font-size: 0.9375rem; line-height: 1.6; color: var(--stone); }
@media (max-width: 768px) { .why__grid { grid-template-columns: 1fr; } .why__item { padding: 2rem; } }

/* Aside quote */
.aside-quote { padding: 6rem 2rem; background: var(--charcoal); text-align: center; }
.aside-quote__inner { max-width: 900px; margin: 0 auto; }
.aside-quote__text {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.3;
  color: var(--ivory);
  font-weight: 300;
}
.aside-quote__text em { color: var(--champagne); }

/* Final CTA */
.cta-final {
  padding: 12rem 2rem;
  background: var(--charcoal);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-final__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, var(--charcoal-2) 0%, var(--charcoal) 60%, var(--near-black) 100%);
}
.cta-final__glow {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: var(--champagne);
  filter: blur(150px);
  opacity: 0.08;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cta-final__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.cta-final h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin: 1.5rem 0 2rem;
  line-height: 1.02;
}
.cta-final h2 em { color: var(--champagne); font-weight: 300; }
.cta-final__sub {
  font-size: 1.0625rem; line-height: 1.6;
  color: var(--ivory-dim);
  max-width: 580px; margin: 0 auto 3rem;
}
.cta-final__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { padding: 4rem 2rem 2rem; background: var(--near-black); border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--max-w); margin: 0 auto; }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.footer__brand h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 1rem; font-weight: 400; }
.footer__brand p { font-size: 0.875rem; color: var(--stone); line-height: 1.6; max-width: 320px; }
.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone-dim); margin-bottom: 1.25rem; font-weight: 500;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 0.625rem; }
.footer__col a {
  font-size: 0.875rem; color: var(--ivory-dim);
  transition: color 0.3s; cursor: pointer;
}
.footer__col a:hover { color: var(--champagne); }
.footer__bottom {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--stone-dim); letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; }
}

/* Service pages */
.service-hero { padding: 12rem 2rem 6rem; background: var(--charcoal); position: relative; overflow: hidden; }
.service-hero__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: end;
}
.service-hero__eyebrow { margin-bottom: 2rem; }
.service-hero__title {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ivory);
}
.service-hero__title em {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  color: var(--champagne);
}
.service-hero__lead {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ivory-dim);
  font-weight: 300;
}

.service-meta {
  padding: 3rem 2rem;
  background: var(--near-black);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-meta__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.service-meta__item { display: flex; flex-direction: column; }
.service-meta__label {
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone-dim); margin-bottom: 0.5rem;
}
.service-meta__value {
  font-family: var(--serif);
  font-size: 1.125rem; color: var(--ivory);
}
@media (max-width: 768px) {
  .service-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .service-meta__inner { grid-template-columns: 1fr 1fr; }
}

.service-section { padding: 8rem 2rem; }
.service-section--alt { background: var(--near-black); }
.service-section__inner { max-width: var(--max-w); margin: 0 auto; }
.service-section__header { margin-bottom: 5rem; max-width: 800px; }
.service-section__header h2 { margin-top: 1.5rem; }

.service-list {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-list__item {
  padding: 2.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.6s var(--ease-quiet);
}
.service-list__item:hover { background: rgba(244, 237, 225, 0.02); }
.service-list__item-num {
  font-family: var(--serif);
  font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--champagne); margin-bottom: 1rem;
}
.service-list__item-title {
  font-family: var(--serif);
  font-size: 1.5rem; color: var(--ivory);
  margin-bottom: 0.75rem; line-height: 1.15;
}
.service-list__item-title em { color: var(--champagne); }
.service-list__item-desc { font-size: 0.875rem; line-height: 1.6; color: var(--stone); }
@media (max-width: 768px) { .service-list { grid-template-columns: 1fr; } .service-list__item { padding: 2rem; } }

/* AI page accent */
.view--ai .service-hero { background: radial-gradient(ellipse at 70% 30%, rgba(124, 109, 179, 0.10) 0%, transparent 60%), var(--charcoal); }
.view--ai .service-hero__title em,
.view--ai .service-list__item-title em,
.view--ai .service-list__item-num,
.view--ai .service-meta__value,
.view--ai .connection__node-num { color: var(--violet-soft); }
.view--ai .eyebrow { color: var(--violet-soft); }
.view--ai .cta-final__glow { background: var(--violet); }
.view--ai .btn--primary:hover { background: var(--violet-soft); }

/* Connection diagram */
.connection {
  padding: 8rem 2rem;
  background: var(--charcoal-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.connection__inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.connection__head { margin-bottom: 4rem; }
.connection__head h2 { margin-top: 1.5rem; }
.connection__head p { max-width: 640px; margin: 1.5rem auto 0; }
.connection__diagram {
  position: relative;
  max-width: 1100px; margin: 0 auto;
}
.connection__nodes {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.connection__node {
  background: var(--charcoal);
  border: 1px solid var(--line-2);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  text-align: left;
  position: relative;
  transition: all 0.6s var(--ease-quiet);
}
.connection__node:hover { border-color: var(--champagne); transform: translateY(-2px); }
.connection__node--active { border-color: var(--champagne); background: var(--charcoal-3); }
.connection__node-num {
  font-family: var(--serif);
  font-size: 0.75rem; color: var(--champagne); letter-spacing: 0.2em;
}
.connection__node-name {
  font-family: var(--serif);
  font-size: 1.125rem; color: var(--ivory);
}
.connection__caption {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--stone);
  font-style: italic;
  font-family: var(--serif);
}
@media (max-width: 768px) { .connection__nodes { grid-template-columns: 1fr 1fr; } }

/* Page intro (work, about) */
.page-intro { padding: 12rem 2rem 6rem; background: var(--charcoal); position: relative; }
.page-intro__inner { max-width: var(--max-w); margin: 0 auto; }
.page-intro__title {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400; letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 1.5rem 0 2rem;
  max-width: 1000px;
}
.page-intro__title em { font-family: var(--serif); font-style: italic; color: var(--champagne); font-weight: 300; }
.page-intro__lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--ivory-dim);
  max-width: 760px;
  font-weight: 300;
}

/* Work page list */
.work-page { padding: 4rem 2rem 8rem; background: var(--charcoal); }
.work-page__list { max-width: var(--max-w); margin: 0 auto; }
.work-page__item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  margin-bottom: 8rem;
}
.work-page__item:nth-child(even) { direction: rtl; }
.work-page__item:nth-child(even) > * { direction: ltr; }
.work-page__item-visual {
  background: var(--charcoal-2);
  overflow: visible;
  border: none;
  position: relative;
}
.work-page__item-visual img {
  width: 100%; height: 100%; object-fit: contain; object-position: top center;
  filter: none;
}
.work-page__item-content { padding: 1rem 0; }
.work-page__item-num {
  font-family: var(--serif);
  font-size: 0.875rem; color: var(--champagne);
  letter-spacing: 0.2em; margin-bottom: 1.5rem;
}
.work-page__item-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400; color: var(--ivory);
  line-height: 1.1; margin-bottom: 0.75rem;
}
.work-page__item-title em { color: var(--champagne); }
.work-page__item-category { font-size: 0.875rem; color: var(--stone); margin-bottom: 1.5rem; }
.work-page__item-desc { font-size: 1rem; line-height: 1.65; color: var(--ivory-dim); margin-bottom: 2rem; }
.work-page__item-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.work-page__item-tag {
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--line-2);
  padding: 0.4rem 0.75rem;
}
.work-page__item-concept {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mauve);
  border: 1px solid var(--line-2);
  padding: 0.3rem 0.625rem;
}
@media (max-width: 900px) {
  .work-page__item { grid-template-columns: 1fr; gap: 2rem; direction: ltr !important; margin-bottom: 5rem; }
}

/* About */
.about-story { padding: 8rem 2rem; background: var(--near-black); }
.about-story__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.about-story__col p {
  font-size: 1.0625rem; line-height: 1.7;
  color: var(--ivory-dim); margin-bottom: 1.5rem;
}
.about-story__col p em { color: var(--champagne); }
.about-story__col p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.5rem;
  float: left;
  line-height: 0.9;
  padding: 0.25rem 0.5rem 0 0;
  color: var(--champagne);
}
.about-story__pull {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.35;
  color: var(--ivory);
  font-weight: 300;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}
.about-story__pull em { color: var(--champagne); }
@media (max-width: 900px) { .about-story__inner { grid-template-columns: 1fr; gap: 2rem; } }

/* Contact */
.contact-page { padding: 12rem 2rem 8rem; background: var(--charcoal); }
.contact-page__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 5fr 6fr;
  gap: 5rem;
}
.contact-page__title {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400; letter-spacing: -0.025em;
  line-height: 1.02; margin: 1.5rem 0 2rem;
}
.contact-page__title em { font-family: var(--serif); font-style: italic; color: var(--champagne); font-weight: 300; }
.contact-page__lead {
  font-family: var(--serif);
  font-size: 1.25rem; line-height: 1.5;
  color: var(--ivory-dim); margin-bottom: 3rem;
  font-weight: 300;
}
.contact-page__info { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact-page__info-item { margin-bottom: 1.5rem; }
.contact-page__info-label {
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone-dim); margin-bottom: 0.5rem;
}
.contact-page__info-value {
  font-family: var(--serif);
  font-size: 1.125rem; color: var(--ivory);
}

.contact-form {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  padding: 3rem;
  position: relative;
}
.contact-form__field { margin-bottom: 1.75rem; }
.contact-form__label {
  display: block;
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone-dim); margin-bottom: 0.75rem;
}
.contact-form__input,
.contact-form__textarea,
.contact-form__select {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--line-2);
  padding: 0.75rem 0;
  font-family: var(--sans);
  font-size: 1rem; color: var(--ivory);
  font-weight: 300;
  transition: border-color 0.4s;
}
.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus { outline: none; border-bottom-color: var(--champagne); }
.contact-form__textarea { resize: vertical; min-height: 100px; }
.contact-form__select { cursor: pointer; }
.contact-form__select option { background: var(--charcoal-2); }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-form__submit { margin-top: 1rem; width: 100%; justify-content: center; }
@media (max-width: 900px) {
  .contact-page__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem; }
}

/* Reveal animations */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-quiet), transform 1s var(--ease-quiet); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-quiet), transform 0.9s var(--ease-quiet); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-in > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: 0.2s; }
[data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: 0.3s; }
[data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: 0.4s; }
[data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .portal { height: auto; }
  .portal__sticky { position: relative; height: auto; min-height: 100vh; }
  .system-canvas, .system-math { display: none; }
}

/* Loader */
.loader {
  position: fixed; inset: 0;
  background: var(--near-black);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 2rem;
  transition: opacity 0.8s var(--ease-quiet), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__brand {
  font-family: var(--serif);
  font-size: 1.5rem; color: var(--ivory);
  letter-spacing: 0.04em;
}
.loader__bar { width: 200px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--champagne);
  animation: loaderFill 1.6s var(--ease-quiet) forwards;
}
@keyframes loaderFill { 0% { width: 0%; } 100% { width: 100%; } }
html.avs-loader-skip .loader {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* System environment */
.system-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 1.2s var(--ease-quiet);
}
body[data-env="home"].is-through .system-canvas { opacity: 0.28; }
body[data-env="inner"] .system-canvas { opacity: 0.12; }

.system-math {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s var(--ease-quiet);
}
body[data-env="home"].is-through .system-math { opacity: 0.32; }
body[data-env="inner"] .system-math { opacity: 0.16; }
.system-math span {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.7rem, 1vw, 0.875rem);
  letter-spacing: 0.04em;
  color: var(--champagne);
  opacity: 0.28;
  white-space: nowrap;
  mix-blend-mode: screen;
}
body[data-env="inner"] .system-math span { opacity: 0.22; }

main { position: relative; z-index: 2; }
.footer { position: relative; z-index: 2; }

body[data-env="home"].is-through .intro { background: rgba(13, 12, 10, 0.82); }
body[data-env="home"].is-through .services { background: rgba(22, 20, 15, 0.84); }
body[data-env="home"].is-through .reveal { background: rgba(13, 12, 10, 0.82); }
body[data-env="home"].is-through .work { background: rgba(22, 20, 15, 0.86); }
body[data-env="home"].is-through .approach { background: rgba(13, 12, 10, 0.84); }
body[data-env="home"].is-through .founder { background: rgba(22, 20, 15, 0.88); }
body[data-env="home"].is-through .why { background: rgba(13, 12, 10, 0.86); }
body[data-env="home"].is-through .aside-quote { background: rgba(22, 20, 15, 0.86); }
body[data-env="home"].is-through .cta-final { background: rgba(22, 20, 15, 0.9); }

body[data-env="inner"] .service-hero,
body[data-env="inner"] .page-intro,
body[data-env="inner"] .contact-page {
  background: rgba(22, 20, 15, 0.92);
}
body[data-env="inner"] .service-section--alt,
body[data-env="inner"] .about-story {
  background: rgba(13, 12, 10, 0.92);
}

.contact-form__status {
  min-height: 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--champagne);
}
.contact-form__status.is-error { color: var(--rose); }
.contact-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Misc */
.divider { height: 1px; background: var(--line); max-width: var(--max-w); margin: 0 auto; }

/* Multi-page: inner-page body hook remains data-view-active */
body[data-page]:not([data-page="home"]) {
  background: var(--world-base);
}
.nav-drawer[hidden] {
  display: flex;
}
.nav-drawer[hidden]:not(.is-open) {
  visibility: hidden;
  pointer-events: none;
}
.footer__top nav[aria-label="Footer navigation"] {
  display: contents;
}
@media (min-width: 901px) {
  .footer__top {
    display: grid;
  }
}
