/* ============================================================
   ANTER CAPITAL — styles.css
   Brand system drawn from the firm logotype:
   crimson #912035 / #C13A54 · violet #761E6A / #9A4BAA · cream #FEF8F2
   ============================================================ */

/* ---------- 01 · TOKENS & RESET ---------- */
:root {
  /* CREAM THEME (default) — ground matches the logo #FEF8F2 */
  --bg0: #FEF8F2;            /* page ground — logo cream      */
  --bg1: #FAF1E7;            /* panels                        */
  --bg2: #F5E9DB;            /* raised panels                 */
  --bg-footer: #F5EADC;

  --ink: #2C141F;            /* plum-black text               */
  --ink-dim: #5E4551;
  --ink-faint: #93808A;

  --crimson: #912035;        /* true logo crimson             */
  --crimson-deep: #6E1527;
  --crimson-hi: #B02A44;
  --violet: #761E6A;         /* true logo violet              */
  --violet-deep: #591450;
  --violet-hi: #8E3D9D;

  --grad: linear-gradient(120deg, var(--crimson) 10%, var(--violet) 90%);
  --hairline: rgba(44, 20, 31, 0.13);
  --hairline-strong: rgba(44, 20, 31, 0.24);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --container: min(1180px, 100% - 3rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 68px;
}

/* DARK THEME — the original oxblood palette, via the header toggle */
html.theme-dark {
  --bg0: #130A0F;
  --bg1: #180D13;
  --bg2: #1E1017;
  --bg-footer: #0D060A;

  --ink: #F3ECDF;
  --ink-dim: #B7A6AC;
  --ink-faint: #8A7680;

  --crimson: #C13A54;
  --crimson-deep: #8E1B33;
  --crimson-hi: #E06479;
  --violet: #9A4BAA;
  --violet-deep: #6E2168;
  --violet-hi: #BE7BD1;

  --hairline: rgba(243, 236, 223, 0.09);
  --hairline-strong: rgba(243, 236, 223, 0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* section divider lands flush under the header bar */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--crimson-deep); color: #FBF4EA; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F3E8DA; }
::-webkit-scrollbar-thumb { background: #D9C4B4; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--crimson); }
html.theme-dark ::-webkit-scrollbar-track { background: var(--bg0); }
html.theme-dark ::-webkit-scrollbar-thumb { background: #3A222E; }
html.theme-dark ::-webkit-scrollbar-thumb:hover { background: var(--crimson-deep); }

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 500;
  background: var(--crimson-deep); color: #FBF4EA;
  padding: 0.6em 1.1em; border-radius: 3px;
  font-family: var(--mono); font-size: 0.78rem;
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- 02 · SHARED UTILITIES ---------- */
.container { width: var(--container); margin-inline: auto; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) {
  .grad-text { color: var(--crimson); background: none; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1.4rem;
}

.section { padding-block: clamp(5.5rem, 12vh, 9rem); position: relative; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-head { max-width: 760px; margin-bottom: clamp(2.8rem, 6vh, 4.5rem); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 5.4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) {
  .section-title em { color: var(--crimson); background: none; }
}

.section-lede {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--ink-dim);
  max-width: 62ch;
}

.micro-note {
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  max-width: 70ch;
}

/* ---------- 03 · BACKGROUND LAYERS ---------- */

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 240;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.theme-dark .grain { opacity: 0.028; }

#progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 300;
}

/* ---------- 04 · BRAND MARK (vector-traced from the firm logo) ---------- */
.mk-red    { fill: #912035; }
.mk-violet { fill: #761E6A; }
html.theme-dark .mk-red    { fill: #A62B48; }   /* lifted for dark ground */
html.theme-dark .mk-violet { fill: #8A3D9D; }

/* ---------- 05 · BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 0.95em 1.6em;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease,
              border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, #A32347, var(--violet-deep));
  color: #FBF4EA;
  box-shadow: 0 8px 26px -12px rgba(193, 58, 84, 0.55);
}
.btn-primary:hover {
  filter: brightness(1.14);
  box-shadow: 0 12px 32px -12px rgba(193, 58, 84, 0.7);
}

.btn-ghost {
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--crimson);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- 06 · HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.35s ease 0.2s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(254, 248, 242, 0.8);
  border-bottom-color: var(--hairline);
}
html.theme-dark .site-header.scrolled { background: rgba(19, 10, 15, 0.72); }
@supports (backdrop-filter: blur(12px)) {
  .site-header.scrolled { backdrop-filter: blur(14px) saturate(1.2); background: rgba(254, 248, 242, 0.62); }
  html.theme-dark .site-header.scrolled { background: rgba(19, 10, 15, 0.55); }
}

/* While the menu is open the header's glass is suspended: a parent
   backdrop-filter becomes the backdrop root and blinds the overlay's own
   blur, which made the menu frosting weaker after scrolling. The overlay
   sits behind the header anyway, so nothing is visually lost. */
body.nav-open .site-header,
body.nav-open .site-header.scrolled {
  backdrop-filter: none;
  transition: background-color 0.4s ease, border-color 0.4s ease; /* filter drops instantly */
}

.nav-wrap {
  width: var(--container);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  z-index: 130;
}
.brand-mark { width: 26px; height: 30px; flex: none; }
.brand-word {
  font-family: var(--serif);
  font-size: 0.94rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-toggle {
  order: 10;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  color: var(--ink-dim);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  flex: 0 0 auto;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--crimson); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-sun { display: none; }
html.theme-dark .theme-toggle .icon-sun { display: block; }
html.theme-dark .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  order: 11;
  position: relative;
  z-index: 130;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  margin-right: -8px;
}
.nav-bars { display: block; width: 22px; }
.nav-bars i {
  display: block; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-bars i + i { margin-top: 6px; }
body.nav-open .nav-bars i:first-child { transform: translateY(3.75px) rotate(45deg); }
body.nav-open .nav-bars i:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile nav overlay */
.site-nav {
  position: fixed;
  /* Explicit viewport geometry instead of inset:0 — the scrolled header's
     backdrop-filter makes the header the containing block for this fixed
     overlay, so inset:0 would collapse it into the 68px header bar. The
     header is pinned at the viewport origin, so top/left 0 + viewport
     units render full-screen under either containing block. */
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  z-index: 90; /* below .site-header (100): brand + toggle stay visible */
  background: rgba(253, 246, 238, 0.95);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
  will-change: opacity;
}
@supports (backdrop-filter: blur(18px)) {
  .site-nav { backdrop-filter: blur(18px); background: rgba(253, 246, 238, 0.85); }
  html.theme-dark .site-nav { background: rgba(17, 8, 13, 0.82); }
}
html.theme-dark .site-nav { background: rgba(17, 8, 13, 0.94); }
body.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}
body.nav-open { overflow: hidden; }

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
  text-align: center;
}
.nav-list li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: 0s;
}
body.nav-open .nav-list li {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.06s + var(--n) * 0.045s);
}
.nav-list a:not(.btn) {
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}
.nav-list a:not(.btn):hover { color: var(--crimson-hi); }
.nav-cta-li { margin-top: 0.8rem; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    background: none;
    display: block;
    opacity: 1;
    visibility: visible;
    transition: none;
    backdrop-filter: none;
  }
  .nav-list { flex-direction: row; gap: 2rem; align-items: center; }
  .nav-list li { opacity: 1; transform: none; transition: none; }
  .nav-list a:not(.btn) {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-dim);
    position: relative;
    padding-block: 0.4em;
  }
  .nav-list a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.4s var(--ease-out);
  }
  .nav-list a:not(.btn):hover { color: var(--ink); }
  .nav-list a:not(.btn):hover::after { transform: scaleX(1); }
  .nav-list a.is-current:not(.btn) { color: var(--ink); }
  .nav-list a.is-current:not(.btn)::after { transform: scaleX(1); }
  .nav-cta-li { margin: 0 0 0 0.6rem; }
  .nav-cta { padding: 0.7em 1.2em; font-size: 0.78rem; }
}

/* ---------- 07 · HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem);
  padding-bottom: 5.5rem;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.8rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 9.6vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 12em;
}
.hero-title .line { display: block; }
.hero-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .wi {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
body.loaded .hero-title .wi { transform: translateY(0); }
html:not(.js) .hero-title .wi { transform: none; }

.hero-title .accent {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
@supports not (background-clip: text) {
  .hero-title .accent { color: var(--crimson); background: none; }
}

.hero-sub {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--ink-dim);
  max-width: 58ch;
}

.hero-ctas {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-meta {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.6rem;
  max-width: 880px;
}
.meta-k {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}
.meta-v { font-size: 0.92rem; color: var(--ink); }
@media (min-width: 760px) {
  .hero-meta { grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.4rem 3.2rem; }
}

/* Decorative shield — draws itself on load */
.hero-mark {
  position: absolute;
  z-index: 1;
  right: clamp(-6rem, -4vw, -1rem);
  top: 50%;
  transform: translateY(-52%);
  width: min(40vw, 460px);
  opacity: 0.38;
  pointer-events: none;
  display: none;
  filter: drop-shadow(0 0 60px rgba(145, 32, 53, 0.25));
}
@media (min-width: 1040px) { .hero-mark { display: block; } }

.hero-mark svg {
  width: 100%;
  height: auto;
  aspect-ratio: 418 / 486;
  overflow: visible;
}

.hero-mark .mk-red,
.hero-mark .mk-violet,
.hero-mark .mk-violet-guide { fill-opacity: 0; }
.hero-mark .mk-red,
.hero-mark .mk-violet-guide {
  stroke-width: 13;                    /* user units ≈ 1.4px at display size */
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--plen);
  stroke-dashoffset: var(--plen);
}
.hero-mark .mk-red { stroke: var(--crimson); }
.hero-mark .mk-violet-guide { stroke: var(--violet); fill: none; }
.hero-mark .mk-violet { stroke: none; } /* fill layer only — no outline, no streak */
body.loaded .hero-mark .mk-red {
  animation: penline 2.1s var(--ease-out) 0.25s forwards,
             fillin 0.7s ease 2.35s forwards;
}
body.loaded .hero-mark .mk-violet-guide { animation: penline 2.5s var(--ease-out) 0.45s forwards; }
body.loaded .hero-mark .mk-violet       { animation: fillin 0.6s ease 2.95s forwards; }
html:not(.js) .hero-mark .mk-red,
html:not(.js) .hero-mark .mk-violet,
html:not(.js) .hero-mark .mk-violet-guide { stroke-dashoffset: 0; fill-opacity: 1; }
@keyframes penline { to { stroke-dashoffset: 0; } }
@keyframes fillin  { to { fill-opacity: 1; } }

@media (max-height: 700px) {
  .scroll-cue { display: none; }
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 4vh, 2.4rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}
.cue-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--crimson));
  animation: cue 2.4s ease-in-out infinite;
}
.cue-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.55); transform-origin: top; opacity: 0.5; }
  50%       { transform: scaleY(1);    transform-origin: top; opacity: 1; }
}

/* ---------- 08 · TICKER ---------- */
.ticker {
  border-block: 1px solid var(--hairline);
  overflow: hidden;
  background: rgba(145, 32, 53, 0.045);
}
html.theme-dark .ticker { background: rgba(24, 13, 19, 0.5); }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  padding: 0.9rem 0;
  animation: tick 34s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}
.tsep { color: var(--violet); font-size: 0.55rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- 10 · MANDATE CARDS (§02) ---------- */
.mandates-grid {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 880px) {
  .mandates-grid { grid-template-columns: repeat(3, 1fr); }
}

.mandate-card {
  position: relative;
  background: linear-gradient(160deg, var(--bg2), var(--bg1) 60%);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 2rem 1.8rem 1.6rem;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out), border-color 0.35s ease;
  will-change: transform;
}
.mandate-card.is-tilting { transition: border-color 0.35s ease; }
.mandate-card:hover,
.mandate-card.touched { border-color: rgba(193, 58, 84, 0.4); }

.mandate-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(193, 58, 84, 0.13), rgba(154, 75, 170, 0.05) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.mandate-card:hover::after,
.mandate-card.touched::after { opacity: 1; }

.mc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.6rem;
}
.mc-idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--crimson);
}
.mc-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.mc-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}
.mc-title em { font-style: italic; color: var(--violet-hi); }
.mc-body { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 1.7rem; min-height: 5.2em; }

.spec { border-top: 1px solid var(--hairline); }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-row dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.15em;
}
.spec-row dd { font-size: 0.82rem; text-align: right; color: var(--ink); }

/* ---------- 11 · PLATFORM (§03) ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--hairline);
  margin-bottom: 2.6rem;
}
@media (min-width: 880px) {
  .stats-band { grid-template-columns: repeat(4, 1fr); }
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.4vw, 3.6rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) {
  .stat-num { color: var(--crimson); background: none; }
}
.stat-label {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.7;
}

/* Console */
.console {
  background: #FFFCF7;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 32px 70px -42px rgba(84, 40, 20, 0.28);
}
html.theme-dark .console {
  background: #150B10;
  border-color: rgba(243, 236, 223, 0.16);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  background: rgba(44, 20, 31, 0.03);
}
html.theme-dark .console-bar {
  border-bottom-color: rgba(243, 236, 223, 0.12);
  background: rgba(255, 255, 255, 0.025);
}
.dots { display: inline-flex; gap: 6px; }
.dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--crimson);
}
.dots i:nth-child(2) { background: var(--violet); }
.dots i:nth-child(3) { background: rgba(44, 20, 31, 0.25); }
html.theme-dark .dots i:nth-child(3) { background: rgba(243, 236, 223, 0.3); }
.console-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
html.theme-dark .console-title { color: #C9BBC1; }
.console-tabs { margin-left: auto; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.console-tabs .tab {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.5em 0.85em;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.console-tabs .tab:hover { color: var(--ink); }
html.theme-dark .console-tabs .tab { color: #A8969E; }
html.theme-dark .console-tabs .tab:hover { color: #F3ECDF; }
.console-tabs .tab.is-active {
  color: #FBF4EA;
  background: linear-gradient(135deg, rgba(163, 35, 71, 0.85), rgba(110, 33, 104, 0.85));
  border-color: rgba(193, 58, 84, 0.35);
}

.console-body {
  display: grid;
  min-height: 268px;
}
@media (min-width: 880px) {
  .console-body { grid-template-columns: 1fr 280px; }
}

.monitor-wrap {
  position: relative;
  padding: 1rem 1rem 2.6rem;
  min-height: 300px;
}
#monitor {
  width: 100%;
  height: 296px;
  display: block;
}
@media (max-width: 759px) {
  .monitor-wrap { min-height: 250px; }
  #monitor { height: 236px; }
}
.monitor-caption {
  position: absolute;
  left: 1.4rem;
  bottom: 0.95rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.console-side {
  border-top: 1px solid var(--hairline);
  padding: 1.3rem 1.5rem 1.6rem;
}
@media (min-width: 880px) {
  .console-side { border-top: 0; border-left: 1px solid var(--hairline); }
}
.chips-title {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.console-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.console-chips li {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.35em 0.6em;
  transition: border-color 0.25s ease, color 0.25s ease;
}
html.theme-dark .console-chips li { color: #D9CCD1; border-color: rgba(243, 236, 223, 0.14); }
.console-chips li:hover { border-color: var(--violet); color: var(--ink); }

/* ---------- 12 · ALIGNMENT (§04) ---------- */
.align-pillars {
  display: grid;
  gap: 2.2rem;
}
@media (min-width: 1040px) {
  .align-pillars { grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
}
.pillar {
  border-top: 1px solid var(--hairline);
  padding-top: 1.3rem;
  position: relative;
  transition: border-color 0.3s ease;
}
.pillar::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 34px; height: 1px;
  background: var(--grad);
  transition: width 0.5s var(--ease-out);
}
.pillar:hover::before { width: 100%; }
.pillar-k {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}
.pillar-v { font-size: 0.88rem; color: var(--ink-dim); }

/* ---------- 14 · FIRM (§06) ---------- */
.firm-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.firm-left .section-head { margin-bottom: clamp(2rem, 4vh, 3rem); }
@media (min-width: 1040px) {
  .firm-grid { grid-template-columns: 1.35fr 0.85fr; gap: 4.5rem; }
}

.firm-narrative p {
  color: var(--ink-dim);
  font-size: 1rem;
  max-width: 60ch;
}
.firm-narrative p + p { margin-top: 1.2rem; }
.firm-narrative strong { color: var(--ink); font-weight: 600; }


/* Cream credential card — the letterhead moment */
.brand-card {
  background: #FFFDFA;
  color: #2C141F;
  border-radius: 6px;
  padding: 2.4rem 2.1rem 2.1rem;
  text-align: center;
  box-shadow: 0 32px 70px -40px rgba(84, 40, 20, 0.35),
              0 0 0 1px rgba(145, 32, 53, 0.22);
}
html.theme-dark .brand-card {
  background: #F7F0E5;
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(145, 32, 53, 0.18);
}
.brand-card-logo { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.brand-card-logo img { width: min(220px, 70%); }
.brand-card-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #4A1224;
}
.brand-card-title {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8A5E70;
}
.cred-chips {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.chip {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: #791226;
  border: 1px solid rgba(145, 32, 53, 0.35);
  border-radius: 3px;
  padding: 0.45em 0.75em;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.chip:hover { background: #791226; color: #F7F0E5; }
.brand-card-foot {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #6E4756;
}

/* ---------- 15 · CONTACT (§07) ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1040px) {
  .contact-grid { grid-template-columns: 0.75fr 1.25fr; gap: 4.5rem; }
}

.contact-info { display: grid; gap: 1.7rem; align-content: start; }
.ci-k {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}
.ci-v { font-size: 1rem; color: var(--ink); }
.ci-v a { border-bottom: 1px solid var(--hairline-strong); transition: border-color 0.25s, color 0.25s; }
.ci-v a:hover { color: var(--crimson-hi); border-color: var(--crimson); }

.contact-form { display: grid; gap: 1.3rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  padding: 0.85em 1em;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
html.theme-dark .field input,
html.theme-dark .field select,
html.theme-dark .field textarea { background: rgba(255, 255, 255, 0.028); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(193, 58, 84, 0.14);
  background: rgba(255, 255, 255, 0.045);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B7A6AC' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.6em;
}
.field select option { background: var(--bg1); color: var(--ink); }

.btn-submit { justify-self: start; }
.form-status {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--crimson-hi);
  min-height: 1.2em;
}
.form-note {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ---------- 16 · FOOTER ---------- */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--hairline);
  padding: 4.5rem 0 2rem;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  gap: 2.6rem;
  margin-bottom: 3.2rem;
}
@media (min-width: 880px) {
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr; gap: 2rem; }
}
.f-brand .brand { margin-bottom: 1.1rem; }
.f-tag { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.7; }
.f-title {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.f-links li { margin-bottom: 0.55rem; font-size: 0.86rem; color: var(--ink-dim); }
.f-links a { transition: color 0.25s ease; }
.f-links a:hover { color: var(--crimson-hi); }

.disclosures {
  border-top: 1px solid var(--hairline);
  padding-top: 2rem;
}
.disclosures p {
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--ink-faint);
  max-width: 100ch;
}
.disclosures p + p { margin-top: 1rem; }
.disclosures a { color: var(--ink-dim); border-bottom: 1px solid var(--hairline-strong); }
.disclosures a:hover { color: var(--crimson-hi); }

.footer-bar {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ---------- 17 · REVEAL SYSTEM ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---------- 18 · REDUCED MOTION ----------
   Applies only when app.js is configured with RESPECT_REDUCED_MOTION = true
   (JS adds .motion-forced to <html> when animations are forced on). */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-forced) { scroll-behavior: auto; }
  html:not(.motion-forced) *,
  html:not(.motion-forced) *::before,
  html:not(.motion-forced) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html:not(.motion-forced) .hero-title .wi { transform: none; }
  html:not(.motion-forced) .hero-mark .mk-red,
  html:not(.motion-forced) .hero-mark .mk-violet,
  html:not(.motion-forced) .hero-mark .mk-violet-guide { stroke-dashoffset: 0; fill-opacity: 1; animation: none !important; }
  html:not(.motion-forced) .ticker-track { animation: none; }
  html:not(.motion-forced) .ticker { overflow-x: auto; }
  html:not(.motion-forced).js .reveal { opacity: 1; transform: none; }
  html:not(.motion-forced) .cue-line { animation: none; }
}

html.theme-dark .chips-title, html.theme-dark .monitor-caption { color: #9C8A93; }
