/* ============================================================
   PaxLabs: warm paper editorial design system
   Palette derived from Matrix brand tokens (cream/stone/sage/amber)
   rendered as a light paper edition.
   ============================================================ */

:root {
  /* Paper & ink */
  --paper: #f4f1ec;
  --paper-warm: #ede8e0;
  --paper-deep: #e4ded2;
  --card: #fbf9f6;
  --card-hi: #fdfcf9;
  --ink: #16140f;
  --ink-soft: #35322b;
  --ink-muted: #4a463f;
  --text-secondary: #57534a;
  --text-tertiary: #96918e;

  /* Accents */
  --sage: #6a8a6d;
  --sage-deep: #445844;
  --sage-soft: #99bd9c2b;
  --sage-line: #99bd9c66;
  --amber: #c27a00;
  --amber-soft: #fe9a0022;

  /* Rules */
  --rule: #d8d1c3;
  --rule-strong: #b5ad9d;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(22, 20, 15, 0.04), 0 4px 14px rgba(22, 20, 15, 0.05);
  --shadow-md: 0 2px 6px rgba(22, 20, 15, 0.05), 0 14px 36px rgba(22, 20, 15, 0.09);

  /* Type */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(5rem, 11vw, 9rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  /* Compatibility aliases used by the long-form research templates. */
  --text-primary: var(--ink);
  --bg-0: var(--paper);
  --bg-1: var(--paper-warm);
  --accent: var(--sage-deep);
  --accent-dim: var(--sage-line);
  --max-w-narrow: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(253, 251, 246, 0.95), rgba(253, 251, 246, 0) 70%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: #99bd9c4d; }

/* Paper grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--sage-deep); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 4px;
}

em { font-style: italic; }

img { max-width: 100%; display: block; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244, 241, 236, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: var(--rule);
  box-shadow: 0 10px 30px rgba(22, 20, 15, 0.05);
  padding: 0.75rem var(--gutter);
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  color: var(--ink);
}
.nav > .nav-logo { margin-left: clamp(0.5rem, 1.4vw, 1.25rem); }
.nav-logo img {
  width: clamp(7.75rem, 10vw, 9rem);
  height: auto;
  object-fit: contain;
}
.footer .nav-logo img { width: clamp(8.5rem, 12vw, 10rem); }
.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--sage);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--sage-deep); color: var(--paper); }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-mobile span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}

/* ============ BUTTONS ============ */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 1px 2px rgba(22, 20, 15, 0.12);
}
.btn-primary:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
  background: var(--sage-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:active { transform: translateY(0); box-shadow: none; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.66rem; }

/* ============ LAYOUT ============ */
.page-pad { padding: var(--section-pad) var(--gutter); }
.section-bg {
  background-color: var(--paper);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.section-bg-b1 { background-image: url('../images/b1.png'); }
.section-bg-b2 { background-image: url('../images/b2.png'); }
.section-bg-b3 { background-image: url('../images/b3.png'); }
.section-bg-b4 { background-image: url('../images/b4.png'); }
.section-bg-b5 { background-image: url('../images/b5.png'); }
.section-bg-illustrated {
  background-image:
    linear-gradient(rgba(242, 239, 235, 0.62), rgba(242, 239, 235, 0.62)),
    var(--section-art);
}
.section-bg-bg6 { --section-art: url('../images/bg6.png'); }
.section-bg-bg7 { --section-art: url('../images/bg7.png'); }
.section-bg-bg8 { --section-art: url('../images/bg8.png'); }
.section-bg-bg9 { --section-art: url('../images/bg9.png'); }
.section-bg-bg10 { --section-art: url('../images/bg10.png'); }
.section-bg-bg11 { --section-art: url('../images/bg11.png'); }
.section-bg-bg12 { --section-art: url('../images/bg12.png'); }
.section-bg-bg13 { --section-art: url('../images/bg13.png'); }
.section-bg-bg14 { --section-art: url('../images/bg14.png'); }
.section-bg-bg15 { --section-art: url('../images/bg15.png'); }
.section-bg-bg16 { --section-art: url('../images/bg16.png'); }
.section-bg-bg17 { --section-art: url('../images/bg17.png'); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-inner.wide { max-width: 1280px; }
.section-inner.narrow { max-width: 760px; }

/* Long-form research papers */
.paper-article {
  border-top: 1px solid var(--rule);
}
.paper-content {
  position: relative;
}
.paper-content > p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  color: var(--ink);
}
.paper-content a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.paper-content .paper-cite {
  border-color: var(--rule);
  border-radius: 0;
}
.paper-content .paper-index-terms,
.paper-content .paper-index-terms + p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.paper-content .paper-index-terms {
  margin: 2rem 0 0.25rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::before {
  content: '';
  width: 2.2rem; height: 1px;
  background: var(--sage);
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.6rem;
}
.section-heading em { color: var(--sage-deep); }
.section-body {
  font-size: 1.03rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 58ch;
}

.divider {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 0 var(--gutter);
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.hero::before {
  content: '';
  position: absolute;
  top: -14%;
  bottom: -14%;
  left: 0;
  right: 0;
  background: url('../images/Hero_bg.png') center / cover no-repeat;
  transform: translate3d(0, var(--hero-parallax, 0px), 0);
  will-change: transform;
}
.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
}
.hero-copy {
  transform: translateX(clamp(-1.5rem, -1.6vw, -0.75rem));
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.1rem, 6.9vw, 5.9rem);
  line-height: 1.01;
  letter-spacing: -0.024em;
  text-wrap: balance;
  margin-bottom: 1.8rem;
}
.hero h1 em { color: var(--sage-deep); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 46ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-metrics {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
}
.metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}
/* ============ THESIS ============ */
.thesis-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 24em;
}
.thesis-quote em { color: var(--sage-deep); }
.thesis-attribution {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 2rem;
}

/* ============ SYMBOL BAND (sci-fi glyph strip) ============ */
.curtain-reveal {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.curtain-reveal::before,
.curtain-reveal::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 50.5%;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(184, 176, 161, 0.5) 0%,
      rgba(242, 239, 235, 0.18) 18%,
      rgba(184, 176, 161, 0.42) 39%,
      rgba(242, 239, 235, 0.3) 62%,
      rgba(184, 176, 161, 0.48) 84%,
      rgba(228, 222, 210, 0.9) 100%),
    var(--paper-deep);
  transition: transform 1.25s var(--ease-out);
  will-change: transform;
}
.curtain-reveal::before {
  left: 0;
  border-right: 1px solid var(--rule-strong);
  box-shadow: 10px 0 24px rgba(53, 53, 48, 0.12);
}
.curtain-reveal::after {
  right: 0;
  border-left: 1px solid var(--rule-strong);
  box-shadow: -10px 0 24px rgba(53, 53, 48, 0.12);
}
.curtain-reveal.visible::before { transform: translateX(-101%); }
.curtain-reveal.visible::after { transform: translateX(101%); }
.curtain-reveal .curtain-content {
  filter: blur(3px);
  transform: scale(0.975);
  transition: filter 1.1s var(--ease-soft), transform 1.3s var(--ease-out);
}
.curtain-reveal.visible .curtain-content {
  filter: blur(0);
  transform: scale(1);
}
.symbol-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-warm);
  overflow: hidden;
}
.symbol-band svg { flex-shrink: 0; opacity: 0.85; }
.symbol-band .band-caption {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: center;
  flex: 1;
  min-width: 200px;
}

/* ============ PRODUCT CARDS ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 3.5rem;
}
.product-card {
  background: var(--card);
  padding: clamp(2.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  transition: background 0.45s var(--ease-soft);
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.product-card:hover { background: var(--card-hi); }
.product-card:hover::before { transform: scaleX(1); }
.product-card .card-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}
.product-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.product-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 52ch;
}
.product-card .card-link {
  margin-top: auto;
  padding-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.product-card .card-link::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
}
.product-card:hover .card-link::after { transform: translateX(5px); }
.product-card .card-figure {
  margin: 0.5rem 0 0.8rem;
  display: flex;
  justify-content: flex-start;
}
.product-card .card-figure svg { height: 88px; width: auto; }

/* ============ EDITORIAL TWO-COL ============ */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.618fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.editorial-left { position: sticky; top: 7rem; }
.editorial-points { display: flex; flex-direction: column; }
.editorial-point {
  padding: 2rem 0 2rem 2rem;
  border-left: 1px solid var(--rule-strong);
  transition: border-color 0.35s;
}
.editorial-point:hover { border-left-color: var(--sage); }
.editorial-point h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.editorial-point p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 56ch;
}
.editorial-point .point-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--sage);
  display: block;
  margin-bottom: 0.8rem;
}

/* ============ IMAGE BAND ============ */
.image-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.image-band figure {
  background: var(--paper);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
}
.image-band img {
  max-height: 100%;
  object-fit: contain;
  filter: saturate(0.55) contrast(0.95);
  transition: filter 0.7s var(--ease-soft), transform 0.9s var(--ease-out);
}
.image-band figure:hover img {
  filter: saturate(1) contrast(1);
  transform: scale(1.05);
}
.image-band figcaption {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: center;
  padding: 0.9rem 0;
  background: var(--paper);
}

/* ============ CTA ============ */
.cta-section {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-pad) var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 75% at 82% 105%, rgba(153, 189, 156, 0.2), transparent 62%),
    radial-gradient(ellipse 40% 50% at 12% -10%, rgba(153, 189, 156, 0.07), transparent 65%);
}
.cta-inner { max-width: 1080px; margin: 0 auto; position: relative; }
.cta-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}
.cta-section h2 em { color: #99bd9c; }
.cta-section p {
  color: #b8b0a1;
  max-width: 52ch;
  line-height: 1.8;
  margin-bottom: 2.4rem;
}
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-section .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta-section .btn-primary:hover { background: #99bd9c; border-color: #99bd9c; color: var(--ink); }
.cta-section .btn-ghost { color: var(--paper); border-color: #4a463f; }
.cta-section .btn-ghost:hover { border-color: #99bd9c; color: #99bd9c; background: transparent; }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 10rem var(--gutter) 4rem;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, var(--sage-soft), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}
.page-header-inner { max-width: 1080px; margin: 0 auto; }
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.page-header h1 em { color: var(--sage-deep); }
.page-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.8;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule-strong);
  padding: 5.5rem var(--gutter) 2.5rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 34ch;
  margin-top: 1rem;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--sage-deep); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

/* ============ PRELOADER ============ */
/* Typography preloader: cycling greetings, curved exit (inspired by dennissnellenberg.com) */
html.preloading { overflow: hidden; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1) 0.2s;
  will-change: transform;
}
.preloader.exit { transform: translateY(-100%); }
.preloader-word {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  opacity: 0;
  animation: preloaderWordIn 0.6s var(--ease-out) 0.15s forwards;
  transition: opacity 0.25s ease;
}
.preloader-word::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}
.preloader.exit .preloader-word { opacity: 0; }
.preloader svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 300px);
  display: block;
}
.preloader svg path { fill: var(--paper); }
@keyframes preloaderWordIn {
  to { opacity: 0.85; }
}

/* ============ ANIMATION ============ */
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbitPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(3px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out),
    filter 0.8s var(--ease-out);
}
.stagger.visible > * { opacity: 1; transform: translateY(0); filter: blur(0); }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

.spin-slow { animation: slowSpin 60s linear infinite; transform-origin: center; }
.spin-slower { animation: slowSpin 120s linear infinite reverse; transform-origin: center; }
.pulse-soft { animation: orbitPulse 7s ease-in-out infinite; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-left { position: static; }
  .image-band { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav > .nav-logo { margin-left: 0; }
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 1.5rem var(--gutter);
    gap: 1.2rem;
  }
  .hero-copy { transform: none; }
  .hero-metrics { gap: 1.5rem; flex-wrap: wrap; }
  .symbol-band { flex-wrap: wrap; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .curtain-reveal::before,
  .curtain-reveal::after { display: none; }
  .curtain-reveal .curtain-content { filter: none; transform: none; }
  .preloader { display: none; }
  html { scroll-behavior: auto; }
}
