:root {
  --bg: #0b0b0d;
  --bg-2: #121215;
  --bg-3: #16161a;
  --fg: #eae7e1;
  --fg-dim: #a8a5a0;
  --fg-dimmer: #6d6a66;
  --line: #26262a;
  --line-hover: #3a3a40;
  --accent: #ff0044;
  --accent-soft: rgba(255, 0, 68, 0.1);
  --grain-opacity: 0.035;

  --font-display: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Inter Tight', system-ui, sans-serif;

  --container: 1360px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
body.modal-open { overflow: hidden; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("/assets/grain.svg");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: 0 0; cursor: pointer; color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  position: relative;
  z-index: 2;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.serif { font-family: var(--font-display); font-weight: 400; }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.accent { color: var(--accent); }

/* ============ HEADER ============ */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 11, 13, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.brand {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.brand::before {
  content: ''; width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

.nav-links {
  display: flex; gap: 36px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: auto;
  margin-right: 30px;
}
.nav-links a {
  color: var(--fg-dim);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

.lang-switch {
  display: flex; align-items: center; gap: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-right: 14px;
}
.lang-switch button {
  padding: 7px 13px;
  color: var(--fg-dim);
  transition: all .2s ease;
}
.lang-switch button.active {
  background: var(--fg);
  color: var(--bg);
}
.lang-switch button:not(.active):hover {
  color: var(--fg);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
  border-radius: 999px;
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.nav-mobile-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.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;
  background-position: center;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, black 0%, transparent 80%);
  opacity: 0.5;
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: end;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 48px;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s .15s forwards ease-out;
}
.hero-meta::before {
  content: ''; width: 40px; height: 1px; background: var(--fg-dim);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9.5vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 42px;
  max-width: 1000px;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(100%);
  animation: rise .9s forwards cubic-bezier(.22, 1, .36, 1);
}
.hero h1 .line:nth-child(1) > span { animation-delay: .2s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .35s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .5s; }

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-feature-settings: 'ss01' on;
}

.hero-sub {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--fg-dim);
  line-height: 1.55;
  margin-bottom: 48px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s .8s forwards ease-out;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s 1s forwards ease-out;
}

.hero-side {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dimmer);
  line-height: 1.9;
  text-align: right;
  align-self: end;
  opacity: 0;
  animation: fadeIn 1.2s 1.2s forwards;
}
.hero-side .line-group { margin-bottom: 14px; }
.hero-side .k { color: var(--fg-dim); }
.hero-side .v { color: var(--fg); }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============ TICKER ============ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  position: relative;
}
.ticker-track {
  display: flex; gap: 64px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}
.ticker-track span { display: inline-flex; align-items: center; gap: 64px; }
.ticker-track .dot {
  width: 5px; height: 5px; background: var(--accent); border-radius: 50%; display: inline-block;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS GLOBAL ============ */
section { padding: 140px 0; position: relative; }
.section-head {
  margin-bottom: 80px;
  max-width: 800px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.section-title em { font-style: italic; }
.section-desc {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 640px;
  line-height: 1.6;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 44px 36px 40px;
  position: relative;
  min-height: 380px;
  display: flex; flex-direction: column;
  transition: background .3s ease;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  width: 100%;
  border: 0;
  color: inherit;
  font-family: inherit;
}
.service:hover { background: var(--bg-2); }
.service:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-dimmer);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.service h3 em { font-style: italic; }
.service-desc {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 24px;
}
.service-list {
  list-style: none;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.service-list li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  padding: 7px 0;
  display: flex; align-items: center; gap: 10px;
  transition: color .2s ease;
}
.service-list li::before {
  content: '→'; color: var(--accent);
  font-size: 0.8rem;
}
.service:hover .service-list li { color: var(--fg); }

.service-icon {
  position: absolute; top: 40px; right: 36px;
  width: 34px; height: 34px;
  color: var(--fg-dim);
  transition: color .3s ease, transform .3s ease;
}
.service:hover .service-icon { color: var(--accent); transform: rotate(-8deg); }

.service-more {
  position: absolute; bottom: 20px; right: 36px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  opacity: 0;
  transition: opacity .25s ease;
  display: flex; align-items: center; gap: 6px;
}
.service:hover .service-more { opacity: 1; color: var(--accent); }

/* ============ MODAL ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: 201;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.modal-head {
  padding: 40px 48px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}
.modal-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 620px;
}
.modal-title em { font-style: italic; }
.modal-close {
  position: absolute;
  top: 28px; right: 28px;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim);
  transition: all .2s ease;
}
.modal-close:hover {
  color: var(--fg);
  border-color: var(--fg);
  transform: rotate(90deg);
}
.modal-body {
  padding: 32px 48px 48px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  flex: 1;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.modal-desc {
  color: var(--fg-dim);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 660px;
}

.modal-block { margin-bottom: 32px; }
.modal-block-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.modal-block-title::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.modal-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.modal-list li {
  font-size: 0.95rem;
  color: var(--fg);
  padding: 6px 0;
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.45;
}
.modal-list li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
.modal-meta-item {
  background: var(--bg-2);
  padding: 18px 22px;
}
.modal-meta-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
}
.modal-meta-value {
  font-size: 0.95rem;
  font-weight: 500;
}
.modal-cta {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ============ PROCESS ============ */
.process {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 60px;
}
.step {
  background: var(--bg-2);
  padding: 40px 32px;
  min-height: 240px;
  display: flex; flex-direction: column;
  position: relative;
  transition: background .25s ease;
}
.step:hover { background: var(--bg-3); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
}
.step h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.step p {
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}
.step-tag {
  position: absolute;
  top: 40px; right: 32px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dimmer);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ============ METRICS ============ */
.metrics { padding: 140px 0; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.metric { border-top: 1px solid var(--line); padding-top: 28px; }
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.metric-num em { font-style: italic; color: var(--accent); }
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  max-width: 220px;
  line-height: 1.5;
}

/* ============ STACK ============ */
.stack { border-top: 1px solid var(--line); }
.stack-grid-wrap {
  margin-top: 60px;
}
.stack-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stack-cat {
  background: var(--bg);
  padding: 32px 28px 30px;
  transition: background .25s ease;
}
.stack-cat:hover { background: var(--bg-2); }
.stack-cat-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--fg-dimmer);
  margin-bottom: 12px;
}
.stack-cat-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.stack-cat-title em { font-style: italic; color: var(--accent); }
.stack-cat ul { list-style: none; }
.stack-cat li {
  font-size: 0.92rem;
  color: var(--fg);
  padding: 6px 0;
  line-height: 1.4;
}
.stack-cat li span {
  color: var(--fg-dim);
  font-size: 0.78rem;
  margin-left: 6px;
  font-family: var(--font-mono);
}

/* ============ CTA ============ */
.cta {
  padding: 160px 0;
  text-align: left;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute;
  top: 50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  transform: translateY(-50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; max-width: 1000px; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.cta h2 em { font-style: italic; }
.cta h2 .accent-line {
  color: var(--accent);
  font-style: italic;
}
.cta-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
  max-width: 720px;
}
.cta-methods--single {
    grid-template-columns: 1fr;
    max-width: 520px;
}
.cta-method {
  background: var(--bg);
  padding: 28px 32px;
  transition: background .2s ease;
}
.cta-method:hover { background: var(--bg-2); }
.cta-method-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-bottom: 8px;
}
.cta-method-value {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ============ FOOTER ============ */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.footer-inner a:hover { color: var(--fg); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .06s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .30s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .36s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .42s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .stack-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { text-align: left; }
  .modal-list { grid-template-columns: 1fr; }
  .modal-meta { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  section { padding: 90px 0; }
  .hero { padding-top: 110px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stack-cats { grid-template-columns: 1fr; }
  .cta-methods { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-mobile-toggle {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--fg-dim);
  }
  .section-head { margin-bottom: 50px; }
  .modal { width: calc(100vw - 20px); max-height: calc(100vh - 40px); }
  .modal-head { padding: 28px 24px 20px; }
  .modal-body { padding: 24px; }
  .modal-close { top: 20px; right: 20px; }
  .lang-switch { margin-right: 8px; }
  .lang-switch button { padding: 6px 10px; }
  header { padding: 16px 0; }
  .btn { padding: 10px 16px; font-size: 0.7rem; }
}


/* ============ ACCESIBILIDAD: REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .brand::before { animation: none; }
    .reveal, .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
    .ticker-track { animation: none !important; }
    .hero-meta { animation: none !important; opacity: 1; transform: none; }
}

/* ============ ACCESIBILIDAD: FOCUS VISIBLE ============ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}
button:focus-visible,
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ============ SKIP LINK (accesibilidad) ============ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: var(--fg);
    color: var(--bg);
    padding: 10px 20px;
    z-index: 200;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 10px;
}

/* ============ PÁGINAS LEGALES ============ */
.legal-page {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
}
.legal-page .container {
    max-width: 800px;
}
.legal-page h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.legal-page h1 em { font-style: italic; }
.legal-page .legal-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-dim);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.legal-page h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.8rem;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.legal-page h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 12px;
}
.legal-page p {
    color: var(--fg);
    margin-bottom: 16px;
    line-height: 1.7;
}
.legal-page ul, .legal-page ol {
    margin-left: 24px;
    margin-bottom: 20px;
    color: var(--fg);
}
.legal-page li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.legal-page a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-page a:hover { opacity: 0.8; }
.legal-page strong { font-weight: 600; }
.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.92rem;
}
.legal-page th, .legal-page td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.legal-page th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-dim);
    font-weight: 500;
}
.legal-page .back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-dim);
    margin-bottom: 32px;
    transition: color 0.2s ease;
}
.legal-page .back-home:hover { color: var(--fg); }
