/* ==========================================================================
   NEXUS by Tim Cobs — Stylesheet
   Editorial Dark / Scientific-Premium archetype
   ========================================================================== */

:root {
  --bg: #0a0a09;
  --bg-soft: #14100a;
  --bg-cool: #0c1310;
  --surface: #161513;
  --surface-2: #1c1b18;
  --line: rgba(242, 237, 228, 0.10);
  --line-strong: rgba(242, 237, 228, 0.22);
  --text: #f3eee3;
  --text-dim: #a39d90;
  --text-faint: #6d685e;
  --accent: #c9a961;
  --accent-soft: rgba(201, 169, 97, 0.14);
  --accent-2: #8fa89a;
  --accent-2-soft: rgba(143, 168, 154, 0.14);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --pad: clamp(24px, 5vw, 80px);
  --section-pad: clamp(80px, 12vw, 160px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 700px at 12% -8%, rgba(201, 169, 97, 0.07), transparent 60%),
    radial-gradient(ellipse 900px 700px at 88% 15%, rgba(143, 168, 154, 0.06), transparent 55%),
    radial-gradient(ellipse 800px 650px at 20% 85%, rgba(143, 168, 154, 0.05), transparent 55%),
    radial-gradient(ellipse 800px 650px at 95% 100%, rgba(201, 169, 97, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Ambient background glows — subtle, non-hero sections */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.glow-concept { width: 460px; height: 460px; top: -140px; right: -160px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.glow-about { width: 420px; height: 420px; bottom: -160px; left: -160px; background: radial-gradient(circle, var(--accent-2-soft), transparent 70%); }
.glow-journal { width: 500px; height: 500px; top: -180px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, var(--accent-2-soft), transparent 70%); }
.concept, .about, #journal { overflow: hidden; }

/* Selection */
::selection { background: var(--accent); color: #0a0a09; }

/* Focus visibility for a11y (keyboard) */
a:focus-visible, button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* Fine noise/grain overlay for premium texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Custom cursor (desktop / fine pointers only)
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.cursor-ring.is-active { width: 56px; height: 56px; border-color: var(--accent); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }

/* ==========================================================================
   Justified body copy
   ========================================================================== */
.concept-body p,
.about-copy p,
.article-body p,
.article-list li,
.article-steps li,
.article-references li,
.faq-item p,
.pillar-text,
.footer-tagline,
.section-sub {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

/* ==========================================================================
   Kicker / eyebrow labels
   ========================================================================== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.kicker-plain::before { display: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,10,9,0.65), transparent);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 9, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand { display: flex; flex-direction: column; line-height: 1; justify-self: start; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text);
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--text-faint);
  margin-top: 5px;
  text-transform: uppercase;
}

.main-nav { display: flex; justify-self: center; }
.main-nav ul { display: flex; gap: 40px; }
.main-nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color .3s var(--ease);
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 22px; justify-self: end; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  padding: 4px;
}
.lang-switch button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 30px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang-switch button .flag {
  display: inline-flex;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.lang-switch button .flag svg { width: 100%; height: 100%; display: block; }
.lang-switch button.is-active {
  background: var(--accent);
  color: #0a0a09;
  font-weight: 600;
}

/* ==========================================================================
   Header search
   ========================================================================== */
.nav-search { display: flex; align-items: center; }
.nav-search-toggle {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.nav-search-toggle svg { width: 16px; height: 16px; }
.nav-search-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-search.is-open .nav-search-toggle { display: none; }

.nav-search-form {
  display: flex;
  align-items: center;
  width: 0;
  opacity: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  transition: width .4s var(--ease), opacity .3s var(--ease);
}
.nav-search.is-open .nav-search-form {
  width: 250px;
  opacity: 1;
}
.nav-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 4px 10px 18px;
}
.nav-search-input::placeholder { color: var(--text-faint); }
.nav-search-submit {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-right: 2px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .3s var(--ease);
}
.nav-search-submit svg { width: 15px; height: 15px; }
.nav-search-submit:hover { color: var(--accent); }

.search-empty {
  display: none;
  text-align: center;
  color: var(--text-dim);
  font-size: .95rem;
  font-weight: 300;
  padding: 40px 0;
}
.search-empty.is-visible { display: block; }
.article-card.is-search-hidden { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.03em;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 2px;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-outline {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid {
  background: var(--accent);
  color: #0a0a09;
  border: 1px solid var(--accent);
}
.btn-solid:hover { transform: translateY(-2px); background: #ddb96f; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 1px; background: var(--text); transition: transform .3s var(--ease), opacity .3s var(--ease); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 160px var(--pad) 56px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.hero-blob.b1 {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}
.hero-blob.b2 {
  width: 480px; height: 480px;
  bottom: -60px; left: -140px;
  background: radial-gradient(circle, var(--accent-2-soft), transparent 65%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 60% 35%, #000 30%, transparent 75%);
}

.hero-content { position: relative; z-index: 2; max-width: 920px; margin: auto; display: flex; flex-direction: column; align-items: center; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.8rem, 12vw, 9.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 0 0 32px;
  text-shadow: 0 0 90px rgba(201, 169, 97, 0.35), 0 0 30px rgba(201, 169, 97, 0.15);
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  color: var(--accent);
  margin: -18px 0 32px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 48px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue .line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollpulse 2.4s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(1); opacity: .6; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Defensive net: if JS fails or is slow, content must never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }

.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

.pillar-card.reveal:nth-child(1) { transition-delay: .04s; }
.pillar-card.reveal:nth-child(2) { transition-delay: .11s; }
.pillar-card.reveal:nth-child(3) { transition-delay: .18s; }
.pillar-card.reveal:nth-child(4) { transition-delay: .25s; }
.pillar-card.reveal:nth-child(5) { transition-delay: .32s; }
.pillar-card.reveal:nth-child(6) { transition-delay: .39s; }

.article-card.reveal:nth-child(1) { transition-delay: .05s; }
.article-card.reveal:nth-child(2) { transition-delay: .16s; }
.article-card.reveal:nth-child(3) { transition-delay: .27s; }

/* Hero content always visible immediately (first-screen wow, no dependency on IO) */
.hero-content.reveal { opacity: 1; transform: none; animation: heroIn 1.1s var(--ease) both; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Section shell
   ========================================================================== */
section { position: relative; padding: var(--section-pad) 0; }
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-sub {
  color: var(--text-dim);
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 560px;
  margin-top: 18px;
}
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

/* ==========================================================================
   Concept / Manifesto
   ========================================================================== */
.concept {
  background: linear-gradient(to bottom,
    transparent 0,
    var(--bg-soft) 380px,
    var(--bg-soft) calc(100% - 140px),
    transparent 100%);
}
.concept-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.concept-body p {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 1.05rem;
  margin: 0 0 22px;
}
.concept-body p:last-of-type { margin-bottom: 0; }
.concept-body strong { color: var(--text); font-weight: 500; }
.concept-body p.concept-signature {
  margin-top: 60px;
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
}

.diagram-wrap { position: relative; display: flex; justify-content: center; }
.diagram-glow {
  position: absolute;
  inset: -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.16), rgba(143, 168, 154, 0.09) 45%, transparent 72%);
  filter: blur(70px);
  pointer-events: none;
}
.diagram-svg circle.d-circle {
  fill: none;
  stroke-width: 1.2;
  pointer-events: all;
  cursor: pointer;
}
.diagram-svg .c-bio { stroke: var(--accent); }
.diagram-svg .c-mind { stroke: var(--accent-2); }
.diagram-svg .c-env { stroke: var(--text-faint); }
.diagram-svg .c-bio:hover { fill: rgba(201, 169, 97, 0.18); stroke-width: 1.8; }
.diagram-svg .c-mind:hover { fill: rgba(143, 168, 154, 0.18); stroke-width: 1.8; }
.diagram-svg .c-env:hover { fill: rgba(243, 238, 227, 0.07); stroke-width: 1.8; }
.diagram-svg text {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--text-dim);
}
.diagram-svg .d-core {
  fill: var(--bg);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 255px 233px;
  transition: opacity .5s var(--ease) 1.7s, transform .5s var(--ease) 1.7s;
}
.diagram-svg .d-core-bg {
  fill: var(--accent);
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 255px 233px;
  transition: opacity .5s var(--ease) 1.7s, transform .5s var(--ease) 1.7s;
}
.diagram-svg.is-visible .d-core,
.diagram-svg.is-visible .d-core-bg { opacity: 1; transform: scale(1); }
.diagram-svg .d-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2s var(--ease), fill .4s var(--ease), stroke-width .4s var(--ease);
}
.diagram-svg.is-visible .d-line { stroke-dashoffset: 0; }

/* ==========================================================================
   Pillars
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar-card {
  background: var(--bg);
  padding: 40px 26px;
  transition: background .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.pillar-card:hover { background: var(--surface); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 26px;
}
.pillar-icon { width: 30px; height: 30px; margin-bottom: 22px; color: var(--accent); }
.pillar-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.3; }
.pillar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 14px;
}
.pillar-text { font-size: .89rem; color: var(--text-dim); font-weight: 300; line-height: 1.65; }

/* ==========================================================================
   About Tim Cobs
   ========================================================================== */
.about {
  background: linear-gradient(to bottom,
    transparent 0,
    var(--bg-cool) 140px,
    var(--bg-cool) calc(100% - 140px),
    transparent 100%);
}
.about-head { margin-bottom: 48px; }
.about-head .about-name { margin: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  padding: 18px;
}
.portrait-inner {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,169,97,0.16), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(143,168,154,0.14), transparent 55%),
    var(--surface);
}
.portrait-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-caption {
  position: absolute;
  left: 18px; bottom: -14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about-copy p { color: var(--text-dim); font-weight: 300; font-size: 1.03rem; margin: 0 0 20px; }
.about-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin: 0 0 28px;
}
.pull-quote {
  margin: 40px 0 0;
  padding-left: 28px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.5;
}
.pull-quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ==========================================================================
   Article page (single post template)
   ========================================================================== */
.article-hero {
  position: relative;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  padding: 180px var(--pad) 50px;
}
.article-hero .kicker { margin-bottom: 22px; }
.article-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.article-hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.article-body { max-width: 720px; margin: 0 auto; padding: 0 var(--pad) 60px; }
.article-body p {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 0 0 26px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.25;
  color: var(--text);
  margin: 58px 0 24px;
}
.article-body strong { color: var(--text); font-weight: 500; }
.article-body em { font-style: italic; color: var(--text); }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-soft);
  transition: text-decoration-color .3s var(--ease);
}
.article-body a:hover { text-decoration-color: var(--accent); }

.article-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.75;
}
.article-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-list li strong { color: var(--text); font-weight: 500; }

.article-steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.article-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  color: var(--text-dim);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.75;
}
.article-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.3rem;
}
.article-steps li strong { color: var(--text); font-weight: 500; }

.article-body .pull-quote { margin: 48px 0; }

.article-diagram { margin: 44px auto 40px; }
.article-diagram .diagram-svg text { font-size: 9px; letter-spacing: 0.07em; }
.article-diagram .d-core { font-size: 11px; }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 600;
  background: transparent;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(201, 169, 97, 0.6);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--text);
  padding: 6px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; }

.faq-list { display: flex; flex-direction: column; gap: 30px; margin-top: 6px; }
.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--text);
  margin: 0 0 10px;
}
.faq-item p { margin: 0; }

.article-cta-box {
  margin: 64px 0 0;
  padding: 48px var(--pad);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  text-align: center;
}
.article-cta-box h2 { margin-top: 0; }
.article-cta-box p { max-width: 480px; margin: 0 auto 28px; }

.article-references {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article-references h2 { font-size: 1.15rem; margin: 0 0 20px; }
.article-references ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.article-references li { color: var(--text-faint); font-size: 0.88rem; font-weight: 300; line-height: 1.6; }
.article-references em { font-style: italic; color: var(--text-dim); }

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 300;
}
.article-author strong { color: var(--text); font-weight: 500; }

/* ==========================================================================
   Journal page head (journal.html)
   ========================================================================== */
.journal-page-head {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 190px var(--pad) 70px;
}
.journal-page-head .kicker { justify-content: center; }
.journal-page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 auto 24px;
  max-width: 780px;
}
.journal-page-sub {
  color: var(--text-dim);
  font-weight: 300;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Journal / Latest Articles
   ========================================================================== */
.journal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 72px;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.journal-grid.is-single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}
.article-card { display: block; }
.article-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}
.article-media .media-fill {
  position: absolute; inset: 0;
  transform: scale(1.05);
  transition: transform .8s var(--ease);
}
.article-card:hover .media-fill { transform: scale(1.15) rotate(1deg); }
.media-fill.m1 { background: linear-gradient(135deg, #3a3222, #0a0a09 70%); }
.media-fill.m2 { background: linear-gradient(135deg, #223229, #0a0a09 70%); }
.media-fill.m3 { background: linear-gradient(135deg, #2a2622, #0a0a09 70%); }
.media-fill svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

.article-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  padding: 5px 12px;
  margin-bottom: 16px;
}
.article-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.32;
  margin: 0 0 14px;
  transition: color .3s var(--ease);
}
.article-card:hover .article-title { color: var(--accent); }
.article-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-faint); }
.article-read { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); }
.article-read svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.article-card:hover .article-read svg { transform: translateX(4px); }

.journal-cta { text-align: center; margin-top: 64px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(to bottom, transparent 0, var(--bg-soft) 140px, var(--bg-soft) 100%);
  padding-top: var(--section-pad);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-brand .brand-name { font-size: 26px; }
.footer-tagline { color: var(--text-dim); font-weight: 300; font-size: .95rem; margin-top: 18px; max-width: 280px; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a { color: var(--text-dim); font-size: .92rem; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  color: var(--text-dim);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-phase2 {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 300;
}
.footer-phase2 strong { color: var(--text-dim); font-weight: 500; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
}

/* ==========================================================================
   Mobile nav overlay
   ========================================================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: rgba(10,10,9,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.mobile-nav .lang-switch { margin-top: 10px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .concept-grid, .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-grid { direction: ltr; }
  .portrait-frame { max-width: 380px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-brand .footer-tagline { margin-left: auto; margin-right: auto; }
  .journal-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .nav-search.is-open .nav-search-form { width: 190px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .cursor-dot, .cursor-ring { display: none; }
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: auto; }
}
