/* ZEO STUDIOS — shared styles for the blog, the AI policy page and the 404 page.
   Same navy palette, type and expanding nav as the home page (index.html). */

:root {
  --bg: #1B2858;
  --bg-2: #243262;
  --ink: #ffffff;
  --ink-soft: rgba(255,255,255,0.68);
  --ink-faint: rgba(255,255,255,0.4);
  --line: rgba(255,255,255,0.12);
  --accent: #8FB4FF;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --cursor-bg: rgba(255,255,255,0.20);
  --cursor-border: rgba(255,255,255,0.28);
  --cursor-bg-hover: rgba(255,255,255,0.32);
  --cursor-border-hover: rgba(255,255,255,0.40);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overscroll-behavior: none; background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.4;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; }

/* Page-transition fade and smooth scrolling, driven by scripts.js */
body { transition: opacity 0.38s ease; }
body.transitioning { opacity: 0; pointer-events: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* =========================
   UNIFIED EXPANDING NAV (same as index.html)
   ========================= */
.nav-wrap {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 320px;
  background: rgba(20, 28, 62, 0.55);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  transition:
    width 0.55s cubic-bezier(0.34, 1.28, 0.64, 1),
    border-radius 0.55s cubic-bezier(0.34, 1.28, 0.64, 1);
}
.nav-wrap.open {
  width: 460px;
  border-radius: 28px;
  animation: nav-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes nav-pop {
  0%   { transform: translateX(-50%) scale(1, 1); }
  40%  { transform: translateX(-50%) scale(1.02, 1.03); }
  100% { transform: translateX(-50%) scale(1, 1); }
}
.nav-row { display: flex; align-items: center; justify-content: center; padding: 10px; }
.pill-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 16px 24px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}
.pill-link:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.pill-logo {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: white;
  padding: 0 20px;
  line-height: 1;
  text-decoration: none;
}
.nav-panel {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 18px;
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    padding 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-wrap.open .nav-panel { max-height: 620px; opacity: 1; padding: 14px 18px 22px; }
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.menu-grid a {
  display: block;
  padding: 16px 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s, color 0.3s;
}
.menu-grid a:nth-child(2n) { border-right: none; }
.menu-grid a:nth-last-child(-n+2) { border-bottom: none; }
.menu-grid a:hover { color: white; background: rgba(255, 255, 255, 0.05); }
.menu-grid a.current { color: white; background: rgba(255, 255, 255, 0.08); }
.menu-info-row { margin-top: 16px; }
.menu-info-row:first-child { margin-top: 0; }
.menu-info-row .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-bottom: 8px;
}
.menu-info-row p,
.menu-info-row a { font-size: 15px; color: white; text-decoration: none; display: block; line-height: 1.55; }

/* =========================
   PAGE LAYOUT
   ========================= */
main { position: relative; padding-top: 140px; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }

.chapter-marker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 36px;
}
.chapter-marker a { text-decoration: none; transition: color 0.3s; }
.chapter-marker a:hover { color: var(--ink); }
.chapter-marker .ch-num { font-style: italic; color: var(--ink-soft); }

.page-hero { padding: 20px 0 80px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-family: var(--sans);
  font-size: clamp(52px, 9vw, 150px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.page-hero h1 em { font-style: italic; }
.page-hero .sub {
  margin-top: 32px;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* =========================
   BLOG INDEX — article cards
   ========================= */
.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 70px 0 100px;
}
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.22); }
.post-card-cover { aspect-ratio: 1200 / 630; background: #2a4a8a; overflow: hidden; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post-card h2 {
  font-family: var(--sans);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 500;
}
.post-card p { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.post-card .read {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.post-list-empty { padding: 80px 0 120px; color: var(--ink-soft); font-size: 19px; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tag {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

/* =========================
   ARTICLE
   ========================= */
.article-head { padding: 20px 0 56px; max-width: 980px; }
.article-head h1 {
  font-family: var(--sans);
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 28px;
}
.article-head .dek {
  max-width: 700px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.article-cover {
  aspect-ratio: 1200 / 630;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.prose {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 0 110px;
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.024em;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2em;
}
.prose h3 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
  margin-top: 1.8em;
}
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ink-faint); }
.prose blockquote {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 24px;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
}
/* Tall images are scaled down to fit the screen, never stretched */
.prose img { display: block; max-width: 100%; height: auto; max-height: 75vh; object-fit: contain; border-radius: 10px; margin-left: auto; margin-right: auto; }
.prose figure { margin: 2em 0; }
.prose .caption {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-faint);
  text-align: center;
  font-style: normal;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}
.prose pre {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

.article-foot {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 100px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.back-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.back-link:hover { color: var(--ink); }

/* Plain text pages (AI policy, 404) */
.simple-body { max-width: 700px; padding: 64px 0 120px; font-size: 19px; line-height: 1.65; color: var(--ink-soft); }

/* =========================
   PAGE TAIL — same as the other pages
   ========================= */
.page-tail {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 110px 28px 60px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.pt-cta { display: inline-flex; flex-direction: column; align-items: center; justify-self: center; }
.pt-cta-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.pt-cta-link {
  font-family: var(--sans);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  transition: opacity 0.3s;
}
.pt-cta-link:hover { opacity: 0.6; }
.pt-cta-link .arrow { display: inline-block; font-size: 0.72em; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.pt-cta-link:hover .arrow { transform: translate(5px, -5px); }
.pt-next { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.pt-next-label {
  font-family: var(--sans);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.024em;
  color: var(--ink);
  line-height: 1;
}
.pt-next-title {
  font-family: var(--sans);
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 400;
  letter-spacing: -0.028em;
  color: var(--ink-faint);
  text-decoration: none;
  line-height: 1;
  transition: color 0.3s;
}
.pt-next-title:hover { color: var(--ink); }

/* =========================
   MOBILE
   ========================= */
@media (max-width: 900px) {
  .nav-wrap { top: 18px; width: 280px; }
  .nav-wrap.open { width: calc(100vw - 24px); }
  .nav-row { padding: 8px; }
  .pill-link { padding: 12px 18px; font-size: 11px; }
  .pill-logo { font-size: 22px; padding: 0 16px; }
  .nav-panel { padding: 0 14px; }
  .nav-wrap.open .nav-panel { padding: 12px 14px 18px; max-height: 700px; }

  main { padding-top: 110px; }
  .container { padding: 0 18px; }
  .post-list { grid-template-columns: 1fr; gap: 14px; padding: 48px 0 70px; }
  .page-hero { padding-bottom: 56px; }
  .page-hero .sub, .article-head .dek { font-size: 17px; }
  .prose { font-size: 17px; padding: 48px 0 80px; }
  .prose blockquote { font-size: 20px; padding-left: 18px; }
  .simple-body { font-size: 17px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .page-tail { padding: 90px 20px 40px; }
  .pt-cta-label { margin-bottom: 10px; }
}
