/* ============================================================
   HERITAGE GHOSTWRITERS - DEEP INK THEME
   Master frontend stylesheet
   ------------------------------------------------------------
   Source of truth  : Index-blue.html (locked demo)
   Version          : 2.0 (full demo alignment, Session 13)
   Master file      : resources/css/theme.css
   Deploy target    : public/css/frontend/theme.css
   ------------------------------------------------------------
   Brand invariant  : gold = clickable. Every interactive
                      element (button, link, hover, focus,
                      active) uses --gold.
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root{
  /* Backgrounds - deep teal-navy, three depths */
  --ink:#0A1B26;
  --surface:#122633;
  --surface-2:#1A3444;
  --surface-3:#234556;

  /* Teal accent - for hovers, glows, interactive highlights */
  --teal-glow:#2F6B85;
  --teal-bright:#4A8CA8;

  /* Warm gold - primary accent (all clickable), tuned for teal */
  --gold:#D4A94A;
  --gold-bright:#E6BE5F;
  --gold-dark:#B08A38;

  /* Text - ivory manuscript, blue-tinted muted */
  --cream:#F7F1E1;
  --text:#EAE4D2;
  --muted:#7A94A2;

  /* Lines and borders */
  --line:#1A3140;
  --line-bright:#2A4A5C;

  /* Fonts and layout */
  --serif:'Playfair Display',Georgia,serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --wrap:1240px;
  --pad:clamp(20px,4vw,48px);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--ink);
  color:var(--text);
  font-family:var(--sans);
  font-weight:300;
  line-height:1.6;
  font-size:16px;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;background:none;border:0;color:inherit}


/* ============================================================
   3. ATMOSPHERIC OVERLAY (paper-grain noise)
   Fixed, non-interactive, GPU-friendly. Barely visible.
   ============================================================ */
body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:0.35;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='1' seed='4'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.11  0 0 0 0 0.16  0 0 0 0.5 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}


/* ============================================================
   4. LAYOUT PRIMITIVES
   ============================================================ */
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}
.section{padding:clamp(70px,10vw,140px) 0}
.section-head{max-width:720px;margin-bottom:70px}
.section-head p{font-size:17px;line-height:1.7;margin-top:16px}

/* Alternating section depth (subtle) */
.section:nth-of-type(even){
  background:linear-gradient(180deg,var(--surface) 0%,var(--ink) 100%);
}


/* ============================================================
   5. TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4{
  font-family:var(--serif);
  color:var(--cream);
  font-weight:400;
  line-height:1.15;
  letter-spacing:-0.01em;
}
h1{font-size:clamp(38px,6.5vw,76px)}
h2{font-size:clamp(30px,4.5vw,54px);margin-bottom:20px}
h3{font-size:clamp(22px,2.6vw,32px)}
h4{font-size:20px}
p{color:var(--text);opacity:0.85}


/* ============================================================
   6. SIGNATURES - Chapter numerals & Eyebrow
   ============================================================ */
.chapter{
  font-family:var(--serif);
  font-size:12px;
  letter-spacing:0.3em;
  text-transform:uppercase;
  font-weight:500;
  background:linear-gradient(90deg,var(--gold-dark) 0%,var(--gold-bright) 50%,var(--gold-dark) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  color:transparent;
}
.eyebrow{
  font-family:var(--serif);
  font-style:italic;
  color:var(--gold);
  font-size:14px;
  letter-spacing:0.08em;
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}
.eyebrow::before,.eyebrow::after{
  content:'';
  width:32px;
  height:1px;
  background:var(--gold);
  opacity:0.5;
}


/* ============================================================
   7. BUTTONS (3 variants + arrow child)
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 26px;
  font-family:var(--sans);
  font-size:12px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  border:1.5px solid transparent;
  border-radius:3px;
  transition:all 0.3s ease;
  cursor:pointer;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(180deg,var(--gold-bright) 0%,var(--gold) 100%);
  color:var(--ink);
  border-color:var(--gold);
  box-shadow:0 4px 14px rgba(212,169,74,0.15);
}
.btn-primary:hover{
  background:linear-gradient(180deg,var(--gold-bright) 0%,var(--gold-bright) 100%);
  border-color:var(--gold-bright);
  transform:translateY(-2px);
  box-shadow:0 8px 26px rgba(212,169,74,0.32);
}
.btn-outline{
  border-color:var(--gold);
  color:var(--gold);
  background:transparent;
}
.btn-outline:hover{
  background:var(--gold);
  color:var(--ink);
  box-shadow:0 0 0 4px rgba(212,169,74,0.10);
}
.btn-ghost{
  color:var(--cream);
  border-color:var(--line-bright);
  background:transparent;
}
.btn-ghost:hover{
  border-color:var(--gold);
  color:var(--gold);
  box-shadow:0 0 0 4px rgba(212,169,74,0.06);
}
.arrow{transition:transform 0.3s}
.btn:hover .arrow{transform:translateX(4px)}


/* ============================================================
   8. FORM INPUTS (frontend forms only; teal-tinted with gold focus)
   ============================================================ */
input,textarea,select{
  background:var(--surface) !important;
  border:1px solid var(--line-bright) !important;
  color:var(--cream) !important;
  transition:border-color .2s ease,box-shadow .2s ease;
}
input:focus,textarea:focus,select:focus{
  border-color:var(--gold) !important;
  box-shadow:0 0 0 3px rgba(212,169,74,0.12) !important;
  outline:none;
}


/* ============================================================
   9. ANNOUNCEMENT BAR
   ============================================================ */
.announce{
  background:var(--ink);
  color:var(--muted);
  font-size:12px;
  letter-spacing:0.1em;
  text-align:center;
  padding:10px 20px;
  border-bottom:1px solid var(--line);
}
.announce strong{color:var(--gold);font-weight:500}


/* ============================================================
   10. HEADER + NAV
   ============================================================ */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(10,27,38,0.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 0;
  gap:30px;
}
.logo{
  font-family:var(--serif);
  font-size:24px;
  color:var(--cream);
  letter-spacing:-0.01em;
  line-height:1;
  display:flex;
  flex-direction:column;
}
.logo em{
  font-style:italic;
  color:var(--gold);
  font-weight:400;
}
.logo small{
  font-family:var(--sans);
  font-size:9px;
  letter-spacing:0.35em;
  color:var(--muted);
  text-transform:uppercase;
  margin-top:4px;
  font-weight:500;
}
.nav-menu{
  display:flex;
  align-items:center;
  gap:34px;
  list-style:none;
}
.nav-menu > li{position:relative}
.nav-menu a{
  font-size:13px;
  font-weight:400;
  color:var(--text);
  letter-spacing:0.06em;
  transition:color 0.2s;
  padding:8px 0;
  display:flex;
  align-items:center;
  gap:5px;
}
.nav-menu a:hover{color:var(--gold)}

/* Nav underline sweep on hover (top-level only) */
.nav-menu > li > a{position:relative}
.nav-menu > li > a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:2px;
  width:0;
  height:1px;
  background:var(--gold);
  transition:width .3s ease;
}
.nav-menu > li > a:hover::after{width:100%}

/* Dropdown chevron (thin, not diamond) */
.nav-menu .has-drop::after{
  content:'';
  width:6px;
  height:6px;
  border-right:1.5px solid var(--muted);
  border-bottom:1.5px solid var(--muted);
  transform:rotate(45deg);
  margin-left:2px;
  margin-top:-4px;
  transition:border-color .2s ease;
}
.nav-menu .has-drop:hover::after{
  border-right-color:var(--gold);
  border-bottom-color:var(--gold);
}
/* No underline sweep on parent items that have dropdowns */
.nav-menu > li.has-drop-parent > a::after,
.nav-menu > li > a.has-drop::after{
  display:none;
}

/* Dropdown menu */
.dropdown{
  position:absolute;
  top:100%;
  left:-16px;
  min-width:240px;
  background:var(--surface);
  border:1px solid var(--line-bright);
  padding:10px 0;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:all 0.25s;
  list-style:none;
}
.nav-menu > li:hover .dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown a{
  padding:11px 22px;
  display:block;
  border-left:2px solid transparent;
}
.dropdown a:hover{
  background:var(--surface-2);
  border-left-color:var(--gold);
  color:var(--gold);
}

/* Nav CTA cluster (member login + primary + burger) */
.nav-cta{display:flex;align-items:center;gap:14px}
.member-login{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  border:1.5px solid var(--gold);
  color:var(--cream);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  border-radius:3px;
  transition:all 0.25s;
  white-space:nowrap;
}
.member-login:hover{
  background:var(--gold);
  color:var(--ink);
}
.member-login .arrow{color:var(--gold);transition:all 0.25s}
.member-login:hover .arrow{color:var(--ink)}


/* ============================================================
   11. MOBILE MENU (burger + drawer)
   ============================================================ */
.burger{display:none;width:32px;height:32px;flex-direction:column;justify-content:center;gap:5px}
.burger span{display:block;width:24px;height:1.5px;background:var(--cream);transition:0.3s}
.burger.open span:nth-child(1){transform:translateY(6.5px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg)}

.mobile-drawer{
  position:fixed;
  top:0;
  right:-100%;
  width:min(340px,85vw);
  height:100vh;
  background:var(--surface);
  border-left:1px solid var(--line-bright);
  padding:100px 30px 40px;
  z-index:99;
  transition:right 0.4s ease;
  overflow-y:auto;
}
.mobile-drawer.open{right:0}
.mobile-drawer ul{list-style:none;margin-bottom:30px}
.mobile-drawer li{border-bottom:1px solid var(--line);}
.mobile-drawer a{
  display:block;
  padding:16px 0;
  color:var(--text);
  font-size:15px;
  letter-spacing:0.05em;
}
.mobile-drawer a:hover{color:var(--gold)}
.mobile-drawer .member-login{
  width:100%;
  justify-content:center;
  margin-top:20px;
}


/* ============================================================
   12. WELCOME MODAL
   ============================================================ */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(6,19,28,0.9);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  z-index:200;
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:40px 20px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  animation:fadeIn 0.4s ease;
}
.modal-backdrop.show{display:flex}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal{
  background:var(--surface);
  border:1px solid var(--line-bright);
  border-radius:6px;
  max-width:720px;
  width:100%;
  margin:auto;
  padding:clamp(30px,5vw,60px);
  position:relative;
  animation:slideUp 0.5s ease;
}
@keyframes slideUp{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}
.modal-close{
  position:sticky;
  top:0;
  margin-left:auto;
  margin-bottom:-36px;
  width:40px;
  height:40px;
  background:var(--surface);
  border:1px solid var(--line-bright);
  color:var(--cream);
  font-size:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:0.25s;
  z-index:5;
  cursor:pointer;
}
.modal-close:hover{border-color:var(--gold);color:var(--gold);transform:rotate(90deg)}
.modal .eyebrow{margin-bottom:16px}
.modal h2{font-size:clamp(26px,3.5vw,38px);margin-bottom:14px}
.modal-lead{font-size:15px;color:var(--muted);margin-bottom:32px;line-height:1.7}
.modal-paths{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.path-card{
  padding:28px 24px;
  background:var(--surface-2);
  border:1px solid var(--line-bright);
  border-radius:4px;
  text-align:left;
  transition:all 0.3s;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  min-height:200px;
}
.path-card:hover{
  border-color:var(--gold);
  transform:translateY(-3px);
  background:var(--surface);
}
.path-icon{
  width:44px;
  height:44px;
  border:1px solid var(--gold);
  color:var(--gold);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--serif);
  font-style:italic;
  font-size:22px;
  margin-bottom:20px;
  border-radius:50%;
}
.path-card h4{color:var(--cream);font-size:19px;margin-bottom:10px}
.path-card p{font-size:13px;line-height:1.6;color:var(--muted);flex:1}
.path-card .arrow-line{
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--line-bright);
  color:var(--gold);
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:500;
  display:flex;
  align-items:center;
  gap:8px;
  transition:0.25s;
}
.path-card:hover .arrow-line{gap:14px}
.modal-skip{
  margin-top:22px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
  letter-spacing:0.1em;
}
.modal-skip a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}


/* ============================================================
   13. HERO
   Layered "light across still water" gradients + 3-book stack
   ============================================================ */
.hero{
  padding:clamp(70px,10vw,130px) 0 clamp(80px,11vw,140px);
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(ellipse at 25% 15%,rgba(74,140,168,0.18) 0%,transparent 50%),
    radial-gradient(ellipse at 75% 85%,rgba(47,107,133,0.22) 0%,transparent 55%),
    linear-gradient(180deg,var(--surface) 0%,var(--ink) 100%);
}
.hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 80% 30%,rgba(212,169,74,0.08),transparent 55%),
    radial-gradient(circle at 15% 85%,rgba(212,169,74,0.04),transparent 50%);
  pointer-events:none;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:60px;
  align-items:center;
  position:relative;
}
.hero-copy .eyebrow{margin-bottom:26px}
.hero-copy h1{margin-bottom:26px}
.hero-copy h1 em{
  font-style:italic;
  color:var(--gold);
  font-weight:400;
}
.hero-lead{
  font-size:18px;
  line-height:1.7;
  max-width:520px;
  color:var(--text);
  opacity:0.9;
  margin-bottom:38px;
}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-meta{
  margin-top:52px;
  padding-top:32px;
  border-top:1px solid var(--line);
  display:flex;
  gap:44px;
  flex-wrap:wrap;
}
.hero-meta-item .num{
  font-family:var(--serif);
  font-size:34px;
  color:var(--gold);
  line-height:1;
  margin-bottom:6px;
}
.hero-meta-item .lbl{
  font-size:11px;
  letter-spacing:0.16em;
  color:var(--muted);
  text-transform:uppercase;
}

/* Hero visual - 3 rotated books that splay on hover */
.hero-visual{
  position:relative;
  width:100%;
  max-width:480px;
  margin-left:auto;
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.book-stack{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-book{
  position:absolute;
  aspect-ratio:2/3;
  width:56%;
  border-radius:3px;
  padding:34px 26px 30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-align:center;
  transition:transform 0.6s cubic-bezier(0.3,0,0.2,1);
  box-shadow:0 30px 60px rgba(0,0,0,0.55),0 10px 20px rgba(0,0,0,0.35);
  border:1px solid rgba(212,169,74,0.15);
}
.hero-book::before{
  content:'';
  position:absolute;
  top:16px;left:16px;right:16px;bottom:16px;
  border:1px solid var(--gold);
  opacity:0.45;
  border-radius:1px;
  pointer-events:none;
}
.hero-book::after{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:6px;
  background:linear-gradient(to right,rgba(0,0,0,0.45),transparent);
  border-radius:3px 0 0 3px;
  pointer-events:none;
}
.hero-book-1{
  background:linear-gradient(160deg,#1E4257 0%,#0E2130 100%);
  transform:rotate(-8deg) translate(-22%,4%);
  z-index:1;
}
.hero-book-2{
  background:linear-gradient(160deg,#173A50 0%,#0C1E2C 100%);
  transform:rotate(4deg) translate(20%,-2%);
  z-index:2;
}
.hero-book-3{
  background:linear-gradient(160deg,#20465C 0%,#10253A 100%);
  transform:rotate(-2deg) translate(0,0);
  z-index:3;
}
.book-stack:hover .hero-book-1{transform:rotate(-11deg) translate(-26%,4%)}
.book-stack:hover .hero-book-2{transform:rotate(7deg) translate(24%,-2%)}
.book-stack:hover .hero-book-3{transform:rotate(-2deg) translate(0,-6px)}
.hero-book-eyebrow{
  font-family:var(--sans);
  font-size:8px;
  letter-spacing:0.3em;
  color:var(--gold);
  text-transform:uppercase;
  font-weight:500;
}
.hero-book-title{
  font-family:var(--serif);
  color:var(--cream);
  font-size:17px;
  line-height:1.2;
  font-weight:500;
  padding:8px 4px;
}
.hero-book-title em{font-style:italic;color:var(--gold);display:block;font-size:14px;margin-top:6px}
.hero-book-crest{
  font-family:var(--serif);
  font-style:italic;
  color:var(--gold);
  font-size:11px;
  letter-spacing:0.2em;
  opacity:0.85;
}
.hero-book-line{
  width:24px;
  height:1px;
  background:var(--gold);
  margin:6px auto;
  opacity:0.6;
}


/* ============================================================
   14. SERVICE PATHS (Chapter I - two service cards)
   ============================================================ */
.paths{background:var(--ink);position:relative}
.paths-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}
.service-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:4px;
  padding:clamp(30px,4vw,50px);
  transition:all 0.4s;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.service-card::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:2px;
  background:var(--gold);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.5s;
}
.service-card:hover::before{transform:scaleX(1)}
.service-card:hover{
  border-color:var(--line-bright);
  transform:translateY(-4px);
}
.service-num{
  font-family:var(--serif);
  font-style:italic;
  color:var(--gold);
  font-size:15px;
  margin-bottom:20px;
  letter-spacing:0.1em;
}
.service-card h3{margin-bottom:18px}
.service-card > p{
  font-size:15px;
  line-height:1.75;
  margin-bottom:26px;
  flex:1;
}
.service-features{
  list-style:none;
  margin-bottom:32px;
  padding-top:24px;
  border-top:1px solid var(--line);
}
.service-features li{
  padding:8px 0 8px 22px;
  position:relative;
  font-size:14px;
  color:var(--text);
}
.service-features li::before{
  content:'';
  position:absolute;
  left:0;
  top:15px;
  width:10px;
  height:1px;
  background:var(--gold);
}


/* ============================================================
   15. PROCESS STEPS (Chapter II - 5-step row)
   ============================================================ */
.process{
  background:var(--surface);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.steps{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px;
  position:relative;
}
.steps::before{
  content:'';
  position:absolute;
  top:26px;
  left:5%;
  right:5%;
  height:1px;
  background:linear-gradient(to right,transparent,var(--gold-dark) 20%,var(--gold-dark) 80%,transparent);
  opacity:0.4;
  z-index:0;
}
.step{
  text-align:center;
  position:relative;
  z-index:1;
}
.step-num{
  width:52px;
  height:52px;
  border-radius:50%;
  background:var(--surface);
  border:1.5px solid var(--gold);
  color:var(--gold);
  font-family:var(--serif);
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 22px;
  transition:0.35s;
}
.step:hover .step-num{
  background:var(--gold);
  color:var(--ink);
  transform:scale(1.08);
}
.step h4{
  color:var(--cream);
  font-size:17px;
  margin-bottom:10px;
}
.step p{
  font-size:13px;
  line-height:1.65;
  color:var(--muted);
  padding:0 8px;
}


/* ============================================================
   16. FEATURED / PROMOTED BOOKS (Chapter III - slider)
   ============================================================ */
.featured{background:var(--ink);position:relative}
.featured-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:60px;
  gap:30px;
}
.featured-head .section-head{margin-bottom:0}
.slider-controls{display:flex;gap:12px}
.slider-btn{
  width:52px;
  height:52px;
  border:1px solid var(--line-bright);
  color:var(--cream);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:0.25s;
  border-radius:50%;
  font-size:20px;
}
.slider-btn:hover{border-color:var(--gold);color:var(--gold);background:var(--surface)}
.slider-viewport{overflow:hidden;margin:0 calc(var(--pad) * -1);padding:0 var(--pad)}
.slider-track{
  display:flex;
  gap:24px;
  transition:transform 0.6s cubic-bezier(0.5,0,0.2,1);
}
.book-card{
  flex:0 0 calc(25% - 18px);
  min-width:220px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:4px;
  padding:22px;
  transition:0.35s;
  position:relative;
}
.book-card:hover{border-color:var(--gold);transform:translateY(-6px)}
.book-cover{
  aspect-ratio:2/3;
  background:var(--surface-2);
  border-radius:3px;
  margin-bottom:18px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 20px;
  text-align:center;
}
.book-cover::after{
  content:'';
  position:absolute;
  top:12px;left:12px;right:12px;bottom:12px;
  border:1px solid var(--gold);
  opacity:0.5;
  pointer-events:none;
}
.book-cover-title{
  font-family:var(--serif);
  color:var(--cream);
  font-size:17px;
  line-height:1.25;
  margin-bottom:12px;
}
.book-cover-line{
  width:24px;
  height:1px;
  background:var(--gold);
  margin:10px auto;
}
.book-cover-author{
  font-family:var(--sans);
  font-size:9px;
  letter-spacing:0.25em;
  color:var(--gold);
  text-transform:uppercase;
}
.book-cover-1{background:linear-gradient(160deg,#1E4257,#0E2130)}
.book-cover-2{background:linear-gradient(160deg,#173A50,#0C1E2C)}
.book-cover-3{background:linear-gradient(160deg,#20465C,#10253A)}
.book-cover-4{background:linear-gradient(160deg,#264C64,#12283C)}
.book-cover-5{background:linear-gradient(160deg,#1A3F55,#0D2231)}
.book-cover-6{background:linear-gradient(160deg,#22485E,#122A3E)}
.featured-tag{
  position:absolute;
  top:12px;
  right:12px;
  background:var(--gold);
  color:var(--ink);
  padding:5px 10px;
  font-size:9px;
  letter-spacing:0.15em;
  text-transform:uppercase;
  font-weight:600;
  border-radius:2px;
  z-index:2;
}
.book-info h4{
  font-family:var(--serif);
  color:var(--cream);
  font-size:17px;
  margin-bottom:6px;
  line-height:1.3;
}
.book-info .book-author{
  font-size:12px;
  color:var(--muted);
  letter-spacing:0.05em;
  margin-bottom:14px;
}
.book-info .book-genre{
  display:inline-block;
  font-size:10px;
  letter-spacing:0.2em;
  color:var(--gold);
  text-transform:uppercase;
  padding:5px 10px;
  border:1px solid var(--line-bright);
  border-radius:2px;
}
.featured-note{
  margin-top:60px;
  text-align:center;
  padding:24px 30px;
  border:1px dashed var(--line-bright);
  color:var(--muted);
  font-size:13px;
  letter-spacing:0.03em;
  font-style:italic;
  font-family:var(--serif);
}
.featured-note a{color:var(--gold);border-bottom:1px solid var(--gold)}


/* ============================================================
   17. PORTFOLIO (Chapter IV - 4-col grid with overlay on hover)
   ============================================================ */
.portfolio{
  background:var(--surface);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.portfolio-item{
  aspect-ratio:2/3;
  background:var(--surface-2);
  border-radius:3px;
  position:relative;
  overflow:hidden;
  cursor:pointer;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 20px;
  text-align:center;
}
.portfolio-item::after{
  content:'';
  position:absolute;
  top:14px;left:14px;right:14px;bottom:14px;
  border:1px solid var(--gold);
  opacity:0.4;
  transition:0.3s;
}
.portfolio-item:hover::after{opacity:0.7}
.portfolio-cover-title{
  font-family:var(--serif);
  color:var(--cream);
  font-size:19px;
  line-height:1.25;
  margin-bottom:10px;
}
.portfolio-cover-line{
  width:28px;
  height:1px;
  background:var(--gold);
  margin:12px auto;
}
.portfolio-cover-author{
  font-family:var(--sans);
  font-size:10px;
  letter-spacing:0.3em;
  color:var(--gold);
  text-transform:uppercase;
}
.p-cover-1{background:linear-gradient(160deg,#1E4257,#0B1C28)}
.p-cover-2{background:linear-gradient(160deg,#173A50,#0A1A24)}
.p-cover-3{background:linear-gradient(160deg,#20465C,#0F2132)}
.p-cover-4{background:linear-gradient(160deg,#264C64,#112535)}
.p-cover-5{background:linear-gradient(160deg,#1A3F55,#0C1F2D)}
.p-cover-6{background:linear-gradient(160deg,#22485E,#102636)}
.p-cover-7{background:linear-gradient(160deg,#1D4359,#0D202E)}
.p-cover-8{background:linear-gradient(160deg,#284E66,#122838)}
.portfolio-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(10,27,38,0.98) 0%,rgba(18,38,51,0.85) 45%,transparent 100%);
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  opacity:0;
  transition:0.35s;
  z-index:2;
}
.portfolio-item:hover .portfolio-overlay{opacity:1}
.portfolio-overlay h4{
  color:var(--cream);
  font-size:17px;
  margin-bottom:6px;
}
.portfolio-overlay p{
  font-size:12px;
  color:var(--gold);
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin:0;
  opacity:1;
}
.portfolio-more{text-align:center;margin-top:60px}


/* ============================================================
   18. TESTIMONIALS SHOWCASE (Chapter V - signature moment)
   Center floating book + 4 quotes at TL/TR/BL/BR + orbits
   ============================================================ */
.testimonials{background:var(--ink);position:relative;overflow:hidden}
.testimonials::before{
  content:'';
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:min(80vw,900px);
  height:min(80vw,900px);
  background:radial-gradient(circle,rgba(212,169,74,0.06),transparent 65%);
  pointer-events:none;
}
.showcase-stage{
  position:relative;
  width:100%;
  min-height:680px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:20px 0;
}
.showcase-orbit{
  position:absolute;
  top:50%;
  left:50%;
  border-radius:50%;
  border:1px dashed var(--line-bright);
  pointer-events:none;
  transform:translate(-50%,-50%);
}
.showcase-orbit-1{width:360px;height:360px;opacity:0.4;animation:rotateSlow 60s linear infinite}
.showcase-orbit-2{width:600px;height:600px;opacity:0.18;animation:rotateSlow 90s linear infinite reverse}
@keyframes rotateSlow{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}

.showcase-book{
  position:relative;
  width:240px;
  aspect-ratio:2/3;
  background:linear-gradient(160deg,#1E4257 0%,#0E2130 100%);
  border-radius:4px;
  border:1px solid rgba(212,169,74,0.25);
  padding:36px 26px 30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-align:center;
  box-shadow:
    0 50px 90px rgba(0,0,0,0.65),
    0 20px 40px rgba(0,0,0,0.45),
    inset 8px 0 20px rgba(0,0,0,0.35);
  z-index:3;
  animation:bookFloat 7s ease-in-out infinite;
}
.showcase-book::before{
  content:'';
  position:absolute;
  top:16px;left:16px;right:16px;bottom:16px;
  border:1px solid var(--gold);
  border-radius:2px;
  opacity:0.55;
  pointer-events:none;
}
.showcase-book::after{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:8px;
  background:linear-gradient(to right,rgba(0,0,0,0.55),transparent);
  border-radius:4px 0 0 4px;
  pointer-events:none;
}
@keyframes bookFloat{
  0%,100%{transform:translateY(0) rotate(-1deg)}
  50%{transform:translateY(-14px) rotate(1deg)}
}
.showcase-book-eyebrow{
  font-family:var(--sans);
  font-size:9px;
  letter-spacing:0.3em;
  color:var(--gold);
  text-transform:uppercase;
  font-weight:500;
}
.showcase-book-title{
  font-family:var(--serif);
  color:var(--cream);
  font-size:22px;
  line-height:1.2;
  padding:0 4px;
}
.showcase-book-title em{
  font-style:italic;
  color:var(--gold);
  display:block;
  font-size:16px;
  margin-top:8px;
}
.showcase-book-line{
  width:32px;
  height:1px;
  background:var(--gold);
  margin:12px auto;
  opacity:0.6;
}
.showcase-book-crest{
  font-family:var(--serif);
  font-style:italic;
  color:var(--gold);
  font-size:11px;
  letter-spacing:0.2em;
}

/* Floating testimonial quotes at 4 corners */
.showcase-quote{
  position:absolute;
  background:var(--surface);
  border:1px solid var(--line-bright);
  border-radius:8px;
  padding:20px 22px;
  max-width:280px;
  display:flex;
  align-items:flex-start;
  gap:14px;
  box-shadow:0 24px 44px rgba(0,0,0,0.45);
  z-index:4;
  transition:all 0.35s ease;
  cursor:default;
}
.showcase-quote:hover{
  border-color:var(--gold);
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 30px 54px rgba(0,0,0,0.6),0 0 0 1px rgba(212,169,74,0.2);
}
.showcase-quote-tl{top:6%;left:2%;animation:floatA 8s ease-in-out infinite}
.showcase-quote-tr{top:10%;right:2%;animation:floatB 9s ease-in-out infinite}
.showcase-quote-bl{bottom:8%;left:6%;animation:floatB 8.5s ease-in-out infinite}
.showcase-quote-br{bottom:12%;right:4%;animation:floatA 9.5s ease-in-out infinite}
@keyframes floatA{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
}
@keyframes floatB{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-14px)}
}
.showcase-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold-dark),var(--gold-bright));
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink);
  font-family:var(--serif);
  font-size:19px;
  font-weight:500;
  flex-shrink:0;
  border:2px solid var(--surface);
  box-shadow:0 6px 14px rgba(0,0,0,0.55);
}
.showcase-quote-body{flex:1;min-width:0}
.showcase-quote-body p{
  font-family:var(--serif);
  font-style:italic;
  font-size:14px;
  line-height:1.5;
  color:var(--cream);
  margin:0 0 10px 0;
  opacity:1;
}
.showcase-cite{
  font-size:11px;
  letter-spacing:0.04em;
  color:var(--muted);
  font-family:var(--sans);
}
.showcase-cite strong{
  color:var(--gold);
  font-weight:500;
}
.showcase-tag{
  position:absolute;
  top:-8px;
  right:16px;
  background:var(--gold);
  color:var(--ink);
  font-family:var(--sans);
  font-size:8px;
  letter-spacing:0.2em;
  text-transform:uppercase;
  font-weight:600;
  padding:3px 8px;
  border-radius:2px;
}
@media (prefers-reduced-motion:reduce){
  .showcase-book,
  .showcase-quote-tl,.showcase-quote-tr,.showcase-quote-bl,.showcase-quote-br,
  .showcase-orbit-1,.showcase-orbit-2{animation:none}
}


/* ============================================================
   19. STATS BAND
   ============================================================ */
.stats{
  background:var(--surface);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:70px 0;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:30px;
  text-align:center;
}
.stat{position:relative}
.stat:not(:last-child)::after{
  content:'';
  position:absolute;
  right:calc(-15px);
  top:20%;
  bottom:20%;
  width:1px;
  background:var(--line-bright);
}
.stat-num{
  font-family:var(--serif);
  font-size:clamp(40px,5vw,58px);
  color:var(--gold);
  line-height:1;
  margin-bottom:10px;
  font-weight:400;
}
.stat-lbl{
  font-size:12px;
  letter-spacing:0.2em;
  color:var(--muted);
  text-transform:uppercase;
}


/* ============================================================
   20. BLOG LATEST (Chapter VI - 3-col preview)
   ============================================================ */
.blog-section{background:var(--ink)}
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}
.blog-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:4px;
  transition:0.3s;
  display:block;
  overflow:hidden;
}
.blog-card:hover{border-color:var(--gold);transform:translateY(-4px)}
.blog-thumb{
  aspect-ratio:16/9;
  background:var(--surface-2);
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.blog-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.blog-thumb::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(45deg,rgba(10,27,38,0.5),transparent 50%,rgba(212,169,74,0.15));
}
.blog-thumb-1{background:linear-gradient(135deg,#1E4257,#0E2130)}
.blog-thumb-2{background:linear-gradient(135deg,#173A50,#0C1E2C)}
.blog-thumb-3{background:linear-gradient(135deg,#20465C,#10253A)}
.blog-thumb-inner{
  position:relative;
  z-index:1;
  font-family:var(--serif);
  font-style:italic;
  color:var(--gold);
  font-size:15px;
  letter-spacing:0.15em;
  opacity:0.6;
}
.blog-body{padding:28px 26px}
.blog-meta{
  font-size:11px;
  letter-spacing:0.18em;
  color:var(--gold);
  text-transform:uppercase;
  margin-bottom:14px;
  display:flex;
  gap:14px;
  align-items:center;
}
.blog-meta span::after{
  content:'·';
  margin-left:14px;
  color:var(--muted);
}
.blog-meta span:last-child::after{display:none}
.blog-card h4{
  font-size:20px;
  color:var(--cream);
  line-height:1.35;
  margin-bottom:14px;
}
.blog-card:hover h4{color:var(--gold)}
.blog-excerpt{
  font-size:14px;
  color:var(--muted);
  line-height:1.65;
  margin-bottom:20px;
}
.blog-more{
  color:var(--gold);
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:500;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.blog-cta{text-align:center;margin-top:60px}


/* ============================================================
   21. AUTHOR CTA (asymmetric 2-col with visual)
   ============================================================ */
.author-cta{
  background:var(--surface);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}
.author-cta::before{
  content:'';
  position:absolute;
  top:0;
  right:0;
  width:50%;
  height:100%;
  background:radial-gradient(circle at right,rgba(212,169,74,0.1),transparent 60%);
  pointer-events:none;
}
.author-cta-wrap{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:60px;
  align-items:center;
  position:relative;
}
.author-cta h2{margin-bottom:22px}
.author-cta h2 em{color:var(--gold);font-style:italic}
.author-cta-lead{
  font-size:17px;
  line-height:1.7;
  margin-bottom:30px;
  max-width:520px;
}
.author-cta-list{
  list-style:none;
  margin-bottom:36px;
}
.author-cta-list li{
  padding:10px 0 10px 24px;
  position:relative;
  font-size:14px;
}
.author-cta-list li::before{
  content:'✓';
  position:absolute;
  left:0;
  color:var(--gold);
  font-family:var(--serif);
}
.author-cta-visual{
  aspect-ratio:1;
  background:var(--surface-2);
  border:1px solid var(--line-bright);
  border-radius:6px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
  text-align:center;
}
.author-cta-visual::before{
  content:'';
  position:absolute;
  top:20px;left:20px;right:20px;bottom:20px;
  border:1px solid var(--gold);
  opacity:0.4;
}
.author-visual-text{
  font-family:var(--serif);
  font-style:italic;
  font-size:clamp(20px,3vw,32px);
  color:var(--cream);
  line-height:1.4;
}
.author-visual-text em{color:var(--gold)}


/* ============================================================
   22. BEGIN - FINAL CTA (Chapter VII - centered with contact strip)
   ============================================================ */
.begin{
  background:var(--ink);
  padding:clamp(80px,12vw,160px) 0;
  text-align:center;
  border-top:1px solid var(--line);
}
.begin h2{
  font-size:clamp(36px,6vw,68px);
  max-width:820px;
  margin:20px auto 26px;
}
.begin h2 em{color:var(--gold);font-style:italic}
.begin p{
  max-width:600px;
  margin:0 auto 44px;
  font-size:17px;
  line-height:1.7;
}
.begin-cta{display:inline-flex;gap:14px;flex-wrap:wrap;justify-content:center}
.begin-contact{
  margin-top:60px;
  padding-top:44px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:center;
  gap:60px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
}
.begin-contact div{display:flex;flex-direction:column;gap:6px;text-align:center}
.begin-contact strong{
  color:var(--gold);
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-size:11px;
  font-weight:500;
}


/* ============================================================
   23. NEWSLETTER (2-col inline form)
   ============================================================ */
.newsletter{
  background:var(--surface);
  border-top:1px solid var(--line);
  padding:60px 0;
}
.newsletter-wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.newsletter h3{font-size:26px;margin-bottom:10px}
.newsletter p{font-size:14px;color:var(--muted)}
.newsletter-form{
  display:flex;
  gap:0;
  border:1px solid var(--line-bright);
  border-radius:4px;
  background:var(--ink);
  overflow:hidden;
}
.newsletter-form:focus-within{border-color:var(--gold)}
.newsletter-form input{
  flex:1;
  background:transparent !important;
  border:0 !important;
  padding:16px 20px;
  color:var(--cream) !important;
  font-family:var(--sans);
  font-size:14px;
  outline:none;
  box-shadow:none !important;
}
.newsletter-form input:focus{
  border:0 !important;
  box-shadow:none !important;
}
.newsletter-form input::placeholder{color:var(--muted)}
.newsletter-form button{
  padding:16px 26px;
  background:var(--gold);
  color:var(--ink);
  font-size:12px;
  letter-spacing:0.15em;
  text-transform:uppercase;
  font-weight:600;
  transition:0.25s;
}
.newsletter-form button:hover{background:var(--gold-bright)}


/* ============================================================
   24. FOOTER (4-col grid + promoted-books mini-strip)
   ============================================================ */
.site-footer{
  background:#061219;
  border-top:1px solid var(--line);
  padding-top:80px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:50px;
  padding-bottom:60px;
  border-bottom:1px solid var(--line);
}
.footer-brand .logo{margin-bottom:20px}
.footer-brand p{
  font-size:14px;
  color:var(--muted);
  line-height:1.7;
  margin-bottom:24px;
  max-width:360px;
}
.footer-social{display:flex;gap:12px}
.social-link{
  width:38px;
  height:38px;
  border:1px solid var(--line-bright);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  border-radius:50%;
  transition:0.25s;
  font-size:14px;
}
.social-link:hover{border-color:var(--gold);color:var(--gold);transform:translateY(-2px)}
.footer-col h5{
  font-family:var(--sans);
  font-size:11px;
  letter-spacing:0.2em;
  color:var(--gold);
  text-transform:uppercase;
  margin-bottom:22px;
  font-weight:500;
}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:12px}
.footer-col a{
  font-size:14px;
  color:var(--muted);
  transition:0.2s;
}
.footer-col a:hover{color:var(--gold)}

/* Promoted-books mini-strip in footer */
.footer-books{
  padding:44px 0;
  border-bottom:1px solid var(--line);
}
.footer-books-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:26px;
  gap:20px;
  flex-wrap:wrap;
}
.footer-books-head h5{
  font-family:var(--serif);
  font-style:italic;
  font-size:20px;
  color:var(--cream);
  font-weight:400;
}
.footer-books-row{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
}
.footer-book{
  aspect-ratio:2/3;
  padding:16px 12px;
  border:1px solid var(--line-bright);
  border-radius:3px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition:0.25s;
  cursor:pointer;
}
.footer-book:hover{border-color:var(--gold)}
.footer-book-title{
  font-family:var(--serif);
  color:var(--cream);
  font-size:12px;
  line-height:1.3;
  margin-bottom:6px;
}
.footer-book-line{width:16px;height:1px;background:var(--gold);margin:4px auto}
.footer-book-author{
  font-size:8px;
  color:var(--gold);
  letter-spacing:0.2em;
  text-transform:uppercase;
}
.footer-bottom{
  padding:26px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  font-size:12px;
  color:var(--muted);
}
.footer-bottom a{color:var(--muted)}
.footer-bottom a:hover{color:var(--gold)}
.footer-legal{display:flex;gap:22px;flex-wrap:wrap}


/* ============================================================
   25. COOKIE BAR & FLOATING CTA
   ============================================================ */
.cookie-bar{
  position:fixed;
  bottom:20px;
  left:20px;
  right:20px;
  max-width:820px;
  margin:0 auto;
  background:var(--surface);
  border:1px solid var(--line-bright);
  border-radius:6px;
  padding:20px 26px;
  z-index:90;
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  animation:slideUp 0.5s ease;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
}
.cookie-bar p{
  flex:1;
  min-width:250px;
  font-size:13px;
  color:var(--text);
  margin:0;
  line-height:1.6;
}
.cookie-bar p a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}
.cookie-actions{display:flex;gap:10px}
.cookie-actions .btn{padding:11px 22px;font-size:11px}
.cookie-bar.hide{display:none}

.float-cta{
  position:fixed;
  bottom:26px;
  right:26px;
  background:var(--gold);
  color:var(--ink);
  padding:16px 22px;
  border-radius:40px;
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:600;
  box-shadow:0 12px 34px rgba(0,0,0,0.4),0 0 0 1px rgba(212,169,74,0.3);
  z-index:80;
  display:flex;
  align-items:center;
  gap:8px;
  transition:0.3s;
}
.float-cta:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(0,0,0,0.5)}
.float-cta::before{
  content:'';
  width:8px;
  height:8px;
  background:var(--ink);
  border-radius:50%;
  animation:pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{opacity:1}
  50%{opacity:0.3}
}


/* ============================================================
   26. SCROLLBAR, SELECTION, UTILITIES
   ============================================================ */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--ink)}
::-webkit-scrollbar-thumb{background:var(--line-bright);border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:var(--gold-dark)}

::selection{background:var(--gold);color:var(--ink)}
::-moz-selection{background:var(--gold);color:var(--ink)}

/* Optional dotted texture (add class="dotted" to any .section) */
.dotted{
  background-image:radial-gradient(circle,rgba(212,169,74,0.06) 1px,transparent 1px);
  background-size:24px 24px;
}


/* ============================================================
   27. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width:1200px){
  .showcase-stage{min-height:600px}
  .showcase-quote{max-width:250px;padding:18px 20px}
  .showcase-quote-body p{font-size:13px}
  .showcase-orbit-2{width:520px;height:520px}
}

@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr;gap:60px}
  .hero-visual{margin:0 auto;max-width:380px}
  .paths-grid,.newsletter-wrap,.author-cta-wrap{grid-template-columns:1fr;gap:40px}
  .showcase-stage{display:block;min-height:0;padding:20px 0}
  .showcase-orbit{display:none}
  .showcase-book{margin:0 auto 40px;width:210px;animation:none;transform:none}
  .showcase-quote{position:static;max-width:520px;margin:0 auto 16px;animation:none;transform:none}
  .showcase-quote:hover{transform:translateY(-4px)}
  .showcase-quote-tl,.showcase-quote-tr,.showcase-quote-bl,.showcase-quote-br{top:auto;left:auto;right:auto;bottom:auto}
  .steps{grid-template-columns:repeat(5,1fr);gap:14px}
  .step h4{font-size:15px}
  .step p{font-size:12px}
  .portfolio-grid{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:40px}
  .book-card{flex:0 0 calc(33.33% - 16px)}
  .footer-books-row{grid-template-columns:repeat(3,1fr)}
  .featured-head{flex-direction:column;align-items:flex-start;gap:24px}
  .featured-head .slider-controls{align-self:flex-end}
}

@media (max-width:768px){
  .nav-menu,.burger{display:none}
  .burger{display:flex}
  .nav-cta .member-login,.nav-cta .btn{display:none}
  .steps{grid-template-columns:1fr 1fr;gap:30px}
  .steps::before{display:none}
  .step-num{width:44px;height:44px;font-size:17px}
  .portfolio-grid,.blog-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr;gap:36px}
  .footer-books-row{grid-template-columns:repeat(2,1fr)}
  .stats-grid{grid-template-columns:1fr 1fr;gap:40px;row-gap:44px}
  .stat:nth-child(2)::after{display:none}
  .book-card{flex:0 0 calc(50% - 12px)}
  .modal-paths{grid-template-columns:1fr;gap:12px}
  .hero-meta{gap:30px}
  .hero-meta-item .num{font-size:28px}
  .float-cta{padding:14px 18px;font-size:11px;bottom:20px;right:20px}
  .cookie-bar{padding:16px 20px;left:12px;right:12px;bottom:12px}
  .cookie-actions{width:100%}
  .cookie-actions .btn{flex:1}
  .featured-head{flex-direction:column;align-items:flex-start;gap:20px}
}

@media (max-width:480px){
  .portfolio-grid,.blog-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .book-card{flex:0 0 calc(100% - 0px);min-width:0}
  .hero-cta{flex-direction:column;width:100%}
  .hero-cta .btn{width:100%}
  .stats-grid{grid-template-columns:1fr;gap:36px}
  .stat::after{display:none}
  .footer-books-row{grid-template-columns:1fr 1fr}
  .announce{font-size:11px;letter-spacing:0.06em}
  .modal{padding:26px 22px}
}

/* End of theme.css */
/* ============================================================
   28. BOOK-HERO SLIDER (hgw-book-hero component)
   Multi-slide hero with switching front-book cover, static
   back-book stack, autoplay dots, hover-pause, meta stats.
   Admin fields all preserved from SliderResource.
   ============================================================ */
.hgw-book-hero{
  position:relative;
  padding:clamp(70px,10vw,130px) 0 clamp(80px,11vw,140px);
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(ellipse at 25% 15%,rgba(74,140,168,0.18) 0%,transparent 50%),
    radial-gradient(ellipse at 75% 85%,rgba(47,107,133,0.22) 0%,transparent 55%),
    linear-gradient(180deg,var(--surface) 0%,var(--ink) 100%);
}
.hgw-book-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 80% 30%,rgba(212,169,74,0.08),transparent 55%),
    radial-gradient(circle at 15% 85%,rgba(212,169,74,0.04),transparent 50%);
  pointer-events:none;
  z-index:0;
}
.hgw-book-hero__wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--pad);
  position:relative;
  z-index:1;
}
.hgw-book-hero__grid{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:60px;
  align-items:center;
}
.hgw-book-hero__copy{position:relative;min-height:340px}
.hgw-book-hero__copy-inner{position:relative}
.hgw-book-hero__slide-copy{position:relative}

.hgw-book-hero__eyebrow{
  font-family:var(--serif);
  font-style:italic;
  color:var(--gold);
  font-size:14px;
  letter-spacing:0.08em;
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-bottom:26px;
}
.hgw-book-hero__eyebrow::before,
.hgw-book-hero__eyebrow::after{
  content:'';
  width:32px;
  height:1px;
  background:var(--gold);
  opacity:0.5;
}

.hgw-book-hero__headline{
  font-family:var(--serif);
  color:var(--cream);
  font-weight:400;
  line-height:1.15;
  letter-spacing:-0.01em;
  font-size:clamp(38px,6.5vw,76px);
  margin-bottom:26px;
}
.hgw-book-hero__headline em{
  font-style:italic;
  color:var(--gold);
  font-weight:400;
}

.hgw-book-hero__lead{
  font-size:18px;
  line-height:1.7;
  max-width:520px;
  color:var(--text);
  opacity:0.9;
  margin-bottom:38px;
}

.hgw-book-hero__cta{display:flex;gap:14px;flex-wrap:wrap}

.hgw-book-hero__meta{
  margin-top:52px;
  padding-top:32px;
  border-top:1px solid var(--line);
  display:flex;
  gap:44px;
  flex-wrap:wrap;
}
.hgw-book-hero__meta-item{display:flex;flex-direction:column;gap:6px}
.hgw-book-hero__meta-num{
  font-family:var(--serif);
  font-size:34px;
  color:var(--gold);
  line-height:1;
}
.hgw-book-hero__meta-lbl{
  font-size:11px;
  letter-spacing:0.16em;
  color:var(--muted);
  text-transform:uppercase;
}

/* Visual side: 3-book stack (2 back + 1 front) */
.hgw-book-hero__visual{
  position:relative;
  width:100%;
  max-width:480px;
  margin-left:auto;
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hgw-book-hero__stack{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hgw-book-hero__book{
  position:absolute;
  aspect-ratio:2/3;
  width:56%;
  border-radius:3px;
  padding:34px 26px 30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-align:center;
  transition:transform 0.6s cubic-bezier(0.3,0,0.2,1);
  box-shadow:0 30px 60px rgba(0,0,0,0.55),0 10px 20px rgba(0,0,0,0.35);
  border:1px solid rgba(212,169,74,0.15);
  background-size:cover;
  background-position:center;
}
.hgw-book-hero__book::before{
  content:'';
  position:absolute;
  top:16px;left:16px;right:16px;bottom:16px;
  border:1px solid var(--gold);
  opacity:0.45;
  border-radius:1px;
  pointer-events:none;
}
.hgw-book-hero__book::after{
  content:'';
  position:absolute;
  left:0;top:0;bottom:0;
  width:6px;
  background:linear-gradient(to right,rgba(0,0,0,0.45),transparent);
  border-radius:3px 0 0 3px;
  pointer-events:none;
}
.hgw-book-hero__book--back-1{
  background:linear-gradient(160deg,#1E4257 0%,#0E2130 100%);
  transform:rotate(-8deg) translate(-22%,4%);
  z-index:1;
}
.hgw-book-hero__book--back-2{
  background:linear-gradient(160deg,#173A50 0%,#0C1E2C 100%);
  transform:rotate(4deg) translate(20%,-2%);
  z-index:2;
}
.hgw-book-hero__book--front{
  background:linear-gradient(160deg,#20465C 0%,#10253A 100%);
  transform:rotate(-2deg) translate(0,0);
  z-index:3;
}
.hgw-book-hero__book--front.has-cover::before{opacity:0.75}
.hgw-book-hero__stack:hover .hgw-book-hero__book--back-1{transform:rotate(-11deg) translate(-26%,4%)}
.hgw-book-hero__stack:hover .hgw-book-hero__book--back-2{transform:rotate(7deg) translate(24%,-2%)}
.hgw-book-hero__stack:hover .hgw-book-hero__book--front{transform:rotate(-2deg) translate(0,-6px)}

.hgw-book-hero__book-eyebrow{
  font-family:var(--sans);
  font-size:8px;
  letter-spacing:0.3em;
  color:var(--gold);
  text-transform:uppercase;
  font-weight:500;
}
.hgw-book-hero__book-title{
  font-family:var(--serif);
  color:var(--cream);
  font-size:17px;
  line-height:1.2;
  font-weight:500;
  padding:8px 4px;
}
.hgw-book-hero__book-title em{
  font-style:italic;
  color:var(--gold);
  display:block;
  font-size:14px;
  margin-top:6px;
}
.hgw-book-hero__book-line{
  width:24px;
  height:1px;
  background:var(--gold);
  margin:6px auto;
  opacity:0.6;
}
.hgw-book-hero__book-crest{
  font-family:var(--serif);
  font-style:italic;
  color:var(--gold);
  font-size:11px;
  letter-spacing:0.2em;
  opacity:0.85;
}

/* Slide dots (autoplay pagination) */
.hgw-book-hero__dots{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:40px;
}
.hgw-book-hero__dot{
  width:10px;
  height:10px;
  border-radius:50%;
  border:1px solid var(--line-bright);
  background:transparent;
  cursor:pointer;
  transition:all 0.25s;
  padding:0;
}
.hgw-book-hero__dot:hover{border-color:var(--gold)}
.hgw-book-hero__dot.is-active{
  background:var(--gold);
  border-color:var(--gold);
  transform:scale(1.15);
}

/* Alpine.js transitions (fade between slides) */
.hgw-book-hero__fade-enter{transition:opacity 0.5s ease}
.hgw-book-hero__fade-enter-start{opacity:0}
.hgw-book-hero__fade-enter-end{opacity:1}

/* Absolute-stack all slides on top of each other so fades work */
.hgw-book-hero__copy-inner .hgw-book-hero__slide-copy{
  position:absolute;
  top:0;
  left:0;
  right:0;
}
.hgw-book-hero__copy-inner .hgw-book-hero__slide-copy:first-child{position:relative}

.hgw-book-hero__stack .hgw-book-hero__book--front{position:absolute}

/* Responsive */
@media (max-width:1024px){
  .hgw-book-hero__grid{grid-template-columns:1fr;gap:60px}
  .hgw-book-hero__visual{margin:0 auto;max-width:380px}
  .hgw-book-hero__copy{min-height:auto}
  .hgw-book-hero__copy-inner .hgw-book-hero__slide-copy{position:relative}
}
@media (max-width:768px){
  .hgw-book-hero__meta{gap:30px}
  .hgw-book-hero__meta-num{font-size:28px}
}
@media (max-width:480px){
  .hgw-book-hero__cta{flex-direction:column;width:100%}
  .hgw-book-hero__cta .btn{width:100%}
}
/* ============================================================
   29. TESTIMONIAL MARQUEE (hgw-testimonials-marquee)
   Infinite horizontal scroll. Admin fields preserved: heading,
   source, limit, manual_ids, quote, star_rating, avatar,
   attribution_name, role_title.
   ============================================================ */
.hgw-testimonials-marquee{
  background:var(--ink);
  position:relative;
  overflow:hidden;
}
.hgw-testimonials-marquee::before{
  content:'';
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:min(80vw,900px);
  height:min(80vw,900px);
  background:radial-gradient(circle,rgba(212,169,74,0.06),transparent 65%);
  pointer-events:none;
  z-index:0;
}
.hgw-testimonials-marquee .container{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--pad);
  position:relative;
  z-index:1;
}
.hgw-testimonials-marquee__heading{
  font-family:var(--serif);
  color:var(--cream);
  font-weight:400;
  line-height:1.15;
  letter-spacing:-0.01em;
  font-size:clamp(30px,4.5vw,54px);
  text-align:center;
  margin-bottom:60px;
  position:relative;
}
.hgw-testimonials-marquee__heading::before{
  content:'Chapter V';
  display:block;
  font-family:var(--serif);
  font-size:12px;
  letter-spacing:0.3em;
  text-transform:uppercase;
  font-weight:500;
  background:linear-gradient(90deg,var(--gold-dark) 0%,var(--gold-bright) 50%,var(--gold-dark) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  color:transparent;
  margin-bottom:14px;
}
.hgw-testimonials-marquee__heading::after{
  content:'';
  display:block;
  width:60px;
  height:1px;
  background:var(--gold);
  opacity:0.6;
  margin:20px auto 0;
}

/* Marquee viewport with edge fade masks */
.hgw-testimonials-marquee__viewport{
  overflow:hidden;
  position:relative;
  padding:20px 0 40px;
  mask-image:linear-gradient(to right,transparent 0%,#000 8%,#000 92%,transparent 100%);
  -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 8%,#000 92%,transparent 100%);
}
.hgw-testimonials-marquee__track{
  display:flex;
  gap:26px;
  width:max-content;
  animation:hgwMarqueeScroll 60s linear infinite;
  will-change:transform;
}
.hgw-testimonials-marquee__viewport:hover .hgw-testimonials-marquee__track{
  animation-play-state:paused;
}
@keyframes hgwMarqueeScroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@media (prefers-reduced-motion:reduce){
  .hgw-testimonials-marquee__track{animation:none}
}

/* Individual card */
.hgw-tm-card{
  flex:0 0 auto;
  width:clamp(280px,32vw,400px);
  background:var(--surface);
  border:1px solid var(--line-bright);
  border-radius:8px;
  padding:32px 28px 26px;
  position:relative;
  display:flex;
  flex-direction:column;
  gap:16px;
  box-shadow:0 24px 44px rgba(0,0,0,0.35);
  transition:all 0.3s ease;
}
.hgw-tm-card:hover{
  border-color:var(--gold);
  transform:translateY(-4px);
  box-shadow:0 30px 54px rgba(0,0,0,0.5),0 0 0 1px rgba(212,169,74,0.15);
}

.hgw-tm-card__quote-mark{
  position:absolute;
  top:8px;
  left:22px;
  font-family:var(--serif);
  font-size:80px;
  line-height:1;
  color:var(--gold);
  opacity:0.25;
  pointer-events:none;
}

.hgw-tm-card__quote{
  font-family:var(--serif);
  font-style:italic;
  font-size:16px;
  line-height:1.6;
  color:var(--cream);
  margin:0;
  padding-top:14px;
  border:0;
  quotes:none;
  flex:1;
}

.hgw-tm-card__rating{
  display:flex;
  gap:3px;
  font-size:14px;
  line-height:1;
}
.hgw-tm-card__star{color:var(--line-bright)}
.hgw-tm-card__star.is-filled{color:var(--gold)}

.hgw-tm-card__attribution{
  display:flex;
  align-items:center;
  gap:14px;
  padding-top:16px;
  border-top:1px solid var(--line);
  margin:0;
}
.hgw-tm-card__avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--surface);
  box-shadow:0 6px 14px rgba(0,0,0,0.55);
  flex-shrink:0;
}
.hgw-tm-card__avatar--initials{
  background:linear-gradient(135deg,var(--gold-dark),var(--gold-bright));
  color:var(--ink);
  font-family:var(--serif);
  font-size:18px;
  font-weight:500;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hgw-tm-card__attribution-text{flex:1;min-width:0}
.hgw-tm-card__name{
  font-family:var(--sans);
  font-size:13px;
  font-weight:500;
  color:var(--gold);
  letter-spacing:0.04em;
  line-height:1.3;
}
.hgw-tm-card__role{
  font-family:var(--sans);
  font-size:11px;
  color:var(--muted);
  letter-spacing:0.04em;
  margin-top:2px;
}

@media (max-width:768px){
  .hgw-tm-card{width:clamp(260px,80vw,340px);padding:26px 22px 22px}
  .hgw-tm-card__quote{font-size:15px}
  .hgw-tm-card__quote-mark{font-size:64px}
  .hgw-testimonials-marquee__track{animation-duration:45s}
}
/* ============================================================
   30. CONTAINER ALIAS (block Blades use .container, not .wrap)
   ============================================================ */
.container{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--pad);
}

/* ============================================================
   31. BLOG-LATEST BLOCK (BEM inner classes)
   ============================================================ */
.blog-latest-section{
  background:var(--ink);
  padding:clamp(70px,10vw,140px) 0;
  border-top:1px solid var(--line);
}
.chapter-eyebrow{
  font-family:var(--serif);
  font-size:12px;
  letter-spacing:0.3em;
  text-transform:uppercase;
  font-weight:500;
  background:linear-gradient(90deg,var(--gold-dark) 0%,var(--gold-bright) 50%,var(--gold-dark) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  color:transparent;
  margin-bottom:14px;
  display:block;
}
.section-heading{
  font-family:var(--serif);
  color:var(--cream);
  font-weight:400;
  line-height:1.15;
  letter-spacing:-0.01em;
  font-size:clamp(30px,4.5vw,54px);
  margin-bottom:16px;
}
.section-intro{
  font-size:17px;
  line-height:1.7;
  color:var(--text);
  opacity:0.85;
  max-width:720px;
  margin-bottom:60px;
}
.blog-grid--2{grid-template-columns:repeat(2,1fr)}
.blog-grid--3{grid-template-columns:repeat(3,1fr)}
.blog-grid--4{grid-template-columns:repeat(4,1fr)}
.blog-grid--6{grid-template-columns:repeat(3,1fr)}
.blog-card__link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.blog-card__media{
  aspect-ratio:16/9;
  background:var(--surface-2);
  position:relative;
  overflow:hidden;
}
.blog-card__image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 0.5s ease;
}
.blog-card:hover .blog-card__image{transform:scale(1.05)}
.blog-card__image-placeholder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gold);
  opacity:0.4;
  background:linear-gradient(135deg,#1E4257,#0E2130);
}
.blog-card__image-placeholder svg{
  width:48px;
  height:48px;
}
.blog-card__body{padding:28px 26px}
.blog-card__category{
  display:inline-block;
  font-size:11px;
  letter-spacing:0.18em;
  color:var(--gold);
  text-transform:uppercase;
  font-weight:500;
  margin-bottom:14px;
}
.blog-card__title{
  font-family:var(--serif);
  font-size:20px;
  color:var(--cream);
  line-height:1.35;
  margin-bottom:14px;
  font-weight:400;
  transition:color 0.2s;
}
.blog-card:hover .blog-card__title{color:var(--gold)}
.blog-card__excerpt{
  font-size:14px;
  color:var(--muted);
  line-height:1.65;
  margin-bottom:20px;
}
.blog-card__meta{
  font-size:11px;
  letter-spacing:0.12em;
  color:var(--muted);
  text-transform:uppercase;
  display:flex;
  gap:14px;
  align-items:center;
}
.blog-card__meta time::after{
  content:'·';
  margin-left:14px;
  color:var(--muted);
}

/* ============================================================
   32. PORTFOLIO SLIDER BLOCK (hgw-portfolio-*)
   4-col grid, cover images with overlay-on-hover
   ============================================================ */
.hgw-portfolio{
  background:var(--surface);
  padding:clamp(70px,10vw,140px) 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.hgw-portfolio__heading{
  font-family:var(--serif);
  color:var(--cream);
  font-weight:400;
  line-height:1.15;
  letter-spacing:-0.01em;
  font-size:clamp(30px,4.5vw,54px);
  margin-bottom:60px;
  position:relative;
}
.hgw-portfolio__heading::before{
  content:'Chapter IV';
  display:block;
  font-family:var(--serif);
  font-size:12px;
  letter-spacing:0.3em;
  text-transform:uppercase;
  font-weight:500;
  background:linear-gradient(90deg,var(--gold-dark) 0%,var(--gold-bright) 50%,var(--gold-dark) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  color:transparent;
  margin-bottom:14px;
}
.hgw-portfolio__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.hgw-portfolio-card{
  position:relative;
  aspect-ratio:2/3;
  border-radius:3px;
  overflow:hidden;
  background:var(--surface-2);
  border:1px solid var(--line);
  transition:all 0.35s ease;
}
.hgw-portfolio-card:hover{
  border-color:var(--gold);
  transform:translateY(-4px);
}
.hgw-portfolio-card__body{
  display:block;
  color:inherit;
  text-decoration:none;
  width:100%;
  height:100%;
  position:relative;
}
.hgw-portfolio-card__cover-wrap{
  position:absolute;
  inset:0;
  overflow:hidden;
}
.hgw-portfolio-card__cover{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 0.5s ease;
}
.hgw-portfolio-card:hover .hgw-portfolio-card__cover{transform:scale(1.05)}
.hgw-portfolio-card__body::after{
  content:'';
  position:absolute;
  top:14px;left:14px;right:14px;bottom:14px;
  border:1px solid var(--gold);
  opacity:0.4;
  transition:0.3s;
  pointer-events:none;
  z-index:2;
}
.hgw-portfolio-card:hover .hgw-portfolio-card__body::after{opacity:0.7}
.hgw-portfolio-card__meta{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(10,27,38,0.98) 0%,rgba(18,38,51,0.85) 45%,transparent 100%);
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  opacity:0;
  transition:0.35s;
  z-index:3;
}
.hgw-portfolio-card:hover .hgw-portfolio-card__meta{opacity:1}
.hgw-portfolio-card__genre{
  display:inline-block;
  font-size:11px;
  letter-spacing:0.14em;
  color:var(--gold);
  text-transform:uppercase;
  margin-bottom:8px;
  font-weight:500;
}
.hgw-portfolio-card__title{
  font-family:var(--serif);
  color:var(--cream);
  font-size:18px;
  line-height:1.25;
  margin-bottom:6px;
  font-weight:400;
}
.hgw-portfolio-card__author{
  font-size:12px;
  color:var(--muted);
  letter-spacing:0.05em;
}
.hgw-portfolio-card__year{color:var(--gold);opacity:0.8}

/* ============================================================
   33. CHAPTER-SECTION BLOCK (section--alt, block-chapter, chapter-mark)
   ============================================================ */
.section--alt{
  background:linear-gradient(180deg,var(--surface) 0%,var(--ink) 100%);
}
.block-chapter{
  max-width:820px;
  margin:0 auto;
  text-align:center;
}
.chapter-mark{
  font-family:var(--serif);
  font-size:12px;
  letter-spacing:0.3em;
  text-transform:uppercase;
  font-weight:500;
  background:linear-gradient(90deg,var(--gold-dark) 0%,var(--gold-bright) 50%,var(--gold-dark) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  color:transparent;
  margin-bottom:14px;
  display:block;
}
.block-chapter h2{margin-bottom:20px}
.block-chapter .eyebrow{justify-content:center}
.block-chapter__body{
  font-size:16px;
  line-height:1.75;
  text-align:left;
  margin-top:30px;
}
.block-chapter__body p{margin-bottom:1em}

/* ============================================================
   34. TEXT-IMAGE BLOCK
   ============================================================ */
.block-textimage{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.block-textimage.image-left{direction:rtl}
.block-textimage.image-left > *{direction:ltr}
.block-textimage__body h2{margin-bottom:20px}
.block-textimage__body p{
  font-size:16px;
  line-height:1.75;
  margin-bottom:1em;
}
.block-textimage__img img{
  width:100%;
  height:auto;
  border-radius:4px;
  border:1px solid var(--line-bright);
}

/* ============================================================
   35. FEATURE-GRID BLOCK
   ============================================================ */
.block-features__heading{
  text-align:center;
  margin-bottom:60px;
}
.block-features__grid{
  display:grid;
  gap:26px;
}
.block-features__grid.cols-1{grid-template-columns:1fr}
.block-features__grid.cols-2{grid-template-columns:repeat(2,1fr)}
.block-features__grid.cols-3{grid-template-columns:repeat(3,1fr)}
.block-features__grid.cols-4{grid-template-columns:repeat(4,1fr)}
.feature-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:4px;
  padding:32px 28px;
  transition:0.3s;
}
.feature-card:hover{
  border-color:var(--gold);
  transform:translateY(-4px);
}
.feature-card__icon{
  color:var(--gold);
  font-size:22px;
  margin-bottom:16px;
}
.feature-card h3{
  font-size:19px;
  margin-bottom:12px;
}
.feature-card p{
  font-size:14px;
  color:var(--muted);
  line-height:1.65;
}

/* ============================================================
   36. FULL-WIDTH-TEXT BLOCK
   ============================================================ */
.block-fulltext{max-width:820px;margin:0 auto}
.block-fulltext h2{margin-bottom:24px}
.block-fulltext__body{
  font-size:16px;
  line-height:1.75;
  color:var(--text);
}
.block-fulltext__body p{margin-bottom:1em}

/* ============================================================
   37. STATS-BAND BLOCK (BEM: block-stats)
   ============================================================ */
.block-stats{
  background:var(--surface);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:70px 0;
}
.block-stats__grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:30px;
  text-align:center;
}
.block-stats .stat{position:relative}
.block-stats .stat:not(:last-child)::after{
  content:'';
  position:absolute;
  right:-15px;
  top:20%;
  bottom:20%;
  width:1px;
  background:var(--line-bright);
}
.stat__num{
  font-family:var(--serif);
  font-size:clamp(40px,5vw,58px);
  color:var(--gold);
  line-height:1;
  margin-bottom:10px;
  font-weight:400;
  display:block;
}
.stat__label{
  font-size:12px;
  letter-spacing:0.2em;
  color:var(--muted);
  text-transform:uppercase;
  display:block;
}

/* ============================================================
   38. CTA-BAND BLOCK
   ============================================================ */
.block-cta{
  background:var(--ink);
  padding:clamp(80px,12vw,160px) 0;
  text-align:center;
  border-top:1px solid var(--line);
}
.block-cta h2{
  font-size:clamp(30px,5vw,54px);
  max-width:820px;
  margin:0 auto 20px;
}
.block-cta__body{
  max-width:600px;
  margin:0 auto 36px;
  font-size:17px;
  line-height:1.7;
}
.block-cta__ctas{
  display:inline-flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}

/* ============================================================
   39. TIMELINE BLOCK
   ============================================================ */
.block-timeline__heading{
  text-align:center;
  margin-bottom:60px;
}
.timeline{
  position:relative;
  max-width:820px;
  margin:0 auto;
  padding-left:40px;
  border-left:1px solid var(--line-bright);
}
.timeline-item{
  position:relative;
  padding:0 0 40px 30px;
}
.timeline-item::before{
  content:'';
  position:absolute;
  left:-46px;
  top:6px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 4px var(--ink);
}
.timeline-year{
  font-family:var(--serif);
  color:var(--gold);
  font-size:14px;
  letter-spacing:0.1em;
  margin-bottom:8px;
}
.timeline-item h3{
  font-size:20px;
  margin-bottom:10px;
}
.timeline-item p{
  font-size:14px;
  color:var(--muted);
  line-height:1.7;
}

/* ============================================================
   40. FAQ-ACCORDION BLOCK
   ============================================================ */
.block-faq__heading{
  text-align:center;
  margin-bottom:50px;
}
.faq-item{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:4px;
  margin:0 auto 12px;
  overflow:hidden;
  max-width:820px;
  transition:0.25s;
}
.faq-item:hover{border-color:var(--line-bright)}
.faq-item[open]{border-color:var(--gold)}
.faq-item summary{
  padding:22px 26px;
  font-family:var(--serif);
  color:var(--cream);
  font-size:17px;
  cursor:pointer;
  list-style:none;
  position:relative;
  padding-right:60px;
  transition:color 0.2s;
}
.faq-item summary:hover{color:var(--gold)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:'+';
  position:absolute;
  right:26px;
  top:50%;
  transform:translateY(-50%);
  color:var(--gold);
  font-family:var(--serif);
  font-size:24px;
}
.faq-item[open] summary::after{content:'−'}
.faq-item[open] summary{color:var(--gold)}
.faq-item div{padding:0 26px 22px}
.faq-item p{
  font-size:14px;
  color:var(--muted);
  line-height:1.7;
}

/* ============================================================
   41. TEAM-GRID BLOCK
   ============================================================ */
.block-team__heading{
  text-align:center;
  margin-bottom:60px;
}
.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:30px;
}
.team-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:4px;
  padding:32px 26px;
  text-align:center;
  transition:0.3s;
}
.team-card:hover{
  border-color:var(--gold);
  transform:translateY(-4px);
}
.team-card__photo{
  width:110px;
  height:110px;
  border-radius:50%;
  object-fit:cover;
  margin:0 auto 20px;
  border:2px solid var(--gold);
  padding:3px;
  background:var(--surface);
}
.team-card__name{
  font-size:19px;
  margin-bottom:6px;
}
.team-card__role{
  font-size:12px;
  color:var(--gold);
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin-bottom:14px;
}
.team-card p{
  font-size:14px;
  color:var(--muted);
  line-height:1.65;
}

/* ============================================================
   42. IMAGE-GALLERY BLOCK
   ============================================================ */
.block-gallery h2{
  text-align:center;
  margin-bottom:50px;
}
.gallery-grid{display:grid;gap:16px}
.gallery-grid.cols-1{grid-template-columns:1fr}
.gallery-grid.cols-2{grid-template-columns:repeat(2,1fr)}
.gallery-grid.cols-3{grid-template-columns:repeat(3,1fr)}
.gallery-grid.cols-4{grid-template-columns:repeat(4,1fr)}
.gallery-grid img{
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:3px;
  border:1px solid var(--line);
  transition:0.3s;
}
.gallery-grid img:hover{
  border-color:var(--gold);
  transform:scale(1.02);
}

/* ============================================================
   43. VIDEO-EMBED BLOCK
   ============================================================ */
.block-video{max-width:960px;margin:0 auto}
.video-wrap{
  position:relative;
  aspect-ratio:16/9;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:4px;
  overflow:hidden;
}
.video-wrap iframe,
.video-wrap video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.video-caption{
  text-align:center;
  font-size:13px;
  color:var(--muted);
  font-style:italic;
  margin-top:16px;
}

/* ============================================================
   44. BLOCK PLACEHOLDER (Promoted Books stub, Form Embed stub,
   missing partial warnings)
   ============================================================ */
.block-placeholder{
  padding:40px 32px;
  border:1px dashed var(--gold);
  color:var(--muted);
  text-align:center;
  font-family:var(--serif);
  font-style:italic;
  border-radius:6px;
  max-width:720px;
  margin:0 auto;
  background:rgba(212,169,74,0.03);
}
.block-placeholder strong{
  color:var(--gold);
  font-style:normal;
  font-family:var(--sans);
  font-weight:500;
  letter-spacing:0.05em;
}
.block-placeholder code{
  font-family:'SF Mono',Menlo,monospace;
  font-size:12px;
  color:var(--cream);
  background:var(--surface);
  padding:2px 6px;
  border-radius:2px;
  font-style:normal;
}
.block-placeholder em{color:var(--gold);font-style:italic}

/* ============================================================
   45. PROSE (rich text for chapter-section, full-text, blog)
   ============================================================ */
.prose{
  font-size:16px;
  line-height:1.75;
  color:var(--text);
}
.prose p{margin-bottom:1.2em}
.prose h2{font-size:clamp(24px,3vw,36px);margin:1.5em 0 0.6em}
.prose h3{font-size:22px;margin:1.4em 0 0.5em}
.prose h4{font-size:18px;margin:1.2em 0 0.4em}
.prose ul,
.prose ol{margin:1em 0 1em 1.5em}
.prose li{margin-bottom:0.4em}
.prose a{
  color:var(--gold);
  border-bottom:1px solid rgba(212,169,74,0.3);
  transition:border-color 0.2s;
}
.prose a:hover{border-bottom-color:var(--gold)}
.prose blockquote{
  border-left:3px solid var(--gold);
  padding:8px 0 8px 24px;
  margin:1.5em 0;
  font-family:var(--serif);
  font-style:italic;
  color:var(--cream);
  font-size:18px;
}
.prose img{border-radius:4px;margin:1.5em 0}
.prose strong{color:var(--cream);font-weight:500}
.prose em{color:var(--gold);font-style:italic}

/* ============================================================
   46. RESPONSIVE OVERRIDES FOR BLOCK BEM CLASSES
   ============================================================ */
@media (max-width:1024px){
  .hgw-portfolio__grid{grid-template-columns:repeat(3,1fr)}
  .block-textimage{grid-template-columns:1fr;gap:40px}
  .block-features__grid.cols-3,
  .block-features__grid.cols-4{grid-template-columns:repeat(2,1fr)}
  .gallery-grid.cols-3,
  .gallery-grid.cols-4{grid-template-columns:repeat(2,1fr)}
  .block-stats__grid{grid-template-columns:repeat(2,1fr);gap:40px 30px}
  .block-stats .stat:nth-child(2)::after{display:none}
  .blog-grid--3,
  .blog-grid--4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){
  .hgw-portfolio__grid{grid-template-columns:repeat(2,1fr)}
  .block-features__grid.cols-2,
  .block-features__grid.cols-3,
  .block-features__grid.cols-4{grid-template-columns:1fr}
  .gallery-grid.cols-2,
  .gallery-grid.cols-3,
  .gallery-grid.cols-4{grid-template-columns:1fr}
  .block-stats__grid{grid-template-columns:1fr;gap:36px}
  .block-stats .stat::after{display:none}
  .team-grid{grid-template-columns:1fr}
  .blog-grid--2,
  .blog-grid--3,
  .blog-grid--4{grid-template-columns:1fr}
}
@media (max-width:480px){
  .hgw-portfolio__grid{grid-template-columns:1fr}
}
/* ============================================================
   47. TESTIMONIAL SHOWCASE - DEMO ALIGNMENT FIXES
   ============================================================ */

/* Section head sits above the stage, centered, higher */
.testimonials .section-head{
  max-width:720px;
  margin-bottom:40px;
}
.testimonials .section-head .chapter{margin-bottom:14px}
.testimonials .section-head .eyebrow{margin-bottom:22px}
.testimonials .section-head h2{margin-bottom:16px}
.testimonials .section-head p{
  font-size:17px;
  line-height:1.7;
  max-width:640px;
  margin:0 auto;
}

/* Tighter card sizing to match demo proportions */
.showcase-quote{
  max-width:260px;
  padding:18px 20px;
  gap:12px;
}
.showcase-quote-body p{
  font-size:13.5px;
  line-height:1.55;
  margin:0 0 8px 0;
}
.showcase-cite{font-size:10.5px}

/* Tag positioning - top-right corner of card, not overlapping avatar */
.showcase-tag{
  top:-9px;
  right:14px;
  padding:3px 9px;
  font-size:8px;
  letter-spacing:0.22em;
}

/* Avatar sizing to match demo */
.showcase-avatar{
  width:42px;
  height:42px;
  font-size:17px;
}

/* Center book slightly smaller, tighter to demo */
.showcase-book{
  width:220px;
  padding:32px 24px 28px;
}
.showcase-book-title{font-size:20px}
.showcase-book-title em{font-size:14px;margin-top:6px}

/* Stage height slightly tighter */
.showcase-stage{min-height:620px}

/* Quote positions - pull cards slightly closer to center like demo */
.showcase-quote-tl{top:4%;left:4%}
.showcase-quote-tr{top:8%;right:4%}
.showcase-quote-bl{bottom:10%;left:8%}
.showcase-quote-br{bottom:14%;right:6%}

@media (max-width:1200px){
  .showcase-quote{max-width:230px}
  .showcase-quote-tl,.showcase-quote-bl{left:2%}
  .showcase-quote-tr,.showcase-quote-br{right:2%}
}
/* ============================================================
   48. SHOWCASE QUOTE HEIGHT CONTROL
   Cap quote height so long testimonials do not overlap the book
   ============================================================ */
.showcase-quote{
  max-height:320px;
  overflow:hidden;
}
.showcase-quote-body{overflow:hidden}
.showcase-quote-body p{
  display:-webkit-box;
  -webkit-line-clamp:8;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Push cards slightly further from center to prevent book overlap */
.showcase-quote-tl{top:2%;left:1%}
.showcase-quote-tr{top:6%;right:1%}
.showcase-quote-bl{bottom:6%;left:3%}
.showcase-quote-br{bottom:10%;right:3%}

/* Slightly bigger stage to fit 4 cards comfortably */
.showcase-stage{min-height:720px}

/* ============================================================
   49. SHOWCASE TAG FIX - prevent tag being clipped by max-height
   ============================================================ */
.showcase-quote{overflow:visible}
.showcase-quote-body{overflow:hidden}
.showcase-tag{
  z-index:5;
  top:-10px;
}
/* ============================================================
   50. PORTFOLIO COVER FITTING + SHOWCASE CENTER BOOK IMAGE
   ============================================================ */

/* Portfolio: force covers to fill the 2:3 tile cleanly */
.hgw-portfolio-card{
  overflow:hidden;
}
.hgw-portfolio-card__cover-wrap{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
}
.hgw-portfolio-card__cover{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

/* Missing cover fallback (rare edge case) */
.hgw-portfolio-card:not(:has(.hgw-portfolio-card__cover)) .hgw-portfolio-card__cover-wrap{
  background:linear-gradient(160deg,#1E4257,#0B1C28);
}

/* Showcase center book: support image background variant */
.showcase-book.has-image{
  padding:0;
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.showcase-book.has-image > *{display:none}
.showcase-book.has-image::before{opacity:0.55}
/* ==========================================================================
   Section 51: Welcome Modal (matches Index-blue.html reference)
   ========================================================================== */
.modal-backdrop{
  position:fixed;inset:0;
  background:rgba(6,19,28,0.9);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  z-index:200;display:none;
  align-items:flex-start;justify-content:center;
  padding:40px 20px;overflow-y:auto;-webkit-overflow-scrolling:touch;
  animation:fadeIn 0.4s ease;
}
.modal-backdrop.show{display:flex}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal{
  background:var(--surface);
  border:1px solid var(--line-bright);
  border-radius:6px;
  max-width:720px;width:100%;margin:auto;
  padding:clamp(30px,5vw,60px);
  position:relative;
  animation:slideUp 0.5s ease;
}
@keyframes slideUp{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}
.modal-close{
  position:sticky;top:0;
  margin-left:auto;margin-bottom:-36px;
  width:40px;height:40px;
  background:var(--surface);
  border:1px solid var(--line-bright);
  color:var(--cream);
  font-size:22px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  transition:0.25s;z-index:5;cursor:pointer;
}
.modal-close:hover{border-color:var(--gold);color:var(--gold);transform:rotate(90deg)}
.modal .eyebrow{margin-bottom:16px}
.modal h2{font-size:clamp(26px,3.5vw,38px);margin-bottom:14px}
.modal-lead{font-size:15px;color:var(--muted);margin-bottom:32px;line-height:1.7}
.modal-paths{
  display:grid;grid-template-columns:1fr 1fr;gap:18px;
}
.path-card{
  padding:28px 24px;
  background:var(--surface-2);
  border:1px solid var(--line-bright);
  border-radius:4px;
  text-align:left;
  transition:all 0.3s;cursor:pointer;
  display:flex;flex-direction:column;
  min-height:200px;
  text-decoration:none;color:inherit;
}
.path-card:hover{
  border-color:var(--gold);
  transform:translateY(-3px);
  background:var(--surface);
}
.path-icon{
  width:44px;height:44px;
  border:1px solid var(--gold);color:var(--gold);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-style:italic;font-size:22px;
  margin-bottom:20px;border-radius:50%;
}
.path-card h4{color:var(--cream);font-size:19px;margin-bottom:10px}
.path-card p{font-size:13px;line-height:1.6;color:var(--muted);flex:1}
.path-card .arrow-line{
  margin-top:20px;padding-top:16px;
  border-top:1px solid var(--line-bright);
  color:var(--gold);
  font-size:12px;letter-spacing:0.14em;
  text-transform:uppercase;font-weight:500;
  display:flex;align-items:center;gap:8px;
  transition:0.25s;
}
.path-card:hover .arrow-line{gap:14px}
.modal-skip{
  margin-top:22px;text-align:center;
  font-size:12px;color:var(--muted);
  letter-spacing:0.1em;
}
.modal-skip a{
  color:var(--gold);
  text-decoration:underline;text-underline-offset:3px;
  cursor:pointer;background:none;border:0;
  font-size:inherit;letter-spacing:inherit;
}
.modal-skip a:hover{color:var(--gold-bright)}
@media (max-width:768px){
  .modal-paths{grid-template-columns:1fr;gap:12px}
}
@media (max-width:480px){
  .modal{padding:26px 22px}
}
/* ==============================================
   Section 52 — Blog public pages (Step 6c)
   Uses Deep Ink theme + existing .blog-card__* classes
   ============================================== */
.blog-page{background:var(--ink);padding-top:80px;padding-bottom:80px}
.blog-page .chapter-eyebrow,.blog-single .chapter-eyebrow{margin-bottom:14px}
.blog-page .section-heading{margin-bottom:12px}
.blog-page .section-intro{max-width:640px;margin:0 auto 60px;text-align:center}

.blog-layout{display:grid;grid-template-columns:1fr 300px;gap:60px;align-items:start}
.blog-main{min-width:0}

.blog-sidebar{position:sticky;top:100px;display:flex;flex-direction:column;gap:32px}
.blog-widget{background:var(--surface);border:1px solid rgba(212,169,74,0.15);border-radius:4px;padding:24px 22px}
.blog-widget__title{font-family:'Playfair Display',serif;font-size:1.1rem;color:var(--cream);margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid rgba(212,169,74,0.15);letter-spacing:0.02em}
.blog-widget__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.blog-widget__link{display:flex;justify-content:space-between;align-items:center;padding:8px 0;color:rgba(247,241,225,0.75);font-size:.94rem;text-decoration:none;border-bottom:1px dashed rgba(212,169,74,0.08);transition:color .2s ease}
.blog-widget__link:hover{color:var(--gold)}
.blog-widget__link:last-child{border-bottom:none}
.blog-widget__count{font-size:.75rem;color:var(--gold);background:rgba(212,169,74,0.08);padding:2px 8px;border-radius:10px}

.blog-search-form{display:flex;gap:0;align-items:stretch}
.blog-search-form__input{flex:1;min-width:0;background:rgba(10,27,38,0.6);border:1px solid rgba(212,169,74,0.2);border-right:none;border-radius:3px 0 0 3px;padding:10px 14px;color:var(--cream);font-family:'Inter',sans-serif;font-size:.92rem}
.blog-search-form__input:focus{outline:none;border-color:var(--gold)}
.blog-search-form__input::placeholder{color:rgba(247,241,225,0.4)}
.blog-search-form__submit{background:var(--gold);color:var(--ink);border:none;padding:0 16px;border-radius:0 3px 3px 0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-weight:600;transition:background .2s ease}
.blog-search-form__submit:hover{background:#E0B75A}
.blog-search-form--wide{max-width:520px;margin:0 auto 40px}
.blog-search-form--wide .blog-search-form__submit{padding:10px 22px}

.blog-tag-cloud{display:flex;flex-wrap:wrap;gap:6px}
.blog-tag-chip{display:inline-block;background:rgba(10,27,38,0.6);border:1px solid rgba(212,169,74,0.2);border-radius:2px;padding:5px 10px;color:rgba(247,241,225,0.8);font-size:.78rem;text-decoration:none;letter-spacing:0.02em;transition:all .2s ease}
.blog-tag-chip:hover{background:var(--gold);color:var(--ink);border-color:var(--gold)}

.blog-pagination{margin-top:60px;display:flex;justify-content:center}
.blog-pagination nav{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}
.blog-pagination svg{width:18px;height:18px}
.blog-pagination a,.blog-pagination span{color:var(--cream);padding:8px 14px;border:1px solid rgba(212,169,74,0.15);border-radius:2px;text-decoration:none;font-size:.9rem;background:var(--surface);transition:all .2s ease}
.blog-pagination a:hover{border-color:var(--gold);color:var(--gold)}
.blog-pagination .bg-white,.blog-pagination [aria-current]{background:var(--gold)!important;color:var(--ink)!important;border-color:var(--gold)!important}

.blog-empty{padding:60px 20px;text-align:center;color:rgba(247,241,225,0.6);background:var(--surface);border:1px dashed rgba(212,169,74,0.2);border-radius:4px}
.blog-empty p{margin:0 0 16px}

.blog-single{background:var(--ink);padding-top:60px;padding-bottom:80px}
.blog-single__crumbs{font-size:.85rem;color:rgba(247,241,225,0.55);margin-bottom:30px;letter-spacing:0.03em}
.blog-single__crumbs a{color:rgba(247,241,225,0.7);text-decoration:none}
.blog-single__crumbs a:hover{color:var(--gold)}
.blog-single__crumbs span{margin:0 8px;color:rgba(212,169,74,0.4)}

.blog-single__header{max-width:820px;margin:0 auto 40px;text-align:center}
.blog-single__category{display:inline-block;font-size:.72rem;color:var(--gold);letter-spacing:.15em;text-transform:uppercase;margin-bottom:14px}
.blog-single__title{font-family:'Playfair Display',serif;font-size:clamp(2rem,4vw,3rem);line-height:1.2;color:var(--cream);margin:0 0 20px}
.blog-single__lead{font-size:1.15rem;color:rgba(247,241,225,0.75);line-height:1.6;margin:0 0 24px;font-style:italic}
.blog-single__meta{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;font-size:.85rem;color:rgba(247,241,225,0.55);letter-spacing:.03em}
.blog-single__author{color:var(--gold)}

.blog-single__hero{margin:0 0 50px;border-radius:4px;overflow:hidden;border:1px solid rgba(212,169,74,0.15)}
.blog-single__hero img{width:100%;height:auto;display:block}

.blog-single__body{color:rgba(247,241,225,0.88);font-size:1.05rem;line-height:1.8}
.blog-single__body p{margin:0 0 1.4em}
.blog-single__body h2{font-family:'Playfair Display',serif;font-size:1.7rem;color:var(--cream);margin:2em 0 .6em}
.blog-single__body h3{font-family:'Playfair Display',serif;font-size:1.35rem;color:var(--cream);margin:1.8em 0 .5em}
.blog-single__body a{color:var(--gold);text-decoration:underline}
.blog-single__body a:hover{color:#E0B75A}
.blog-single__body blockquote{border-left:3px solid var(--gold);padding:8px 20px;margin:1.6em 0;color:rgba(247,241,225,0.8);font-style:italic;background:rgba(212,169,74,0.04)}
.blog-single__body ul,.blog-single__body ol{margin:0 0 1.4em;padding-left:1.4em}
.blog-single__body li{margin-bottom:.5em}
.blog-single__body img{max-width:100%;height:auto;border-radius:4px;margin:1.6em 0}
.blog-single__body code{background:rgba(212,169,74,0.08);color:var(--gold);padding:2px 6px;border-radius:2px;font-size:.9em}
.blog-single__body pre{background:var(--surface);border:1px solid rgba(212,169,74,0.15);border-radius:4px;padding:16px 20px;overflow-x:auto;margin:1.6em 0}
.blog-single__body pre code{background:none;padding:0;color:var(--cream)}

.blog-single__tags{margin-top:40px;padding-top:30px;border-top:1px solid rgba(212,169,74,0.15);display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.blog-single__tags-label{color:rgba(247,241,225,0.6);font-size:.85rem;margin-right:6px}

.blog-related{margin-top:80px;padding-top:60px;border-top:1px solid rgba(212,169,74,0.15)}
.blog-related__title{font-family:'Playfair Display',serif;font-size:1.6rem;color:var(--cream);margin:0 0 30px;text-align:center}

@media (max-width: 960px){
  .blog-layout{grid-template-columns:1fr;gap:40px}
  .blog-sidebar{position:static;order:2}
  .blog-single__header{margin-bottom:30px}
  .blog-single__title{font-size:2rem}
}
/* ==============================================
   Section 52b — Blog live search dropdown
   ============================================== */
.blog-search-live{position:relative}
.blog-search-live__field{display:flex;gap:0;align-items:stretch}
.blog-search-live__dropdown{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid rgba(212,169,74,0.25);border-radius:3px;box-shadow:0 12px 32px rgba(0,0,0,0.45);z-index:40;overflow:hidden}
.blog-search-live__list{list-style:none;margin:0;padding:0;max-height:340px;overflow-y:auto}
.blog-search-live__item{display:block;padding:12px 14px;text-decoration:none;border-bottom:1px solid rgba(212,169,74,0.08);transition:background .18s ease}
.blog-search-live__item:hover{background:rgba(212,169,74,0.08)}
.blog-search-live__list li:last-child .blog-search-live__item{border-bottom:none}
.blog-search-live__title{display:block;color:var(--cream);font-size:.9rem;font-weight:500;line-height:1.35;margin-bottom:4px}
.blog-search-live__item:hover .blog-search-live__title{color:var(--gold)}
.blog-search-live__excerpt{display:block;color:rgba(247,241,225,0.55);font-size:.78rem;line-height:1.45}
.blog-search-live__all{display:block;padding:10px 14px;background:rgba(212,169,74,0.08);color:var(--gold);text-decoration:none;font-size:.82rem;text-align:center;border-top:1px solid rgba(212,169,74,0.15);transition:background .2s ease}
.blog-search-live__all:hover{background:rgba(212,169,74,0.15)}
.blog-search-live__empty{padding:16px;text-align:center;color:rgba(247,241,225,0.55);font-size:.85rem}

/* ==============================================
   Section 52c — Blog comments (Deep Ink theme)
   ============================================== */
.blog-comments{margin-top:60px;padding-top:40px;border-top:1px solid rgba(212,169,74,0.15);scroll-margin-top:100px}
.blog-comments__head{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.blog-comments__title{font-family:'Playfair Display',serif;font-size:1.5rem;color:var(--cream);margin:0;white-space:nowrap}
.blog-comments__count{color:rgba(247,241,225,0.5);font-size:1rem;font-weight:400}
.blog-comments__rule{flex:1;height:1px;background:rgba(212,169,74,0.15)}

.blog-comments__notice{display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(212,169,74,0.1);border:1px solid rgba(212,169,74,0.3);border-radius:4px;padding:12px 16px;margin-bottom:20px;color:var(--cream);font-size:.9rem}
.blog-comments__notice-close{background:none;border:none;color:var(--gold);font-size:1.4rem;line-height:1;cursor:pointer;padding:0 4px}

.blog-comment-form{background:var(--surface);border:1px solid rgba(212,169,74,0.15);border-radius:4px;padding:20px;margin-bottom:32px}
.blog-comment-form__row{display:flex;gap:14px;align-items:flex-start}
.blog-comment-form__body{flex:1;min-width:0}
.blog-comment-form__textarea{width:100%;background:rgba(10,27,38,0.6);border:1px solid rgba(212,169,74,0.2);border-radius:3px;padding:12px 14px;color:var(--cream);font-family:'Inter',sans-serif;font-size:.95rem;line-height:1.55;resize:vertical;outline:none;box-sizing:border-box}
.blog-comment-form__textarea:focus{border-color:var(--gold)}
.blog-comment-form__textarea::placeholder{color:rgba(247,241,225,0.4)}
.blog-comment-form__error{color:#E88;font-size:.82rem;margin-top:6px}
.blog-comment-form__actions{display:flex;justify-content:flex-end;gap:12px;margin-top:12px;align-items:center}
.blog-comment-form__actions--reply{margin-top:8px}
.blog-comment-form__submit{background:var(--gold);color:var(--ink);border:none;padding:10px 22px;border-radius:3px;font-family:'Inter',sans-serif;font-size:.9rem;font-weight:600;letter-spacing:.02em;cursor:pointer;text-decoration:none;display:inline-block;transition:background .2s ease}
.blog-comment-form__submit:hover{background:#E0B75A}
.blog-comment-form__submit:disabled{opacity:.6;cursor:wait}
.blog-comment-form__submit--sm{padding:8px 18px;font-size:.82rem}

.blog-comments__closed{color:rgba(247,241,225,0.55);font-size:.9rem;text-align:center;padding:8px}
.blog-comments__auth-gate{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;color:rgba(247,241,225,0.75);font-size:.92rem}

.blog-comments__list{display:flex;flex-direction:column;gap:22px}
.blog-comments__empty{text-align:center;padding:36px 20px;color:rgba(247,241,225,0.55);font-size:.95rem;background:var(--surface);border:1px dashed rgba(212,169,74,0.2);border-radius:4px}

.blog-comment{}
.blog-comment__row{display:flex;gap:12px;align-items:flex-start}
.blog-comment__avatar{width:40px;height:40px;border-radius:50%;background:var(--gold);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.95rem;flex-shrink:0;letter-spacing:.02em}
.blog-comment__avatar--sm{width:30px;height:30px;font-size:.78rem}
.blog-comment__main{flex:1;min-width:0}
.blog-comment__bubble{background:var(--surface);border:1px solid rgba(212,169,74,0.15);border-radius:4px 12px 12px 12px;padding:11px 14px}
.blog-comment__author{display:block;font-size:.86rem;font-weight:600;color:var(--gold);letter-spacing:.02em;margin-bottom:4px}
.blog-comment__body{margin:0;font-size:.94rem;line-height:1.55;color:rgba(247,241,225,0.88);white-space:pre-line;word-break:break-word}
.blog-comment__meta{display:flex;flex-wrap:wrap;gap:14px;margin:6px 4px 0;font-size:.78rem;color:rgba(247,241,225,0.5);align-items:center}
.blog-comment__action{background:none;border:none;color:rgba(247,241,225,0.6);font-family:'Inter',sans-serif;font-size:.78rem;font-weight:600;cursor:pointer;padding:0;letter-spacing:.02em}
.blog-comment__action:hover{color:var(--gold)}
.blog-comment__action--muted{font-weight:400}

.blog-comment__replies{margin-top:12px}
.blog-comment__toggle-replies{background:none;border:none;color:var(--gold);font-family:'Inter',sans-serif;font-size:.82rem;font-weight:600;cursor:pointer;padding:0;margin-left:4px}
.blog-reply{display:flex;gap:10px;margin-top:10px;padding-left:12px;border-left:2px solid rgba(212,169,74,0.2)}
.blog-reply .blog-comment__bubble{border-radius:4px 10px 10px 10px;padding:9px 12px}
.blog-reply .blog-comment__body{font-size:.88rem}

.blog-comment__reply-form{margin-top:12px;padding-left:12px;border-left:2px dashed rgba(212,169,74,0.15)}

@media (max-width: 640px){
  .blog-comments__title{font-size:1.25rem}
  .blog-comment-form{padding:14px}
  .blog-comment-form__row{gap:10px}
  .blog-comment__avatar{width:34px;height:34px;font-size:.85rem}
  .blog-comments__auth-gate{flex-direction:column;align-items:flex-start}
}
/* ================================================================
   Section 53 — Contact form (Livewire, Step 7c-ii)
   ================================================================ */
.contact-form-section { padding: 80px 0; background: var(--surface); }
.contact-form-wrap { max-width: 720px; margin: 0 auto; }
.contact-form-wrap .section-heading { font-family: var(--font-serif); color: var(--cream); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; text-align: center; }
.contact-form-wrap .section-intro { color: var(--cream); opacity: 0.75; text-align: center; margin-bottom: 40px; font-size: 1.05rem; line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 20px; position: relative; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form .field label { color: var(--cream); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em; }
.contact-form .field-optional { color: var(--cream); opacity: 0.5; font-weight: 400; font-size: 0.85rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
    background: var(--ink); border: 1px solid rgba(212, 169, 74, 0.25); color: var(--cream);
    padding: 12px 14px; font-family: var(--font-sans); font-size: 1rem; border-radius: 2px;
    transition: border-color 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 140px; font-family: var(--font-sans); }
.contact-form .field-error { color: #e57373; font-size: 0.85rem; margin-top: 4px; }
.contact-form .field-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.contact-form .btn-primary { background: var(--gold); color: var(--ink); border: none; padding: 14px 32px; font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: background 0.2s ease; }
.contact-form .btn-primary:hover { background: #b8912f; }
.contact-form .btn-primary:disabled { opacity: 0.6; cursor: wait; }
.contact-form-success { background: var(--ink); border: 1px solid var(--gold); padding: 40px; text-align: center; border-radius: 2px; }
.contact-form-success p { color: var(--gold); font-family: var(--font-serif); font-size: 1.15rem; margin: 0; }
@media (max-width: 640px) {
    .contact-form-section { padding: 60px 0; }
    .contact-form .field-row { grid-template-columns: 1fr; }
    .contact-form-wrap .section-intro { margin-bottom: 32px; }
}

/* ================================================================
   Section 54 — Contact Modal Drawer (Step 7c-ii-mod-6)
   Right-slide editorial drawer with Deep Ink theme
   ================================================================ */
[x-cloak] { display: none !important; }

.contact-drawer {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
}
.contact-drawer.is-open {
    pointer-events: auto;
}

/* Backdrop */
.contact-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 27, 38, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Drawer panel */
.contact-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    border-left: 1px solid rgba(212, 169, 74, 0.25);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Slide-in transitions (used by x-transition classes) */
.drawer-enter {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer-enter-start {
    transform: translateX(100%);
}
.drawer-enter-end {
    transform: translateX(0);
}
.drawer-leave {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}
.drawer-leave-start {
    transform: translateX(0);
}
.drawer-leave-end {
    transform: translateX(100%);
}

/* Close button */
.contact-drawer__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(212, 169, 74, 0.3);
    color: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}
.contact-drawer__close:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    transform: rotate(90deg);
}

/* Drawer body */
.contact-drawer__body {
    padding: 72px 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-drawer__eyebrow {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.contact-drawer__heading {
    font-family: var(--font-serif);
    color: var(--cream);
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 500;
}

.contact-drawer__intro {
    color: var(--cream);
    opacity: 0.72;
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 32px;
}

/* Form */
.contact-drawer__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.contact-drawer__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-drawer__field label {
    color: var(--cream);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0.85;
}
.contact-drawer__field input[type="text"],
.contact-drawer__field input[type="email"],
.contact-drawer__field input[type="tel"],
.contact-drawer__field textarea {
    background: var(--ink);
    border: 1px solid rgba(212, 169, 74, 0.22);
    color: var(--cream);
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    border-radius: 2px;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}
.contact-drawer__field input:focus,
.contact-drawer__field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(10, 27, 38, 0.6);
}
.contact-drawer__field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-sans);
    line-height: 1.5;
}
.contact-drawer__field-error {
    color: #e57373;
    font-size: 0.8rem;
    margin-top: 2px;
}

.contact-drawer__error {
    padding: 12px 14px;
    background: rgba(229, 115, 115, 0.1);
    border-left: 3px solid #e57373;
    color: #e57373;
    font-size: 0.88rem;
    border-radius: 2px;
}

.contact-drawer__submit {
    background: var(--gold);
    color: var(--ink);
    border: none;
    padding: 15px 32px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: 12px;
}
.contact-drawer__submit:hover {
    background: #b8912f;
}
.contact-drawer__submit:active {
    transform: scale(0.98);
}
.contact-drawer__submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Success state */
.contact-drawer__success {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.contact-drawer__success-mark {
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-drawer__success-heading {
    font-family: var(--font-serif);
    color: var(--cream);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 500;
}
.contact-drawer__success-body {
    color: var(--cream);
    opacity: 0.75;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}
.contact-drawer__reset-btn {
    margin-top: 12px;
    background: transparent;
    border: 1px solid rgba(212, 169, 74, 0.4);
    color: var(--gold);
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}
.contact-drawer__reset-btn:hover {
    background: var(--gold);
    color: var(--ink);
}

/* Mobile */
@media (max-width: 640px) {
    .contact-drawer__panel {
        max-width: 100%;
    }
    .contact-drawer__body {
        padding: 64px 24px 32px;
    }
    .contact-drawer__close {
        top: 16px;
        right: 16px;
    }
    .contact-drawer__heading {
        font-size: 1.5rem;
    }
    .contact-drawer__success {
        padding: 32px 16px;
    }
    .contact-drawer__success-heading {
        font-size: 1.5rem;
    }
}

/* ================================================================
   Section 54b — Contact Modal fit-to-screen + mobile polish
   ================================================================ */

/* Use dynamic viewport height so mobile browsers with bottom UI bars
   don't cut off the drawer. Fallback to 100vh for old browsers. */
.contact-drawer__panel {
    height: 100vh;
    height: 100dvh;
}

/* Tighten desktop padding so more content fits above the fold */
.contact-drawer__body {
    padding: 64px 40px 40px;
}

/* Smaller intro margin so form comes into view faster */
.contact-drawer__intro {
    margin-bottom: 24px;
}

.contact-drawer__form {
    gap: 16px;
}

/* Sticky submit button feel on tall content: adds visual weight */
.contact-drawer__submit {
    margin-top: 8px;
    padding: 14px 28px;
}

/* Custom scrollbar for drawer panel */
.contact-drawer__panel::-webkit-scrollbar {
    width: 6px;
}
.contact-drawer__panel::-webkit-scrollbar-track {
    background: transparent;
}
.contact-drawer__panel::-webkit-scrollbar-thumb {
    background: rgba(212, 169, 74, 0.3);
    border-radius: 3px;
}
.contact-drawer__panel::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 169, 74, 0.5);
}

/* Tablet: tighten side padding */
@media (max-width: 900px) {
    .contact-drawer__panel {
        max-width: 460px;
    }
    .contact-drawer__body {
        padding: 56px 32px 32px;
    }
    .contact-drawer__heading {
        font-size: 1.6rem;
    }
}

/* Mobile: full-width drawer, tightest padding */
@media (max-width: 640px) {
    .contact-drawer__panel {
        max-width: 100%;
        border-left: none;
    }
    .contact-drawer__body {
        padding: 56px 20px 24px;
    }
    .contact-drawer__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    .contact-drawer__eyebrow {
        font-size: 0.88rem;
        margin-bottom: 8px;
    }
    .contact-drawer__heading {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .contact-drawer__intro {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }
    .contact-drawer__form {
        gap: 14px;
    }
    .contact-drawer__field label {
        font-size: 0.82rem;
    }
    .contact-drawer__field input,
    .contact-drawer__field textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    .contact-drawer__field textarea {
        min-height: 100px;
    }
    .contact-drawer__submit {
        padding: 13px 24px;
        font-size: 0.85rem;
        width: 100%;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .contact-drawer__body {
        padding: 52px 16px 20px;
    }
    .contact-drawer__heading {
        font-size: 1.25rem;
    }
}

/* Landscape mobile: shrink top padding since height is scarce */
@media (max-height: 500px) and (orientation: landscape) {
    .contact-drawer__body {
        padding: 44px 32px 24px;
    }
    .contact-drawer__eyebrow {
        margin-bottom: 6px;
    }
    .contact-drawer__heading {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }
    .contact-drawer__intro {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }
    .contact-drawer__form {
        gap: 12px;
    }
}
/* Portfolio grid: admin-configurable column count.
   Blade sets --hgw-portfolio-cols on the .hgw-portfolio__grid inline.
   Existing CSS in .hgw-portfolio__grid still handles gap, mobile stacking, etc.
   Media queries below keep mobile and tablet responsive regardless of desktop choice. */
.hgw-portfolio__grid[style*="--hgw-portfolio-cols"]{
    display: grid;
    grid-template-columns: repeat(var(--hgw-portfolio-cols, 3), minmax(0, 1fr));
}
@media (max-width: 900px){
    .hgw-portfolio__grid[style*="--hgw-portfolio-cols"]{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px){
    .hgw-portfolio__grid[style*="--hgw-portfolio-cols"]{
        grid-template-columns: 1fr;
    }
}
/* Session 18, Portal Item 5 fix: guarantee mobile drawer Login button is always visible.
   Prior CSS relied on natural flow; on tall menus or short viewports the button could
   scroll off with the drawer's overflow-y:auto. Make it a sticky footer inside the drawer. */
.mobile-drawer{
    display: flex;
    flex-direction: column;
}
.mobile-drawer > ul{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 20px;
}
.mobile-drawer .member-login.mobile-login-cta{
    flex: 0 0 auto;
    margin-top: 0;
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding-top: 12px;
    padding-bottom: 4px;
}
/* Session 18, Portal Item 5 (part 2): mobile drawer polish - collapsible submenus, tighter spacing. */
.mobile-drawer .mobile-nav{
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.mobile-drawer .mobile-nav__item{
    border-bottom: 1px solid var(--line);
}
.mobile-drawer .mobile-nav__item > a,
.mobile-drawer .mobile-nav__toggle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    letter-spacing: 0.05em;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}
.mobile-drawer .mobile-nav__item > a:hover,
.mobile-drawer .mobile-nav__toggle:hover{
    color: var(--gold);
}
.mobile-drawer .mobile-nav__chevron{
    display: inline-block;
    font-size: 12px;
    color: var(--gold);
    transition: transform 0.2s ease;
    margin-left: 12px;
}
.mobile-drawer .mobile-nav__item--has-children.is-open .mobile-nav__chevron{
    transform: rotate(90deg);
}
.mobile-drawer .mobile-nav__submenu{
    list-style: none;
    margin: 0 0 10px;
    padding: 4px 0 8px 16px;
    border-left: 2px solid var(--line);
}
.mobile-drawer .mobile-nav__submenu li{
    border-bottom: 0;
}
.mobile-drawer .mobile-nav__submenu a{
    display: block;
    padding: 10px 0;
    color: var(--text-dim, var(--text));
    font-size: 13px;
    letter-spacing: 0.04em;
}
.mobile-drawer .mobile-nav__submenu a:hover{
    color: var(--gold);
}
.mobile-drawer .member-login.mobile-login-cta{
    padding: 10px 16px;
    font-size: 13px;
    letter-spacing: 0.08em;
}
/* Session 18, Portal Item 5 (part 3): mobile viewport overflow guards.
   Prevents horizontal scroll on small screens caused by decorative elements
   (hero orbits, sliders, wide grids) exceeding the viewport width. */
html{
    overflow-x: hidden;
    max-width: 100%;
}
body{
    max-width: 100vw;
}
img, video, iframe, svg, canvas{
    max-width: 100%;
    height: auto;
}
@media (max-width: 900px){
    .wrap,
    .container{
        max-width: 100%;
        width: 100%;
    }
    .hero,
    .hero-grid,
    .hero-visual,
    .section{
        overflow-x: hidden;
        max-width: 100vw;
    }
}
@media (max-width: 560px){
    .showcase-orbit-1,
    .showcase-orbit-2{
        display: none;
    }
    .hero-book,
    .hero-visual{
        max-width: 100%;
    }
}
/* Session 18, Portal Item 5 (part 4): process-steps block responsive stacking.
   The .steps element sets grid-template-columns inline (e.g. repeat(5,1fr))
   which cannot be overridden by normal CSS. Force stacking on smaller screens.
   Uses !important only because the source is an inline style attribute. */
.steps{
    display: grid;
    gap: 24px;
}
@media (max-width: 1024px){
    .steps{
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px){
    .steps{
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}
@media (max-width: 480px){
    .steps{
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}
/* ==========================================================================
   Portfolio public page (/portfolio and /portfolio/{slug})
   ========================================================================== */

.hgw-portfolio-page {
    padding: 96px 0 120px;
    background: var(--ink, #0A1B26);
    color: var(--cream, #F7F1E1);
}

.hgw-portfolio-page__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.hgw-portfolio-page__eyebrow {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--gold, #D4A94A);
    margin-bottom: 14px;
}

.hgw-portfolio-page__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.hgw-portfolio-page__lede {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(247, 241, 225, 0.78);
    margin: 0;
}

/* Filter bar */
.hgw-portfolio-filters {
    background: var(--surface, #122633);
    border: 1px solid rgba(212, 169, 74, 0.18);
    border-radius: 14px;
    padding: 20px;
    margin: 0 0 24px;
}
.hgw-portfolio-filters__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}
.hgw-portfolio-filters__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.hgw-portfolio-filters__field--grow { min-width: 0; }
.hgw-portfolio-filters__label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(247, 241, 225, 0.55);
}
.hgw-portfolio-filters__input,
.hgw-portfolio-filters__select {
    background: rgba(10, 27, 38, 0.7);
    border: 1px solid rgba(247, 241, 225, 0.14);
    color: var(--cream, #F7F1E1);
    padding: 11px 13px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    width: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.hgw-portfolio-filters__input:focus,
.hgw-portfolio-filters__select:focus {
    outline: none;
    border-color: var(--gold, #D4A94A);
    background: rgba(10, 27, 38, 0.9);
}
.hgw-portfolio-filters__actions {
    display: flex;
    gap: 8px;
}
.hgw-portfolio-filters__btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.hgw-portfolio-filters__btn--primary {
    background: var(--gold, #D4A94A);
    color: var(--ink, #0A1B26);
    border-color: var(--gold, #D4A94A);
}
.hgw-portfolio-filters__btn--primary:hover {
    background: #c39a3d;
    border-color: #c39a3d;
}
.hgw-portfolio-filters__btn--ghost {
    background: transparent;
    color: var(--cream, #F7F1E1);
    border-color: rgba(247, 241, 225, 0.25);
}
.hgw-portfolio-filters__btn--ghost:hover {
    border-color: var(--gold, #D4A94A);
    color: var(--gold, #D4A94A);
}

.hgw-portfolio-page__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(247, 241, 225, 0.6);
    margin: 0 0 28px;
}
.hgw-portfolio-page__chip {
    background: rgba(212, 169, 74, 0.12);
    color: var(--cream, #F7F1E1);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

/* Card additions used on the public listing */
.hgw-portfolio-card__cover-wrap { position: relative; }
.hgw-portfolio-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold, #D4A94A);
    color: var(--ink, #0A1B26);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}
.hgw-portfolio-card__cover--placeholder {
    background: linear-gradient(135deg, #1a3346 0%, #0A1B26 100%);
    color: var(--gold, #D4A94A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    aspect-ratio: 2/3;
}

/* Empty state */
.hgw-portfolio-empty {
    text-align: center;
    padding: 72px 20px;
    background: var(--surface, #122633);
    border: 1px solid rgba(212, 169, 74, 0.18);
    border-radius: 14px;
    margin-top: 12px;
}
.hgw-portfolio-empty h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin: 0 0 10px;
}
.hgw-portfolio-empty p {
    font-family: 'Inter', sans-serif;
    color: rgba(247, 241, 225, 0.7);
    margin: 0;
}
.hgw-portfolio-empty a {
    color: var(--gold, #D4A94A);
    text-decoration: underline;
}

/* Pagination */
.hgw-portfolio-pagination {
    margin: 44px 0 0;
    display: flex;
    justify-content: center;
}
.hgw-portfolio-pagination nav[role="navigation"] { color: var(--cream); }
.hgw-portfolio-pagination svg { width: 16px; height: 16px; }
.hgw-portfolio-pagination a,
.hgw-portfolio-pagination span[aria-current],
.hgw-portfolio-pagination span[aria-disabled] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 3px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--cream, #F7F1E1);
    background: var(--surface, #122633);
    border: 1px solid rgba(247, 241, 225, 0.12);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.hgw-portfolio-pagination a:hover {
    border-color: var(--gold, #D4A94A);
    color: var(--gold, #D4A94A);
}
.hgw-portfolio-pagination span[aria-current] {
    background: var(--gold, #D4A94A);
    color: var(--ink, #0A1B26);
    border-color: var(--gold, #D4A94A);
    font-weight: 700;
}
.hgw-portfolio-pagination span[aria-disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}
.hgw-portfolio-pagination p { display: none; }

/* ==========================================================================
   Portfolio detail (/portfolio/{slug})
   ========================================================================== */

.hgw-portfolio-detail {
    padding: 60px 0 120px;
    background: var(--ink, #0A1B26);
    color: var(--cream, #F7F1E1);
}
.hgw-portfolio-detail__crumbs {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(247, 241, 225, 0.6);
    margin: 0 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.hgw-portfolio-detail__crumbs a {
    color: rgba(247, 241, 225, 0.75);
    text-decoration: none;
}
.hgw-portfolio-detail__crumbs a:hover { color: var(--gold, #D4A94A); }
.hgw-portfolio-detail__crumbs span[aria-current] { color: var(--gold, #D4A94A); }

.hgw-portfolio-detail__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 56px;
}
.hgw-portfolio-detail__cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 169, 74, 0.15);
}
.hgw-portfolio-detail__cover-placeholder {
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #1a3346 0%, #0A1B26 100%);
    color: var(--gold, #D4A94A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 169, 74, 0.15);
}

.hgw-portfolio-detail__eyebrow {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--gold, #D4A94A);
    margin-bottom: 14px;
}
.hgw-portfolio-detail__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.hgw-portfolio-detail__byline {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: rgba(247, 241, 225, 0.75);
    margin-bottom: 22px;
}
.hgw-portfolio-detail__byline strong { color: var(--cream, #F7F1E1); font-weight: 600; }
.hgw-portfolio-detail__year { color: rgba(247, 241, 225, 0.55); }
.hgw-portfolio-detail__excerpt {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.55;
    color: rgba(247, 241, 225, 0.9);
    padding: 20px 0 20px 22px;
    border-left: 3px solid var(--gold, #D4A94A);
    margin: 0 0 26px;
}
.hgw-portfolio-detail__tags {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hgw-portfolio-detail__tags a {
    display: inline-block;
    background: rgba(212, 169, 74, 0.1);
    color: var(--cream, #F7F1E1);
    padding: 6px 12px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid rgba(212, 169, 74, 0.25);
    transition: background 0.15s ease, color 0.15s ease;
}
.hgw-portfolio-detail__tags a:hover {
    background: var(--gold, #D4A94A);
    color: var(--ink, #0A1B26);
}
.hgw-portfolio-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hgw-portfolio-detail__cta {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.hgw-portfolio-detail__cta--primary {
    background: var(--gold, #D4A94A);
    color: var(--ink, #0A1B26);
    border-color: var(--gold, #D4A94A);
}
.hgw-portfolio-detail__cta--primary:hover { background: #c39a3d; border-color: #c39a3d; }
.hgw-portfolio-detail__cta--ghost {
    color: var(--cream, #F7F1E1);
    border-color: rgba(247, 241, 225, 0.3);
}
.hgw-portfolio-detail__cta--ghost:hover {
    border-color: var(--gold, #D4A94A);
    color: var(--gold, #D4A94A);
}

.hgw-portfolio-detail__body {
    max-width: 780px;
    margin: 0 auto 56px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(247, 241, 225, 0.9);
}
.hgw-portfolio-detail__body p { margin: 0 0 20px; }
.hgw-portfolio-detail__body h2,
.hgw-portfolio-detail__body h3 {
    font-family: 'Playfair Display', serif;
    color: var(--cream, #F7F1E1);
    margin: 32px 0 14px;
}
.hgw-portfolio-detail__body a { color: var(--gold, #D4A94A); }

.hgw-portfolio-detail__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 0 0 56px;
}
.hgw-portfolio-detail__gallery-item { margin: 0; }
.hgw-portfolio-detail__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    aspect-ratio: 4/3;
}

.hgw-portfolio-related { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(212, 169, 74, 0.18); }
.hgw-portfolio-related__heading {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 0 0 26px;
    text-align: center;
}

/* Mobile */
@media (max-width: 900px) {
    .hgw-portfolio-filters__row {
        grid-template-columns: 1fr 1fr;
    }
    .hgw-portfolio-filters__field--grow { grid-column: 1 / -1; }
    .hgw-portfolio-filters__actions { grid-column: 1 / -1; }
    .hgw-portfolio-detail__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hgw-portfolio-detail__cover { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 560px) {
    .hgw-portfolio-page { padding: 60px 0 80px; }
    .hgw-portfolio-detail { padding: 40px 0 80px; }
    .hgw-portfolio-filters__row { grid-template-columns: 1fr; }
    .hgw-portfolio-detail__title { font-size: 30px; }
    .hgw-portfolio-detail__excerpt { font-size: 16px; }
}
/* ==========================================================================
   Portfolio public page — refined card sizing (2026-08-30)
   Overrides earlier .hgw-portfolio-card sizing with a tighter,
   book-shop-style grid. Cards ~200-230px wide, auto-fill grid.
   ========================================================================== */

.hgw-portfolio-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px 24px;
    margin: 0;
    justify-items: center;
    align-items: start;
}

.hgw-portfolio-page .hgw-portfolio-card,
.hgw-portfolio-related .hgw-portfolio-card {
    width: 100%;
    max-width: 230px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.hgw-portfolio-page .hgw-portfolio-card__body,
.hgw-portfolio-related .hgw-portfolio-card__body {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s ease;
}
.hgw-portfolio-page .hgw-portfolio-card__body:hover,
.hgw-portfolio-related .hgw-portfolio-card__body:hover {
    transform: translateY(-6px);
}

.hgw-portfolio-page .hgw-portfolio-card__cover-wrap,
.hgw-portfolio-related .hgw-portfolio-card__cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: rgba(10, 27, 38, 0.4);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 169, 74, 0.12);
    transition: box-shadow 0.28s ease;
}
.hgw-portfolio-page .hgw-portfolio-card__body:hover .hgw-portfolio-card__cover-wrap,
.hgw-portfolio-related .hgw-portfolio-card__body:hover .hgw-portfolio-card__cover-wrap {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 169, 74, 0.4);
}

.hgw-portfolio-page .hgw-portfolio-card__cover,
.hgw-portfolio-related .hgw-portfolio-card__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none;
}

.hgw-portfolio-page .hgw-portfolio-card__cover--placeholder,
.hgw-portfolio-related .hgw-portfolio-card__cover--placeholder {
    background: linear-gradient(135deg, #1a3346 0%, #0A1B26 100%);
    color: var(--gold, #D4A94A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hgw-portfolio-page .hgw-portfolio-card__meta,
.hgw-portfolio-related .hgw-portfolio-card__meta {
    padding: 14px 4px 0;
    text-align: center;
}

.hgw-portfolio-page .hgw-portfolio-card__genre,
.hgw-portfolio-related .hgw-portfolio-card__genre {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold, #D4A94A);
    margin-bottom: 6px;
}

.hgw-portfolio-page .hgw-portfolio-card__title,
.hgw-portfolio-related .hgw-portfolio-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 6px;
    color: var(--cream, #F7F1E1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.hgw-portfolio-page .hgw-portfolio-card__author,
.hgw-portfolio-related .hgw-portfolio-card__author {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(247, 241, 225, 0.65);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.hgw-portfolio-page .hgw-portfolio-card__year,
.hgw-portfolio-related .hgw-portfolio-card__year {
    color: rgba(247, 241, 225, 0.45);
}

.hgw-portfolio-page .hgw-portfolio-card__badge,
.hgw-portfolio-related .hgw-portfolio-card__badge {
    top: 8px;
    left: 8px;
    font-size: 9px;
    padding: 3px 8px;
    letter-spacing: 0.1em;
}

/* Auto-submit form: hidden Apply button + subtle loading state */
.hgw-portfolio-filters__btn--primary[hidden] { display: none !important; }
.hgw-portfolio-filters.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Filters row adjusts now that Apply may be hidden */
.hgw-portfolio-filters__actions:empty { display: none; }

/* Responsive tightening */
@media (max-width: 900px) {
    .hgw-portfolio-page__grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 32px 18px;
    }
    .hgw-portfolio-page .hgw-portfolio-card,
    .hgw-portfolio-related .hgw-portfolio-card {
        max-width: 200px;
    }
    .hgw-portfolio-page .hgw-portfolio-card__title,
    .hgw-portfolio-related .hgw-portfolio-card__title {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .hgw-portfolio-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 14px;
    }
    .hgw-portfolio-page .hgw-portfolio-card,
    .hgw-portfolio-related .hgw-portfolio-card {
        max-width: 100%;
    }
    .hgw-portfolio-page .hgw-portfolio-card__meta,
    .hgw-portfolio-related .hgw-portfolio-card__meta {
        padding: 10px 2px 0;
    }
    .hgw-portfolio-page .hgw-portfolio-card__title,
    .hgw-portfolio-related .hgw-portfolio-card__title {
        font-size: 13px;
    }
    .hgw-portfolio-page .hgw-portfolio-card__author,
    .hgw-portfolio-related .hgw-portfolio-card__author {
        font-size: 11px;
    }
}
/* ==========================================================================
   Blog Latest section — refined card design (2026-08-30)
   Scoped to .blog-latest-section only.
   The /blog index and single pages keep their existing styles untouched.
   ========================================================================== */

.blog-latest-section {
    background: var(--ink, #0A1B26);
    padding: 96px 0 110px;
    position: relative;
}

.blog-latest-section .chapter-eyebrow {
    color: var(--gold, #D4A94A);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 14px;
    display: block;
}
.blog-latest-section .section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    color: var(--cream, #F7F1E1);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.blog-latest-section .section-intro {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(247, 241, 225, 0.7);
    margin: 0 0 56px;
}

/* Grid: 3 across desktop, 2 tablet, 1 mobile */
.blog-latest-section .blog-grid,
.blog-latest-section .blog-grid--3,
.blog-latest-section .blog-grid--4,
.blog-latest-section .blog-grid--2,
.blog-latest-section .blog-grid--6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0;
}

/* Card reset — remove old heavy border/background, use subtle floating card */
.blog-latest-section .blog-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    transform: none !important;
    transition: none;
}
.blog-latest-section .blog-card:hover {
    border-color: transparent;
    transform: none !important;
}

.blog-latest-section .blog-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    background: var(--surface, #122633);
    border: 1px solid rgba(212, 169, 74, 0.12);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.blog-latest-section .blog-card__link:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 169, 74, 0.42);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

/* Cover image — fixed 16:10 aspect so every card is uniform */
.blog-latest-section .blog-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #173A50 0%, #0A1B26 100%);
}
.blog-latest-section .blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.32s ease;
    filter: brightness(0.92);
}
.blog-latest-section .blog-card__link:hover .blog-card__image {
    transform: scale(1.06);
    filter: brightness(1);
}
.blog-latest-section .blog-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 27, 38, 0) 55%, rgba(10, 27, 38, 0.55) 100%);
    pointer-events: none;
}

.blog-latest-section .blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 169, 74, 0.35);
    background: linear-gradient(135deg, #173A50 0%, #0A1B26 100%);
}
.blog-latest-section .blog-card__image-placeholder svg {
    width: 48px;
    height: 48px;
}

/* Card body — tighter padding, cleaner hierarchy */
.blog-latest-section .blog-card__body {
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-latest-section .blog-card__category {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold, #D4A94A);
    margin-bottom: 12px;
}

.blog-latest-section .blog-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    line-height: 1.32;
    color: var(--cream, #F7F1E1);
    margin: 0 0 12px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.28s ease;
}
.blog-latest-section .blog-card__link:hover .blog-card__title {
    color: var(--gold, #D4A94A);
}

.blog-latest-section .blog-card__excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(247, 241, 225, 0.62);
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-latest-section .blog-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 241, 225, 0.45);
    padding-top: 16px;
    border-top: 1px solid rgba(212, 169, 74, 0.1);
    margin-top: auto;
}
.blog-latest-section .blog-card__meta time { color: var(--gold, #D4A94A); font-weight: 600; }
.blog-latest-section .blog-card__meta time::after {
    content: '';
    display: none;
}
.blog-latest-section .blog-card__meta > * {
    position: relative;
}
.blog-latest-section .blog-card__meta > *:not(:last-child)::after {
    content: '·';
    display: inline-block;
    margin-left: 12px;
    color: rgba(212, 169, 74, 0.5);
}
.blog-latest-section .blog-card__reading-time {
    color: rgba(247, 241, 225, 0.55);
    font-weight: 500;
}

/* Tablet */
@media (max-width: 960px) {
    .blog-latest-section { padding: 72px 0 88px; }
    .blog-latest-section .blog-grid,
    .blog-latest-section .blog-grid--3,
    .blog-latest-section .blog-grid--4,
    .blog-latest-section .blog-grid--2,
    .blog-latest-section .blog-grid--6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .blog-latest-section .blog-card__title { font-size: 19px; }
    .blog-latest-section .section-intro { margin-bottom: 40px; }
}

/* Mobile */
@media (max-width: 640px) {
    .blog-latest-section { padding: 56px 0 72px; }
    .blog-latest-section .blog-grid,
    .blog-latest-section .blog-grid--3,
    .blog-latest-section .blog-grid--4,
    .blog-latest-section .blog-grid--2,
    .blog-latest-section .blog-grid--6 {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .blog-latest-section .blog-card__body { padding: 20px 20px 22px; }
    .blog-latest-section .blog-card__title { font-size: 20px; -webkit-line-clamp: 2; }
    .blog-latest-section .blog-card__excerpt { font-size: 13px; -webkit-line-clamp: 2; }
    .blog-latest-section .section-heading { font-size: 32px; }
    .blog-latest-section .section-intro { font-size: 15px; margin-bottom: 32px; }
    .blog-latest-section .blog-card__meta { font-size: 11px; gap: 10px; }
}
/* ==========================================================================
   Members Portal CTA — "Or write it yourself" (2026-08-30)
   Two-column: left copy + bullets + CTAs, right pull-quote panel.
   Deep Ink theme, fully responsive.
   ========================================================================== */

.hgw-members-cta {
    background: var(--ink, #0A1B26);
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}
.hgw-members-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 40% at 15% 30%, rgba(212, 169, 74, 0.06) 0%, transparent 70%),
        radial-gradient(50% 50% at 85% 80%, rgba(212, 169, 74, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hgw-members-cta__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
    align-items: center;
}

/* Left column */
.hgw-members-cta__eyebrow {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold, #D4A94A);
    margin-bottom: 20px;
}

.hgw-members-cta__mark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.hgw-members-cta__rule {
    display: inline-block;
    width: 44px;
    height: 1px;
    background: rgba(212, 169, 74, 0.5);
}
.hgw-members-cta__mark-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--gold, #D4A94A);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.hgw-members-cta__heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5.2vw, 66px);
    line-height: 1.05;
    color: var(--cream, #F7F1E1);
    margin: 0 0 22px;
    letter-spacing: -0.015em;
    font-weight: 400;
}
.hgw-members-cta__heading em {
    font-style: italic;
    color: var(--gold, #D4A94A);
    font-weight: 400;
}

.hgw-members-cta__intro {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(247, 241, 225, 0.75);
    margin: 0 0 28px;
    max-width: 540px;
}

.hgw-members-cta__features {
    list-style: none;
    margin: 0 0 34px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hgw-members-cta__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(247, 241, 225, 0.85);
}
.hgw-members-cta__feature-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--gold, #D4A94A);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    background: rgba(212, 169, 74, 0.12);
    border: 1px solid rgba(212, 169, 74, 0.3);
}

.hgw-members-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hgw-members-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}
.hgw-members-cta__btn--primary {
    background: var(--gold, #D4A94A);
    color: var(--ink, #0A1B26);
    border-color: var(--gold, #D4A94A);
}
.hgw-members-cta__btn--primary:hover {
    background: #E0B75A;
    border-color: #E0B75A;
    transform: translateY(-2px);
}
.hgw-members-cta__btn--ghost {
    color: var(--cream, #F7F1E1);
    border-color: rgba(247, 241, 225, 0.28);
    background: transparent;
}
.hgw-members-cta__btn--ghost:hover {
    border-color: var(--gold, #D4A94A);
    color: var(--gold, #D4A94A);
    transform: translateY(-2px);
}
.hgw-members-cta__arrow {
    display: inline-block;
    transition: transform 0.24s ease;
}
.hgw-members-cta__btn--primary:hover .hgw-members-cta__arrow {
    transform: translateX(4px);
}

/* Right pull-quote panel */
.hgw-members-cta__panel {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hgw-members-cta__panel-inner {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 5;
    background: linear-gradient(155deg, rgba(18, 38, 51, 0.9) 0%, rgba(10, 27, 38, 0.95) 100%);
    border: 1px solid rgba(212, 169, 74, 0.18);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 169, 74, 0.05);
    position: relative;
}
.hgw-members-cta__panel-frame {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 169, 74, 0.28);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}
.hgw-members-cta__panel-quote {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hgw-members-cta__panel-line {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.2;
    color: var(--cream, #F7F1E1);
    font-weight: 400;
    letter-spacing: -0.005em;
}
.hgw-members-cta__panel-line--gold {
    color: var(--gold, #D4A94A);
    margin-top: 12px;
}

/* Tablet */
@media (max-width: 960px) {
    .hgw-members-cta { padding: 72px 0 84px; }
    .hgw-members-cta__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hgw-members-cta__panel-inner {
        max-width: 380px;
        aspect-ratio: 4 / 3;
        margin: 0 auto;
    }
    .hgw-members-cta__panel-frame { padding: 32px 24px; }
    .hgw-members-cta__intro { max-width: 100%; }
}

/* Mobile */
@media (max-width: 600px) {
    .hgw-members-cta { padding: 56px 0 68px; }
    .hgw-members-cta__grid { gap: 36px; }
    .hgw-members-cta__mark-text { font-size: 12px; }
    .hgw-members-cta__rule { width: 28px; }
    .hgw-members-cta__heading { font-size: 34px; }
    .hgw-members-cta__intro { font-size: 15px; }
    .hgw-members-cta__features li { font-size: 14px; }
    .hgw-members-cta__actions { flex-direction: column; align-items: stretch; }
    .hgw-members-cta__btn { justify-content: center; }
    .hgw-members-cta__panel-inner { max-width: 100%; aspect-ratio: 5 / 3; padding: 14px; }
    .hgw-members-cta__panel-frame { padding: 24px 18px; }
    .hgw-members-cta__panel-line { font-size: 26px; }
}
/* ==========================================================================
   Members Portal CTA button alignment (2026-08-30)
   Match site-standard .btn (3px radius, 12px, 1.5px border, gold gradient).
   ========================================================================== */

.hgw-members-cta__btn {
    padding: 14px 26px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    border-width: 1.5px;
    border-style: solid;
    border-radius: 3px;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hgw-members-cta__btn--primary {
    background: linear-gradient(180deg, var(--gold-bright, #E0B75A) 0%, var(--gold, #D4A94A) 100%);
    color: var(--ink, #0A1B26);
    border-color: var(--gold, #D4A94A);
    box-shadow: 0 4px 14px rgba(212, 169, 74, 0.15);
}
.hgw-members-cta__btn--primary:hover {
    background: linear-gradient(180deg, var(--gold-bright, #E0B75A) 0%, var(--gold-bright, #E0B75A) 100%);
    border-color: var(--gold-bright, #E0B75A);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(212, 169, 74, 0.32);
    color: var(--ink, #0A1B26);
}

.hgw-members-cta__btn--ghost {
    color: var(--cream, #F7F1E1);
    border-color: var(--line-bright, rgba(247, 241, 225, 0.28));
    background: transparent;
}
.hgw-members-cta__btn--ghost:hover {
    border-color: var(--gold, #D4A94A);
    color: var(--gold, #D4A94A);
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(212, 169, 74, 0.06);
}

.hgw-members-cta__btn .hgw-members-cta__arrow { transition: transform 0.3s ease; }
.hgw-members-cta__btn:hover .hgw-members-cta__arrow { transform: translateX(4px); }

/* Mobile keeps stacked full-width buttons, unchanged */
/* ==========================================================================
   Members Portal CTA — image mode (2026-08-30)
   ========================================================================== */

.hgw-members-cta__panel--image .hgw-members-cta__panel-frame {
    padding: 0;
    border: none;
    overflow: hidden;
    border-radius: 4px;
}

.hgw-members-cta__panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
/* ==========================================================================
   Members Portal CTA — image fit fix (2026-08-30)
   When image is uploaded, drop fixed aspect-ratio + object-fit:cover
   so the whole image is visible at its natural proportions.
   Border/frame stays intact.
   ========================================================================== */

.hgw-members-cta__panel--image .hgw-members-cta__panel-inner {
    aspect-ratio: auto;
    height: auto;
}

.hgw-members-cta__panel--image .hgw-members-cta__panel-frame {
    height: auto;
    aspect-ratio: auto;
}

.hgw-members-cta__panel--image .hgw-members-cta__panel-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 640px;
}

/* Mobile keeps the image within safe bounds */
@media (max-width: 600px) {
    .hgw-members-cta__panel--image .hgw-members-cta__panel-img {
        max-height: 480px;
    }
}
/* ==========================================================================
   Hero slider — back books with uploaded images (2026-08-30)
   When admin uploads a book cover image, show the full image inside the
   book-shaped frame with contain fit + gold border kept intact.
   Text-only fallback (current behavior) is untouched.
   ========================================================================== */

.hgw-book-hero__book--has-image {
    padding: 0;
    background: linear-gradient(155deg, rgba(18, 38, 51, 0.9) 0%, rgba(10, 27, 38, 0.95) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hgw-book-hero__book-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
    box-sizing: border-box;
}

/* Third back book positioning (only shows if admin adds a 3rd) */
.hgw-book-hero__book--back-3 {
    transform: translate(-14%, 14%) rotate(-6deg);
    opacity: 0.55;
    z-index: 1;
}

/* Mobile safety */
@media (max-width: 900px) {
    .hgw-book-hero__book--back-3 {
        display: none;
    }
}
/* ==========================================================================
   Hero slider — spacing + front book image fit (2026-08-30)
   1. Reduce top padding to match rest of site rhythm (removes big gap).
   2. When front book has an image, show it fully with contain fit.
   ========================================================================== */

/* 1. Tighter top spacing on hero */
.hgw-book-hero {
    padding-top: clamp(36px, 5vw, 64px) !important;
    padding-bottom: clamp(56px, 8vw, 100px) !important;
}
@media (max-width: 900px) {
    .hgw-book-hero {
        padding-top: clamp(28px, 4vw, 44px) !important;
        padding-bottom: clamp(40px, 6vw, 72px) !important;
    }
}

/* 2. Front book: image mode overrides the gradient background so the whole
      cover art is visible (contain fit). Gold border/frame stays intact. */
.hgw-book-hero__book--front.hgw-book-hero__book--has-image {
    background: linear-gradient(160deg, rgba(32, 70, 92, 0.5) 0%, rgba(16, 37, 58, 0.65) 100%);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hgw-book-hero__book--front.hgw-book-hero__book--has-image::before,
.hgw-book-hero__book--front.hgw-book-hero__book--has-image::after {
    opacity: 0 !important;
}
.hgw-book-hero__book--front .hgw-book-hero__book-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
    box-sizing: border-box;
}
/* ==========================================================================
   Hero slider — spacing + front book image fit (2026-08-30)
   ========================================================================== */

.hgw-book-hero {
    padding-top: clamp(36px, 5vw, 64px) !important;
    padding-bottom: clamp(56px, 8vw, 100px) !important;
}
@media (max-width: 900px) {
    .hgw-book-hero {
        padding-top: clamp(28px, 4vw, 44px) !important;
        padding-bottom: clamp(40px, 6vw, 72px) !important;
    }
}

.hgw-book-hero__book--front.hgw-book-hero__book--has-image {
    background: linear-gradient(160deg, rgba(32, 70, 92, 0.5) 0%, rgba(16, 37, 58, 0.65) 100%);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hgw-book-hero__book--front.hgw-book-hero__book--has-image::before,
.hgw-book-hero__book--front.hgw-book-hero__book--has-image::after {
    opacity: 0 !important;
}
.hgw-book-hero__book--front .hgw-book-hero__book-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
    box-sizing: border-box;
}
/* ==========================================================================
   Hero — book stack sizing bump (2026-08-30)
   Makes the right-side book stack ~20% larger and more prominent.
   Desktop-only; mobile keeps its existing max-width:380px.
   ========================================================================== */

@media (min-width: 901px) {
    .hgw-book-hero__grid {
        grid-template-columns: 1fr 1fr;
    }
    .hgw-book-hero__visual {
        max-width: 550px;
    }
    .hgw-book-hero__book {
        width: 60%;
    }
}
/* ==========================================================================
   Hero — restore gold border/decoration on image books (2026-08-30)
   Reverses the earlier ::before/::after opacity:0 override so the gold
   inner-border frame renders over uploaded covers, matching text mode.
   Applies to both front book and back books when in image mode.
   ========================================================================== */

.hgw-book-hero__book--front.hgw-book-hero__book--has-image::before,
.hgw-book-hero__book--front.hgw-book-hero__book--has-image::after,
.hgw-book-hero__book--has-image::before,
.hgw-book-hero__book--has-image::after {
    opacity: 1 !important;
    z-index: 3;
}

/* Ensure the image sits under the pseudo-element frames */
.hgw-book-hero__book--has-image .hgw-book-hero__book-img {
    position: relative;
    z-index: 1;
}
/* ==========================================================================
   Public Stories area (/stories, /stories/{slug}, /authors, /categories)
   Wraps Livewire content in Deep Ink theme via bridged public layout.
   (2026-08-30)
   ========================================================================== */

.hgw-public-wrap {
    background: var(--ink, #0A1B26);
    color: var(--cream, #F7F1E1);
    padding: 80px 0 100px;
    min-height: 60vh;
}

/* Stories index page */
.hgw-stories-page__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.hgw-stories-page__eyebrow {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--gold, #D4A94A);
    margin-bottom: 14px;
}
.hgw-stories-page__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    color: var(--cream, #F7F1E1);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
    font-weight: 500;
}
.hgw-stories-page__title em {
    font-style: italic;
    color: var(--gold, #D4A94A);
    font-weight: 400;
}
.hgw-stories-page__lede {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(247, 241, 225, 0.72);
    margin: 0;
}

/* Filter bar */
.hgw-stories-filters {
    background: var(--surface, #122633);
    border: 1px solid rgba(212, 169, 74, 0.18);
    border-radius: 14px;
    padding: 20px;
    margin: 0 0 22px;
}
.hgw-stories-filters__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
    align-items: end;
}
.hgw-stories-filters__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hgw-stories-filters__label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(247, 241, 225, 0.55);
}
.hgw-stories-filters__input,
.hgw-stories-filters__select {
    background: rgba(10, 27, 38, 0.7);
    border: 1px solid rgba(247, 241, 225, 0.14);
    color: var(--cream, #F7F1E1);
    padding: 11px 13px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.3;
    width: 100%;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.hgw-stories-filters__input:focus,
.hgw-stories-filters__select:focus {
    outline: none;
    border-color: var(--gold, #D4A94A);
    background: rgba(10, 27, 38, 0.9);
}

.hgw-stories-page__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(247, 241, 225, 0.6);
    margin: 0 0 26px;
}
.hgw-stories-page__chip {
    background: rgba(212, 169, 74, 0.12);
    color: var(--cream, #F7F1E1);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

/* Grid */
.hgw-stories-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 36px 24px;
    transition: opacity 0.2s ease;
    justify-items: center;
    align-items: start;
}
.hgw-stories-page__grid.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* Cards */
.hgw-story-card {
    width: 100%;
    max-width: 240px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.hgw-story-card__body {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.28s ease;
}
.hgw-story-card__body:hover { transform: translateY(-6px); }

.hgw-story-card__cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: rgba(10, 27, 38, 0.5);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 169, 74, 0.12);
    transition: box-shadow 0.28s ease;
    margin-bottom: 14px;
}
.hgw-story-card__body:hover .hgw-story-card__cover-wrap {
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 169, 74, 0.42);
}
.hgw-story-card__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hgw-story-card__cover--placeholder {
    background: linear-gradient(135deg, #1a3346 0%, #0A1B26 100%);
    color: var(--gold, #D4A94A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    letter-spacing: 0.08em;
}

.hgw-story-card__meta { text-align: center; }
.hgw-story-card__category {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold, #D4A94A);
    margin-bottom: 6px;
}
.hgw-story-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    line-height: 1.3;
    color: var(--cream, #F7F1E1);
    margin: 0 0 8px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hgw-story-card__preview {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(247, 241, 225, 0.6);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hgw-story-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: rgba(247, 241, 225, 0.5);
    padding-top: 10px;
    border-top: 1px solid rgba(212, 169, 74, 0.1);
}
.hgw-story-card__author { color: rgba(247, 241, 225, 0.7); font-weight: 500; }
.hgw-story-card__reads { color: var(--gold, #D4A94A); font-weight: 600; }

/* Empty state */
.hgw-stories-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 20px;
    background: var(--surface, #122633);
    border: 1px solid rgba(212, 169, 74, 0.18);
    border-radius: 14px;
    max-width: 640px;
    margin: 0 auto;
}
.hgw-stories-empty h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin: 0 0 10px;
    color: var(--cream, #F7F1E1);
}
.hgw-stories-empty p {
    font-family: 'Inter', sans-serif;
    color: rgba(247, 241, 225, 0.7);
    margin: 0;
    font-size: 14px;
}
.hgw-stories-empty__reset {
    background: none;
    border: none;
    color: var(--gold, #D4A94A);
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* Pagination — reuse portfolio pagination styles */
.hgw-stories-pagination { margin: 44px 0 0; display: flex; justify-content: center; }
.hgw-stories-pagination svg { width: 16px; height: 16px; }
.hgw-stories-pagination a,
.hgw-stories-pagination span[aria-current],
.hgw-stories-pagination span[aria-disabled] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 3px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--cream, #F7F1E1);
    background: var(--surface, #122633);
    border: 1px solid rgba(247, 241, 225, 0.12);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.hgw-stories-pagination a:hover {
    border-color: var(--gold, #D4A94A);
    color: var(--gold, #D4A94A);
}
.hgw-stories-pagination span[aria-current] {
    background: var(--gold, #D4A94A);
    color: var(--ink, #0A1B26);
    border-color: var(--gold, #D4A94A);
    font-weight: 700;
}
.hgw-stories-pagination span[aria-disabled] { opacity: 0.35; cursor: not-allowed; }
.hgw-stories-pagination p { display: none; }

/* Tablet */
@media (max-width: 960px) {
    .hgw-public-wrap { padding: 60px 0 80px; }
    .hgw-stories-filters__row { grid-template-columns: 1fr 1fr; }
    .hgw-stories-filters__field--grow { grid-column: 1 / -1; }
    .hgw-stories-page__head { margin-bottom: 40px; }
}

/* Mobile */
@media (max-width: 560px) {
    .hgw-public-wrap { padding: 44px 0 64px; }
    .hgw-stories-filters__row { grid-template-columns: 1fr; }
    .hgw-stories-page__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
    .hgw-story-card { max-width: 100%; }
    .hgw-story-card__title { font-size: 14.5px; }
    .hgw-story-card__preview { font-size: 12px; -webkit-line-clamp: 2; }
    .hgw-story-card__foot { font-size: 10.5px; }
    .hgw-stories-page__title { font-size: 32px; }
}
/* ==========================================================================
   Stories page — fixes (2026-08-30)
   1. Card covers slightly smaller + show full art (contain fit).
   2. "Continue reading this story" gate modal restyled for Deep Ink.
   ========================================================================== */

/* 1. Story card cover: contain fit + subtle inner background,
      slightly reduced max-width so covers do not dominate the row. */
.hgw-story-card {
    max-width: 220px;
}
.hgw-story-card__cover {
    object-fit: contain;
    background: linear-gradient(135deg, #1a3346 0%, #0A1B26 100%);
    padding: 6px;
    box-sizing: border-box;
}

@media (max-width: 560px) {
    .hgw-story-card { max-width: 100%; }
}

/* 2. Gate modal ("Continue reading this story") on /stories/{slug}
      Old inline styles use white bg. Override to Deep Ink surface + gold accent. */
.story-gate,
.story-gate-modal,
.story-gate__panel,
.story-continue,
[class*="story-gate"],
[class*="continue-reading"] {
    background: var(--surface, #122633) !important;
    color: var(--cream, #F7F1E1) !important;
    border: 1px solid rgba(212, 169, 74, 0.3) !important;
    border-radius: 6px !important;
}
.story-gate a,
.story-gate-modal a,
[class*="story-gate"] a,
[class*="continue-reading"] a {
    color: var(--gold, #D4A94A) !important;
}
/* ==========================================================================
   Story detail (/stories/{slug}) — Deep Ink theme override (2026-08-30)
   Re-scopes legacy CSS variables inside story-show so all inline styles
   automatically adopt Deep Ink colors, then re-themes remaining hardcoded
   selectors (related section, story-body typography, buttons). Fully
   mobile-responsive. No blade rewrite required.
   ========================================================================== */

/* Re-scope legacy palette variables inside the story-show wrapper only */
[x-init*="joinModal"] {
    --panel: #122633;
    --line: rgba(212, 169, 74, 0.18);
    --ink: #F7F1E1;
    --muted: rgba(247, 241, 225, 0.62);
    --orange: #D4A94A;
    --bg: rgba(10, 27, 38, 0.4);
}

/* Story body typography — override hardcoded dark text */
[x-init*="joinModal"] .story-body { color: #E8E1CE !important; }
[x-init*="joinModal"] .story-body h2,
[x-init*="joinModal"] .story-body h3 { color: #F7F1E1 !important; }
[x-init*="joinModal"] .story-body blockquote {
    color: rgba(247, 241, 225, 0.75) !important;
    border-left-color: #D4A94A !important;
    background: rgba(212, 169, 74, 0.05);
}
[x-init*="joinModal"] .hgw-page-1 .story-body > p:first-of-type::first-letter {
    color: #D4A94A !important;
}

/* Pagination "Next" + preview "Continue reading" — fix white-on-gold text */
[x-init*="joinModal"] button[style*="background:var(--orange)"],
[x-init*="joinModal"] button[style*="background: var(--orange)"] {
    color: #0A1B26 !important;
    font-weight: 700 !important;
}

/* Love button reacted state — hardcoded rgba orange 12% */
[x-init*="joinModal"] button[style*="rgba(235,128,29,.12)"] {
    background: rgba(212, 169, 74, 0.12) !important;
}

/* Story cover image — softer dark shadow */
[x-init*="joinModal"] .hgw-story-side > div:first-of-type {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 169, 74, 0.15) !important;
}

/* Related section — hardcoded cream bg */
.hgw-related {
    background: #122633 !important;
    border: 1px solid rgba(212, 169, 74, 0.18) !important;
    border-radius: 8px !important;
    padding: 32px 28px 36px !important;
    max-width: 1080px !important;
    margin: 64px auto 0 !important;
}
.hgw-related-head .rule { background: rgba(212, 169, 74, 0.3) !important; }
.hgw-related-label { color: #D4A94A !important; }
.hgw-related-title { color: #F7F1E1 !important; }

.hgw-rcard {
    background: rgba(10, 27, 38, 0.5) !important;
    border: 1px solid rgba(212, 169, 74, 0.15) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    border-radius: 6px !important;
}
.hgw-rcard:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55) !important;
    border-color: rgba(212, 169, 74, 0.4) !important;
    transform: translateY(-3px) !important;
}
.hgw-rcard h3 { color: #F7F1E1 !important; }
.hgw-rcard p { color: rgba(247, 241, 225, 0.6) !important; }
.hgw-rcard [style*="color:var(--muted)"] { color: rgba(247, 241, 225, 0.55) !important; }
.hgw-rcover { box-shadow: 0 5px 14px rgba(0, 0, 0, 0.5) !important; border-radius: 4px !important; }
.hgw-rcover > div {
    background-color: rgba(10, 27, 38, 0.5) !important;
}

/* Ensure story panel gradient fadeout works on dark bg */
[x-init*="joinModal"] div[style*="linear-gradient(to bottom, rgba(255,255,255,0)"] {
    background: linear-gradient(to bottom, rgba(18, 38, 51, 0), #122633 60%) !important;
}

/* Book cover on story index — restore cover fit so images fill card */
.hgw-story-card__cover {
    object-fit: cover !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Mobile responsive */
@media (max-width: 860px) {
    .hgw-related {
        padding: 26px 20px !important;
        margin: 48px 12px 0 !important;
    }
    .hgw-related-title { font-size: 20px !important; margin-bottom: 20px !important; }
}
@media (max-width: 560px) {
    .hgw-related {
        padding: 22px 16px !important;
        margin: 36px 8px 0 !important;
    }
    .hgw-related-title { font-size: 18px !important; }
}
/* ==========================================================================
   Story detail — additional fixes (2026-08-30)
   1. Modal + side popup z-index above sticky site-header (100).
   2. Comments section (StoryComments Livewire component) re-themed to
      Deep Ink via broader scope so it inherits new vars.
   ========================================================================== */

/* 1. Modal + side popup z-index above header */
[x-init*="joinModal"] > div[x-show="joinModal"] { z-index: 200 !important; }
[x-init*="joinModal"] > div[x-show="joinSide && !joinModal"] { z-index: 190 !important; }

/* 2. Comments component scope — re-scope legacy vars.
      #comments is the outer div id on StoryComments blade. */
#comments {
    --panel: #122633;
    --line: rgba(212, 169, 74, 0.18);
    --ink: #F7F1E1;
    --muted: rgba(247, 241, 225, 0.62);
    --orange: #D4A94A;
    --bg: rgba(10, 27, 38, 0.4);
}

/* Textarea placeholder + focus */
#comments textarea {
    background: rgba(10, 27, 38, 0.6) !important;
    color: #F7F1E1 !important;
    border-color: rgba(212, 169, 74, 0.22) !important;
}
#comments textarea::placeholder { color: rgba(247, 241, 225, 0.45) !important; }
#comments textarea:focus {
    border-color: #D4A94A !important;
    background: rgba(10, 27, 38, 0.85) !important;
    outline: none !important;
}

/* Post / Log-in-to-comment buttons — hardcoded orange -> gold gradient */
#comments button[style*="background:var(--orange)"] {
    background: linear-gradient(180deg, #E0B75A 0%, #D4A94A 100%) !important;
    color: #0A1B26 !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    border: 1.5px solid #D4A94A !important;
    box-shadow: 0 4px 14px rgba(212, 169, 74, 0.15) !important;
}

/* Comment avatar circle */
#comments div[style*="background:var(--orange)"][style*="border-radius:50%"],
#comments div[style*="border-radius:50%"][style*="background:var(--orange)"] {
    background: #D4A94A !important;
    color: #0A1B26 !important;
}

/* Comments heading rule line */
#comments span[style*="background:var(--line)"] {
    background: rgba(212, 169, 74, 0.18) !important;
}

/* Comment bubble body text */
#comments div[style*="background:var(--panel)"] {
    background: rgba(10, 27, 38, 0.5) !important;
    border-color: rgba(212, 169, 74, 0.15) !important;
}

/* Reply/action text buttons */
#comments a[style*="color:var(--orange)"],
#comments button[style*="color:var(--orange)"] {
    color: #D4A94A !important;
}
/* ============================================================
   Announcement bar — ticker mode (colours are inline from admin)
   Static mode uses existing .announce base styles unchanged.
   ============================================================ */
.announce.announce--ticker {
    overflow: hidden;
    white-space: nowrap;
    padding-left: 0;
    padding-right: 0;
}
.announce.announce--ticker .announce__track {
    display: inline-flex;
    align-items: center;
    gap: 4rem;
    animation-name: hgw-announce-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}
.announce.announce--ticker .announce__item {
    flex-shrink: 0;
    padding-right: 4rem;
}
.announce.announce--ticker:hover .announce__track {
    animation-play-state: paused;
}
@keyframes hgw-announce-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .announce.announce--ticker .announce__track {
        animation: none;
        transform: none;
    }
}