/* ============================================
   Data Partner — Editorial engineering studio
   ============================================ */

:root {
  /* Monochrome only — pure white paper, deep ink, no chromatic accent */
  --paper: #FFFFFF;
  --paper-deep: #F4F4F4;
  --paper-soft: #FAFAFA;
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --mute: #525252;
  --mute-soft: #8A8A8A;
  --rule: rgba(10, 10, 10, 0.08);
  --rule-soft: rgba(10, 10, 10, 0.04);

  /* "signal" kept as ink for any leftover references — no chromatic accent anywhere */
  --signal: var(--ink);
  --signal-deep: var(--ink);
  --signal-soft: rgba(10, 10, 10, 0.06);

  /* Data accent — used only as a faint legacy reference, now mute */
  --data: var(--ink);
  --data-soft: var(--rule-soft);

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 18px rgba(10, 10, 10, 0.05);
  --shadow-lg: 0 14px 36px rgba(10, 10, 10, 0.08);

  /* Typography — Inter throughout for restraint; mono for technical labels & stack */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, monospace;
  --font-serif: var(--font-display);

  /* Legacy aliases (kept so untouched rules still resolve) */
  --bg-primary: var(--paper);
  --bg-secondary: var(--paper-soft);
  --bg-tertiary: var(--paper-deep);
  --bg-dark: var(--ink);
  --text-primary: var(--ink);
  --text-secondary: var(--mute);
  --text-tertiary: var(--mute-soft);
  --accent: var(--signal);
  --accent-hover: var(--signal-deep);
  --accent-soft: var(--signal-soft);
  --border-light: var(--rule);
  --border-subtle: var(--rule-soft);
  --font-inter: var(--font-sans);
  --font-display: var(--font-serif);
  --font-dm: var(--font-mono);

  --nav-height: 4.5rem;
  --container-max: 1280px;
  --container-padding: 2rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--paper);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--paper); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* ============================================
   SHARED — mono eyebrow, title accent
   ============================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.5rem;
}

.bracket { display: none; }

/* No "//" prefix — pure restrained label */
.eyebrow > span:not(.bracket)::before { content: none; }
.eyebrow > span:not(.bracket) {
  position: relative;
}

/* Title accent — no color, no italic; subtle thin black underline */
.title-accent {
  color: var(--ink);
  text-shadow: none;
  font-weight: inherit;
  font-style: normal;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0.05em;
}

.section-header {
  text-align: left;
  max-width: 760px;
  margin: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--mute);
  line-height: 1.7;
  max-width: 56ch;
}

/* ============================================
   BUTTONS — sharper corners, no pills
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

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

.btn-primary::after {
  content: "→";
  font-family: var(--font-sans);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--paper);
}

.btn-primary:hover::after { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(10, 10, 10, 0.15);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: transparent;
}

.btn-large {
  padding: 0.9rem 1.5rem;
  font-size: 0.97rem;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(255, 255, 255, 0.94);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.brand-name { font-family: var(--font-display); }
.brand-name-accent {
  color: var(--mute);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.55rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mute);
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border-radius: 6px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--signal);
  color: var(--ink);
  transform: translateY(-1px);
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 0.5rem;
  padding: 2px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.lang-opt {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mute);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-opt:hover { color: var(--ink); }
.lang-opt.active {
  background: var(--ink);
  color: var(--paper);
}

.lang-toggle-mobile {
  align-self: flex-start;
  margin: 0.5rem 1rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 6px;
  background: transparent;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem var(--container-padding) 1.5rem;
  background: rgba(242, 239, 230, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}

.nav-mobile.open { display: flex; }

.nav-mobile-link {
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
}

.nav-mobile-link:hover { background: var(--paper-deep); }

.nav-mobile-cta {
  margin-top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

/* ============================================
   HERO — editorial, asymmetric, no orbits
   ============================================ */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  background: var(--paper);
  overflow: hidden;
}

.hero-bg { display: none; }
.hero-panel { display: none; }

.hero-container {
  position: relative;
  z-index: 10;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
  position: relative;
}

/* ---- Hero figure: animated monochrome network diagram ---- */
.hero-figure {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.05;
  justify-self: end;
  opacity: 0;
  animation: figureIn 0.6s ease 0.1s forwards;
}

.hero-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

@keyframes figureIn {
  to { opacity: 1; }
}

/* Background grid dots — fade in slowly */
.hero-dots circle {
  opacity: 0;
  animation: dotFade 0.6s ease forwards;
}
.hero-dots circle:nth-child(7n+1) { animation-delay: 0.15s; }
.hero-dots circle:nth-child(7n+2) { animation-delay: 0.22s; }
.hero-dots circle:nth-child(7n+3) { animation-delay: 0.29s; }
.hero-dots circle:nth-child(7n+4) { animation-delay: 0.36s; }
.hero-dots circle:nth-child(7n+5) { animation-delay: 0.43s; }
.hero-dots circle:nth-child(7n+6) { animation-delay: 0.50s; }
.hero-dots circle:nth-child(7n+7) { animation-delay: 0.57s; }

@keyframes dotFade {
  to { opacity: 0.18; }
}

/* Trace paths — draw in via stroke-dashoffset */
.hero-traces path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: traceDraw 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.hero-traces path:nth-child(1) { animation-delay: 0.55s; }  /* outer rect */
.hero-traces path:nth-child(2) { animation-delay: 1.10s; }  /* left spine */
.hero-traces path:nth-child(3) { animation-delay: 1.10s; }  /* right spine */
.hero-traces path:nth-child(4) { animation-delay: 1.20s; }  /* top spine */
.hero-traces path:nth-child(5) { animation-delay: 1.20s; }  /* bottom spine */
.hero-traces path:nth-child(6) { animation-delay: 1.35s; }  /* inner horizontal */
.hero-traces path:nth-child(7) { animation-delay: 1.45s; }  /* inner vertical */

@keyframes traceDraw {
  to { stroke-dashoffset: 0; }
}

/* Nodes — pop in after their incident traces have drawn */
.hero-nodes .node {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: nodePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* Cardinal small nodes */
.hero-nodes .node:nth-child(1) { animation-delay: 1.65s; }
.hero-nodes .node:nth-child(2) { animation-delay: 1.70s; }
.hero-nodes .node:nth-child(3) { animation-delay: 1.75s; }
.hero-nodes .node:nth-child(4) { animation-delay: 1.80s; }
/* Corner nodes */
.hero-nodes .node:nth-child(5) { animation-delay: 1.90s; }
.hero-nodes .node:nth-child(6) { animation-delay: 1.95s; }
.hero-nodes .node:nth-child(7) { animation-delay: 2.00s; }
.hero-nodes .node:nth-child(8) { animation-delay: 2.05s; }
/* Center node — last, larger */
.hero-nodes .node--center { animation-delay: 2.20s; }

@keyframes nodePop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

/* Pulsing ring around center node — perpetual after the build */
.hero-pulse {
  transform-origin: center;
  transform-box: fill-box;
  opacity: 0;
  animation: pulseRing 2.6s ease-out 2.6s infinite;
}

@keyframes pulseRing {
  0%   { opacity: 0.55; transform: scale(1); }
  80%  { opacity: 0; transform: scale(3.6); }
  100% { opacity: 0; transform: scale(3.6); }
}

/* Traveling signal — animateMotion drives position; CSS just fades it in */
.hero-signal {
  opacity: 0;
  animation: signalAppear 0.4s ease 2.4s forwards;
}

@keyframes signalAppear {
  to { opacity: 1; }
}

/* Mono labels — fade in after the diagram completes */
.hero-labels .label {
  opacity: 0;
  letter-spacing: 0.04em;
  animation: labelFade 0.5s ease forwards;
}
.hero-labels .label:nth-child(1) { animation-delay: 2.30s; }
.hero-labels .label:nth-child(2) { animation-delay: 2.40s; }
.hero-labels .label:nth-child(3) { animation-delay: 2.50s; }
.hero-labels .label:nth-child(4) { animation-delay: 2.60s; }

@keyframes labelFade {
  to { opacity: 1; }
}

.hero-copy::before { display: none; }

.hero-copy .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 2.5rem;
  padding: 0;
  background: transparent;
  border: none;
  font-weight: 600;
}

.hero-copy .eyebrow > span:not(.bracket)::before { content: none; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 1.75rem;
  color: var(--ink);
  max-width: 14ch;
  opacity: 0;
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-title .title-accent {
  color: var(--ink);
  font-weight: 600;
  font-style: normal;
  text-shadow: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0.04em;
}

.hero-subtitle {
  color: var(--mute);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  position: relative;
  background: var(--paper);
  padding: 8rem 0;
  border-top: 1px solid var(--rule);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-quote-col {
  position: sticky;
  top: calc(var(--nav-height) + 3rem);
  align-self: start;
}

.about-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.about-quote .word {
  color: rgba(10, 10, 10, 0.20);
  transition: color 0.4s ease;
  display: inline;
}

.about-quote .word.revealed { color: var(--ink); }
.about-quote .word.revealed.highlight {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0.04em;
}

.about-content-col {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-top: 0.5rem;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text {
  font-size: 1.05rem;
  color: var(--mute);
  line-height: 1.8;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  transition: padding 0.3s ease;
}

.feature-card:hover {
  padding-left: 0.5rem;
  box-shadow: none;
  transform: none;
  border-color: var(--rule);
}

.feature-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  padding: 6px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--paper-soft);
}

.feature-content { display: flex; flex-direction: column; gap: 0.45rem; }

.feature-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.65;
}

/* ============================================
   PROCESS — vertical rail timeline (not codesm 6-tile grid)
   ============================================ */

.process {
  padding: 8rem 0;
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
}

.process-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Convert the 6-tile grid into a single-column rail of rows */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pillar {
  position: relative;
  display: grid;
  grid-template-columns: 90px 220px 1fr 24px;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 1rem 1.6rem 0.5rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease, padding 0.3s ease;
}

.pillar:last-child { border-bottom: none; }

.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.pillar::after {
  content: "→";
  font-family: var(--font-sans);
  color: var(--mute-soft);
  font-size: 1rem;
  justify-self: end;
  transition: transform 0.25s ease, color 0.25s ease;
}

.pillar:hover {
  background: var(--paper-soft);
  padding-left: 1.25rem;
  transform: none;
  box-shadow: none;
  border-color: var(--rule);
}

.pillar:hover::before { transform: scaleY(1); }
.pillar:hover::after { color: var(--ink); transform: translateX(4px); }

.pillar.active {
  background: var(--paper-soft);
  border-color: var(--rule);
  color: var(--ink);
  padding-left: 1.25rem;
}

.pillar.active::before { transform: scaleY(1); }
.pillar.active::after { color: var(--ink); }

.pillar.active .pillar-num,
.pillar.active .pillar-title,
.pillar.active .pillar-question { color: var(--ink); }

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mute-soft);
  transition: color 0.3s ease;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.pillar-question {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.55;
  max-width: 50ch;
  transition: color 0.3s ease;
}

/* Detail panel — beneath the rail, editorial */
.pillar-detail {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 3rem 3.5rem;
  min-height: 240px;
  transition: border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pillar-detail::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 48px; height: 2px;
  background: var(--ink);
}

.pillar-detail-inner {
  max-width: 100%;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.pillar-detail-meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.pillar-detail-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.pillar-detail-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
}

.pillar-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 28ch;
}

.pillar-detail-desc {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--mute);
  line-height: 1.7;
  max-width: 64ch;
}

.pillar-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--mute);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.process-actions {
  display: flex;
  justify-content: flex-start;
}

/* ============================================
   STACK
   ============================================ */

.stack {
  padding: 8rem 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.stack-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  align-items: stretch;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  counter-reset: stack;
}

.stack-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 96px;
  padding: 1.5rem 1.25rem 1.5rem 1.25rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s ease;
  position: relative;
  counter-increment: stack;
}

.stack-cell::before {
  content: counter(stack, decimal-leading-zero);
  position: absolute;
  top: 0.75rem; left: 0.85rem;
  font-family: var(--font-mono);
  color: var(--mute-soft);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.stack-cell:hover { background: var(--paper-soft); }

.stack-name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.stack-cell:hover .stack-name { opacity: 1; }

/* ============================================
   IMPACT / STATS
   ============================================ */

.impact {
  padding: 8rem 0;
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.impact-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
}

.stat-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.stat-box::before { display: none; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 0.45em;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  margin-left: 0.1em;
  color: var(--mute);
  vertical-align: super;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.stat-desc {
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.55;
  max-width: 30ch;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  padding: 8rem 0;
  background: var(--paper);
  overflow: hidden;
}

.services-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem 2.25rem;
  border-radius: 0;
  background: var(--paper);
  position: relative;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
  overflow: hidden;
  min-height: 360px;
  transition: background 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.service-card:hover {
  transform: none;
  background: var(--paper-soft);
  box-shadow: none;
}

.service-card:hover::before { transform: scaleX(1); }

.service-top {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.service-logo {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding: 0.3rem 0.55rem;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.service-logo-accent {
  color: var(--mute);
  font-weight: 500;
}

.service-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--mute);
}

.service-tag::before { content: none; }

.service-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.service-desc {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--mute);
  line-height: 1.7;
  flex: 1;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.service-cta .arrow { transition: transform 0.3s ease; display: inline-block; }
.service-card:hover .service-cta .arrow { transform: translate(4px, 0); }

/* ============================================
   CLIENTS
   ============================================ */

.clients {
  padding: 8rem 0;
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}

/* Remove decorative gradient blobs from earlier yellow/purple palette */
.clients::before,
.clients::after { display: none; }

.clients > .container {
  position: relative;
  z-index: 1;
}

.clients-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Featured spotlight — flat editorial spread (no card shadow) */
.client-spotlight {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4rem;
  padding: 2.75rem 2.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-bottom: -56px;
  z-index: 30;
  overflow: hidden;
}

.client-spotlight::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 0;
}

.client-spotlight-aside {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-right: 2.5rem;
  border-right: 1px solid var(--rule);
}

.client-spotlight-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  align-self: flex-start;
}

.client-spotlight-eyebrow > span:not(.bracket)::before { content: none; }
.client-spotlight-eyebrow .bracket { display: none; }

.client-spotlight-logo {
  height: 44px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
  align-self: flex-start;
  filter: grayscale(1) brightness(0);
  opacity: 0.85;
}

.client-spotlight-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.meta-row:last-child { border-bottom: none; padding-bottom: 0; }

.meta-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.meta-value {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.client-spotlight-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.25rem;
}

.client-spotlight-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
}

.client-spotlight-desc {
  font-size: 1.05rem;
  color: var(--mute);
  line-height: 1.75;
  margin: 0;
  max-width: 60ch;
}

.client-spotlight .client-pills {
  margin-top: 0.5rem;
}

/* Editorial list — keep 3D stack but with new palette */
.clients-list {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  padding-bottom: 1rem;
  perspective: 2400px;
  perspective-origin: 50% 0%;
  mask-image: linear-gradient(to bottom,
    black 0%,
    black 88%,
    rgba(0, 0, 0, 0.7) 96%,
    rgba(0, 0, 0, 0.25) 99%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    black 0%,
    black 88%,
    rgba(0, 0, 0, 0.7) 96%,
    rgba(0, 0, 0, 0.25) 99%,
    transparent 100%);
}

.client-row--ghost {
  display: block;
  height: 80px;
  padding: 0;
  pointer-events: none;
}
.client-row--ghost::before { display: none; }

.client-row {
  display: grid;
  grid-template-columns: 200px 220px 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 1.4rem 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: inherit;
  position: relative;
  transform-origin: center top;
  transform-style: preserve-3d;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(13,17,23,0.04);
}

.client-row:nth-child(1)  { transform: rotateX(1deg)   scale(0.97);  z-index: 15; }
.client-row:nth-child(2)  { transform: rotateX(2deg)   scale(0.955); margin-top: -10px; z-index: 14; }
.client-row:nth-child(3)  { transform: rotateX(3deg)   scale(0.94);  margin-top: -12px; z-index: 13; }
.client-row:nth-child(4)  { transform: rotateX(4deg)   scale(0.925); margin-top: -14px; z-index: 12; }
.client-row:nth-child(5)  { transform: rotateX(5deg)   scale(0.91);  margin-top: -16px; z-index: 11; }
.client-row:nth-child(6)  { transform: rotateX(6deg)   scale(0.895); margin-top: -18px; z-index: 10; }
.client-row:nth-child(7)  { transform: rotateX(7deg)   scale(0.88);  margin-top: -20px; z-index: 9; }
.client-row:nth-child(8)  { transform: rotateX(8deg)   scale(0.865); margin-top: -22px; z-index: 8; }
.client-row:nth-child(9)  { transform: rotateX(9deg)   scale(0.85);  margin-top: -24px; z-index: 7; }
.client-row:nth-child(10) { transform: rotateX(10deg)  scale(0.835); margin-top: -26px; z-index: 6; }
.client-row:nth-child(11) { transform: rotateX(11deg)  scale(0.82);  margin-top: -72px; z-index: 5; }
.client-row:nth-child(12) { transform: rotateX(12deg)  scale(0.805); margin-top: -72px; z-index: 4; }
.client-row:nth-child(13) { transform: rotateX(13deg)  scale(0.79);  margin-top: -72px; z-index: 3; }
.client-row:nth-child(14) { transform: rotateX(14deg)  scale(0.775); margin-top: -72px; z-index: 2; }
.client-row:nth-child(15) { transform: rotateX(15deg)  scale(0.76);  margin-top: -72px; z-index: 1; }

.client-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--ink);
  border-radius: 0;
  opacity: 0.85;
}

.row-logo {
  display: flex;
  align-items: center;
  padding-left: 1.25rem;
}

.row-logo .client-logo-img {
  max-height: 36px;
  max-width: 160px;
  filter: grayscale(1) brightness(0);
  opacity: 0.85;
}

.row-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  justify-self: flex-start;
  white-space: nowrap;
}

.row-desc {
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--mute);
  line-height: 1.65;
  margin: 0;
  max-width: 64ch;
}

.row-arrow { display: none; }

.client-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.client-logo-img {
  display: block;
  max-width: 160px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.client-logo-img--lg {
  max-height: 36px;
  max-width: 150px;
}

.client-logo-img--tall {
  max-height: 56px;
  max-width: 140px;
}

.client-logo-img--invert {
  filter: grayscale(1) brightness(0);
}

.client-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.client-desc {
  font-size: 0.9rem;
  color: var(--mute);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.client-featured-body .client-desc {
  font-size: 1.02rem;
  line-height: 1.75;
}

.client-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--mute);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.client-card .client-pills .pill {
  font-size: 0.66rem;
  padding: 0.32rem 0.55rem;
}

.clients-cta {
  display: flex;
  justify-content: flex-start;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  padding: 8rem 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.cta::before { display: none; }

.cta-container {
  position: relative;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 900px;
}

.cta .eyebrow {
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.cta .eyebrow > span:not(.bracket)::before { content: none; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--paper);
}

.cta-title .title-accent {
  color: var(--paper);
  font-style: normal;
  font-weight: 600;
  text-shadow: none;
  border-bottom: 1.5px solid var(--paper);
  padding-bottom: 0.04em;
}

.cta-desc {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 620px;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta .btn-primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.cta .btn-ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}
.cta .btn-ghost:hover {
  border-color: var(--paper);
  background: transparent;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 5rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.25;
}

.footer-mission {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.7;
  max-width: 380px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-column-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 0.4rem;
}

.footer-column-title > span:not(.bracket)::before { content: none; }
.footer-column-title .bracket { display: none; }

.footer-link {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--mute); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}

.footer-locations {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--mute);
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mute);
  display: inline-block;
}

.footer-dot:first-child { display: none; }

.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--mute);
}

.footer-legal-link { font-size: 0.82rem; color: var(--mute); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
  .stack-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-container { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .hero-figure { max-width: 360px; justify-self: start; opacity: 0.6; }
}

@media (max-width: 900px) {
  .hero-figure { display: none; }
}

@media (max-width: 900px) {
  :root { --container-padding: 1.5rem; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .about-container { grid-template-columns: 1fr; gap: 3rem; }
  .about-quote-col { position: relative; top: auto; }
  .about-quote .word { color: var(--ink); }

  .pillar {
    grid-template-columns: 60px 1fr 24px;
    gap: 1rem;
  }
  .pillar .pillar-question {
    grid-column: 2 / 4;
  }

  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
  .services-grid { grid-template-columns: 1fr; }

  .client-spotlight {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }
  .client-spotlight-aside {
    border-right: none;
    padding-right: 0;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
  }

  .client-row {
    grid-template-columns: 160px 1fr;
    gap: 1.5rem;
  }
  .row-tag { display: none; }
  .pillar-detail { padding: 2rem; }
  .footer-container { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .hero { padding-top: calc(var(--nav-height) + 2rem); padding-bottom: 3rem; }
  .about, .process, .stack, .impact, .services, .clients, .cta { padding: 5rem 0; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .pillar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
  }
  .pillar::after { display: none; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-cell { padding: 1.5rem 1.25rem; min-height: 80px; }
  .impact-grid { grid-template-columns: 1fr; }
  .client-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.5rem 1rem 1.5rem 1.25rem;
  }
  .row-logo { padding-left: 0; }
  .row-logo .client-logo-img { max-height: 30px; max-width: 130px; }
  .row-desc { font-size: 0.9rem; }
  .client-spotlight { padding: 1.5rem; gap: 1.75rem; }
  .client-spotlight-title { font-size: 1.55rem; }
  .pillar-detail { padding: 1.75rem; }
  .pillar-detail-title { font-size: 1.4rem; }
  .cta-actions { flex-direction: column; width: 100%; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .about-quote { font-size: 1.8rem; }
  .feature-card { padding: 1.25rem 0; gap: 1rem; }
}

/* ============================================
   LEGAL PAGES (privacy / terms)
   ============================================ */

.legal-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--rule);
}

.legal-hero .container {
  max-width: 880px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0.5rem 0 1.25rem;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}

.legal-content {
  padding: 4rem 0 7rem;
  background: var(--paper);
}

.legal-content .container {
  max-width: 760px;
}

.legal-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--mute);
  line-height: 1.8;
}

.legal-lead {
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 2.75rem 0 1rem;
}

.legal-body p { margin-bottom: 1.1rem; }

.legal-body ul {
  margin: 1rem 0 1.5rem 1.25rem;
  padding: 0;
  list-style: none;
}

.legal-body li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.legal-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mute);
}

.legal-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s ease;
}

.legal-body a:hover { color: var(--mute); }

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-signature {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mute);
}

/* Language hiding — show only the active language's content */
html[lang="en"] [lang="ro"],
html[lang="ro"] [lang="en"] { display: none; }

/* ============================================
   SCROLL REVEAL UTILITY
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .about-quote .word { color: var(--ink); }
}
