/* ============================================================
   HDG COMMUNITY — hdgcommunity.cloud
   Industrial dark theme · burnt orange + zinc green
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0D1117;
  --bg-1:      #11161F;   /* muted strip / alt section */
  --bg-2:      #161C27;   /* card base */
  --bg-3:      #1B2230;   /* raised card */
  --line:      #232C3A;

  --accent:    #E8630A;   /* burnt orange — overridable via tweaks */
  --accent-hot:#FF8A3D;   /* lighter glow */
  --accent-dim:#7c3a10;
  --zinc:      #C8D8A8;   /* zinc green */
  --zinc-dim:  rgba(200,216,168,0.22);

  --text:      #E7EBF1;
  --text-2:    #AEB7C5;
  --text-3:    #79828F;

  --font-display: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', system-ui, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --sec-pad: clamp(72px, 10vh, 128px);

  --r:  10px;
  --r-lg: 16px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
:root[data-motion="off"] html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* fine industrial grain overlay over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: calc(0.05 * var(--grain, 1));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zinc);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  color: var(--text);
  text-wrap: balance;
}
.sec-title .hl { color: var(--accent); }

.lead {
  color: var(--text-2);
  font-size: 1.12rem;
  max-width: 60ch;
  text-wrap: pretty;
}

.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent);
  color: #1a0c02;
  box-shadow: 0 8px 28px -10px var(--accent);
}
.btn-primary:hover { background: var(--accent-hot); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--zinc); color: #fff; transform: translateY(-2px); }
:root[data-motion="off"] .btn:hover { transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,17,23,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(13,17,23,0.92); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.logo .mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 7px;
  font-size: 1.05rem;
  letter-spacing: 0;
}
.logo .hl { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 9px 13px;
  border-radius: 8px;
  transition: color .15s var(--ease), background .15s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-cta { margin-left: 6px; }
.nav-cta .btn { padding: 11px 20px; }

.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  width: 42px; height: 42px;
  place-items: center;
}
.menu-btn svg { width: 22px; height: 22px; }

/* logo images */
.logo-img { height: 38px; width: auto; flex: 0 0 auto; aspect-ratio: 1300 / 379; display: block; }
.footer .logo img { height: 80px; width: auto; flex: 0 0 auto; aspect-ratio: 1312 / 633; display: block; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: clamp(80px, 12vh, 150px);
  padding-bottom: clamp(80px, 12vh, 150px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background: #0D1117 url("assets/hero-beam.jpg") center right / cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(95deg, var(--bg) 0%, rgba(13,17,23,0.88) 30%, rgba(13,17,23,0.55) 62%, rgba(13,17,23,0.40) 100%),
    linear-gradient(180deg, rgba(13,17,23,0.55) 0%, transparent 24%, transparent 52%, var(--bg) 100%);
}

/* --- Direction: MOLTEN (default) --- */
:root[data-direction="molten"] .hero-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(120% 95% at 50% 122%, rgba(232,99,10,0.40) 0%, rgba(232,99,10,0.12) 30%, transparent 60%),
    radial-gradient(80% 60% at 82% 4%, rgba(200,216,168,0.06) 0%, transparent 55%);
}
:root[data-direction="molten"] .hero-bg::after {
  content: "";
  position: absolute; inset: -20%; z-index: 2;
  background:
    radial-gradient(40% 30% at 30% 80%, rgba(255,138,61,0.16), transparent 70%),
    radial-gradient(35% 28% at 70% 90%, rgba(232,99,10,0.15), transparent 70%);
  filter: blur(20px);
  animation: heatPulse 9s ease-in-out infinite;
}
@keyframes heatPulse {
  0%,100% { transform: translateY(0) scale(1); opacity: .85; }
  50%     { transform: translateY(-3%) scale(1.04); opacity: 1; }
}

/* --- Direction: STEEL --- */
:root[data-direction="steel"] .hero-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(90deg, rgba(200,216,168,0.05) 0 1px, transparent 1px 3px);
}
/* blueprint grid + spangle crystal sheen */
:root[data-direction="steel"] .hero-bg::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(rgba(200,216,168,0.06) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(200,216,168,0.06) 1px, transparent 1px) 0 0 / 64px 100%,
    radial-gradient(60% 50% at 50% 35%, rgba(232,99,10,0.14), transparent 62%);
  mask-image: radial-gradient(120% 100% at 50% 30%, #000 35%, transparent 85%);
}
/* slow shimmer sweep for steel */
:root[data-direction="steel"] .hero-shimmer {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(105deg, transparent 38%, rgba(200,216,168,0.10) 50%, transparent 62%);
  transform: translateX(-30%);
  animation: sheen 11s linear infinite;
}
:root[data-direction="molten"] .hero-shimmer { display: none; }
@keyframes sheen {
  0%   { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}
:root[data-motion="off"] .hero-bg::after,
:root[data-motion="off"] .hero-shimmer { animation: none; }

.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--zinc-dim);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zinc);
  margin-bottom: 28px;
  background: rgba(200,216,168,0.04);
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232,99,10,0.18); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); }
.hero .sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  letter-spacing: 0.04em;
  color: var(--zinc);
  margin-top: 22px;
}
.hero .sub span { color: var(--text-3); margin-inline: 8px; }
.hero .body {
  margin-top: 24px;
  font-size: 1.16rem;
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.hero-tertiary { color: var(--text-2); font-weight: 600; font-size: .95rem; padding: 10px 6px; }
.hero-tertiary:hover { color: var(--accent-hot); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 36px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.hero-stat .n {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--text);
  line-height: 1;
}
.hero-stat .n .u { color: var(--accent); }
.hero-stat .l { font-size: 0.82rem; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 6px; }

/* =========================================================
   WHAT IS HDG
   ========================================================= */
.whatis { padding-block: var(--sec-pad); }
.whatis-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: start;
}
.whatis-def p { color: var(--text-2); font-size: 1.16rem; margin-top: 26px; text-wrap: pretty; }
.whatis-def .drop { color: var(--text); }
.whatis-def .temp {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--zinc);
  display: inline-flex; align-items: center; gap: 12px;
}
.whatis-def .temp svg { width: 22px; height: 22px; color: var(--accent); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--zinc-dim);
  border-radius: var(--r);
  padding: 26px 24px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--zinc); background: var(--bg-3); }
:root[data-motion="off"] .stat-card:hover { transform: none; }
.stat-card .big {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 0.95;
  color: var(--accent);
}
.stat-card .big small { font-size: 1.3rem; color: var(--text); letter-spacing: 0.02em; }
.stat-card .desc { color: var(--text-2); font-size: 0.96rem; margin-top: 12px; }

/* =========================================================
   PROCESS — 14 STEPS / 4 PHASES
   ========================================================= */
.process { padding-block: var(--sec-pad); background: var(--bg-1); border-block: 1px solid var(--line); }
.phases { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 56px); }
.phase { --pc: var(--accent); }
.phase-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.phase-idx {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--pc);
  letter-spacing: 0.02em;
}
.phase-meta { display: flex; flex-direction: column; flex: 0 0 auto; }
.phase-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.phase-range { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
.phase-rule { flex: 1; height: 2px; background: linear-gradient(90deg, var(--pc), transparent); border-radius: 2px; opacity: .7; }

.pstep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 16px;
}
.pstep {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px 22px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.pstep.in { opacity: 1; transform: none; }
:root[data-motion="off"] .pstep { opacity: 1; transform: none; }
.pstep::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--pc);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.pstep:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pc), transparent 55%); background: var(--bg-3); }
:root[data-motion="off"] .pstep:hover { transform: none; }
.pstep:hover::before { transform: scaleX(1); }
.pstep-top { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.pstep-ic {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--pc), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--pc), transparent 62%);
  color: var(--pc);
}
.pstep-ic svg { width: 22px; height: 22px; }
.pstep-n {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-3);
  margin-left: auto;
  letter-spacing: 0.02em;
}
.pstep h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.02;
}
.pstep p { font-size: 0.9rem; color: var(--text-3); margin-top: 9px; text-wrap: pretty; line-height: 1.5; }

/* =========================================================
   KNOWLEDGE PILLARS
   ========================================================= */
.pillars { padding-block: var(--sec-pad); }
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pillar {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); border-color: #2c3848; background: var(--bg-3); }
.pillar:hover::before { transform: scaleX(1); }
:root[data-motion="off"] .pillar:hover { transform: none; }
.pillar-ic {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(232,99,10,0.10);
  border: 1px solid rgba(232,99,10,0.28);
  color: var(--accent);
  margin-bottom: 22px;
}
.pillar-ic svg { width: 26px; height: 26px; }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.pillar p { color: var(--text-2); margin-top: 12px; font-size: 1rem; text-wrap: pretty; }
.tag-pill {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--zinc);
  background: rgba(200,216,168,0.07);
  border: 1px solid var(--zinc-dim);
}

/* =========================================================
   STANDARDS STRIP
   ========================================================= */
.standards { background: var(--bg-1); padding-block: clamp(48px, 7vh, 80px); border-block: 1px solid var(--line); }
.standards-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.standards-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.02em;
}
.standards-head span { color: var(--text-3); font-size: 0.92rem; }
.std-track {
  display: flex; gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.std-track::-webkit-scrollbar { height: 6px; }
.std-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.std-pill {
  flex: 0 0 auto;
  padding: 12px 22px;
  border: 1px solid rgba(232,99,10,0.4);
  border-radius: 999px;
  color: var(--zinc);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  background: rgba(232,99,10,0.05);
  white-space: nowrap;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.std-pill:hover { border-color: var(--accent); background: rgba(232,99,10,0.14); color: #fff; }

/* =========================================================
   COMMUNITY
   ========================================================= */
.community { padding-block: var(--sec-pad); }
.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.comm-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.comm-card:hover { transform: translateY(-4px); border-color: #2c3848; }
:root[data-motion="off"] .comm-card:hover { transform: none; }
.comm-logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: #fff;
}
.comm-logo svg { width: 30px; height: 30px; }
.comm-logo.li { background: #0A66C2; }
.comm-logo.fb { background: #1877F2; }
.comm-logo.yt { background: #FF0000; }
.comm-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
}
.comm-card p { color: var(--text-2); margin-top: 12px; flex: 1; }
.comm-card .btn { margin-top: 26px; align-self: flex-start; }

/* =========================================================
   FEATURED ARTICLES
   ========================================================= */
.articles { padding-block: var(--sec-pad); background: var(--bg-1); border-block: 1px solid var(--line); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article {
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--zinc-dim);
  border-radius: 4px var(--r) var(--r) 4px;
  padding: 30px 28px;
  transition: transform .2s var(--ease), border-left-color .2s var(--ease), background .2s var(--ease);
}
.article:hover { transform: translateY(-4px); border-left-color: var(--zinc); background: var(--bg-3); }
:root[data-motion="off"] .article:hover { transform: none; }
.article .a-tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a0c02;
  background: var(--accent);
  margin-bottom: 18px;
}
.article h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--text);
  text-wrap: balance;
}
.article p { color: var(--text-2); font-size: 0.97rem; margin-top: 14px; flex: 1; text-wrap: pretty; }
.article .more {
  margin-top: 22px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 7px;
  transition: gap .18s var(--ease);
}
.article:hover .more { gap: 12px; }

/* =========================================================
   THE BOOK
   ========================================================= */
.book { padding-block: var(--sec-pad); overflow: hidden; position: relative; }
.book-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.book-cover-wrap { perspective: 1400px; display: grid; place-items: center; }
.book-cover {
  width: min(310px, 80%);
  aspect-ratio: 5 / 7;
  background: linear-gradient(150deg, #161c27 0%, #0c1016 100%);
  border: 1px solid var(--line);
  border-radius: 5px 12px 12px 5px;
  border-left: 6px solid var(--accent);
  box-shadow: -22px 30px 60px -20px rgba(0,0,0,0.7), inset 0 0 60px rgba(0,0,0,0.4);
  padding: 38px 30px;
  display: flex;
  flex-direction: column;
  transform: rotateY(-16deg) rotateX(3deg);
  transition: transform .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.book-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 50% at 50% 110%, rgba(232,99,10,0.18), transparent 60%);
}
.book-cover:hover { transform: rotateY(-8deg) rotateX(2deg); }
:root[data-motion="off"] .book-cover { transform: none; }
.book-cover .bc-kicker { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--zinc); }
.book-cover .bc-rule { width: 44px; height: 3px; background: var(--zinc); margin: 16px 0 auto; }
.book-cover .bc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.book-cover .bc-sub { font-size: 0.8rem; color: var(--text-3); margin-top: 14px; letter-spacing: 0.04em; }

.book-meta { display: flex; flex-direction: column; }
.book-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zinc);
  background: rgba(200,216,168,0.07);
  border: 1px solid var(--zinc-dim);
  margin-bottom: 22px;
}
.book-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.book h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.book .b-sub { color: var(--text-2); font-size: 1.12rem; margin-top: 18px; max-width: 56ch; text-wrap: pretty; }
.book-chapters {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--zinc);
  margin-top: 26px;
}
.book-chapters span { color: var(--text-3); margin-inline: 10px; }
.aud-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.aud-tags span {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.notify {
  display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
  max-width: 520px;
}
.notify input {
  flex: 1; min-width: 220px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .18s var(--ease);
}
.notify input::placeholder { color: var(--text-3); }
.notify input:focus { outline: none; border-color: var(--accent); }

/* =========================================================
   START WITH YOUR ROLE — free-first homepage entry points
   ========================================================= */
.roles { padding-block: clamp(56px, 8vh, 96px) 0; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.role-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.role-card:hover { border-color: var(--zinc-dim); transform: translateY(-3px); }
:root[data-motion="off"] .role-card:hover { transform: none; }
.role-card.featured { border-color: var(--accent-dim); }
.role-card.featured:hover { border-color: var(--accent); }
.role-ic { font-size: 1.9rem; line-height: 1; margin-bottom: 14px; }
.role-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: var(--text);
  line-height: 1.1;
}
.role-card > p { color: var(--zinc); font-size: .92rem; margin: 8px 0 16px; line-height: 1.45; }
.role-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.role-card li a {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--text-2); font-size: .93rem; font-weight: 600;
  transition: color .15s var(--ease);
}
.role-card li a::before { content: "→"; color: var(--accent); font-weight: 400; }
.role-card li a:hover { color: #fff; }
.role-card .lock {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text-3); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px;
}
.role-card .lock svg { width: 10px; height: 10px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #0a0d12; border-top: 1px solid var(--line); padding-top: clamp(56px, 8vh, 88px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer .logo { margin-bottom: 16px; }
.footer-tag { color: var(--text-3); max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-3); font-size: 0.96rem; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-domain { color: var(--zinc); font-weight: 600; letter-spacing: 0.02em; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: all .18s var(--ease);
}
.footer-social a svg { width: 19px; height: 19px; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { color: var(--text-3); font-size: 0.88rem; }
.footer-bottom .credit { color: var(--text-3); font-style: italic; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .pstep-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .whatis-grid { grid-template-columns: 1fr; gap: 44px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; gap: 48px; }
  .book-cover-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .pstep-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-bottom { flex-direction: column; }
}

/* ---- Membership auth nav ---- */
.nav-auth { display: flex; align-items: center; gap: 16px; margin-left: 6px; }
.nav-auth .member-link { font-size: 0.92rem; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color .15s var(--ease); }
.nav-auth .member-link:hover { color: #fff; }
.nav-auth .member-link.solo { color: var(--text); font-weight: 600; }
.nav-auth .greet { font-size: 0.92rem; color: var(--zinc); white-space: nowrap; }
.auth-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); border-radius: 999px; padding: 9px 18px;
  font-weight: 600; font-size: 0.92rem; box-shadow: 0 8px 28px -12px var(--accent);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.auth-pill:hover { background: var(--accent-hot); transform: translateY(-1px); }
.auth-pill a { color: #1a0c02; white-space: nowrap; }
.auth-pill .sep { color: #1a0c02; opacity: .4; }
.btn-signout {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 0.92rem;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.btn-signout:hover { border-color: var(--accent); color: #fff; }
.m-auth { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
@media (max-width: 900px) { .nav-auth { display: none; } }

/* mobile menu drawer */
.m-menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  padding: 90px var(--pad) 40px;
  gap: 4px;
}
.m-menu.open { display: flex; }
.m-menu a { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.03em; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-menu a:hover { color: var(--accent); }
.m-menu .btn { margin-top: 24px; justify-content: center; }
.m-close { position: absolute; top: 22px; right: var(--pad); background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--text); width: 42px; height: 42px; display: grid; place-items: center; }
.m-close svg { width: 22px; height: 22px; }
