/* ============================================================
   Walker Press — CompTIA Homepage
   Vanilla CSS · Walker Press design system
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette (Walker Press / CompTIA) */
  --red:        #c0392b;
  --red-soft:   #e74c3c;
  --red-bg:     #fdf2f2;

  /* Domain accents (used across the platform) */
  --d1: #c0392b;  /* AI Concepts / red */
  --d2: #2471a3;  /* Securing AI / blue */
  --d3: #1e8449;  /* AI-assisted / green */
  --d4: #7d3c98;  /* Governance / purple */

  /* Neutrals */
  --ink:        #2c3e50;
  --ink-soft:   #34495e;
  --muted:      #6b7280;
  --line:       #e5e7eb;
  --paper:      #ffffff;
  --paper-2:    #f7f8fa;

  /* Dark sections */
  --dark-1:     #1a1a2e;
  --dark-2:     #16213e;
  --dark-3:     #0f1a30;
  --dark-card:  #1f2a44;
  --dark-line:  rgba(255,255,255,0.08);

  --shadow-sm: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.10);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.18);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

  --header-h:  64px;
  --marquee-h: 32px;

  --container: 1180px;
  --gutter: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background-color: var(--paper-2);
  background-image: url('../img/sfondo_webapp.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── MARQUEE BAR ───────────────────────────────────────────── */
.marquee-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--marquee-h);
  background: linear-gradient(90deg, var(--dark-1), var(--dark-2), var(--dark-1));
  border-bottom: 2px solid var(--red);
  overflow: hidden; white-space: nowrap;
  display: flex; align-items: center;
  z-index: 100;
}
.marquee-track {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: #f0f0f0;
  letter-spacing: 0.04em;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}
.marquee-track span { color: var(--red-soft); font-weight: 700; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── HEADER / NAV ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--marquee-h);
  left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 90;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px; /* logo bounding box — everything fits within */
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.78; }

/* serif monogram — same vocabulary as hero corner & philo aside */
.brand-monogram {
  display: inline-flex;
  align-items: baseline;
  height: 40px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 40px;
  color: var(--ink);
  letter-spacing: -0.05em;
}
.brand-monogram small {
  font-size: 22px;
  color: var(--red);
  margin-left: 1px;
  line-height: 1;
}

/* thin red rule between monogram and wordmark */
.brand-divider {
  width: 2px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--red) 25%, var(--red) 75%, transparent);
}

/* wordmark — locked into the same 40px bounding box */
.brand-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 40px;
  gap: 4px;
}
.brand-text strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.20em;
  text-indent: 0.20em;
  font-feature-settings: "kern" 1, "liga" 1;
  white-space: nowrap;
}
/* "Certification Guides" italic, letter-spaced to match the width of
   "WALKER PRESS" above. Letter-spacing tuned to the 18px serif wordmark. */
.brand-text em {
  display: block;
  width: 100%;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.205em;
  text-indent: 0.205em; /* compensate trailing letter-spacing */
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 0;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--red); background: var(--red-bg); }
.nav-link.active { color: var(--red); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: calc(var(--marquee-h) + var(--header-h));
  min-height: 640px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
  color: #fff;
  overflow: hidden;
  border-bottom: 3px solid var(--red);
}
/* grid pattern (same vocabulary as Philosophy) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.030) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 1;
}
/* curved corner accent (top-right) */
.hero::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 240px; height: 240px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' preserveAspectRatio='none'><path d='M 240 0 Q 180 180 0 240' fill='none' stroke='%23c0392b' stroke-opacity='0.7' stroke-width='4.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 500px at 20% 20%, rgba(192,57,43,0.22), transparent 60%),
    radial-gradient(900px 400px at 85% 80%, rgba(36,113,163,0.18), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 90px 24px 100px;
  max-width: 820px;
}

/* ── editorial corner marker (top-right) ─────────────────── */
.hero-corner {
  position: absolute;
  top: 38px; right: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.72);
}
.hero-corner-line {
  width: 70px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
}
.hero-corner-glyph {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px; font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-corner-glyph small {
  font-size: 17px;
  color: var(--red-soft);
  margin-left: 1px;
}
.hero-corner-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: rgba(255,255,255,0.55);
  text-align: left;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 12px;
}

/* ── eyebrow with decorative line ───────────────────────── */
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.hero-eyebrow-line {
  width: 64px; height: 2px;
  background: var(--red);
}
.hero-eyebrow {
  font-size: 16px; font-weight: 800;
  letter-spacing: 0.26em; color: var(--red-soft);
  margin: 0;
}

/* ── title with serif italic accent ─────────────────────── */
.hero-title {
  font-size: clamp(42px, 6.2vw, 68px);
  font-weight: 800; line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero-title em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--red-soft);
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── editorial metric strip ─────────────────────────────── */
.hero-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 720px;
}
.hero-metrics li {
  position: relative;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-metrics li:first-child { padding-left: 0; }
.hero-metrics li + li {
  border-left: 1px solid rgba(255,255,255,0.10);
}
.hero-metric-num {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-metric-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.45;
}

/* ── A · SVG icons ─────────────────────────────────── */
.hero-metric-icon {
  display: inline-flex;
  align-items: center;
  height: 30px;
  color: rgba(255,255,255,0.92);
}
.hero-metric-icon svg {
  width: 34px;
  height: 30px;
  display: block;
}

/* ── B · serif "Web / App" labels ──────────────────── */
.hero-metric-num--serif {
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--red-soft);
}

/* ── C · two-letter monograms ──────────────────────── */
.hero-metric-num--mono {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  border: 1.5px solid var(--red-soft);
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-self: flex-start;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  color: #fff;
  box-shadow: 0 6px 18px rgba(192,57,43,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(192,57,43,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }

.btn-block { width: 100%; }

/* ── TAGLINE STRIP ─────────────────────────────────────────── */
.tagline-strip {
  background: #0c1428;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
}
.tagline-strip p {
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-style: italic;
  color: rgba(255,255,255,0.72);
  max-width: 820px;
  margin: 0 auto;
}
.tagline-strip strong {
  color: #fff;
  font-weight: 600;
  font-style: normal;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ── SECTIONS ──────────────────────────────────────────────── */
.section-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  text-align: center;
  margin-bottom: 14px;
}
.section-eyebrow.light { color: var(--red-soft); }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.section-title.light { color: #fff; }

.section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-sub.light { color: rgba(255,255,255,0.72); }

/* ── COLLECTIONS ───────────────────────────────────────────── */
/* ── COLLECTIONS · EDITORIAL DARK ──────────────────────────── */
.collections {
  position: relative;
  padding: 110px 0 120px;
  background: linear-gradient(180deg, #0f1730 0%, #131c38 50%, #0f1730 100%);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 3px solid var(--red);
  overflow: hidden;
}
/* atmospheric radial gradients (same vocabulary as hero) */
.collections::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 18% 15%, rgba(192,57,43,0.22), transparent 60%),
    radial-gradient(800px 420px at 88% 85%, rgba(36,113,163,0.18), transparent 60%),
    radial-gradient(700px 360px at 55% 50%, rgba(192,57,43,0.10), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.collections::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.030) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 1;
}
.collections > .container { position: relative; z-index: 2; }

/* head */
.collections-head {
  max-width: 720px;
  margin-bottom: 64px;
}
.collections-eyebrow-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.collections-eyebrow-line {
  width: 64px; height: 2px;
  background: var(--red);
}
.collections-eyebrow {
  font-size: 16px; font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--red-soft);
}
.collections-title {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 22px;
}
.collections-title em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--red-soft);
}
.collections-sub {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
}

/* grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* card — illuminated tile floating over the dark background */
.book-card {
  position: relative;
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.07) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-top: 1px solid rgba(255,255,255,0.22);
  border-radius: 4px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 18px 40px -14px rgba(0,0,0,0.55),
    0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.book-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0.18);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.book-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.10) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.14) inset,
    0 28px 56px -16px rgba(0,0,0,0.70),
    0 8px 18px rgba(0,0,0,0.30);
}
.book-card:hover::before { transform: scaleX(1); }

.book-card.featured::before { background: var(--d4); }
.book-card.featured {
  background: linear-gradient(180deg, rgba(155,89,182,0.18) 0%, rgba(125,60,152,0.08) 100%);
  border-color: rgba(155,89,182,0.40);
}
.book-card.featured:hover {
  border-color: rgba(155,89,182,0.65);
  background: linear-gradient(180deg, rgba(155,89,182,0.24) 0%, rgba(125,60,152,0.12) 100%);
}

/* roman numeral marker */
.book-roman {
  position: absolute;
  top: 14px; left: 16px;
  z-index: 3;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red-soft);
}
.book-card.featured .book-roman { color: #c39bd3; }

/* top (book cover area) */
.book-card-top {
  position: relative;
  padding: 44px 22px 26px;
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(192,57,43,0.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.book-card.featured .book-card-top {
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(125,60,152,0.18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}

/* tag pill (top-right) */
.book-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em;
  padding: 5px 9px;
  border-radius: 2px;
  z-index: 3;
  text-transform: uppercase;
}
.book-card.featured .book-tag {
  background: rgba(125,60,152,0.18);
  border-color: rgba(155,89,182,0.55);
  color: #fff;
}

.book-img-wrap {
  display: flex; align-items: center; justify-content: center;
  height: 270px;
  padding: 4px 0;
}
.book-img-wrap img {
  max-height: 100%;
  max-width: 78%;
  width: auto;
  height: auto;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 4px 12px rgba(0,0,0,0.45),
    0 22px 40px -10px rgba(0,0,0,0.65);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.book-card:hover .book-img-wrap img {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 6px 16px rgba(0,0,0,0.50),
    0 30px 50px -12px rgba(0,0,0,0.75);
}

/* body */
.book-card-body {
  display: flex; flex-direction: column;
  padding: 24px 22px 26px;
  flex-grow: 1;
}
.book-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.book-card.featured .book-kicker { color: #c39bd3; }

.book-card-body h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.book-desc {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  margin: 0 0 22px;
  line-height: 1.65;
  flex-grow: 1;
}
.book-desc strong {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}

/* CTA — editorial outline link */
.book-cta {
  display: inline-flex;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 11px 0 9px;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  width: 100%;
  justify-content: space-between;
  align-items: center;
  transition: color 0.25s ease, border-color 0.25s ease, letter-spacing 0.25s ease;
}
.book-cta::after {
  content: "→";
  font-size: 16px;
  font-weight: 400;
  color: var(--red-soft);
  transition: transform 0.3s ease;
}
.book-card:hover .book-cta {
  color: #fff;
  border-color: var(--red-soft);
  letter-spacing: 0.18em;
}
.book-card:hover .book-cta::after { transform: translateX(4px); }

.book-card.featured .book-cta::after { color: #c39bd3; }
.book-card.featured:hover .book-cta { border-color: #c39bd3; }

/* ── EARLY ACCESS / NEWSLETTER ─────────────────────────────── */
.signup {
  position: relative;
  padding: 110px 0 120px;
  background: linear-gradient(180deg, #0c1326 0%, #0f1a32 50%, #0c1326 100%);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 3px solid var(--red);
  overflow: hidden;
}
.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.signup::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 380px at 85% 25%, rgba(192,57,43,0.18), transparent 65%),
    radial-gradient(700px 360px at 10% 90%, rgba(36,113,163,0.14), transparent 65%);
  pointer-events: none;
}

.signup-split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

/* ── LEFT · promise ──────────────────────────────────────── */
.signup-eyebrow-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.signup-eyebrow-line {
  width: 64px; height: 2px;
  background: var(--red);
}
.signup-eyebrow {
  font-size: 16px; font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--red-soft);
}
.signup-title {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 28px;
}
.signup-title em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--red-soft);
}
.signup-lead {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.74);
  margin-bottom: 28px;
  max-width: 520px;
}
.signup-bullets {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 22px;
}
.signup-bullets li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.66);
  padding: 8px 0;
  letter-spacing: 0.005em;
}
.signup-bullets li span {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--red-soft);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

/* ── RIGHT · form (illuminated tile) ─────────────────────── */
.signup-form {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-top: 1px solid rgba(255,255,255,0.22);
  border-radius: 4px;
  padding: 40px 38px 36px;
  backdrop-filter: blur(4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 24px 50px -16px rgba(0,0,0,0.65),
    0 6px 16px rgba(0,0,0,0.25);
}
.signup-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
}

.signup-form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 24px;
}

.signup-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}
.signup-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.signup-field label em {
  font-style: normal;
  color: var(--red-soft);
  margin-left: 2px;
}
.signup-field input {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  color: #fff;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.signup-field input::placeholder {
  color: rgba(255,255,255,0.32);
  font-style: italic;
}
.signup-field input:hover {
  border-color: rgba(255,255,255,0.32);
}
.signup-field input:focus {
  border-color: var(--red-soft);
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}

.signup-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-soft));
  border: none;
  border-radius: 3px;
  padding: 16px 22px;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(192,57,43,0.40);
  transition: transform 0.2s ease, box-shadow 0.2s ease, letter-spacing 0.25s ease;
}
.signup-submit span:last-child {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  transition: transform 0.3s ease;
}
.signup-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(192,57,43,0.52);
  letter-spacing: 0.18em;
}
.signup-submit:hover span:last-child { transform: translateX(4px); }
.signup-submit:active { transform: translateY(0); }

.signup-fineprint {
  margin-top: 22px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.42);
  line-height: 1.6;
  text-align: center;
}

/* ── PHILOSOPHY · SPLIT MANIFESTO ──────────────────────────── */
.philosophy {
  position: relative;
  padding: 110px 0 130px;
  background: linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
  color: #fff;
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  overflow: hidden;
}
.philosophy::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.philo-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  gap: 70px;
  align-items: start;
}

/* ── Left · sticky aside ─────────────────────────────────── */
.philo-aside {
  position: sticky;
  top: calc(var(--marquee-h) + var(--header-h) + 40px);
  padding-right: 10px;
  border-left: 2px solid var(--red);
  padding-left: 28px;
}
.philo-eyebrow {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 22px;
}
.philo-headline {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 36px;
}
.philo-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.philo-marker-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05));
}
.philo-marker-line:last-child {
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.35));
}
.philo-marker-glyph {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
}
.philo-marker-glyph small {
  font-size: 16px;
  color: var(--red-soft);
  margin-left: 1px;
}
.philo-aside-foot {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

/* ── Right · manifesto content ───────────────────────────── */
.philo-content {
  position: relative;
  max-width: 620px;
}
.philo-intro {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 22px;
}
.philo-intro + .philo-intro {
  margin-bottom: 64px;
}

.philo-principle {
  position: relative;
  padding: 38px 0 38px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.philo-principle:last-of-type {
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.philo-num {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red-soft);
  margin-bottom: 14px;
}
.philo-principle h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 14px;
}
.philo-principle h3 em {
  font-style: italic;
  color: var(--red-soft);
  font-weight: 800;
}
.philo-principle p {
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(255,255,255,0.72);
}
.philo-principle p strong {
  color: #fff;
  font-weight: 600;
}
.philo-principle p em {
  font-style: italic;
  color: rgba(255,255,255,0.92);
}

.philo-closing {
  margin-top: 56px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: #fff;
  letter-spacing: -0.005em;
}

/* ── CONTACT ───────────────────────────────────────────────── */
.contact {
  position: relative;
  padding: 110px 0 120px;
  background: linear-gradient(180deg, #0a1124 0%, #0e1730 50%, #0a1124 100%);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 3px solid var(--red);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 50% 30%, rgba(192,57,43,0.16), transparent 65%),
    radial-gradient(700px 360px at 15% 90%, rgba(36,113,163,0.12), transparent 65%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
}

.contact-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-eyebrow-line {
  width: 64px; height: 2px;
  background: var(--red);
}
.contact-eyebrow {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--red-soft);
}

.contact-title {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 28px;
}
.contact-title em {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--red-soft);
}

.contact-lead {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.74);
  max-width: 580px;
  margin: 0 auto 48px;
}

/* mail "card" — illuminated tile */
.contact-mail {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 56px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  border-top: 1px solid rgba(255,255,255,0.22);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 24px 50px -16px rgba(0,0,0,0.65),
    0 6px 16px rgba(0,0,0,0.25);
  color: #fff;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.contact-mail::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0.18);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.contact-mail:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.14) inset,
    0 30px 60px -18px rgba(0,0,0,0.75),
    0 8px 18px rgba(0,0,0,0.30);
}
.contact-mail:hover::before { transform: scaleX(1); }

.contact-mail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-soft);
}
.contact-mail-address {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.contact-mail-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--red-soft);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.contact-mail:hover .contact-mail-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

.contact-foot {
  margin-top: 44px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: #0a0f1d;
  color: rgba(255,255,255,0.65);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-brand { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand strong { color: #fff; font-size: 14px; letter-spacing: 0.02em; }
.footer-brand span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; margin-top: 2px; }
.footer-copy { font-size: 12px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .philo-split {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .philo-aside {
    position: static;
    padding-right: 0;
  }
  .philo-headline { margin-bottom: 28px; }
  .philo-marker { margin-bottom: 22px; }
  .philo-content { max-width: 100%; }
  .philo-intro + .philo-intro { margin-bottom: 48px; }

  .signup-split {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 720px) {
  .philosophy { padding: 80px 0 90px; }
  .philo-aside { padding-left: 20px; }
  .philo-intro { font-size: 16.5px; }
  .philo-principle { padding: 30px 0; }
  .philo-principle p { font-size: 14.5px; }
  .philo-closing { font-size: 17px; margin-top: 44px; }

  /* hero compact */
  .hero { min-height: 0; }
  .hero-inner { padding: 70px 24px 80px; }
  .hero-corner { display: none; }
  .hero::after { width: 140px; height: 140px; }
  .hero-sub { font-size: 16.5px; }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
    margin-top: 48px;
  }
  .hero-metrics li { padding: 0 18px; }
  .hero-metrics li:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
  .hero-metric-num { font-size: 26px; }

  .signup { padding: 80px 0 90px; }
  .signup-form { padding: 32px 26px 30px; }

  .contact { padding: 80px 0 90px; }
  .contact-mail { padding: 26px 32px 24px; }
  .contact-mail-arrow { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 14px 20px 18px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    padding: 12px 14px;
  }
  .nav-link.active::after { display: none; }

  .hero { min-height: 480px; }
  .hero-inner { padding: 60px 20px; }

  .brand-text em { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  .book-grid { grid-template-columns: 1fr; }
  .philo-grid { grid-template-columns: 1fr; }
  .collections, .philosophy { padding: 70px 0 80px; }
  .section-sub { margin-bottom: 42px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
