/* ============================================================
   NEXO AI — Design System
   Dark Luxury Editorial — Inspired by cinematic references
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:            #0C0C0C;
  --surface:       #151515;
  --surface-2:     #1E1E1E;
  --text:          #EDE8E0;
  --text-muted:    #7A7470;
  --text-faint:    #4A4643;
  --accent:        #C8A44A;
  --accent-hover:  #B89440;
  --border:        rgba(255, 255, 255, 0.07);
  --border-light:  rgba(255, 255, 255, 0.12);

  --serif:  'Instrument Serif', Georgia, serif;
  --sans:   'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:   'JetBrains Mono', 'Courier New', monospace;

  --radius:      8px;
  --radius-sm:   4px;
  --radius-pill: 9999px;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.3s var(--ease-out);

  --max-w:    1280px;
  --content-w: 720px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

/* ── Grain Overlay (Moooi-style texture) ─────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
  z-index: 9999;
}

/* ── Typography ───────────────────────────────────────────── */
.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); }

h1, .h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
}

h2, .h2 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

h4, .h4 {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

p { max-width: 65ch; }
.p-wide { max-width: 80ch; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

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

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled {
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--transition);
}

.nav-logo span { color: var(--accent); }

.nav-logo:hover { color: var(--accent); }

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.lang-toggle a { transition: color var(--transition); }
.lang-toggle a:hover, .lang-toggle a.active { color: var(--accent); }
.lang-toggle span { opacity: 0.3; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

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

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay a {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-overlay a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}

.btn:active { transform: scale(0.98) translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #0C0C0C;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  border: 1px solid var(--border-light);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover { color: var(--text); }

/* ── Links ────────────────────────────────────────────────── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), gap var(--transition);
}

.link-arrow:hover {
  color: var(--accent);
  gap: 0.625rem;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 55% -10%, rgba(200, 164, 74, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 90% 80%, rgba(200, 164, 74, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 100% 40% at 0% 100%, rgba(180, 130, 40, 0.05) 0%, transparent 50%);
}

/* Ambient light orb — the main visual element */
.hero-orb {
  position: absolute;
  top: -12rem;
  right: -5rem;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(200, 164, 74, 0.22) 0%,
    rgba(200, 140, 30, 0.10) 35%,
    rgba(180, 110, 20, 0.04) 60%,
    transparent 75%
  );
  filter: blur(40px);
  pointer-events: none;
}

/* Decorative large letter — typographic "image" */
.hero-deco {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14rem, 25vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 164, 74, 0.10);
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-orb {
    animation: orb-drift 12s ease-in-out infinite alternate;
  }
  @keyframes orb-drift {
    from { transform: translateY(0) scale(1); }
    to   { transform: translateY(2rem) scale(1.04); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: flex-end;
  gap: 4rem;
}

.hero-left {
  position: relative;
  z-index: 1;
}

/* Hero H1 — the TYPE is the image */
.hero h1 {
  font-size: clamp(3.25rem, 8.5vw, 7rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--text);
  text-wrap: balance;
}

/* Hero H1 accent line — editorial underline on key phrase */
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-style: italic;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: 2rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-meta-value {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Article Card ─────────────────────────────────────────── */
.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #181714 0%, #131210 100%);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.article-card:hover {
  border-color: rgba(200, 164, 74, 0.2);
  background: linear-gradient(160deg, #1e1b16 0%, #181512 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 0 transparent;
}

.article-card:hover::before { opacity: 0.6; }

.article-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(200, 164, 74, 0.1);
  color: var(--accent);
  border: 1px solid rgba(200, 164, 74, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.article-card-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--text);
  transition: color var(--transition);
}

.article-card:hover .article-card-title { color: var(--accent); }

.article-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Tool Card ────────────────────────────────────────────── */
.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color var(--transition), background var(--transition);
}

.tool-card:hover {
  border-color: var(--border-light);
  background: var(--surface-2);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tool-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: rgba(200, 164, 74, 0.1);
  border: 1px solid rgba(200, 164, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon svg { width: 1.125rem; height: 1.125rem; color: var(--accent); }

.tool-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tool-star { color: var(--accent); font-size: 0.75rem; }
.tool-star.empty { color: var(--text-faint); }

.tool-name { font-weight: 600; font-size: 1rem; }

.tool-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tool-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.tool-affiliate-note {
  font-size: 0.7rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ── Newsletter Section ───────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(180deg, #111009 0%, #0e0c08 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Ambient glow behind CTA */
.newsletter-section::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(200, 164, 74, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.newsletter-section h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.newsletter-section p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  max-width: 48ch;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-input::placeholder { color: var(--text-faint); }
.newsletter-input:focus { border-color: var(--accent); }

.newsletter-note {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 1rem;
}

/* ── Divider / Section header ─────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.section-title { }

/* ── Author Card ──────────────────────────────────────────── */
.author-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.author-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 164, 74, 0.3), rgba(200, 164, 74, 0.05));
  border: 1px solid rgba(200, 164, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent);
}

.author-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Feature / Pillar card ────────────────────────────────── */
.pillar-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #161412 0%, #111009 100%);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(200, 164, 74, 0.03), transparent);
  pointer-events: none;
}

.pillar-card:hover {
  border-color: rgba(200, 164, 74, 0.18);
  background: linear-gradient(160deg, #1c1a14 0%, #16140e 100%);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: rgba(200, 164, 74, 0.08);
  border: 1px solid rgba(200, 164, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pillar-icon svg { color: var(--accent); width: 1.25rem; height: 1.25rem; }

.pillar-card h3 {
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem 2.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {}

.footer-logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.875rem;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom a {
  color: var(--text-faint);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--accent); }

/* ── Cookie Banner ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 3rem);
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9998;
  transition: transform 0.5s var(--ease-out);
  flex-wrap: wrap;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ── Chip / Tag ───────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  padding: 10rem 1.5rem 5rem;
  border-bottom: 1px solid var(--border);
}

.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Article Page ─────────────────────────────────────────── */
.article-body {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.article-body h2 { margin: 2.5rem 0 1rem; }
.article-body h3 { margin: 2rem 0 0.75rem; }
.article-body p  { margin-bottom: 1.25rem; color: var(--text-muted); font-size: 1.0625rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-muted); }
.article-body li { margin-bottom: 0.5rem; font-size: 1.0625rem; }
.article-body code {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--accent);
}

/* ── Scroll animations ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(1) { transition-delay: 0ms; }
.fade-up:nth-child(2) { transition-delay: 80ms; }
.fade-up:nth-child(3) { transition-delay: 160ms; }
.fade-up:nth-child(4) { transition-delay: 240ms; }

/* ── Horizontal rule ──────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

/* ── Legal Pages ──────────────────────────────────────────── */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
}

.legal-content h1 { font-family: var(--serif); font-style: italic; font-size: 2.5rem; margin-bottom: 0.5rem; }
.legal-content .legal-date { color: var(--text-faint); font-size: 0.875rem; margin-bottom: 3rem; }
.legal-content h2 { font-size: 1.125rem; font-weight: 600; margin: 2.5rem 0 0.75rem; color: var(--text); }
.legal-content p, .legal-content li { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content ul { margin: 0 0 1.25rem 1.5rem; }

/* ── Article card footer alias (blog index uses .article-card-footer) ── */
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* .article-tag — used in blog post article headers */
.article-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(200, 164, 74, 0.1);
  color: var(--accent);
  border: 1px solid rgba(200, 164, 74, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Author card — column variant (about page) ──────────────── */
.author-card.author-card--column {
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.author-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

/* ── Design skill refinements (Emil + Impeccable + Taste) ───── */

/* Staggered fade-up for grid children */
.grid-3 .fade-up:nth-child(1) { transition-delay: 0ms; }
.grid-3 .fade-up:nth-child(2) { transition-delay: 100ms; }
.grid-3 .fade-up:nth-child(3) { transition-delay: 200ms; }
.grid-3 .fade-up:nth-child(4) { transition-delay: 300ms; }
.grid-3 .fade-up:nth-child(5) { transition-delay: 400ms; }
.grid-3 .fade-up:nth-child(6) { transition-delay: 500ms; }

/* Hover underline for article card title links (Emil: transform only) */
.article-card-title a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease-out), color var(--transition);
  padding-bottom: 2px;
}
.article-card:hover .article-card-title a {
  background-size: 100% 1px;
  color: var(--accent);
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Gold line — top separator for sections, Moooi-style editorial detail */
.section-gold-line {
  width: 2rem;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}

/* Selected text accent */
::selection {
  background: rgba(200, 164, 74, 0.2);
  color: var(--text);
}

/* Smooth scrollbar (Firefox) */
html { scrollbar-color: var(--surface-2) var(--bg); scrollbar-width: thin; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { display: none; }
  .hero-deco { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-meta { flex-wrap: wrap; gap: 1.25rem; }
  .cookie-banner { bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .lang-toggle { display: none; }
  .hero-orb { width: 80vw; height: 80vw; top: -8rem; right: -20vw; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  h1, .h1 { font-size: 2.25rem; }
}
