/* ============================================================
   SITE — shared stylesheet for the landing page + the three
   pillar pages (ai.html, art.html, personal.html).
   Personal brand, "Humanist Authority": Newsreader / Spectral /
   DM Sans, cream ground, Klein Blue accent, sharp containers +
   pill interactives.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400&family=Spectral:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

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

:root {
  --font-headline: 'Newsreader', Georgia, serif;
  --font-body: 'Spectral', Georgia, serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;

  --bg: #FAF8F4;
  --bg-card: #FEFDFB;
  --bg-tinted: #F5F2EC;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-dim: #999999;
  --border: #e5e0d8;
  --accent: #002FA7;
  --accent-soft: rgba(0, 47, 167, 0.08);
  --accent-special: #E8590C;
  --nav-bg: rgba(250, 248, 244, 0.82);

  --radius-container: 2px;
  --radius-pill: 20px;
  --layout: 1200px;
  --pad: clamp(1.5rem, 4vw, 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Dark ground for the cinematic pillar (art.html) */
body.dark {
  --bg: #0a0a0b;
  --bg-card: #111114;
  --bg-tinted: #18181c;
  --text: #e8e6e3;
  --text-muted: #8a8a95;
  --text-dim: #555560;
  --border: #222228;
  --accent: #4D7FFF;
  --accent-soft: rgba(77, 127, 255, 0.12);
  --accent-special: #F47A3E;
  --nav-bg: rgba(10, 10, 11, 0.72);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Fade-in + stagger (brand animation) ---------- */
.reveal { opacity: 0; animation: reveal 0.9s var(--ease) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.28s; }
.reveal.d4 { animation-delay: 0.38s; }
.reveal.d5 { animation-delay: 0.48s; }
@keyframes reveal { to { opacity: 1; } }

/* ============================================================
   NAV — fixed, blurred, logo left, pillars right, Klein Blue pill
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.site-nav .logo {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.site-nav .logo .mark {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 1px;
}
.site-nav .links { display: flex; gap: 0.25rem; }
.site-nav .links a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav .links a:hover { color: var(--text); background: var(--accent-soft); }
.site-nav .links a.active { color: #fff; background: var(--accent); }
body.dark .site-nav .links a.active { color: #0a0a0b; }
@media (max-width: 640px) {
  .site-nav .links a { padding: 0.38rem 0.6rem; font-size: 0.74rem; }
  .site-nav .logo span.full { display: none; }
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  max-width: var(--layout);
  margin: 0 auto;
  padding: calc(64px + clamp(3.5rem, 9vh, 6.5rem)) var(--pad) clamp(2.5rem, 6vh, 4rem);
}
.overline {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.overline .n { color: var(--accent); }
.overline .rule { width: 28px; height: 1px; background: var(--border); }
.page-hero h1 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 1.3rem 0 1.4rem;
}
.page-hero h1 em { font-style: italic; font-weight: 300; color: var(--accent); }
.page-hero .lede {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 600px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  max-width: var(--layout);
  margin: 0 auto;
  padding: clamp(2.8rem, 6vh, 4.2rem) var(--pad);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  margin-bottom: 2rem;
}
.section-head h2 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.section-head h2 .n {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.section-head .desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 460px;
}
.more {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.more:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Card grid (sharp, hairline-separated) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-container);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}
.card:hover, .card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 6px 24px -12px rgba(0, 47, 167, 0.35);
  transform: translateY(-2px);
}
.card h3 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 1.38rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.card p { font-size: 0.95rem; line-height: 1.65; color: var(--text-muted); }
.card .foot {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  color: var(--text-dim);
}
.card .foot .go { color: var(--accent); opacity: 0; transform: translateX(-4px); transition: all 0.25s ease; }
.card:hover .foot .go, .card:focus-visible .foot .go { opacity: 1; transform: none; }

.card.feature { grid-column: 1 / -1; padding: 2.2rem 2rem 1.8rem; }
.card.feature h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.card.feature p { max-width: 640px; font-size: 1.02rem; }

/* ---------- Tags (outlined pills) ---------- */
.tag {
  align-self: flex-start;
  justify-self: start;
  width: fit-content;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  padding: 0.18rem 0.62rem;
}
.tag.grey { color: var(--text-muted); border-color: var(--border); }


/* ---------- Next pillar band ---------- */
.next-pillar {
  display: block;
  max-width: var(--layout);
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  padding: clamp(2.4rem, 6vh, 3.6rem) var(--pad);
  border-top: 1px solid var(--border);
}
.next-pillar .t {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  transition: color 0.25s ease, transform 0.35s var(--ease);
}
.next-pillar .t em { font-style: italic; font-weight: 300; }
.next-pillar:hover .t { color: var(--accent); transform: translateX(8px); }

/* ============================================================
   FOOTER — rich columns
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: clamp(3rem, 8vh, 5rem);
}
.site-footer .inner {
  max-width: var(--layout);
  margin: 0 auto;
  padding: 3.2rem var(--pad) 2.2rem;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
}
.site-footer .brand {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  line-height: 1.2;
}
.site-footer .brand small {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
}
.site-footer h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer li a {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.site-footer li a:hover { color: var(--accent); }
.site-footer .legal {
  max-width: var(--layout);
  margin: 0 auto;
  padding: 1.2rem var(--pad) 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; }
  .site-footer .brand { grid-column: 1 / -1; }
}

@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 { opacity: 1; }
}
