/* ============================================================
   FDK EmpowerNet · Visual rebuild — styles
   Editorial + cinematic. Dependency-free.
   ============================================================ */

:root {
  --navy: #0d1238;
  --navy-deep: #070a24;
  --navy-soft: #1a2470;
  --ink: #11142e;
  --green: #2ee06a;
  --green-deep: #16c45a;
  --green-dim: rgba(46, 224, 106, 0.16);
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --muted: #555a70;
  --muted-light: #9aa0bd;
  --border: rgba(17, 20, 46, 0.12);
  --border-light: rgba(255, 255, 255, 0.16);
  --maxw: 1280px;
  /* Typography system — one display, one body, one mono across every page */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", var(--font-mono);
  --lh-body: 1.7;   /* flowing reading copy */
  --lh-lead: 1.6;   /* hero / sub intro lines */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.76, 0, 0.24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper); color: var(--ink); line-height: var(--lh-body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; height: 100vh; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 40px; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 1000; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-4%,2%)} 40%{transform:translate(3%,-3%)} 60%{transform:translate(-2%,4%)} 80%{transform:translate(2%,-2%)} }

/* ---------- Custom cursor (ring only; native cursor stays) ---------- */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(46, 224, 106, 0.75); transform: translate(-50%, -50%);
  pointer-events: none; z-index: 1100; display: none; will-change: transform;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s, border-color 0.25s, opacity 0.3s;
}
@media (pointer: fine) { .cursor-ring { display: block; } }
.cursor-ring.is-hover { width: 46px; height: 46px; background: rgba(46, 224, 106, 0.08); border-color: rgba(46, 224, 106, 0.85); }
.cursor-ring.is-down { width: 22px; height: 22px; background: rgba(46, 224, 106, 0.16); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--green); z-index: 95; transition: width 0.1s linear; box-shadow: 0 0 12px var(--green); }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 1200; background: var(--navy-deep); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 7vw; transition: transform 1s var(--ease-2); }
.loader.done { transform: translateY(-100%); }
.loader__inner { display: flex; align-items: flex-end; justify-content: space-between; }
.loader__count { font-family: var(--font-display); font-size: clamp(3rem, 12vw, 9rem); line-height: 0.8; color: var(--green); }
.loader__bar { height: 2px; background: rgba(255,255,255,0.18); margin-top: 28px; }
.loader__bar span { display: block; height: 100%; width: 0%; background: var(--green); }

/* ---------- Brand / logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { color: var(--green); display: inline-flex; }
.brand__mark svg rect { fill: currentColor; }
.brand__text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__text b { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -1px; color: #fff; }
.brand__text i { font-style: normal; font-size: 0.6rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--green); margin-top: 3px; }
.brand--loader .brand__text b { font-size: 2.2rem; }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 28px; left: 0; right: 0; z-index: 90; color: #fff; animation: navDrop 0.9s var(--ease) 0.15s both; transition: top 0.45s var(--ease); }
.nav.nav--hidden { top: -120px; }
@keyframes navDrop { from { transform: translateY(-140%); opacity: 0; } to { transform: none; opacity: 1; } }
.nav .container { padding-inline: 24px; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: 66px; padding: 0 12px 0 26px; border-radius: 100px;
  background: rgba(10, 14, 42, 0.5); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, height 0.4s var(--ease);
}
.nav.scrolled .nav__inner, .nav--solid .nav__inner { background: rgba(7, 10, 36, 0.82); height: 58px; border-color: rgba(255,255,255,0.16); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.nav__cta) { color: rgba(255, 255, 255, 0.8); font-size: 0.94rem; font-weight: 500; padding: 9px 16px; border-radius: 100px; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.nav__links a:not(.nav__cta):hover { color: #fff; background: rgba(255, 255, 255, 0.09); }
.nav__links a.is-current { color: #fff; background: rgba(46, 224, 106, 0.16); }
.nav__cta { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: var(--navy-deep) !important; font-weight: 600; font-size: 0.94rem; padding: 11px 22px; border-radius: 100px; margin-left: 6px; box-shadow: 0 10px 26px -10px rgba(46, 224, 106, 0.75); transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.nav__cta:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(46, 224, 106, 0.6); }
.nav__cta span { display: inline-block; transition: transform 0.3s var(--ease); }
.nav__cta:hover span { transform: translateX(5px); }

/* Library dropdown submenu */
.nav__has-sub { position: relative; display: inline-flex; align-items: center; }
.nav__sub-toggle { display: inline-flex !important; align-items: center; gap: 7px; }
.nav__caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); opacity: 0.85; }
.nav__has-sub:hover .nav__caret, .nav__has-sub:focus-within .nav__caret { transform: rotate(225deg) translate(-1px,-1px); }
.nav__submenu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px); min-width: 250px; margin-top: 12px; background: rgba(7,10,36,0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s; box-shadow: 0 26px 54px -22px rgba(0,0,0,0.75); z-index: 20; }
.nav__submenu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__has-sub:hover .nav__submenu, .nav__has-sub:focus-within .nav__submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__submenu a { padding: 11px 14px !important; border-radius: 10px; color: rgba(255,255,255,0.82) !important; font-size: 0.9rem !important; font-weight: 500; white-space: nowrap; background: none !important; }
.nav__submenu a:hover { background: rgba(255,255,255,0.09) !important; color: #fff !important; }
.nav__submenu-all { color: var(--green) !important; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 4px; padding-top: 12px !important; }
.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: #fff; transition: 0.35s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Reveal primitives ---------- */
.reveal-up { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }
.r-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.r-word__in { display: inline-block; transform: translateY(115%); transition: transform 1s var(--ease); }
.in .r-word__in { transform: none; }
.r-block { display: block; overflow: hidden; }
.r-block__in { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.in .r-block__in { transform: none; }
.reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-2); }
.reveal-img.in { clip-path: inset(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 30px; font-weight: 500; font-size: 1rem; cursor: pointer; border: 1px solid transparent; border-radius: 100px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.45s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); will-change: transform; font-family: inherit; }
.btn__bullet { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.btn--brief { background: rgba(46,224,106,0.9); color: #04210f; font-weight: 600; border-color: transparent; box-shadow: 0 12px 32px -12px rgba(46,224,106,0.55), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn--brief:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(46,224,106,0.75), inset 0 1px 0 rgba(255,255,255,0.5); }

.btn--solid { background: rgba(13,18,56,0.82); color: #fff; border-color: transparent; box-shadow: 0 12px 30px -16px rgba(13,18,56,0.8), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn--solid:hover { background: rgba(26,36,112,0.9); transform: translateY(-2px); }

.btn--ghost { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(46,224,106,0.45); color: var(--green); transform: translateY(-2px); }

.btn--ghost-d { background: rgba(17,20,46,0.035); color: var(--ink); border-color: rgba(17,20,46,0.08); }
.btn--ghost-d:hover { background: rgba(17,20,46,0.06); border-color: rgba(22,196,90,0.6); color: var(--green-deep); transform: translateY(-2px); }

.btn--block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 184px 0 124px; overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(55% 50% at 75% 36%, rgba(46,224,106,0.20), transparent 60%), radial-gradient(50% 60% at 8% 92%, rgba(26,36,112,0.55), transparent 70%); }
/* Thesis hero — distinct indigo/violet wash so it reads apart from the home */
.hero--thesis { background: radial-gradient(135% 110% at 78% -12%, #21215f 0%, #0d1038 50%, #070a24 100%); }
.hero--thesis .hero__glow { background: radial-gradient(48% 58% at 18% 16%, rgba(124,139,255,0.28), transparent 62%), radial-gradient(42% 52% at 88% 90%, rgba(46,224,106,0.12), transparent 60%); }
.hero__side { position: absolute; top: 50%; font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.32); z-index: 2; }
.hero__side--l { left: 26px; transform: translateY(-50%) rotate(-90deg); transform-origin: left; }
.hero__side--r { right: 26px; transform: translateY(-50%) rotate(90deg); transform-origin: right; }
.hero__inner { position: relative; z-index: 2; max-width: 1120px; margin-inline: auto; text-align: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 0.78rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 34px; }
.hero__idx { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(46,224,106,0.5); border-radius: 50%; color: var(--green); font-family: var(--font-display); font-size: 0.82rem; }
.hero__title { font-size: clamp(2.5rem, 6vw, 5.4rem); font-weight: 400; line-height: 1.08; letter-spacing: -1.6px; text-wrap: balance; }
.hero__line { display: block; color: rgba(255,255,255,0.96); }
.hero__accent { display: block; font-style: normal; font-weight: 500; color: var(--green); letter-spacing: -1.6px; margin-top: 0.04em; text-shadow: 0 0 44px rgba(46,224,106,0.28); }
.hero__lead { font-size: clamp(0.92rem, 1.3vw, 1.08rem); font-weight: 400; max-width: 720px; margin: 40px auto 0; color: rgba(255,255,255,0.78); line-height: var(--lh-lead); transition-delay: 0.1s; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 46px; justify-content: center; transition-delay: 0.2s; }
.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.7); z-index: 2; }
.mouse { display: block; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 12px; position: relative; }
.mouse span { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 8px; border-radius: 4px; background: var(--green); animation: scroll 1.6s var(--ease) infinite; }
@keyframes scroll { 0%{opacity:0;top:5px} 40%{opacity:1} 80%{opacity:0;top:17px} 100%{opacity:0} }

/* ============================================================
   MARQUEE (double)
   ============================================================ */
.marquee { background: var(--navy-deep); color: #fff; overflow: hidden; padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.marquee__track { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.4rem); animation: marquee 30s linear infinite; }
.marquee__track i { color: var(--green); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============================================================
   STATEMENT (word highlight)
   ============================================================ */
.statement { background: var(--paper); padding: 202px 0 172px; }
.statement__text { text-align: left; }
.statement__text { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 4.6vw, 3.6rem); line-height: 1.3; letter-spacing: -0.5px; max-width: 1120px; }
.statement__text .hl { color: var(--muted-light); transition: color 0.3s var(--ease); }
.statement__text .hl.on { color: var(--ink); }

/* ============================================================
   SECTIONS / shared
   ============================================================ */
.section { padding: 184px 0; position: relative; }
.section--navy { background: var(--navy); color: #fff; }
.section__head { max-width: 820px; margin: 0 auto 70px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green-deep); margin-bottom: 18px; font-family: var(--font-body); }
.section--navy .eyebrow, .eyebrow--light { color: var(--green); }
.section__title { font-size: clamp(2rem, 4.8vw, 3.7rem); font-weight: 300; line-height: 1.08; letter-spacing: -1px; }
.section__title--light { color: #fff; }
.section__sub { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }
.section--navy .section__sub { color: rgba(255,255,255,0.7); }

/* ============================================================
   CONCEPTS (sticky storytelling)
   ============================================================ */
.concepts { padding: 172px 0 192px; }
.concepts__head { margin-bottom: 84px; text-align: left; }
.concepts__title { margin-top: 22px; max-width: 1120px; font-size: clamp(2.4rem, 5.6vw, 4.7rem); font-weight: 400; line-height: 1.06; letter-spacing: -1.6px; }
.hl-green { color: var(--green-deep); }
.concepts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: stretch; }
.concepts__media-col { position: relative; }
.concepts__sticky { position: sticky; top: 16vh; }
.cmedia { position: relative; aspect-ratio: 4/5; max-height: 68vh; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg,#cdd4e8,#aeb8d8); box-shadow: 0 40px 80px -40px rgba(13,18,56,0.5); }
.cmedia__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 1.4s var(--ease); }
.cmedia__img.is-active { opacity: 1; transform: scale(1); }
.cmedia__img.img--fail { background: linear-gradient(135deg,#cdd4e8,#aeb8d8); }
.cmedia__count { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 1px; padding: 6px 12px; background: rgba(7,10,36,0.4); backdrop-filter: blur(6px); border-radius: 4px; }
.cmedia__count b { font-weight: 600; font-size: 1.15rem; color: var(--green); }
.concepts__list { list-style: none; }
.concept { padding: 46px 0; border-top: 1px solid var(--border); position: relative; opacity: 0.4; transition: opacity 0.5s var(--ease), padding-left 0.5s var(--ease); }
.concept:last-child { border-bottom: 1px solid var(--border); }
.concept.is-active { opacity: 1; padding-left: 20px; }
.concept__num { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; color: var(--green-deep); }
.concept h3 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 400; font-style: normal; color: var(--navy); margin: 10px 0 14px; }
.concept p { color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.concept::before { content: ""; position: absolute; left: 0; top: 46px; width: 2px; height: 0; background: var(--green); transition: height 0.5s var(--ease); }
.concept.is-active::before { height: calc(100% - 92px); }

/* ============================================================
   MISSING (navy)
   ============================================================ */
.missing .eyebrow { display: block; text-align: center; }
.missing__title { max-width: 1000px; margin: 0 auto 80px; text-align: center; }
.missing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mcard { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 46px 38px; transition: transform 0.5s var(--ease), background 0.5s, border-color 0.5s; will-change: transform; }
.mcard:hover { transform: translateY(-10px); background: rgba(255,255,255,0.07); border-color: rgba(46,224,106,0.45); }
.mcard__n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; color: var(--green); display: block; margin-bottom: 26px; }
.mcard h3 { font-size: 1.42rem; font-weight: 400; font-style: normal; line-height: 1.25; margin-bottom: 16px; color: #fff; }
.mcard p { color: rgba(255,255,255,0.72); font-size: 1.04rem; }

/* ============================================================
   FOUNDER TEASER (full-bleed)
   ============================================================ */
.founderteaser { position: relative; min-height: 90vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.founderteaser__media { position: absolute; inset: 0; }
.founderteaser__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.5); transform-origin: 16% 30%; filter: grayscale(0.4) brightness(0.7); will-change: transform; }
.founderteaser__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,36,0.3) 0%, rgba(7,10,36,0.55) 55%, rgba(7,10,36,0.92) 100%); }
.founderteaser__media.media--fallback img { opacity: 0.4; }
.founderteaser__overlay { position: relative; z-index: 2; width: 100%; padding-bottom: 90px; color: #fff; }
.founderteaser__quote { font-family: var(--font-display); font-size: clamp(2rem, 5.2vw, 4.4rem); font-weight: 300; font-style: normal; line-height: 1.1; letter-spacing: -1px; max-width: 1000px; margin: 16px 0 0; }
.founderteaser__name { color: rgba(255,255,255,0.78); font-size: 1.1rem; margin: 26px 0 30px; max-width: 640px; }

/* ============================================================
   BOOK LAUNCH (home)
   ============================================================ */
.book { position: relative; background: linear-gradient(160deg, #0b1030, #131a52 60%, #0b1030); color: #fff; padding: 202px 0; overflow: hidden; }
.book__glow { position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 30%, rgba(46,224,106,0.16), transparent 60%); pointer-events: none; }
.book__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: center; }
.book__media { display: flex; justify-content: center; position: relative; perspective: 1600px; }
.book__badge { position: absolute; top: 6%; right: 12%; width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: #04210f; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 0.9rem; line-height: 1.1; transform: rotate(12deg); box-shadow: 0 16px 40px -12px rgba(46,224,106,0.6); }
.book__title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 300; line-height: 1; letter-spacing: -1.5px; color: #fff; }
.book__subtitle { font-family: var(--font-display); font-style: normal; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--green); margin-top: 16px; }
.book__desc { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 560px; margin-top: 26px; }
.book__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.book__buy { margin-top: 28px; color: rgba(255,255,255,0.6); font-size: 0.98rem; }
.book__buy a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 1px; transition: color 0.25s, border-color 0.25s; }
.book__buy a:hover { color: var(--green); border-color: var(--green); }
.book__discover { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: #fff; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 5px; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.book__discover span { transition: transform 0.35s var(--ease); }
.book__discover:hover { color: var(--green); border-color: var(--green); }
.book__discover:hover span { transform: translateX(7px); }

/* ---- 3D book ---- */
.book3d { position: relative; width: 300px; aspect-ratio: 3 / 4.4; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(5deg); animation: bookfloat 6s var(--ease) infinite; }
.book3d--lg { width: 340px; }
@keyframes bookfloat { 0%,100% { transform: rotateY(-26deg) rotateX(5deg) translateY(0); } 50% { transform: rotateY(-20deg) rotateX(5deg) translateY(-16px); } }

/* Real cover image used as the 3D book's cover face (deeper 3D + page stack) */
.book3d--cover { aspect-ratio: var(--cover-ar, 760 / 1247); animation: bookfloat3d 6.5s var(--ease) infinite; }
.book3d--cover .book3d__cover { padding: 0; background: #0c1138; overflow: visible; border-radius: 2px 4px 4px 2px; transform-style: preserve-3d; box-shadow: 40px 46px 90px -26px rgba(0,0,0,0.8); }
.book3d__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; backface-visibility: hidden; }
/* page-stack thickness along the right edge, folded back in 3D */
.book3d--cover .book3d__cover::after {
  content: ""; position: absolute; top: 1px; bottom: 1px; right: 0; width: 22px;
  background: repeating-linear-gradient(to left, #efece2 0, #efece2 1px, #cbc8bb 2px, #cbc8bb 3px);
  transform-origin: right center; transform: rotateY(90deg);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.16);
}
/* no left spine for the photo cover (avoids a detached sliver at shallow tilt) */
.book3d--cover .book3d__cover::before { display: none; }
/* Normalise cover books to a shared HEIGHT so different cover ratios read the
   same size everywhere (width follows each cover's true shape — no cropping) */
.book3d--lg.book3d--cover { width: auto; height: 558px; }
.catalog-grid .book3d--sm.book3d--cover { width: auto; height: 279px; }
.book__media .book3d--cover { width: auto; height: 500px; }
/* thinner page edge when the cover is shown small (catalog) */
.book3d--sm.book3d--cover .book3d__cover::after { width: 12px; }
/* real cover thumbnail inside a more-books mini card */
.morecard__cover { flex: none; width: 46px; height: 66px; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 3px 5px 12px -4px rgba(0,0,0,0.6); }
@keyframes bookfloat3d {
  0%, 100% { transform: rotateY(-27deg) rotateX(0deg) translateY(0); }
  50% { transform: rotateY(-22deg) rotateX(0deg) translateY(-14px); }
}
.book3d__cover {
  position: absolute; inset: 0; border-radius: 3px 8px 8px 3px;
  background: linear-gradient(135deg, #1a2470 0%, #0c1138 70%);
  padding: 36px 30px; display: flex; flex-direction: column;
  box-shadow: 28px 34px 70px -24px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.book3d__cover::before { content: ""; position: absolute; top: 0; bottom: 0; left: -15px; width: 15px; background: linear-gradient(#070a24, #03040f); transform: skewY(10deg); transform-origin: right; border-radius: 2px 0 0 2px; }
.book3d__cover::after { content: ""; position: absolute; top: 5px; bottom: 5px; right: -7px; width: 9px; background: repeating-linear-gradient(#f3f1e7, #f3f1e7 1px, #cbc8bb 2px, #cbc8bb 3px); border-radius: 0 3px 3px 0; }
.book3d__brand { font-size: 0.62rem; letter-spacing: 3px; color: var(--green); font-weight: 600; }
.book3d__title { font-family: var(--font-display); font-weight: 500; font-size: 2.3rem; line-height: 0.98; letter-spacing: -1px; color: #fff; margin-top: auto; }
.book3d--lg .book3d__title { font-size: 2.7rem; }
.book3d__rule { width: 46px; height: 3px; background: var(--green); margin: 18px 0; }
.book3d__sub { font-family: var(--font-display); font-style: normal; font-size: 0.96rem; color: rgba(255,255,255,0.8); line-height: 1.3; }
.book3d__author { margin-top: 22px; font-size: 0.78rem; letter-spacing: 1px; color: rgba(255,255,255,0.7); text-transform: uppercase; }

/* ============================================================
   LIBRARY (navy)
   ============================================================ */
.library .section__head { margin-bottom: 60px; }
.library__cta { margin-top: 30px; }
.library__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 56px; }
.lcard { display: flex; flex-direction: column; gap: 14px; }
.lcard__media { aspect-ratio: 16/11; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,0.06); margin-bottom: 8px; }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: grayscale(0.3); }
.lcard:hover .lcard__media img { transform: scale(1.07); filter: grayscale(0); }
.lcard__media.img--fail { background: rgba(255,255,255,0.08); }
.lcard__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); font-family: var(--font-body); }
.lcard h3 { font-size: 1.5rem; font-weight: 400; color: #fff; line-height: 1.25; }
.lcard p { color: rgba(255,255,255,0.72); font-size: 1.02rem; flex: 1; }
.lcard__more { color: var(--green); font-weight: 500; font-size: 0.95rem; transition: letter-spacing 0.3s; }
.lcard:hover .lcard__more { letter-spacing: 1px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: #ffffff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.contact__title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 300; line-height: 1.08; letter-spacing: -1px; }
.contact__sub { color: var(--muted); margin-top: 20px; font-size: 1.1rem; max-width: 460px; }
.contact__direct { margin-top: 28px; }
.contact__direct a { color: var(--green-deep); font-weight: 500; font-size: 1.2rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Modern elevated form card */
.form { display: flex; flex-direction: column; gap: 18px; background: #ffffff; border: 1px solid rgba(13,18,56,0.07); border-radius: 24px; padding: clamp(26px, 3vw, 40px); box-shadow: 0 50px 90px -60px rgba(13,18,56,0.45), 0 2px 6px -2px rgba(13,18,56,0.06); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label { font-size: 0.72rem; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { padding: 16px 18px; border-radius: 14px; background: #f3f5f9; border: 1.5px solid transparent; color: var(--ink); font-family: inherit; font-size: 1rem; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease); resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa0b5; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: #eef1f6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: #fff; border-color: var(--green-deep); box-shadow: 0 0 0 4px rgba(31,175,82,0.13); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555a70' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.form .btn--block { margin-top: 6px; border-radius: 16px; }
.form__status { font-size: 0.95rem; min-height: 1.2em; }
.form__status.ok { color: var(--green-deep); }
.form__status.err { color: #d6455d; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: #fff; padding-top: 110px; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; padding-bottom: 64px; }
.footer__label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); margin-bottom: 22px; }
.footer__email { display: inline-flex; align-items: center; gap: 18px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 4.6vw, 3.4rem); letter-spacing: -1px; color: #fff; line-height: 1; transition: color 0.3s var(--ease); }
.footer__email svg { flex: none; }
.footer__email:hover { color: var(--green); }
.footer__nav { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.footer__nav a { position: relative; width: fit-content; color: rgba(255,255,255,0.7); font-size: 1.05rem; padding: 8px 0; transition: color 0.3s var(--ease), padding-left 0.3s var(--ease); }
.footer__nav a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--green); transition: width 0.3s var(--ease); }
.footer__nav a:hover { color: #fff; padding-left: 26px; }
.footer__nav a:hover::before { width: 18px; }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 0 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer__brand { display: inline-flex; align-items: center; gap: 11px; }
.footer__brand .brand__mark { color: var(--green); display: inline-flex; }
.footer__brand .brand__text { display: inline-flex; flex-direction: column; line-height: 1; }
.footer__brand .brand__text b { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: #fff; letter-spacing: -0.5px; }
.footer__brand .brand__text i { font-style: normal; font-size: 0.52rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); margin-top: 2px; }
.footer__meta { color: rgba(255,255,255,0.45); font-size: 0.86rem; letter-spacing: 0.3px; }
.footer__top-link { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; color: rgba(255,255,255,0.7); font-family: inherit; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px; transition: color 0.3s; }
.footer__top-link:hover { color: var(--green); }
.footer__top-ic { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s, color 0.3s; }
.footer__top-link:hover .footer__top-ic { transform: translateY(-4px); border-color: var(--green); background: var(--green); color: var(--navy-deep); }

/* ============================================================
   THESIS + AUTHOR PAGE
   ============================================================ */
.btn__bullet--light { background: #fff; }
.thero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--navy); overflow: hidden; }
.thero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.thero__left { position: relative; z-index: 1; display: grid; place-items: center; }
.thero__ghost { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 300; font-size: clamp(6rem, 18vw, 18rem); color: rgba(255,255,255,0.05); letter-spacing: -6px; user-select: none; pointer-events: none; }
.thero__right { position: relative; z-index: 1; background: transparent; display: flex; align-items: center; padding: 8vw 6vw; }
.thero__content { max-width: 640px; }
.thero__eyebrow { color: var(--green); font-size: 1.05rem; font-weight: 600; margin-bottom: 28px; display: block; letter-spacing: 1px; }
.thero__quote { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; font-style: normal; line-height: 1.18; letter-spacing: -1px; color: #fff; }
.thero .btn { margin-top: 44px; }
.btn--navy { background: rgba(13,18,56,0.85); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
.btn--navy:hover { background: rgba(26,36,112,0.92); transform: translateY(-2px); }

.arch { background: #ffffff; }
.arch__title { text-align: center; font-style: normal; font-weight: 500; margin-bottom: 72px; }
.arch__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tcard { position: relative; overflow: hidden; min-height: 400px; background: #f1f2f4; border: 1px solid transparent; border-radius: 16px; padding: 38px 32px 64px; cursor: pointer; outline: none; transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease); will-change: transform; }
.tcard:hover, .tcard:focus-visible, .tcard.is-open { transform: translateY(-8px); background: #fff; border-color: rgba(46,224,106,0.4); box-shadow: 0 36px 60px -34px rgba(13,18,56,0.4); }
.tcard__ghost { position: absolute; right: 16px; bottom: -28px; font-family: var(--font-display); font-weight: 600; font-size: 12.5rem; line-height: 0.8; color: rgba(13,18,56,0.06); pointer-events: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.tcard:hover .tcard__ghost, .tcard:focus-visible .tcard__ghost, .tcard.is-open .tcard__ghost { opacity: 0; transform: translateY(12px); }
.tcard__icon { color: var(--green-deep); display: inline-flex; transition: transform 0.55s var(--ease); }
.tcard:hover .tcard__icon, .tcard:focus-visible .tcard__icon, .tcard.is-open .tcard__icon { transform: translateY(-4px) scale(1.05); }
.tcard__num { display: block; margin-top: 22px; font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; color: var(--green-deep); }
.tcard h3 { font-family: var(--font-display); font-size: 1.42rem; font-weight: 500; font-style: normal; line-height: 1.25; color: var(--navy); margin-top: 10px; max-width: 92%; position: relative; }
.tcard h3::after { content: ""; display: block; width: 38px; height: 3px; background: var(--green); margin-top: 18px; border-radius: 2px; transition: width 0.55s var(--ease), opacity 0.4s var(--ease); }
.tcard:hover h3::after, .tcard:focus-visible h3::after, .tcard.is-open h3::after { width: 0; opacity: 0; }
.tcard h3 span { font-weight: 400; color: var(--muted); transition: color 0.5s var(--ease); }
.tcard:hover h3 span, .tcard:focus-visible h3 span, .tcard.is-open h3 span { color: var(--navy); }
.tcard p { position: relative; margin-top: 18px; color: var(--muted); font-size: 1rem; line-height: var(--lh-body); opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.tcard:hover p, .tcard:focus-visible p, .tcard.is-open p { opacity: 1; transform: none; }
.tcard__hint { position: absolute; left: 32px; bottom: 28px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--green-deep); transition: opacity 0.4s var(--ease); }
.tcard__hint b { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; font-weight: 400; }
.tcard:hover .tcard__hint, .tcard:focus-visible .tcard__hint, .tcard.is-open .tcard__hint { opacity: 0; }

.fbio { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: #fff; align-items: stretch; }
.fbio__media { position: relative; overflow: hidden; min-height: 88vh; background: var(--navy-soft); }
.fbio__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(1.05); }
.fbio__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, #1b2db0, #0d1238); mix-blend-mode: color; opacity: 0.7; }
.fbio__media.media--fallback img { opacity: 0.3; }
.fbio__body { display: flex; flex-direction: column; justify-content: center; padding: 9vw 6vw; }
.fbio__name { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 300; line-height: 1.02; letter-spacing: -1px; color: #fff; margin: 18px 0 0; }
.fbio__text { color: rgba(255,255,255,0.82); font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: var(--lh-body); max-width: 620px; margin-top: 34px; }

.experience { background: #ffffff; }
.xp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 50px; }
.experience__title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 600; font-style: normal; color: var(--navy); letter-spacing: -1px; }
.xp__count { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.5px; color: var(--muted); padding-bottom: 8px; }

.xp { list-style: none; border-top: 1px solid var(--border); }
.xp__item { position: relative; display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 28px; padding: 30px 26px 30px 18px; border-bottom: 1px solid var(--border); cursor: default; overflow: hidden; transition: background 0.5s var(--ease); }
/* sliding green wash on hover */
.xp__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--green-dim), transparent); transition: width 0.55s var(--ease); z-index: 0; }
.xp__item:hover::before { width: 100%; }
/* left accent bar */
.xp__item::after { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 0; background: var(--green); transition: height 0.45s var(--ease); }
.xp__item:hover::after { height: 64%; }
.xp__item > * { position: relative; z-index: 1; }

.xp__n { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; color: var(--green-deep); transition: transform 0.5s var(--ease); }
.xp__item:hover .xp__n { transform: translateX(6px); }
.xp__main { min-width: 0; }
.xp__role { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.85rem); font-weight: 500; color: var(--navy); letter-spacing: -0.4px; line-height: 1.15; transition: transform 0.5s var(--ease); }
.xp__role em { font-style: normal; font-weight: 400; font-size: 0.6em; color: var(--green-deep); margin-left: 8px; letter-spacing: 1px; text-transform: uppercase; vertical-align: middle; }
.xp__item:hover .xp__role { transform: translateX(6px); }
.xp__org { display: block; margin-top: 6px; font-size: 1.02rem; color: var(--muted); transition: transform 0.5s var(--ease), color 0.4s; }
.xp__item:hover .xp__org { transform: translateX(6px); color: var(--ink); }
.xp__tag { justify-self: end; font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; transition: color 0.4s, border-color 0.4s, background 0.4s; }
.xp__item:hover .xp__tag { color: var(--green-deep); border-color: rgba(46,224,106,0.5); background: rgba(46,224,106,0.06); }
.xp__arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--navy); opacity: 0; transform: translateX(-10px) rotate(-15deg); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), background 0.4s, color 0.4s; }
.xp__item:hover .xp__arrow { opacity: 1; transform: translateX(0) rotate(0); background: var(--navy); color: #fff; }

.academic { background: #ffffff; }
.acard { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; background: #f1f2f4; border-radius: 22px; padding: 46px; }
.acard__media { aspect-ratio: 16/11; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg,#e7eaf2,#cfd6e8); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; }
.acard__media.media--fallback img { opacity: 0.3; }
.acard__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; font-style: normal; color: var(--navy); }
.acard__text { color: var(--muted); font-size: 1.12rem; line-height: 1.7; margin: 22px 0 34px; max-width: 560px; }

/* ============================================================
   BOOK PAGE
   ============================================================ */
.bhero { position: relative; background: var(--navy-deep); color: #fff; padding: 170px 0 110px; overflow: hidden; }
.bhero__glow { position: absolute; inset: 0; background: radial-gradient(50% 60% at 25% 30%, rgba(46,224,106,0.18), transparent 60%), radial-gradient(50% 60% at 90% 80%, rgba(26,36,112,0.6), transparent 70%); pointer-events: none; }
.bhero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.bhero__media { display: flex; justify-content: center; perspective: 1600px; }
.bhero__title { font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 300; line-height: 0.98; letter-spacing: -2px; }
.bhero__sub { font-family: var(--font-display); font-style: normal; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--green); margin-top: 16px; }
.bhero__author { color: rgba(255,255,255,0.78); margin-top: 18px; font-size: 1.1rem; }
.bhero__author strong { color: #fff; font-weight: 600; }
.bhero__desc { color: rgba(255,255,255,0.8); font-size: 1.12rem; max-width: 560px; margin-top: 24px; }
.bhero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.inside, .buy { background: #ffffff; }
.inside__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.inside__item { display: flex; gap: 28px; padding: 38px 0; border-top: 1px solid var(--border); }
.inside__item span { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--green-deep); min-width: 40px; }
.inside__item h3 { font-size: 1.5rem; font-weight: 400; font-style: normal; color: var(--navy); margin-bottom: 8px; }
.inside__item p { color: var(--muted); }

.excerpt__paper { max-width: 820px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 56px clamp(28px, 5vw, 64px); margin-bottom: 40px; }
.excerpt__paper p { color: rgba(255,255,255,0.82); font-size: 1.12rem; line-height: var(--lh-body); margin-bottom: 20px; }
.excerpt__lead { font-family: var(--font-display); font-style: normal; font-size: clamp(1.5rem, 3vw, 2.2rem) !important; color: #fff !important; line-height: 1.2 !important; margin-bottom: 28px !important; }
.excerpt__more { display: flex; flex-direction: column; gap: 20px; }
.excerpt__toggle { background: none; border: 0; color: var(--green); font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; padding: 6px 0; }
.excerpt__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.buy__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.buystore { display: flex; flex-direction: column; gap: 8px; padding: 34px 30px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.buystore:hover { transform: translateY(-8px); border-color: var(--green-deep); box-shadow: 0 30px 50px -30px rgba(13,18,56,0.35); }
.buystore__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.buystore__type { color: var(--muted); font-size: 0.9rem; }
.buystore__go { margin-top: 10px; color: var(--green-deep); font-weight: 600; }
.buy__note { margin-top: 24px; color: var(--muted-light); font-size: 0.86rem; }

/* More titles / the collection */
.series .section__head { margin-bottom: 64px; }
.series__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.bookcard { display: flex; flex-direction: column; }
.bookcard__stage { perspective: 1500px; display: flex; justify-content: center; padding: 16px 0 40px; transition: transform 0.55s var(--ease); }
.bookcard:hover .bookcard__stage { transform: translateY(-12px); }
.book3d--sm { width: 214px; }
.book3d--sm .book3d__title { font-size: 1.85rem; }
.book3d--sm .book3d__cover { padding: 28px 24px; }
.bookcard:nth-child(2) .book3d--sm { animation-delay: -2s; }
.bookcard:nth-child(3) .book3d--sm { animation-delay: -4s; }
.bookcard__meta { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; }
.bookcard__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); }
.bookcard__meta h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: #fff; line-height: 1.2; margin: 12px 0 8px; }
.bookcard__meta p { color: rgba(255,255,255,0.66); font-size: 1rem; }
.bookcard__link { display: inline-block; margin-top: 18px; color: var(--green); font-weight: 600; font-size: 0.95rem; transition: letter-spacing 0.3s var(--ease); }
.bookcard:hover .bookcard__link { letter-spacing: 0.6px; }

/* ---------- Library catalog + book detail pages ---------- */
.crumb { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.5); margin-bottom: 28px; }
.crumb a { color: rgba(255,255,255,0.72); transition: color 0.3s var(--ease); }
.crumb a:hover { color: var(--green); }
.crumb i { font-style: normal; opacity: 0.5; }
.crumb b { font-weight: 500; color: #fff; }

.libhero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; min-height: 100svh; display: flex; align-items: center; padding: 184px 0 96px; }
.libhero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 80% 20%, rgba(46,224,106,0.16), transparent 60%), radial-gradient(50% 60% at 5% 90%, rgba(26,36,112,0.55), transparent 70%); }
.libhero__inner { position: relative; z-index: 2; width: 100%; text-align: left; }
.libhero__title, .libhero__sub { max-width: 920px; }
.libhero__title { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 300; letter-spacing: -2px; line-height: 1.02; }
.libhero__sub { color: rgba(255,255,255,0.74); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: var(--lh-lead); max-width: 640px; margin-top: 26px; }

.libhero__title { font-size: clamp(3rem, 8.5vw, 6.2rem); font-weight: 300; letter-spacing: -2.5px; line-height: 0.98; }
.libhero .hl-green { color: var(--green); font-weight: 500; }
.libhero__sub { color: rgba(255,255,255,0.74); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: var(--lh-lead); max-width: 640px; margin-top: 26px; }

.library-page { background: var(--navy-deep); color: #fff; padding: 88px 0 130px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.catalog-grid .bookcard__stage { padding: 12px 0 30px; }
.catalog-grid .book3d--sm { width: 170px; }
.catalog-grid .book3d--sm .book3d__title { font-size: 1.5rem; }
.catalog-grid .book3d--sm .book3d__cover { padding: 22px 20px; }
.catalog-grid .bookcard__meta h3 { font-size: 1.2rem; }
.catalog-grid .bookcard__meta p { font-size: 0.95rem; }

/* Intelligence Library banner (journal/blog gateway) */
.libcta { background: var(--navy-deep); padding: 0 0 130px; }
.libcta__inner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 56px clamp(30px, 5vw, 70px); border-radius: 26px; background: linear-gradient(120deg, rgba(46,224,106,0.16), rgba(26,36,112,0.34) 60%, rgba(13,18,56,0.2)); border: 1px solid rgba(255,255,255,0.1); }
.libcta__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 80% at 90% 10%, rgba(46,224,106,0.18), transparent 60%); }
.libcta__body { position: relative; z-index: 1; }
.libcta__body h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 300; letter-spacing: -1px; color: #fff; margin-top: 14px; }
.libcta__body p { color: rgba(255,255,255,0.76); margin-top: 16px; max-width: 540px; font-size: 1.05rem; line-height: var(--lh-body); }
.libcta .btn { position: relative; z-index: 1; }

/* "More from the library" strip on a book page */
.morebooks { background: var(--navy-deep); color: #fff; }
.morebooks .section__head { margin-bottom: 50px; }
.morebooks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.morecard { display: flex; align-items: center; gap: 20px; padding: 22px; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; background: rgba(255,255,255,0.03); transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.morecard:hover { background: rgba(255,255,255,0.06); border-color: rgba(46,224,106,0.4); transform: translateY(-5px); }
.morecard__spine { flex: none; width: 46px; height: 66px; border-radius: 2px 5px 5px 2px; background: linear-gradient(135deg, #1a2470, #0c1138); border-left: 3px solid var(--green); }
.morecard h4 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 500; color: #fff; line-height: 1.2; }
.morecard span { color: rgba(255,255,255,0.55); font-size: 0.86rem; }

/* ============================================================
   INTELLIGENCE LIBRARY (journal · day / night)
   ============================================================ */
.journal-hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; padding: 184px 0 84px; }
.journal-hero__sky { position: absolute; inset: 0; pointer-events: none; }
.jh-sun { position: absolute; top: 6%; right: 8%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(46,224,106,0.22), transparent 60%); filter: blur(8px); transition: opacity 0.6s, background 0.6s; }
.jh-stars { position: absolute; inset: 0; transition: opacity 0.6s;
  background-image: radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,0.5), transparent), radial-gradient(1.4px 1.4px at 70% 20%, rgba(255,255,255,0.4), transparent), radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.4), transparent), radial-gradient(1.6px 1.6px at 85% 50%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 55% 80%, rgba(255,255,255,0.35), transparent), radial-gradient(1.2px 1.2px at 32% 78%, rgba(255,255,255,0.4), transparent); }
.journal-hero[data-mode="day"] .jh-stars { opacity: 0.12; }
.journal-hero[data-mode="day"] .jh-sun { background: radial-gradient(circle, rgba(46,224,106,0.42), transparent 62%); }
.journal-hero[data-mode="night"] .jh-sun { opacity: 0.22; }
.journal-hero__inner { position: relative; z-index: 2; }
.journal-hero__title { max-width: 920px; }
.jclock { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 8px 16px; border-radius: 100px; margin: 20px 0 26px; }
.jclock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse2 1.8s ease-out infinite; }
@keyframes pulse2 { 0% { box-shadow: 0 0 0 0 rgba(46,224,106,0.5); } 100% { box-shadow: 0 0 0 10px rgba(46,224,106,0); } }
.jclock__live { color: var(--green); }
.journal-hero__title { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 300; letter-spacing: -2px; line-height: 1.04; }
.journal-hero__sub { color: rgba(255,255,255,0.74); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: var(--lh-lead); max-width: 660px; margin-top: 24px; }
.journal-hero__sub strong { color: #fff; font-weight: 600; }

.journal { background: var(--navy-deep); color: #fff; padding: 20px 0 96px; }
.jbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.jfilter { display: inline-flex; gap: 4px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 100px; padding: 5px; }
.jfilter__btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: rgba(255,255,255,0.7); font-family: inherit; font-size: 0.92rem; font-weight: 500; padding: 9px 18px; border-radius: 100px; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s; }
.jfilter__btn:hover { color: #fff; }
.jfilter__btn.is-active { background: rgba(255,255,255,0.13); color: #fff; }
.jbar__count { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.jbar__count b { color: #fff; }
.jic { display: inline-block; width: 13px; height: 13px; }
.jic--sun { border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px rgba(46,224,106,0.28); }
.jic--moon { border-radius: 50%; background: transparent; box-shadow: inset -4px 0 0 0 #aeb8ff; }

.jfeatured { position: relative; overflow: hidden; display: block; border-radius: 20px; padding: 44px clamp(28px,4vw,56px); margin-bottom: 64px; border: 1px solid transparent; transition: background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.jfeatured--night { background: linear-gradient(150deg, #11173f, #0a0e2c); border-color: rgba(255,255,255,0.1); }
.jfeatured--day { background: #ffffff; border-color: rgba(13,18,56,0.08); box-shadow: 0 30px 64px -46px rgba(13,18,56,0.55); }
.jfeatured__stars { position: absolute; inset: 0; pointer-events: none; opacity: 1; transition: opacity 0.5s var(--ease); background-image: radial-gradient(1.4px 1.4px at 80% 20%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.4), transparent), radial-gradient(1.3px 1.3px at 70% 78%, rgba(255,255,255,0.4), transparent); }
.jfeatured--day .jfeatured__stars { opacity: 0; }
.jfeatured__body { position: relative; z-index: 1; }
.jfeatured__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 400; line-height: 1.18; margin: 16px 0 12px; transition: color 0.3s var(--ease); }
.jfeatured__excerpt { max-width: 760px; font-size: 1.05rem; }
.jfeatured--night .jfeatured__title { color: #fff; }
.jfeatured--night .jfeatured__excerpt { color: rgba(255,255,255,0.72); }
.jfeatured--night .jtime { color: rgba(255,255,255,0.55); }
.jfeatured--night .jtags { color: rgba(255,255,255,0.55); }
.jfeatured--night .jread { color: var(--green); }
.jfeatured--night:hover .jfeatured__title { color: var(--green); }
.jfeatured--day .jfeatured__title { color: var(--navy); }
.jfeatured--day .jfeatured__excerpt { color: var(--muted); }
.jfeatured--day .jtime { color: #5f7468; }
.jfeatured--day .jtags { color: var(--muted); }
.jfeatured--day .jread { color: var(--green-deep); }
.jfeatured--day:hover .jfeatured__title { color: var(--green-deep); }

.journal__h { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 30px; }

.timeline2 { position: relative; }
.timeline2__rail { position: absolute; left: 19px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; opacity: 0.55; background: linear-gradient(180deg, #2ee06a 0%, #2ee06a 42%, #5b6cff 100%); }
.jentry { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 28px; padding: 14px 0; }
.jentry.is-hidden { display: none; }
.jnode { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-deep); border: 1.5px solid; z-index: 1; }
.jnode--day { border-color: rgba(46,224,106,0.7); }
.jnode--night { border-color: rgba(124,139,255,0.7); }

.jcard { position: relative; display: block; border-radius: 16px; padding: 26px 30px; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.jcard:hover { transform: translateY(-4px); }
.jcard__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.jtype { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.jtype--day { color: var(--green-deep); }
.jtype--night { color: #aeb8ff; }
.jtime { font-size: 0.82rem; color: var(--muted); font-family: var(--font-mono); }
.jcard h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; line-height: 1.25; margin-bottom: 8px; transition: color 0.3s var(--ease); }
.jcard p { font-size: 1rem; }
.jcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.jtags { font-size: 0.8rem; letter-spacing: 0.5px; }
.jread { font-size: 0.85rem; font-weight: 600; }
.jcard--day { background: var(--paper); }
.jcard--day h3 { color: var(--navy); }
.jcard--day p { color: var(--muted); }
.jcard--day .jtime { color: #5f7468; }
.jcard--day .jtags { color: var(--muted); }
.jcard--day .jread { color: var(--green-deep); }
.jcard--day:hover { box-shadow: 0 24px 50px -28px rgba(0,0,0,0.5); }
.jcard--day:hover h3 { color: var(--green-deep); }
.jcard--night { overflow: hidden; background: linear-gradient(150deg, #101640, #0a0e2c); border: 1px solid rgba(255,255,255,0.08); }
.jcard__stars { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1.2px 1.2px at 85% 25%, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 92% 65%, rgba(255,255,255,0.4), transparent), radial-gradient(1.3px 1.3px at 75% 82%, rgba(255,255,255,0.35), transparent); }
.jcard--night h3, .jcard--night p, .jcard--night .jcard__top, .jcard--night .jcard__foot { position: relative; }
.jcard--night h3 { color: #fff; }
.jcard--night p { color: rgba(255,255,255,0.66); }
.jcard--night .jtags { color: rgba(255,255,255,0.55); }
.jcard--night .jread { color: var(--green); }
.jcard--night:hover { box-shadow: 0 24px 50px -28px rgba(0,0,0,0.7); }
.jcard--night:hover h3 { color: var(--green); }
.journal__empty { color: rgba(255,255,255,0.5); padding: 30px 0; }

/* Notes as image-preview cards (day = white, night = navy) */
.jgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.jgrid--pair { grid-template-columns: repeat(2, minmax(0, 400px)); }
.jpost { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; padding-bottom: 22px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.jpost.is-hidden { display: none; }
.jpost:hover { transform: translateY(-8px); }
.jpost__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; margin-bottom: 16px; }
.jpost__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.jpost:hover .jpost__media img { transform: scale(1.06); }
.jpost__media.img--fail { background: rgba(120,130,170,0.18); }
.jpost__badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 100px; font-size: 0.76rem; font-weight: 600; font-family: var(--font-mono); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.jpost__tag { padding: 0 24px; font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.jpost h3 { padding: 0 24px; margin: 10px 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 1.24rem; line-height: 1.25; transition: color 0.3s var(--ease); }
.jpost p { padding: 0 24px; font-size: 0.95rem; flex: 1; }
.jpost__more { padding: 0 24px; margin-top: 18px; font-weight: 600; font-size: 0.92rem; transition: letter-spacing 0.3s var(--ease); }
.jpost:hover .jpost__more { letter-spacing: 0.5px; }
/* Day = white */
.jpost--day { background: #ffffff; border: 1px solid rgba(13,18,56,0.06); }
.jpost--day .jpost__tag { color: var(--green-deep); }
.jpost--day h3 { color: var(--navy); }
.jpost--day p { color: var(--muted); }
.jpost--day .jpost__more { color: var(--green-deep); }
.jpost--day .jpost__badge { background: rgba(255,255,255,0.82); color: var(--green-deep); }
.jpost--day:hover { box-shadow: 0 32px 60px -34px rgba(0,0,0,0.5); }
.jpost--day:hover h3 { color: var(--green-deep); }
/* Night = navy */
.jpost--night { background: var(--navy); border: 1px solid rgba(255,255,255,0.08); }
.jpost--night .jpost__tag { color: var(--green); }
.jpost--night h3 { color: #fff; }
.jpost--night p { color: rgba(255,255,255,0.66); }
.jpost--night .jpost__more { color: var(--green); }
.jpost--night .jpost__badge { background: rgba(7,10,36,0.55); color: #cfd6ff; }
.jpost--night:hover { box-shadow: 0 32px 60px -34px rgba(0,0,0,0.7); }
.jpost--night:hover h3 { color: var(--green); }

/* Card / featured background tinted by the hour of publication */
.jpost[data-phase="dawn"] { background: linear-gradient(160deg, #eefaf1, #ddf3e4); border-color: rgba(22,196,90,0.2); }
.jpost[data-phase="day"]  { background: linear-gradient(160deg, #f6fdf9, #e8f6ed); border-color: rgba(22,196,90,0.14); }
.jpost[data-phase="dusk"] { background: linear-gradient(160deg, #161e52, #0d1238); border-color: rgba(90,108,255,0.2); }
.jpost[data-phase="night"]{ background: linear-gradient(160deg, #101640, #0a0e2c); }
.jpost[data-phase="late"] { background: linear-gradient(160deg, #0a0e2c, #05071a); }
.jfeatured[data-phase="dawn"] { background: linear-gradient(150deg, #eefaf1, #ddf3e4); border-color: rgba(22,196,90,0.22); }
.jfeatured[data-phase="day"]  { background: linear-gradient(150deg, #f6fdf9, #e8f6ed); border-color: rgba(22,196,90,0.16); box-shadow: 0 30px 64px -46px rgba(13,40,24,0.4); }
.jfeatured[data-phase="dusk"] { background: linear-gradient(150deg, #161e52, #0d1238); border-color: rgba(90,108,255,0.22); }
.jfeatured[data-phase="night"]{ background: linear-gradient(150deg, #11173f, #0a0e2c); }
.jfeatured[data-phase="late"] { background: linear-gradient(150deg, #0a0e2c, #05071a); }

.jsub { background: var(--navy-deep); padding-top: 48px; }
.jsub__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 50px clamp(30px,4vw,60px); border-radius: 22px; background: linear-gradient(120deg, rgba(46,224,106,0.14), rgba(124,139,255,0.12)); border: 1px solid rgba(255,255,255,0.1); }
.jsub__inner h2 { color: #fff; font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 12px; letter-spacing: -0.5px; }
.jsub__inner p { color: rgba(255,255,255,0.74); margin-top: 12px; }
.jsub__form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.jsub__form input { width: 100%; padding: 15px 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: #fff; font-family: inherit; font-size: 1rem; transition: border-color 0.25s; }
.jsub__form input::placeholder { color: rgba(255,255,255,0.5); }
.jsub__form input:focus { outline: none; border-color: var(--green); }

/* ============================================================
   JOURNAL — LIGHT / DARK PAGE TOGGLE
   Night-content cards (.jfeatured, .jpost--night) intentionally stay
   navy in both modes: that is the day/night *content* distinction.
   ============================================================ */
.journal-hero, .journal, .jsub, .jclock, .jfilter, .jfeatured,
.journal-hero__title, .journal-hero__sub, .jbar__count, .journal__h,
.jfilter__btn, .jpost--day { transition: background 0.5s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }

body.theme-light .journal-hero { background: #ffffff; color: var(--ink); }
body.theme-light .journal-hero__title { color: var(--ink); }
body.theme-light .journal-hero__sub { color: var(--muted); }
body.theme-light .journal-hero__sub strong { color: var(--ink); }
body.theme-light .journal-hero .jh-sun { opacity: 0.5; background: radial-gradient(circle, rgba(46,224,106,0.5), transparent 62%); }
body.theme-light .journal-hero .jh-stars { opacity: 0.05; }
body.theme-light .jclock { color: var(--muted); background: rgba(13,18,56,0.04); border-color: rgba(13,18,56,0.1); }

body.theme-light .journal { background: #ffffff; color: var(--ink); }
body.theme-light .jfilter { background: rgba(13,18,56,0.04); border-color: rgba(13,18,56,0.1); }
body.theme-light .jfilter__btn { color: var(--muted); }
body.theme-light .jfilter__btn:hover { color: var(--ink); }
body.theme-light .jfilter__btn.is-active { background: rgba(13,18,56,0.1); color: var(--ink); }
body.theme-light .jbar__count { color: var(--muted); }
body.theme-light .jbar__count b { color: var(--ink); }
body.theme-light .journal__h { color: var(--muted); }
body.theme-light .journal__empty { color: var(--muted); }
body.theme-light .jpost--day { border-color: rgba(13,18,56,0.1); box-shadow: 0 18px 44px -34px rgba(0,0,0,0.45); }

body.theme-light .jsub { background: #ffffff; }
body.theme-light .jsub__inner { background: linear-gradient(120deg, rgba(46,224,106,0.12), rgba(124,139,255,0.08)); border-color: rgba(13,18,56,0.08); box-shadow: 0 26px 60px -40px rgba(13,18,56,0.5); }
body.theme-light .jsub__inner .eyebrow--light { color: var(--green-deep); }
body.theme-light .jsub__inner h2 { color: var(--ink); }
body.theme-light .jsub__inner p { color: var(--muted); }
body.theme-light .jsub__form input { background: #fff; border-color: rgba(13,18,56,0.14); color: var(--ink); }
body.theme-light .jsub__form input::placeholder { color: var(--muted-light); }
body.theme-light .jsub__form input:focus { border-color: var(--green-deep); }
/* Footer stays dark in both modes — a deliberate grounding base for the page. */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .concepts__grid, .contact__grid, .book__inner, .bhero__inner, .fbio, .acard { grid-template-columns: 1fr; gap: 50px; }
  /* Concepts: pin the image to the top on mobile so it stays visible and
     keeps changing while the user scrolls the list beneath it. */
  .concepts__grid { display: block; }
  /* Pin the image as an opaque "shelf": its solid background fully hides the
     list scrolling up behind it, so no text shows through the image. */
  .concepts__media-col { position: sticky; top: 0; z-index: 4; margin-bottom: 30px; padding: 92px 0 14px; background: var(--paper); }
  .concepts__sticky { position: static; }
  .cmedia { aspect-ratio: 16/10; max-height: 30vh; }
  .missing__grid, .library__grid, .arch__grid, .inside__list, .buy__grid, .series__grid, .catalog-grid, .jgrid { grid-template-columns: 1fr 1fr; }
  .footer__main { grid-template-columns: 1fr; gap: 44px; }
  .fbio__media { min-height: 56vh; }
  .jsub__inner { grid-template-columns: 1fr; gap: 28px; }
  .book__badge { right: 4%; }
  .bhero__media { order: -1; }
}
@media (max-width: 720px) {
  .container { padding-inline: 22px; }
  .section { padding: 122px 0; }
  .statement { padding: 134px 0 112px; }
  .concepts { padding: 112px 0 128px; }
  .book { padding: 134px 0; }
  .nav__links { position: fixed; inset: 82px 14px auto 14px; flex-direction: column; gap: 2px; background: rgba(7,10,36,0.96); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; padding: 10px; transform: translateY(-130%); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s var(--ease); align-items: stretch; }
  .nav__links.open { transform: none; opacity: 1; }
  .nav__links a:not(.nav__cta) { padding: 12px 16px; border-radius: 12px; }
  .nav__has-sub { display: block; width: 100%; }
  .nav__sub-toggle { display: flex !important; justify-content: space-between; align-items: center; width: 100%; }
  .nav__caret { display: inline-block !important; position: relative; width: 9px; height: 9px; opacity: 0.85; transform: rotate(45deg); transition: transform 0.3s var(--ease); cursor: pointer; }
  .nav__caret::after { content: ""; position: absolute; inset: -16px -14px; }
  .nav__has-sub.is-open .nav__caret { transform: rotate(-135deg); }
  .nav__submenu { position: static; transform: none !important; opacity: 1 !important; visibility: visible !important; min-width: 0; margin: 0; padding: 0 0 0 12px; background: none; border: none; border-left: 1px solid rgba(255,255,255,0.14); border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease), margin 0.3s var(--ease); }
  .nav__has-sub.is-open .nav__submenu { max-height: 200px; margin: 2px 0 6px; }
  .nav__submenu::before { display: none; }
  .nav__submenu a { padding: 10px 14px !important; font-size: 0.86rem !important; }
  .nav__cta { justify-content: center; margin: 6px 0 0; padding: 12px 22px; }
  .nav__toggle { display: flex; }
  .hero__side { display: none; }
  /* Founder photo: centre Francesco so he isn't cropped on narrow screens */
  .founderteaser__media img { transform: none; object-position: 58% 22%; }
  .missing__grid, .library__grid, .arch__grid, .inside__list, .buy__grid, .series__grid, .catalog-grid, .jgrid, .morebooks__grid { grid-template-columns: 1fr; }
  .morecard { gap: 16px; padding: 16px 18px; }
  .morecard > div { min-width: 0; }
  .morecard h4 { font-size: 1.02rem; overflow-wrap: anywhere; }
  .form__row { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; align-items: flex-start; gap: 20px; }
  .libcta__inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 26px; }
  .thero { grid-template-columns: 1fr; }
  .thero__left { min-height: 36vh; }
  .xp__item { grid-template-columns: 36px 1fr; gap: 14px; padding: 22px 14px; }
  .xp__arrow { display: none; }
  .xp__tag { grid-column: 2; justify-self: start; margin-top: 12px; }
  .tcard { min-height: 0; padding: 28px 22px 26px; }
  .tcard__ghost, .tcard__hint { display: none; }
  .tcard p { opacity: 1 !important; transform: none !important; position: static; bottom: auto; margin-top: 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-up, .r-word__in, .r-block__in { opacity: 1 !important; transform: none !important; }
  .reveal-img { clip-path: none !important; }
  .cmedia__img { opacity: 1; }
  .cmedia__img:not(.is-active) { opacity: 0; }
  html { scroll-behavior: auto; }
  .loader { display: none; }
  body.loading { overflow: auto; height: auto; }
  .book3d { transform: rotateY(-18deg); }
}

/* ============================================================
   INTELLIGENCE LIBRARY — ARTICLE / READING VIEW
   A dark, technological long-form reading experience.
   ============================================================ */
.art { background: var(--navy-deep); color: rgba(255,255,255,0.86); }

/* Reading hero */
.art-hero { position: relative; overflow: hidden; padding: 172px 0 70px; background: radial-gradient(120% 90% at 50% -10%, #131a4a 0%, var(--navy-deep) 60%); }
.art-hero__grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(124,139,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(124,139,255,0.08) 1px, transparent 1px);
  background-size: 54px 54px; -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(80% 70% at 50% 0%, #000 0%, transparent 75%); }
.art-hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 82% 14%, rgba(46,224,106,0.16), transparent 60%); }
.art-hero__inner { position: relative; z-index: 2; }
.art-back { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.3px; color: rgba(255,255,255,0.6); margin-bottom: 26px; transition: color 0.3s var(--ease), gap 0.3s var(--ease); }
.art-back:hover { color: #fff; gap: 12px; }
.art-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); background: rgba(46,224,106,0.08); border: 1px solid rgba(46,224,106,0.2); padding: 8px 15px; border-radius: 100px; }
.art-kicker__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46,224,106,0.6); animation: pulse2 1.8s ease-out infinite; }
.art-title { font-family: var(--font-display); font-weight: 300; letter-spacing: -2.5px; line-height: 0.98; font-size: clamp(2.7rem, 7vw, 5.6rem); color: #fff; margin: 26px 0 0; max-width: 900px; }
.art-dek { font-size: clamp(1.15rem, 2.1vw, 1.5rem); line-height: var(--lh-lead); color: rgba(255,255,255,0.74); max-width: 720px; margin-top: 24px; font-weight: 300; }
.art-dek strong { color: #fff; font-weight: 500; }
.art-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.art-author { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-weight: 500; }
.art-author__badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(140deg, var(--green), #16c45a); color: var(--navy-deep); font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: -0.5px; }
.art-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.art-meta__mono { font-family: var(--font-mono); font-size: 0.84rem; }
.art-meta__tag { margin-left: auto; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 1px; color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.14); padding: 6px 12px; border-radius: 100px; }

/* Data strip */
.art-stats { border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.015); }
.art-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.art-stat { padding: 34px 26px; border-left: 1px solid rgba(255,255,255,0.07); }
.art-stat:first-child { border-left: 0; padding-left: 0; }
.art-stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -1px; color: #fff; line-height: 1; }
.art-stat span { display: block; margin-top: 10px; font-size: 0.86rem; color: rgba(255,255,255,0.55); line-height: 1.4; }

/* Body */
.art-body { padding: 70px 0 30px; }
.art-body__inner { max-width: 760px; }
.art-body p { font-size: 1.16rem; line-height: var(--lh-body); color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.art-body p em { font-style: italic; color: rgba(255,255,255,0.92); }
.art-body p strong { color: #fff; font-weight: 600; }
.art-mark { color: var(--green); }
.art-lead { font-size: 1.35rem !important; line-height: 1.65 !important; color: #fff !important; }
.art-lead::first-letter { float: left; font-family: var(--font-display); font-size: 4.6rem; line-height: 0.8; font-weight: 500; padding: 6px 16px 0 0; color: var(--green); }

/* Opening epigraph */
.art-epigraph { font-style: italic; font-weight: 300; font-size: clamp(1.15rem, 2.2vw, 1.55rem) !important; line-height: 1.45 !important; color: rgba(255,255,255,0.72) !important; border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); padding: 26px 0 !important; margin-bottom: 40px !important; }

/* Pull quote */
.art-pull { position: relative; margin: 56px 0; padding: 8px 0 8px 34px; border-left: 3px solid var(--green); }
.art-pull__label { display: block; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.art-pull p { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem) !important; line-height: 1.32 !important; font-weight: 300; color: #fff !important; margin: 0 !important; }

/* Section heads */
.art-section-head { margin: 64px 0 30px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.art-section-head__num { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 2px; color: var(--green); }
.art-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -1px; line-height: 1.12; color: #fff; margin-top: 12px; }
.art-section-head__hint { font-size: 0.92rem !important; color: rgba(255,255,255,0.5) !important; margin: 12px 0 0 !important; }

/* Signals accordion */
.signals { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.signal { border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)); overflow: hidden; transition: border-color 0.4s var(--ease), background 0.4s var(--ease); }
.signal:hover { border-color: rgba(46,224,106,0.32); }
.signal.is-open { border-color: rgba(46,224,106,0.42); background: linear-gradient(160deg, rgba(46,224,106,0.06), rgba(255,255,255,0.015)); }
.signal__head { width: 100%; display: flex; align-items: center; gap: 20px; padding: 24px 26px; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; color: #fff; }
.signal__num { font-family: var(--font-mono); font-size: 0.86rem; color: var(--green); flex: none; width: 26px; }
.signal__title { flex: 1; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.32rem); line-height: 1.25; letter-spacing: -0.3px; transition: color 0.3s var(--ease); }
.signal:hover .signal__title { color: var(--green); }
.signal__chev { position: relative; flex: none; width: 16px; height: 16px; }
.signal__chev::before, .signal__chev::after { content: ""; position: absolute; top: 50%; width: 9px; height: 2px; border-radius: 2px; background: var(--green); transition: transform 0.4s var(--ease); }
.signal__chev::before { left: 0; transform: rotate(45deg); }
.signal__chev::after { right: 0; transform: rotate(-45deg); }
.signal.is-open .signal__chev::before { transform: rotate(-45deg); }
.signal.is-open .signal__chev::after { transform: rotate(45deg); }
.signal__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.signal.is-open .signal__panel { grid-template-rows: 1fr; }
.signal__panel-in { overflow: hidden; }
.signal__panel-in > * { padding-left: 26px; padding-right: 26px; }
.signal__panel-in p { font-size: 1.06rem !important; line-height: 1.7 !important; color: rgba(255,255,255,0.74) !important; margin-bottom: 16px !important; }
.signal__read { display: flex; gap: 12px; align-items: baseline; padding-bottom: 26px !important; margin-bottom: 0 !important; color: #fff !important; font-weight: 500 !important; }
.signal__read-label { flex: none; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy-deep); background: var(--green); padding: 4px 9px; border-radius: 5px; transform: translateY(-1px); }

/* Patterns grid */
.patterns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pattern { position: relative; overflow: hidden; padding: 32px 30px 30px; border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; background: rgba(255,255,255,0.02); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease); }
.pattern:hover { transform: translateY(-5px); border-color: rgba(46,224,106,0.32); background: rgba(46,224,106,0.04); }
.pattern__ghost { position: absolute; top: -14px; right: 6px; font-family: var(--font-display); font-weight: 600; font-size: 6rem; line-height: 1; color: rgba(255,255,255,0.04); user-select: none; transition: color 0.4s var(--ease); }
.pattern:hover .pattern__ghost { color: rgba(46,224,106,0.1); }
.pattern__title { position: relative; font-family: var(--font-display); font-weight: 500; font-size: 1.32rem; letter-spacing: -0.4px; color: #fff; margin-bottom: 14px; }
.pattern p { position: relative; font-size: 1.02rem !important; line-height: 1.7 !important; color: rgba(255,255,255,0.72) !important; margin-bottom: 0 !important; }

/* Takeaways */
.takeaways { margin: 64px 0 40px; padding: 44px clamp(28px,4vw,48px); border-radius: 22px; background: linear-gradient(150deg, #11173f, #0a0e2c); border: 1px solid rgba(255,255,255,0.1); }
.takeaways__label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green); }
.takeaways__head h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.6px; color: #fff; margin: 12px 0 28px; }
.takeaways__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.takeaways__list li { position: relative; padding-left: 34px; font-size: 1.02rem; line-height: 1.5; color: rgba(255,255,255,0.82); }
.takeaways__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(46,224,106,0.14); }
.takeaways__list li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 10px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(40deg); }

/* Closing line + signature */
.art-close { font-family: var(--font-display); font-size: clamp(1.5rem, 3.2vw, 2.3rem) !important; font-weight: 300; line-height: 1.32 !important; color: #fff !important; margin: 48px 0 36px !important; }
.art-sign { display: inline-flex; align-items: center; gap: 12px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.5px; color: rgba(255,255,255,0.6); }
.art-sign__mark { color: var(--green); display: inline-flex; }

/* Article — data matrix (layered comparison tables) */
.art-matrix { list-style: none; margin: 40px 0; padding: 0; display: grid; gap: 14px; }
.art-matrix__item { position: relative; padding: 22px 24px; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: rgba(255,255,255,0.025); }
.art-matrix__item--accent { border-color: rgba(46,224,106,0.42); background: rgba(46,224,106,0.06); }
.art-matrix__k { display: block; font-family: var(--font-display); font-size: 1.18rem; font-weight: 500; color: #fff; letter-spacing: -0.2px; }
.art-matrix__v { margin: 9px 0 14px !important; font-size: 0.96rem !important; line-height: 1.55 !important; color: rgba(255,255,255,0.72) !important; }
.art-matrix__s { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--green); background: rgba(46,224,106,0.1); border: 1px solid rgba(46,224,106,0.26); padding: 5px 11px; border-radius: 999px; }

/* Article — board questions / numbered callouts */
.art-qlist { list-style: none; margin: 36px 0; padding: 0; display: grid; gap: 16px; counter-reset: aq; }
.art-qlist__item { position: relative; padding: 22px 24px 22px 66px; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; background: rgba(255,255,255,0.02); }
.art-qlist__item::before { counter-increment: aq; content: counter(aq, decimal-leading-zero); position: absolute; left: 24px; top: 23px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--green); }
.art-qlist__q { display: block; font-family: var(--font-display); font-size: 1.16rem; font-weight: 500; color: #fff; margin-bottom: 8px; letter-spacing: -0.2px; }
.art-qlist__item p { margin: 0 !important; font-size: 0.95rem !important; line-height: 1.55 !important; color: rgba(255,255,255,0.72) !important; }
@media (max-width: 680px) {
  .art-matrix__item, .art-qlist__item { padding: 18px 18px; }
  .art-qlist__item { padding-left: 18px; padding-top: 42px; }
  .art-qlist__item::before { top: 16px; left: 18px; }
}

/* More-entries gallery */
.art-more { padding: 26px 0 104px; }
.art-more__head { margin-bottom: 30px; }
.art-more__head .art-h2 { margin-top: 0; }
.art-more__grid { margin-top: 0; }

/* Back-to-journal CTA */
.art-next { padding: 0 0 110px; }
.art-next__inner { display: grid; grid-template-columns: 1.4fr auto; gap: 36px; align-items: center; padding: 44px clamp(28px,4vw,52px); border-radius: 22px; background: linear-gradient(120deg, rgba(46,224,106,0.12), rgba(124,139,255,0.1)); border: 1px solid rgba(255,255,255,0.1); }
.art-next__inner h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.6px; color: #fff; margin: 12px 0 10px; }
.art-next__inner p { color: rgba(255,255,255,0.74); }

/* ============================================================
   DAY NOTES — light reading view (white background)
   Applied to <main class="art art--day"> on day-written notes;
   night notes keep the default dark (blue) reading view.
   ============================================================ */
.art--day { background: #ffffff; color: var(--ink); }
.art--day .art-hero { background: radial-gradient(120% 90% at 50% -10%, #eef0fb 0%, #ffffff 62%); }
.art--day .art-hero__grid { background-image: linear-gradient(rgba(17,20,46,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(17,20,46,0.05) 1px, transparent 1px); }
.art--day .art-hero__glow { background: radial-gradient(40% 50% at 82% 14%, rgba(46,224,106,0.12), transparent 60%); }
.art--day .art-back { color: var(--muted); }
.art--day .art-back:hover { color: var(--ink); }
.art--day .art-kicker { color: var(--green-deep); background: rgba(46,224,106,0.1); border-color: rgba(46,224,106,0.32); }
.art--day .art-title { color: var(--ink); }
.art--day .art-dek { color: var(--muted); }
.art--day .art-dek strong { color: var(--ink); }
.art--day .art-meta { color: var(--muted); }
.art--day .art-author { color: var(--ink); }
.art--day .art-meta__dot { background: rgba(17,20,46,0.25); }
.art--day .art-meta__mono { color: var(--muted); }
.art--day .art-meta__tag { color: var(--muted); border-color: rgba(17,20,46,0.16); }
.art--day .art-body p { color: rgba(17,20,46,0.82); }
.art--day .art-body p em { color: var(--ink); }
.art--day .art-body p strong { color: var(--ink); }
.art--day .art-lead { color: var(--ink) !important; }
.art--day .art-epigraph { color: var(--muted) !important; border-color: rgba(17,20,46,0.14); }
.art--day .art-pull__label { color: var(--green-deep); }
.art--day .art-pull p { color: var(--ink) !important; }
.art--day .art-section-head { border-color: rgba(17,20,46,0.12); }
.art--day .art-section-head__num { color: var(--green-deep); }
.art--day .art-h2 { color: var(--ink); }
.art--day .art-section-head__hint { color: var(--muted) !important; }
.art--day .art-matrix__item { border-color: rgba(17,20,46,0.14); background: rgba(17,20,46,0.02); }
.art--day .art-matrix__item--accent { border-color: rgba(22,196,90,0.5); background: rgba(46,224,106,0.08); }
.art--day .art-matrix__k { color: var(--ink); }
.art--day .art-matrix__v { color: var(--muted) !important; }
.art--day .art-matrix__s { color: var(--green-deep); background: rgba(46,224,106,0.12); border-color: rgba(22,196,90,0.3); }
.art--day .art-qlist__item { border-color: rgba(17,20,46,0.12); background: rgba(17,20,46,0.015); }
.art--day .art-qlist__item::before { color: var(--green-deep); }
.art--day .art-qlist__q { color: var(--ink); }
.art--day .art-qlist__item p { color: var(--muted) !important; }
.art--day .art-close { color: var(--ink) !important; }
.art--day .art-sign { color: var(--muted); border-color: rgba(17,20,46,0.12); }
/* Data strip */
.art--day .art-stats { border-color: rgba(17,20,46,0.1); background: rgba(17,20,46,0.015); }
.art--day .art-stat { border-left-color: rgba(17,20,46,0.08); }
.art--day .art-stat b { color: var(--ink); }
.art--day .art-stat span { color: var(--muted); }
/* Signals accordion */
.art--day .signal { border-color: rgba(17,20,46,0.12); background: linear-gradient(160deg, rgba(17,20,46,0.04), rgba(17,20,46,0.015)); }
.art--day .signal:hover { border-color: rgba(22,196,90,0.4); }
.art--day .signal.is-open { border-color: rgba(22,196,90,0.5); background: linear-gradient(160deg, rgba(46,224,106,0.07), rgba(17,20,46,0.015)); }
.art--day .signal__head { color: var(--ink); }
.art--day .signal__panel-in p { color: var(--muted) !important; }
.art--day .signal__read { color: var(--ink) !important; }
/* Patterns */
.art--day .pattern { border-color: rgba(17,20,46,0.1); background: rgba(17,20,46,0.02); }
.art--day .pattern:hover { border-color: rgba(22,196,90,0.4); background: rgba(46,224,106,0.05); }
.art--day .pattern__ghost { color: rgba(17,20,46,0.05); }
.art--day .pattern:hover .pattern__ghost { color: rgba(46,224,106,0.12); }
.art--day .pattern__title { color: var(--ink); }
.art--day .pattern p { color: var(--muted) !important; }
/* Back-to-journal CTA on light */
.art--day .art-next__inner { background: linear-gradient(120deg, rgba(46,224,106,0.12), rgba(124,139,255,0.12)); border-color: rgba(17,20,46,0.1); }
.art--day .art-next__inner .eyebrow--light { color: var(--green-deep); }
.art--day .art-next__inner h2 { color: var(--ink); }
.art--day .art-next__inner p { color: var(--muted); }
/* Journal gallery cards on light */
.art--day .lcard h3 { color: var(--ink); }
.art--day .lcard p { color: var(--muted); }
.art--day .lcard__media { background: rgba(17,20,46,0.05); }
.art--day .lcard__media.img--fail { background: rgba(17,20,46,0.06); }

@media (max-width: 860px) {
  .art-stats__grid { grid-template-columns: 1fr 1fr; }
  .art-stat { padding: 26px 20px; }
  .art-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .art-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.07); }
  .patterns, .takeaways__list { grid-template-columns: 1fr; }
  .art-meta__tag { margin-left: 0; }
  .art-next__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   ARTICLE / JOURNAL — MOBILE-FIRST TUNING
   Most traffic is mobile: tighten spacing, scale type, keep
   tap targets generous and the reading column comfortable.
   ============================================================ */
@media (max-width: 600px) {
  /* Article hero */
  .art-hero { padding: 122px 0 44px; }
  .art-back { margin-bottom: 22px; }
  .art-kicker { font-size: 0.7rem; letter-spacing: 1px; padding: 7px 13px; }
  .art-title { letter-spacing: -1.4px; margin-top: 20px; }
  .art-dek { margin-top: 18px; }
  .art-meta { gap: 10px 12px; margin-top: 26px; font-size: 0.84rem; }
  .art-meta__tag { width: 100%; order: 5; }

  /* Data strip → single column rail */
  .art-stats__grid { grid-template-columns: 1fr 1fr; }
  .art-stat { padding: 22px 16px; }

  /* Reading column */
  .art-body { padding: 44px 0 20px; }
  .art-body p { font-size: 1.08rem; line-height: var(--lh-body); margin-bottom: 24px; }
  .art-lead { font-size: 1.2rem !important; line-height: 1.6 !important; }
  .art-lead::first-letter { font-size: 3.4rem; padding: 4px 12px 0 0; }
  .art-pull { margin: 42px 0; padding-left: 22px; }
  .art-section-head { margin: 48px 0 24px; }

  /* Signals — bigger tap target, tighter insets */
  .signal__head { gap: 14px; padding: 20px 18px; }
  .signal__num { width: 20px; font-size: 0.78rem; }
  .signal__panel-in > * { padding-left: 18px; padding-right: 18px; }
  .signal__panel-in p { font-size: 1rem !important; }
  .signal__read { flex-direction: column; gap: 8px; }
  .signal__read-label { align-self: flex-start; }

  /* Patterns */
  .pattern { padding: 26px 22px; }
  .pattern__ghost { font-size: 4.6rem; top: -8px; }

  /* Takeaways */
  .takeaways { margin: 48px 0 32px; padding: 32px 22px; }
  .takeaways__list { gap: 12px; }

  .art-close { margin: 38px 0 30px !important; }
  .art-sign { flex-wrap: wrap; font-size: 0.76rem; }
  .art-next { padding-bottom: 80px; }
  .art-next__inner { padding: 32px 24px; }

  /* Journal page tightening */
  .journal-hero { padding: 130px 0 56px; }
  .jbar { gap: 14px; margin-bottom: 32px; }
  .jfilter { width: 100%; justify-content: space-between; }
  .jfilter__btn { flex: 1; justify-content: center; padding: 11px 10px; }
  .jfeatured { padding: 30px 22px; margin-bottom: 44px; }
  .jgrid { gap: 22px; }
  .jsub__inner { padding: 34px 24px; }
}

/* ============================================================
   SAMPLE READER — in-page preview + soft email gate
   A premium light reading modal used by the book "Read the
   chapter" buttons; captures emails into The Velocity Edge (Kit).
   ============================================================ */
.reader { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 24px; }
.reader[hidden] { display: none; }
.reader [hidden] { display: none !important; }
.reader__backdrop { position: absolute; inset: 0; background: rgba(7,10,36,0.68); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); opacity: 0; transition: opacity 0.4s var(--ease); }
.reader.is-open .reader__backdrop { opacity: 1; }
.reader__panel { position: relative; width: min(680px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 44px 110px -34px rgba(0,0,0,0.65); overflow: hidden; transform: translateY(18px) scale(0.985); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.4s var(--ease); }
.reader.is-open .reader__panel { transform: none; opacity: 1; }
.reader__close { position: absolute; top: 14px; right: 16px; z-index: 4; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(17,20,46,0.06); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.3s var(--ease); }
.reader__close:hover { background: rgba(17,20,46,0.12); }
.reader__scroll { overflow-y: auto; padding: clamp(30px, 5vw, 54px); -webkit-overflow-scrolling: touch; }
.reader__eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green-deep); }
.reader__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -1px; line-height: 1.08; margin: 12px 0 6px; }
.reader__sub { color: var(--muted); font-size: 1.02rem; }
.reader__byline { display: block; margin-top: 14px; padding-bottom: 22px; border-bottom: 1px solid rgba(17,20,46,0.1); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.3px; color: var(--muted-light); }
.reader__chapter { margin: 26px 0 18px; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; letter-spacing: 0.2px; color: var(--ink); }
.reader__body p { font-size: 1.06rem; line-height: 1.75; color: rgba(17,20,46,0.82); margin: 0 0 18px; }
.reader__rest[hidden] { display: none; }
/* Soft gate */
.reader__gate { position: relative; margin: 0; padding: 90px clamp(20px,4vw,34px) 34px; border: 0; border-radius: 0; background: linear-gradient(to bottom, rgba(46,224,106,0.18) 0%, rgba(46,224,106,0.18) 38%, rgba(46,224,106,0.05) 82%, rgba(46,224,106,0) 100%); }
.reader__gate::before { content: ""; position: absolute; left: 0; right: 0; top: -150px; height: 150px; background: linear-gradient(to bottom, rgba(46,224,106,0) 0%, rgba(46,224,106,0.18) 100%); pointer-events: none; }
.reader__gate-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-deep); }
.reader__gate h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem,2.4vw,1.4rem); letter-spacing: -0.3px; line-height: 1.25; margin: 8px 0 6px; color: var(--ink); }
.reader__gate > p { color: var(--muted); font-size: 0.96rem; line-height: 1.5; margin-bottom: 18px; }
.reader__form { display: flex; gap: 10px; flex-wrap: wrap; }
.reader__input { flex: 1 1 220px; min-width: 0; padding: 13px 18px; border-radius: 100px; border: 1px solid rgba(17,20,46,0.18); background: #fff; font: inherit; font-size: 0.95rem; color: var(--ink); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.reader__input::placeholder { color: var(--muted-light); }
.reader__input:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 3px rgba(46,224,106,0.18); }
.reader__submit { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 0; border-radius: 100px; background: var(--green); color: var(--navy-deep); font-family: inherit; font-weight: 600; font-size: 0.94rem; cursor: pointer; box-shadow: 0 12px 28px -12px rgba(46,224,106,0.8); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.reader__submit:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(46,224,106,0.85); }
.reader__submit[disabled] { opacity: 0.6; cursor: default; transform: none; }
.reader__skip { display: inline-block; margin-top: 14px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 0.86rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color 0.3s var(--ease); }
.reader__skip:hover { color: var(--ink); }
.reader__msg { margin: 12px 0 0; font-size: 0.9rem; font-weight: 500; }
.reader__msg--ok { color: var(--green-deep); }
.reader__msg--err { color: #c0392b; }
.reader__gate--done { background: rgba(46,224,106,0.08); border-color: rgba(46,224,106,0.3); }
.reader__foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(17,20,46,0.1); display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; }
.reader__foot p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.reader__buy { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--green-deep); }
body.reader-open { overflow: hidden; }
@media (max-width: 560px) {
  .reader { padding: 0; align-items: flex-end; }
  .reader__panel { max-height: 92vh; border-radius: 20px 20px 0 0; width: 100%; }
  .reader__scroll { padding: 26px 16px 30px; }
  .reader__title { font-size: 1.55rem; }
  .reader__page { margin-bottom: 12px; }
  .reader__gate { padding: 72px 18px 26px; }
  .reader__gate::before { top: -120px; height: 120px; }
  .reader__submit { flex: 1 1 100%; justify-content: center; }
  .reader__close { top: 10px; right: 10px; }
}
/* Page-image preview (real book pages in the reader) */
.reader__page { display: block; width: 100%; height: auto; margin: 0 0 16px; border-radius: 10px; background: rgba(17,20,46,0.05); box-shadow: 0 14px 36px -20px rgba(0,0,0,0.45); }
.reader__rest .reader__page:last-child, .reader__body .reader__page:last-child { margin-bottom: 0; }

/* ============================================================
   SOCIAL LINK — LinkedIn (attraction marketing)
   ============================================================ */
.social-link { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.92); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; line-height: 1; white-space: nowrap; transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease); }
.social-link svg { flex: none; }
.social-link:hover { color: #fff; border-color: #4aa3ff; background: rgba(40,110,200,0.2); transform: translateY(-2px); }
.social-link--ink { border-color: rgba(17,20,46,0.18); color: var(--ink); }
.social-link--ink:hover { color: #0a66c2; border-color: #0a66c2; background: rgba(10,102,194,0.07); }
.footer__social { margin-top: 22px; }
.fbio__cta { margin-top: 26px; }
.founderteaser__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.founderteaser__links .reveal-up { margin: 0; }
.contact__social { margin-top: 18px; display: inline-flex; }
.jsub__social { margin-top: 18px; display: inline-flex; }
body.theme-light .jsub__social.social-link { border-color: rgba(13,18,56,0.18); color: var(--ink); }
body.theme-light .jsub__social.social-link:hover { color: #0a66c2; border-color: #0a66c2; background: rgba(10,102,194,0.07); }

/* ============================================================
   LANGUAGE SWITCHER (i18n)
   ============================================================ */
.lang-switch { display: inline-flex; gap: 2px; align-items: center; margin-left: 14px; padding: 3px; border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; }
.lang-switch__btn { font-family: var(--font-display, inherit); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.6px; color: rgba(255,255,255,0.6); background: none; border: 0; padding: 5px 10px; border-radius: 100px; cursor: pointer; line-height: 1; transition: color 0.25s var(--ease), background 0.25s var(--ease); }
.lang-switch__btn:hover { color: #fff; }
.lang-switch__btn.is-active { color: var(--navy-deep); background: var(--green); }
@media (max-width: 720px) {
  .lang-switch { margin: 8px 6px 2px; align-self: flex-start; }
}

/* <picture> wrappers (WebP + JPG fallback) must not affect layout:
   the inner <img> keeps behaving as a direct child of its container. */
picture { display: contents; }
