/* ============================================================
   ACTIO & RATIO — Design System
   ============================================================ */

/* --- Design Tokens ---------------------------------------- */
:root {
  /* Light theme */
  --bg: #ffffff;
  --bg-elev: #faf8f4;
  --text: #000000;
  --text-muted: #4a4a4a;
  --text-faint: #888888;
  --line: #e8e6e1;
  --copper: #9E7444;
  --copper-soft: #c49a6e;
  --copper-glow: rgba(158, 116, 68, 0.12);

  /* Typography */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  --mono: 'SF Mono', 'Menlo', 'Consolas', monospace;

  /* Scale */
  --container-narrow: 760px;
  --container: 1100px;
  --container-wide: 1300px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-slow: 0.8s;
}

[data-theme="dark"] {
  --bg: #1C2229;
  --bg-elev: #161b21;
  --text: #ffffff;
  --text-muted: #c8c8c8;
  --text-faint: #6e7681;
  --line: #2a3138;
  --copper: #C49A6E;
  --copper-soft: #9E7444;
  --copper-glow: rgba(196, 154, 110, 0.16);
}

/* --- Reset & base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  overflow-x: hidden;
}

::selection {
  background: var(--copper);
  color: var(--bg);
}

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--copper); }

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

button {
  font: inherit; color: inherit;
  background: none; border: none;
  cursor: pointer; padding: 0;
}

/* --- Layout ----------------------------------------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container { max-width: var(--container); }
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

/* --- Focus visible ---------------------------------------- */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color var(--dur-base) var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2.5rem;
  height: 72px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav ul {
  display: flex; gap: 2.5rem;
  padding: 0; list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.6px;
}
.nav ul a { position: relative; padding: 0.25rem 0; }
.nav ul a::after {
  content: ''; position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--copper);
  transition: width var(--dur-base) var(--ease-out);
}
.nav ul a:hover::after { width: 100%; }

/* Brand monogram — left-aligned, pushes the rest of the nav to the right */
.brand {
  margin-right: auto;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--text);
  transition: opacity var(--dur-fast) var(--ease-out);
}
.brand .amp { color: var(--copper); }
.brand:hover { opacity: 0.65; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--copper); background: var(--copper-glow); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover { border-color: var(--copper); background: var(--copper-glow); }
.nav-toggle-bar {
  display: block;
  width: 16px; height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.nav.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-inner { height: 64px; }
  .nav-toggle { display: flex; }

  .nav ul {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 0.25rem 1.5rem 1.25rem;
    font-size: 1rem;
    /* hidden until menu-open */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out),
                visibility var(--dur-base);
  }
  .nav.menu-open ul {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav ul li { border-bottom: 1px solid var(--line); }
  .nav ul li:last-child { border-bottom: none; }
  .nav ul a { display: block; padding: 1rem 0; }
  .nav ul a::after { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle copper background grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--copper-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--copper-glow) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: 50% 50%;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--copper);
}

/* Hero logo — the official Actio & Ratio logo, 1:1, theme-aware */
.hero-logo {
  display: block;
  width: min(853px, 96%);
  height: auto;
  margin: 0 0 3.5rem;
}
.hero-logo .wm,
.hero-logo .slogan { fill: var(--text); transition: fill var(--dur-base) var(--ease-out); }
.hero-logo .amp { fill: var(--copper); }
.hero-logo .rule { stroke: var(--copper); }

/* Denken section on the one-pager: left-align the prose, no drop cap */
#denken .article-body { margin-left: 0; }
#denken .article-body p:first-of-type::first-letter { all: unset; }

/* Massive type display */
.hero-display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.5rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.hero-display .amp {
  color: var(--copper);
  display: inline-block;
}

.hero-tagline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 4rem;
  color: var(--text-muted);
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: end;
}
@media (max-width: 800px) {
  .hero-body { grid-template-columns: 1fr; gap: 2rem; }
}

.hero-claim {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  line-height: 1.3;
  color: var(--text);
  max-width: 30rem;
}
.hero-claim::before {
  content: '—';
  color: var(--copper);
  margin-right: 0.5rem;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 32px;
  background: linear-gradient(var(--copper), transparent);
  animation: scrollPulse 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  --cta-bg: var(--text);
  --cta-fg: var(--bg);
  --cta-border: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cta-fg);
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  will-change: transform;
}
.cta:hover {
  --cta-bg: var(--copper);
  --cta-fg: #ffffff;
  --cta-border: var(--copper);
  color: var(--cta-fg);
}
.cta::after {
  content: '→';
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.cta:hover::after { transform: translateX(4px); }
.cta--ghost {
  --cta-bg: transparent;
  --cta-fg: var(--text);
  --cta-border: var(--text);
}
[data-theme="dark"] .cta:hover { color: var(--bg); }

/* ============================================================
   SECTION
   ============================================================ */
section.block {
  padding: 9rem 0;
  position: relative;
}
section.block + section.block { border-top: none; }
section.alt { background: var(--bg-elev); }

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--copper);
}
.kicker--center { justify-content: center; }
.kicker--center::before, .kicker--center::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--copper);
}

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.section-title .italic { font-style: italic; font-weight: 400; color: var(--copper); }
.section-title .amp { color: var(--copper); font-style: italic; font-weight: 400; }

.section-intro {
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.075rem;
  line-height: 1.85;
  margin-bottom: 4rem;
}

/* Editorial split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.split--reverse { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 800px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 2rem; }
  /* On mobile the reverse split stacks — drop the desktop right-alignment */
  .split--reverse .section-intro { text-align: left !important; margin-left: 0 !important; }
}

/* ============================================================
   & ORNAMENT DIVIDER
   ============================================================ */
.amp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  position: relative;
}
.amp-divider::before, .amp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 200px;
}
.amp-divider span {
  font-family: var(--serif);
  /* Logo's ampersand proportions: Playfair Bold 700, NOT italic */
  font-style: normal;
  font-weight: 700;
  font-size: 3rem;
  color: var(--copper);
  margin: 0 2rem;
  line-height: 1;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service {
  padding: 3rem 2rem 3rem 0;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background var(--dur-base) var(--ease-out);
}
.service:last-child { border-right: none; padding-right: 0; }
@media (max-width: 900px) {
  .service { border-right: none; border-bottom: 1px solid var(--line); padding: 2.5rem 0; }
  .service:last-child { border-bottom: none; }
}
.service .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--copper);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.65rem;
  margin-bottom: 1rem;
  line-height: 1.15;
  color: var(--text);
}
.service p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service .arrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--copper);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}
.service:hover .arrow { color: var(--text); }

/* ============================================================
   PRINCIPLES (Approach)
   ============================================================ */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 6rem;
}
@media (max-width: 800px) {
  .principles { grid-template-columns: 1fr; gap: 3rem; }
}
.principle {
  position: relative;
  padding-left: 3.5rem;
}
.principle .symbol {
  position: absolute;
  left: 0; top: -0.3rem;
  font-family: var(--serif);
  /* Logo's ampersand proportions: Playfair Bold 700, NOT italic */
  font-style: normal;
  font-weight: 700;
  color: var(--copper);
  font-size: 2.2rem;
  line-height: 1;
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--text);
}
.principle p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-content {
  max-width: 44rem;
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--text-muted);
}
.about-content p {
  margin-bottom: 1.5rem;
}
.about-content p strong { color: var(--text); font-weight: 500; }
.about-content p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  float: left;
  font-size: 4.5rem;
  line-height: 0.85;
  padding: 0.45rem 0.5rem 0 0;
  color: var(--copper);
}
.about-signature {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--copper);
}

/* ============================================================
   WORK (Case Studies)
   ============================================================ */
.work-list {
  display: flex;
  flex-direction: column;
}
.work-item {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding var(--dur-base) var(--ease-out);
  position: relative;
}
.work-item:first-child { border-top: 1px solid var(--line); }
.work-item .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--copper);
  font-size: 1rem;
}
.work-item h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.work-item .meta {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.work-item .arrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--copper);
  font-size: 1.2rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.work-item:hover { padding-left: 1.5rem; }
.work-item:hover .arrow { transform: translateX(8px); }
.work-item:hover h3 { color: var(--copper); }
@media (max-width: 640px) {
  .work-item { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .work-item .arrow { display: none; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-block {
  text-align: center;
  padding: 10rem 0;
  position: relative;
}
.contact-block .section-title {
  margin-bottom: 3rem;
  max-width: 30rem;
  margin-left: auto; margin-right: auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 40rem;
  margin: 0 auto 4rem;
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-item .label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}
.contact-item .value {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

/* ============================================================
   FOOTER OUTRO
   ============================================================ */
footer.outro {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.outro-monogram {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(8rem, 28vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  color: var(--text);
  margin-bottom: 3rem;
  user-select: none;
  position: relative;
}
.outro-monogram .amp { color: var(--copper); }
.outro-statement {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 4rem;
  line-height: 1.5;
}
.outro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .outro-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
}
.outro-col h4 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}
.outro-col p, .outro-col a {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  display: block;
}
.outro-col a:hover { color: var(--copper); }
.outro-bottom {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 1rem;
}
.outro-bottom a { margin-left: 1.5rem; }
@media (max-width: 640px) {
  .outro-bottom { flex-direction: column; text-align: center; }
  .outro-bottom a { margin: 0 0.75rem; }
}

/* ============================================================
   MOTION — reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

/* Hero word reveal */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
/* The italic & has flourishes above/below the baseline; let it bleed past the clip. */
.word.amp-word { overflow: visible; }
.word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease-out);
}
.is-loaded .word > span { transform: translateY(0); }
.is-loaded .word:nth-child(2) > span { transition-delay: 0.1s; }
.is-loaded .word:nth-child(3) > span { transition-delay: 0.2s; }
.is-loaded .word:nth-child(4) > span { transition-delay: 0.3s; }
.is-loaded .word:nth-child(5) > span { transition-delay: 0.4s; }

/* 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;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .word > span { transform: none; }
}

/* ============================================================
   ARTICLE / ESSAY
   ============================================================ */
.article {
  padding: 8rem 0 6rem;
}
.article-meta {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-meta::before {
  content: ''; width: 28px; height: 1px; background: var(--copper);
}
.article-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  color: var(--text);
  max-width: 32rem;
}
.article-deck {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 4rem;
  max-width: 36rem;
}
.article-body {
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 36rem;
  margin: 0 auto;
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 4rem 0 1.25rem;
  color: var(--text);
  letter-spacing: -0.015em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 1.5rem; color: var(--text-muted); }
.article-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  float: left;
  font-size: 4.5rem;
  line-height: 0.85;
  padding: 0.45rem 0.5rem 0 0;
  color: var(--copper);
}
.article-body strong { color: var(--text); font-weight: 500; }
.article-body em { font-style: italic; }
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--copper);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 2.5rem 0;
}
.article-body ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}
.article-body ul li { margin-bottom: 0.5rem; color: var(--text-muted); }

/* Article back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.back-link::before { content: '←'; color: var(--copper); }
.back-link:hover { color: var(--copper); }

/* ============================================================
   LEGAL PAGES (impressum, datenschutz)
   ============================================================ */
.legal-header {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.legal-content {
  padding: 4rem 0 6rem;
  max-width: var(--container-narrow);
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.5rem; line-height: 1.25;
  margin: 3.5rem 0 1.25rem;
  letter-spacing: -0.015em;
  color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--sans); font-weight: 600;
  font-size: 1rem; margin: 2rem 0 0.5rem;
  color: var(--text);
}
.legal-content p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.legal-content ul {
  margin: 0 0 1.5rem; padding-left: 1.25rem;
  line-height: 1.75; color: var(--text-muted);
}
.legal-content ul li { margin-bottom: 0.5rem; }
.legal-content a.linked { color: var(--copper); border-bottom: 1px solid var(--copper); }
.legal-content code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--bg-elev); padding: 0.05em 0.4em; border-radius: 3px;
}
.legal-content .label-row {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .legal-content .label-row { grid-template-columns: 1fr; gap: 0.2rem; }
}
.legal-content .label-row dt { color: var(--text-faint); font-size: 0.9rem; }
.legal-content .label-row dd { margin: 0 0 0.5rem; font-weight: 500; color: var(--text); }
.ph {
  display: inline-block;
  background: var(--copper-glow);
  border: 1px dashed var(--copper-soft);
  padding: 0.05rem 0.45rem;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--copper);
}
.note {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--copper-glow);
  border-left: 3px solid var(--copper);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.note strong { color: var(--text); font-weight: 600; }
.toc {
  margin: 3rem 0 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-elev);
  border-left: 3px solid var(--copper);
}
.toc .toc-label {
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--copper); margin-bottom: 0.75rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
  /* Tabular + lining digits — all numbers same width, same baseline */
  font-variant-numeric: tabular-nums lining-nums;
}
.toc ol li::marker {
  color: var(--copper);
  font-variant-numeric: tabular-nums lining-nums;
}
.toc ol a:hover { color: var(--copper); }
/* Tabular figures everywhere lists are numbered in legal pages and articles */
.legal-content ol,
.legal-content ul,
.article-body ol,
.article-body ul {
  font-variant-numeric: tabular-nums lining-nums;
}
.legal-content ol li::marker,
.article-body ol li::marker {
  font-variant-numeric: tabular-nums lining-nums;
}

/* AGB clause numbers — copper, small monospace prefix at the start of each clause */
.legal-content p .clause {
  display: inline-block;
  min-width: 2.4rem;
  margin-right: 0.4rem;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: baseline;
}
