/* ================================================================
   MAURO ARIAS — Brand CSS
   Sits on top of Bootstrap 5. Overrides template classes.
   Brand: fog gray + royal purple + Ofelia Text editorial
   ================================================================ */

/* ---- Tokens ---- */
:root {
  /* Palette */
  --fog:        #e8e5e0;
  --mist:       #efede8;
  --cloud:      #dcd8d1;
  --border:     #c8c4bb;
  --border-soft:#d8d4cc;
  --steel:      #7d7a73;
  --charcoal:   #2a2a2c;
  --ink:        #141416;

  --royal:        #6a0dad;
  --royal-hi:     #8b2fc9;
  --royal-soft:   #a867d9;
  --royal-deep:   #4a0978;
  --royal-ghost:  rgba(106, 13, 173, 0.08);
  --royal-ghost-2: rgba(106, 13, 173, 0.14);
  --blood:        #8d0000;

  /* Fonts */
  --f-serif: "ofelia-text", "Cormorant Garamond", "Times New Roman", serif;
  --f-sans:  "ofelia-text", "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  --step-1:  clamp(1.18rem, 1.12rem + 0.3vw, 1.35rem);
  --step-2:  clamp(1.5rem, 1.38rem + 0.6vw, 1.85rem);
  --step-3:  clamp(2rem, 1.75rem + 1.2vw, 2.6rem);
  --step-4:  clamp(2.5rem, 2.15rem + 1.75vw, 3.4rem);
  --step-5:  clamp(3rem, 2.4rem + 3vw, 4.6rem);
  --step-6:  clamp(2.8rem, 2rem + 4vw, 6rem);
}

/* ---- Reset / base ---- */
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  background: var(--fog);
  color: var(--charcoal);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(ellipse 70% 50% at 85% 20%, var(--royal-ghost-2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, var(--royal-ghost) 0%, transparent 60%),
    var(--fog);
  background-attachment: fixed;
}
::selection { background: var(--royal); color: var(--fog); }

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

a { color: inherit; text-decoration: none; }

/* ---- Top strip ---- */
.site-header {
  background: var(--ink);
  color: var(--fog);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 10;
}
.meta-strip {
  color: var(--fog);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.meta-strip strong { color: var(--fog); font-weight: 500; }
.meta-strip .sep { color: var(--royal-soft); opacity: 0.7; }
.meta-strip .bi-geo-alt { color: var(--royal-soft); }

/* ---- Navbar ---- */
.navbar {
  background: color-mix(in srgb, var(--fog) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
  z-index: 20;
}
.sticky-wrapper.is-sticky .navbar {
  background: color-mix(in srgb, var(--fog) 96%, transparent);
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.08);
}
.navbar-brand {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--royal);
  box-shadow: 0 0 12px var(--royal-soft);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--royal-soft); opacity: 1; }
  50%      { box-shadow: 0 0 16px var(--royal); opacity: 0.75; }
}

.navbar-nav .nav-link {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--charcoal) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--royal) !important;
}
.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem;
  bottom: 0.1rem;
  height: 1px;
  background: var(--royal);
}

/* ---- Split navbar (desktop only) ---- */
@media (min-width: 992px) {
  .navbar-split {
    padding: 1.25rem 0;
  }
  .navbar-split > .container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
  }
  .navbar-split .collapse.navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .navbar-split .nav-left,
  .navbar-split .nav-right {
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    padding: 0;
    flex: 0 1 auto;
  }
  .navbar-split .nav-left {
    justify-content: flex-start;
    max-width: calc(50% - 110px);
    padding-right: 1rem;
  }
  .navbar-split .nav-right {
    justify-content: flex-end;
    max-width: calc(50% - 110px);
    padding-left: 1rem;
    margin-left: auto;
  }
  .navbar-split .navbar-brand-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    z-index: 1;
  }
  .navbar-split .navbar-brand-mobile { display: none !important; }
  .navbar-split .btn.custom-btn.btn-pill {
    flex: 0 0 auto;
    margin-left: 1.5rem;
  }
  .navbar-split .nav-link { padding: 0.5rem 0 !important; }
}

/* ---- Pill CTA button ---- */
.btn.custom-btn.btn-pill,
.btn.custom-btn-ghost.btn-pill {
  border-radius: 999px !important;
  padding: 0.65rem 1.5rem;
}

@media (max-width: 991.98px) {
  .navbar-split .navbar-brand-center { display: none !important; }
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
  border-radius: 3px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--royal-ghost-2); }
.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 22px; height: 2px;
  background: var(--ink);
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0; width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { top: 7px; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { background: transparent; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn.custom-btn,
.btn.custom-btn-ghost {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn.custom-btn {
  background: var(--royal);
  color: var(--fog) !important;
  box-shadow: 0 8px 24px -12px var(--royal);
}
.btn.custom-btn:hover {
  background: var(--royal-deep);
  color: var(--fog) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px var(--royal);
}
.btn.custom-btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--ink);
}
.btn.custom-btn-ghost:hover {
  background: var(--ink);
  color: var(--fog) !important;
}
.btn-lg { padding: 0.95rem 1.8rem !important; font-size: 0.9rem !important; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---- Labels (eyebrow) ---- */
.label {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}
.label::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--royal);
  display: inline-block;
}
.label-center { justify-content: center; }
.label-center::before,
.label-center::after {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--royal);
  display: inline-block;
}
.label-center::before { margin-right: 0; }
.label-center::after { margin-left: 0; }
.label-center-sm::before,
.label-center-sm::after { width: 1.25rem; }
.label-accent { color: var(--royal); }
.label-on-dark { color: var(--royal-soft); }
.label-on-dark::before,
.label-on-dark::after { background: var(--royal-soft); }

/* ---- Display typography ---- */
.display {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.display em {
  font-style: italic;
  color: var(--royal);
  font-weight: 500;
}
.display-xl { font-size: var(--step-6); }
.display-lg { font-size: var(--step-5); }
.display-md { font-size: var(--step-4); }
.display-sm { font-size: var(--step-3); }

.lede {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  max-width: 48ch;
}
.lede em { color: var(--royal); font-style: italic; font-weight: 500; }
.lede-light { color: rgba(255,255,255,0.85); }
.lede-light em { color: var(--royal-soft); }

.prose {
  max-width: 62ch;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--charcoal);
}
.prose em {
  color: var(--royal);
  font-style: italic;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 1.05em;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose-light { color: rgba(255,255,255,0.85); font-size: var(--step-1); line-height: 1.6; max-width: 62ch; }
.prose-light em { color: var(--royal-soft); font-style: italic; font-family: var(--f-serif); font-weight: 500; }

.text-white em { color: var(--royal-soft) !important; }

/* ---- Section padding ---- */
.section-padding { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section-bg {
  background: linear-gradient(135deg, #1a0f26 0%, #0f0818 100%);
  color: var(--fog);
  position: relative;
  overflow: hidden;
}
.section-bg::before {
  content: "";
  position: absolute;
  left: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse, rgba(139, 47, 201, 0.45) 0%, transparent 55%);
  pointer-events: none;
}
.section-bg::after {
  content: "";
  position: absolute;
  right: -20%; bottom: -40%;
  width: 70%; height: 140%;
  background: radial-gradient(ellipse, rgba(106, 13, 173, 0.35) 0%, transparent 55%);
  pointer-events: none;
}
.section-bg > .container { position: relative; z-index: 1; }

/* ---- Hero ---- */
.hero-section {
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 7rem);
  position: relative;
}
.hero-section .display-xl { max-width: 18ch; margin-inline: auto; }
.hero-section .lede { max-width: 42ch; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.hero-meta dt {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.hero-meta dd {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}

/* ---- Pain section + entry cards ---- */
.pain-section { padding-block: clamp(4rem, 8vw, 7rem); }

.entry-card {
  background: var(--mist);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2.25rem 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.entry-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--royal);
  transition: height 0.35s ease;
}
.entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--royal);
  box-shadow: 0 20px 40px -24px rgba(106,13,173,0.35);
}
.entry-card:hover::before { height: 100%; }

.entry-card-num {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--royal);
  letter-spacing: 0.16em;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.entry-card-title {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
  font-style: italic;
  letter-spacing: -0.01em;
}
.entry-card-quote {
  font-family: var(--f-serif);
  font-size: 1.05rem;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.entry-card hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}
.entry-card-need {
  font-size: 0.95rem;
  color: var(--steel);
  line-height: 1.5;
  margin: 0;
}
.entry-card-need strong { color: var(--ink); font-weight: 600; }

/* ---- Method (3S) ---- */
.method-section { padding-block: clamp(5rem, 10vw, 8rem); }

.method-grid {
  counter-reset: stage;
}
.method-stage {
  position: relative;
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  height: 100%;
  transition: all 0.3s ease;
}
.method-stage:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--royal-soft);
  transform: translateY(-3px);
}
.method-stage-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}
.method-stage-name {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--fog);
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1;
}
.method-stage-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0;
}
.method-note {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  max-width: 60ch;
  margin: 2rem auto 0;
  line-height: 1.5;
}

/* ---- Program phases ---- */
.program-section { padding-block: clamp(4rem, 8vw, 7rem); }

.phase {
  background: var(--mist);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}
.phase:hover {
  border-color: var(--royal);
  box-shadow: 0 20px 40px -24px rgba(106,13,173,0.3);
}
.phase-head { position: relative; }
.phase-weeks {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--royal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.phase-name {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-style: italic;
  line-height: 1;
}
.phase-sub {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  color: var(--steel);
  font-style: italic;
  margin: 0;
}
.phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.phase-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--charcoal);
  line-height: 1.55;
}
.phase-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--royal);
  font-family: var(--f-mono);
  font-weight: 500;
}
.phase-list li strong { color: var(--ink); font-weight: 600; }

/* ---- Guarantee card ---- */
.guarantee-card {
  background: var(--ink);
  color: var(--fog);
  padding: 2rem 2.25rem;
  border-radius: 4px;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}
.guarantee-card::before {
  content: "";
  position: absolute;
  right: -10%; top: -50%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 47, 201, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.guarantee-card > * { position: relative; z-index: 1; }
.guarantee-icon {
  font-size: 2.5rem;
  color: var(--royal-soft);
}
.guarantee-title {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fog);
  margin-bottom: 0.6rem;
}
.guarantee-text {
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  font-size: 0.98rem;
}

/* ---- FAQ ---- */
.faq-section { padding-block: clamp(4rem, 8vw, 7rem); }
.faq details {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-serif);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
  gap: 1rem;
  font-style: italic;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  color: var(--royal);
  font-size: 1.5rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body {
  margin-top: 1rem;
  color: var(--charcoal);
  max-width: 62ch;
  line-height: 1.6;
  font-size: 1.02rem;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, #1a0f26 0%, #0f0818 100%);
  color: var(--fog);
  padding-block: clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse, rgba(139, 47, 201, 0.5) 0%, transparent 55%);
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -20%; bottom: -40%;
  width: 70%; height: 140%;
  background: radial-gradient(ellipse, rgba(106, 13, 173, 0.4) 0%, transparent 55%);
  pointer-events: none;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  font-family: var(--f-serif);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--fog);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 50%; top: -20%;
  width: 80%; height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center top, rgba(106, 13, 173, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.site-footer > .container { position: relative; z-index: 1; }

.site-footer-top {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--fog);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
  margin: 0;
}
.footer-brand em { color: var(--royal-soft); font-style: italic; font-weight: 500; }
.footer-note {
  color: rgba(255,255,255,0.6);
  max-width: 48ch;
  line-height: 1.55;
  font-size: 0.95rem;
  margin: 0.5rem 0 0;
}

.social-icon {
  list-style: none;
  display: flex;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}
.social-icon-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--fog);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}
.social-icon-link:hover {
  background: var(--royal);
  border-color: var(--royal);
  color: var(--fog);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px var(--royal);
}
@media (min-width: 992px) {
  .col-lg-4 .social-icon { justify-content: flex-end; }
}

.footer-grid {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}
.site-footer-title {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}
.site-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer-link-item { margin-bottom: 0.65rem; }
.site-footer-link {
  color: rgba(255,255,255,0.75) !important;
  transition: color 0.2s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}
.site-footer-link:hover { color: var(--fog) !important; }

.footer-location {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.4;
}
.footer-location-meta {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal-soft);
  display: block;
  margin-top: 0.25rem;
}

.site-footer-bottom {
  padding-top: 1.5rem;
}
.copyright-text {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.copyright-text em { color: var(--royal-soft); font-style: italic; font-family: var(--f-serif); font-size: 0.9rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero { padding-block: clamp(3rem, 7vw, 5rem); }

.portrait-frame {
  position: relative;
  width: 80%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--royal);
  box-shadow: 0 0 0 1px var(--royal-ghost), 0 30px 80px -24px rgba(106, 13, 173, 0.45);
}
.portrait-halo {
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--royal-ghost-2) 0%, transparent 60%);
  animation: halo 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes halo {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.06); opacity: 1; }
}
.portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
}
.portrait-caption {
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal);
  text-align: center;
  font-weight: 500;
}

/* About story section */
.story-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}
.story-block {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.story-num {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--royal-soft);
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.story-title {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--fog);
  margin-bottom: 1rem;
  font-style: italic;
  letter-spacing: -0.01em;
}
.story-text {
  color: rgba(255,255,255,0.8);
  max-width: 62ch;
  line-height: 1.6;
  margin: 0;
  font-size: 1.02rem;
}

/* Story card (PDF preview) */
.story-download-section { padding-block: clamp(4rem, 8vw, 6rem); }

.story-card {
  aspect-ratio: 3/4;
  max-width: 360px;
  margin: 0 auto;
  background: var(--fog);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px -32px rgba(106, 13, 173, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.story-card:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: 0 40px 80px -30px rgba(106, 13, 173, 0.55);
}
.story-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -50%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at 65% 35%, var(--royal-ghost-2) 0%, transparent 45%);
  pointer-events: none;
}
.story-card > * { position: relative; z-index: 1; }
.story-card-meta {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--steel);
  font-weight: 500;
  display: block;
}
.story-card-meta strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-top: 4px;
  letter-spacing: 0.2em;
}
.story-card-dot-sm {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--royal);
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
.story-card-rule {
  height: 1px;
  background: var(--border);
  margin: 0.85rem 0 2rem;
}
.story-card-title {
  font-family: var(--f-serif);
  font-size: 2.4rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: auto 0;
  font-weight: 400;
}
.story-card-dot { color: var(--royal); font-style: italic; }
.story-card-sub {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.3;
  margin-top: 0.6rem;
}
.story-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--steel);
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE TWEAKS (Bootstrap handles grid — we tweak specifics)
   ============================================================ */
@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-soft);
  }
  .navbar-nav .nav-link {
    padding: 0.75rem 0 !important;
  }
  .navbar-nav .nav-link.active::after { display: none; }
  .btn-row { justify-content: center !important; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; min-width: 140px; }
  .social-icon { justify-content: flex-start !important; margin-top: 1rem; }
}

@media (max-width: 575px) {
  .meta-strip { font-size: 0.72rem; }
  .hero-section { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-meta { gap: 1rem; }
  .hero-meta dd { font-size: 1rem; }
  .phase { padding: 1.75rem 1.25rem; }
  .site-footer { padding-top: 3rem; }
  .site-footer-top { padding-bottom: 2rem; margin-bottom: 2rem; }
}

@media (max-width: 420px) {
  .display-xl { font-size: clamp(2.4rem, 7vw, 3rem); line-height: 1.08; }
  .hero-section .display-xl { max-width: 14ch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
