/* ============================================================
   JayAldebert.com - Shared Pillar Page Stylesheet
   Design system copied from index.html + pillar-specific components
   ============================================================ */
:root {
  --black: #0A0A0A;
  --true-black: #000000;
  --gray: #2A2A2A;
  --gold: #C9A961;
  --gold-bright: #D4AF37;
  --cream: #F5F1E8;
  --blue: #5FA8D3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.serif { font-family: 'Playfair Display', Georgia, serif; }
.garamond { font-family: 'Cormorant Garamond', Georgia, serif; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.wrap-wide { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.wrap-read { max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.label {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ============ FIXED VIDEO LAYER ============ */
#bgVideo {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover; z-index: -2; background: #000;
}
#bgPoster {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: url('brand/hero-poster-wide.jpg') center center / cover no-repeat;
  z-index: -2; display: none;
}
#bgOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.66);
  z-index: -1; pointer-events: none;
}
#bgOverlay::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 72%, rgba(0,0,0,0.65) 100%);
}
.layer { position: relative; z-index: 1; }

/* film grain */
body::before {
  content: ""; position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
  pointer-events: none; transition: opacity .4s ease;
}
.nav.scrolled {
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(201,169,97,0.18);
}
.nav.scrolled::before { opacity: 0; }
.nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .name { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; color: var(--cream); }
.wordmark .rule { height: 1px; width: 100%; background: var(--gold); margin-top: 5px; opacity: 0.85; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.navlink { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--cream); opacity: 0.86; transition: color .2s, opacity .2s; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.nav-links a.navlink:hover { color: var(--gold); opacity: 1; }
.nav-links a.navlink.active { color: var(--gold); opacity: 1; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.pill {
  display: inline-block; background: var(--gold); color: var(--black);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 11px 22px; border-radius: 999px;
  transition: background .25s, transform .25s;
}
.pill:hover { background: var(--gold-bright); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); cursor: pointer; }

/* ============ BREADCRUMB ============ */
.crumb { font-size: 0.78rem; letter-spacing: 0.04em; opacity: 0.62; margin-bottom: 22px; }
.crumb a { color: var(--gold); opacity: 0.9; }
.crumb a:hover { color: var(--gold-bright); }
.crumb .sep { margin: 0 8px; opacity: 0.5; }

/* ============ PILLAR HERO ============ */
.p-hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  padding: 150px 0 90px;
}
.p-hero-card {
  background: rgba(6,6,6,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201,169,97,0.2);
  border-radius: 12px;
  padding: clamp(34px, 5vw, 64px);
  max-width: 900px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.p-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin: 20px 0 22px;
  color: var(--cream);
  text-wrap: balance;
}
.p-hero h1 .accent { color: var(--gold-bright); }
.p-hero .subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--cream); opacity: 0.9;
  font-weight: 300; line-height: 1.5;
  max-width: 640px;
}
.p-hero .subtitle strong { color: var(--gold); font-weight: 600; }

/* ============ ARTICLE BODY ============ */
.article {
  position: relative; z-index: 1;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(201,169,97,0.14);
}
.article-inner { max-width: 860px; margin: 0 auto; padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 48px) clamp(50px, 7vw, 90px); }

.definition {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.5;
  color: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 26px;
  margin-bottom: 8px;
}
.definition strong { color: var(--gold); font-weight: 600; }

.article h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 62px 0 22px;
  text-wrap: balance;
}
.article h2 .num-tick {
  color: var(--gold); font-size: 0.62em; font-weight: 600;
  display: block; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 8px;
}
.article h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600; line-height: 1.22;
  margin: 38px 0 14px; color: var(--cream);
}
.article p {
  font-size: 1.06rem; line-height: 1.78;
  color: var(--cream); opacity: 0.9;
  margin-bottom: 20px; font-weight: 300;
}
.article p strong { color: var(--gold); font-weight: 600; opacity: 1; }
.article a.inline { color: var(--gold); border-bottom: 1px solid rgba(201,169,97,0.4); transition: color .2s, border-color .2s; }
.article a.inline:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.article ul, .article ol { margin: 0 0 24px 4px; padding-left: 26px; }
.article li { font-size: 1.04rem; line-height: 1.7; opacity: 0.9; margin-bottom: 12px; font-weight: 300; }
.article li strong { color: var(--gold); font-weight: 600; opacity: 1; }
.gold-rule { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); border: 0; margin: 22px 0 20px; max-width: 220px; }

/* numbered step list */
.steps { list-style: none; padding: 0; margin: 26px 0 30px; counter-reset: step; }
.steps > li {
  position: relative; padding: 22px 24px 22px 74px;
  margin-bottom: 16px; counter-increment: step;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(201,169,97,0.16);
  border-radius: 8px; font-weight: 300;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 22px; top: 20px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem;
  color: var(--black); background: var(--gold); border-radius: 50%;
}
.steps > li strong { color: var(--gold); font-weight: 700; opacity: 1; }

/* worked example / callout box */
.callout {
  background: rgba(34,32,28,0.7);
  border: 1px solid rgba(201,169,97,0.28);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 28px 30px;
  margin: 30px 0;
}
.callout .callout-label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; display: block; margin-bottom: 14px; }
.callout p { margin-bottom: 10px; }
.calc-line { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid rgba(245,241,232,0.08); font-size: 1rem; }
.calc-line:last-child { border-bottom: 0; }
.calc-line .v { color: var(--gold); font-weight: 600; font-family: 'Playfair Display', serif; white-space: nowrap; }
.calc-line.total { border-top: 1px solid rgba(201,169,97,0.4); margin-top: 6px; padding-top: 14px; font-size: 1.1rem; }
.calc-line.total span:first-child { font-weight: 600; color: var(--cream); }
.calc-line.total .v { font-size: 1.3rem; }

/* pull quote in-body */
.pquote {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.34; color: var(--gold);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 26px; margin: 40px 0;
  text-wrap: balance;
}

/* compare table */
.compare {
  width: 100%; border-collapse: collapse; margin: 26px 0 30px;
  background: rgba(0,0,0,0.35); border-radius: 8px; overflow: hidden;
}
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid rgba(245,241,232,0.08); font-size: 0.98rem; }
.compare th { font-family: 'Playfair Display', serif; color: var(--gold); font-weight: 600; letter-spacing: 0.02em; background: rgba(201,169,97,0.06); }
.compare td { opacity: 0.88; font-weight: 300; vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--cream); font-weight: 500; opacity: 1; }

/* diagram: layer stack */
.stack { margin: 30px auto; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.stack .row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 22px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(201,169,97,0.9), rgba(138,114,55,0.75));
  color: var(--black); font-weight: 600;
}
.stack .row .rn { font-family: 'Playfair Display', serif; font-weight: 800; opacity: 0.6; }
.stack .row.l1 { width: 100%; }
.stack .row.l2 { width: 90%; align-self: center; opacity: 0.94; }
.stack .row.l3 { width: 80%; align-self: center; opacity: 0.88; }
.stack .row.l4 { width: 70%; align-self: center; opacity: 0.82; }
.stack .row.l5 { width: 60%; align-self: center; opacity: 0.76; }

/* ============ FAQ ============ */
.faq { margin-top: 20px; }
.faq-item {
  border: 1px solid rgba(201,169,97,0.16);
  border-radius: 8px; margin-bottom: 14px;
  background: rgba(0,0,0,0.35); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 26px; font-family: 'Playfair Display', serif;
  font-size: 1.12rem; font-weight: 600; color: var(--cream);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary .chev { color: var(--gold); transition: transform .3s; flex-shrink: 0; font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 26px 24px; }
.faq-item .faq-a p { font-size: 1.02rem; opacity: 0.86; margin-bottom: 0; font-weight: 300; }

/* ============ SEE ALSO ============ */
.seealso { border-top: 1px solid rgba(201,169,97,0.2); margin-top: 60px; padding-top: 46px; }
.seealso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.sa-card {
  background: linear-gradient(180deg, rgba(42,42,42,0.5), rgba(14,14,14,0.7));
  border: 1px solid rgba(201,169,97,0.16); border-radius: 8px;
  padding: 24px 22px; transition: border-color .3s, transform .3s;
  display: flex; flex-direction: column;
}
.sa-card:hover { border-color: rgba(201,169,97,0.5); transform: translateY(-3px); }
.sa-card .sa-acr { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.sa-card h4 { font-family: 'Playfair Display', serif; font-size: 1.12rem; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.sa-card p { font-size: 0.86rem; opacity: 0.74; line-height: 1.5; margin-bottom: 14px; font-weight: 300; }
.sa-card .sa-link { margin-top: auto; font-size: 0.8rem; color: var(--gold); letter-spacing: 0.03em; }
.sa-card:hover .sa-link { color: var(--gold-bright); }

/* ============ AUTHOR BOX ============ */
.author-box {
  display: flex; gap: 24px; align-items: center;
  border: 1px solid rgba(201,169,97,0.2);
  background: rgba(34,32,28,0.6); border-radius: 10px;
  padding: 26px 28px; margin-top: 52px;
}
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(201,169,97,0.4); flex-shrink: 0; }
.author-box .by { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.author-box h4 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.author-box p { font-size: 0.92rem; opacity: 0.82; line-height: 1.55; margin-bottom: 8px; font-weight: 300; }
.author-box a { color: var(--gold); font-size: 0.85rem; border-bottom: 1px solid rgba(201,169,97,0.4); }
.author-box a:hover { color: var(--gold-bright); }

/* ============ CTA BAND ============ */
.cta-band {
  position: relative; z-index: 1;
  text-align: center;
  padding: clamp(70px, 10vw, 110px) 0;
  background:
    linear-gradient(rgba(0,0,0,0.74), rgba(0,0,0,0.84)),
    url('brand/2b-banner-panoramic.jpg') center / cover no-repeat;
  border-top: 1px solid rgba(201,169,97,0.15);
  border-bottom: 1px solid rgba(201,169,97,0.15);
}
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; color: var(--gold); margin-bottom: 16px; }
.cta-band p { font-size: 1.12rem; opacity: 0.88; font-weight: 300; max-width: 560px; margin: 0 auto 34px; }
.btn-gold {
  display: inline-block; background: var(--gold); color: var(--black);
  font-weight: 600; letter-spacing: 0.04em; font-size: 0.98rem;
  padding: 16px 38px; border-radius: 4px;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 8px 30px rgba(201,169,97,0.28);
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 38px rgba(201,169,97,0.4); }
.btn-outline {
  display: inline-block; border: 1px solid var(--gold); color: var(--gold);
  padding: 15px 30px; border-radius: 4px; font-size: 0.95rem;
  letter-spacing: 0.04em; font-weight: 500; transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* ============ FOOTER ============ */
footer { background: var(--true-black); padding: 70px 0 40px; border-top: 1px solid rgba(201,169,97,0.15); position: relative; z-index: 1; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot-left .name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600; margin-bottom: 4px; }
.foot-left .frule { height: 1px; width: 70px; background: var(--gold); margin: 8px 0 14px; }
.foot-left .tag { font-size: 0.92rem; color: var(--gold); letter-spacing: 0.04em; margin-bottom: 12px; }
.foot-left .meta { font-size: 0.8rem; opacity: 0.55; line-height: 1.8; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 420px; }
.foot-nav a { font-size: 0.85rem; opacity: 0.75; transition: color .2s, opacity .2s; }
.foot-nav a:hover { color: var(--gold); opacity: 1; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(201,169,97,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .25s, border-color .25s, transform .25s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.socials a:hover svg { fill: var(--black); }
.socials svg { width: 17px; height: 17px; fill: var(--gold); transition: fill .25s; }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(245,241,232,0.08); text-align: center; font-size: 0.82rem; opacity: 0.6; }
.foot-bottom a { color: var(--gold); }
.foot-bottom .sep { opacity: 0.4; margin: 0 8px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* seven lies specific */
.book-hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: center; margin: 20px 0 10px; }
.book-hero img { width: 100%; max-width: 380px; border-radius: 6px; box-shadow: -22px 30px 66px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,169,97,0.12); transform: perspective(1400px) rotateY(-9deg); }
.lie-list { list-style: none; padding: 0; margin: 26px 0 30px; counter-reset: lie; }
.lie-list li {
  counter-increment: lie; position: relative;
  padding: 16px 20px 16px 68px; margin-bottom: 12px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(201,169,97,0.16);
  border-radius: 8px; font-family: 'Playfair Display', serif;
  font-size: 1.12rem; font-weight: 600; color: var(--cream);
}
.lie-list li::before {
  content: counter(lie); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.05rem;
  color: var(--gold); border: 1px solid rgba(201,169,97,0.5); border-radius: 50%;
}
.lie-list li.revealed { border-color: rgba(201,169,97,0.5); background: rgba(34,32,28,0.7); }
.lie-list li.revealed::before { background: var(--gold); color: var(--black); border-color: var(--gold); }
.lie-list li .rtag { display: block; font-family: 'Inter', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 6px; }
.optin { margin-top: 24px; background: rgba(0,0,0,0.4); border: 1px solid rgba(201,169,97,0.25); border-radius: 8px; padding: 26px 28px; }
.optin p { font-weight: 600; margin-bottom: 14px; font-size: 1.05rem; color: var(--cream); opacity: 1; }
.optin form { display: flex; gap: 12px; flex-wrap: wrap; }
.optin input[type=email] { flex: 1; min-width: 220px; background: rgba(0,0,0,0.5); border: 1px solid rgba(245,241,232,0.2); color: var(--cream); padding: 14px 16px; border-radius: 4px; font-size: 0.95rem; font-family: inherit; }
.optin input[type=email]::placeholder { color: rgba(245,241,232,0.4); }
.optin input[type=email]:focus { outline: none; border-color: var(--gold); }

/* RTO shield */
.shield-figure { float: right; width: 200px; margin: 6px 0 24px 32px; }
.shield-figure img { width: 100%; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.6)); }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  #bgVideo { display: none; }
  #bgPoster { display: block; animation: slowzoom 25s ease-in-out infinite alternate; }
}
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.14); } }

@media (prefers-reduced-motion: reduce) {
  #bgVideo { display: none; }
  #bgPoster { display: block; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .seealso-grid { grid-template-columns: repeat(2, 1fr); }
  .book-hero { grid-template-columns: 1fr; }
  .book-hero img { transform: none; max-width: 300px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,10,0.98); backdrop-filter: blur(14px);
    padding: 26px 32px 34px; gap: 22px;
    border-bottom: 1px solid rgba(201,169,97,0.2); align-items: flex-start;
  }
  .nav-toggle { display: block; }
  .seealso-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; align-items: center; }
  .compare th, .compare td { padding: 12px 12px; font-size: 0.88rem; }
  .shield-figure { float: none; width: 150px; margin: 0 auto 20px; }
  .calc-line { font-size: 0.92rem; }
}
