/* =========================================================
   AIDA ADRIANA — MASTER STYLE SHEET
   Unified for all pages (Index, Shelf, Scope, Lore, Link, Gram)
   ========================================================= */

/* ------------------------
   Reset & Base
------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --turq-0: #c9f2e2;
  --turq-1: #7fc1b3;
  --turq-2: #3b857c;
  --bronze: #6a4a2f;
  --text: #e6f2ef;
  --ink: #0b0b0b;
  --veil: rgba(15,10,8,0.78);
  --bg: #0a0f10;
  --crackle: url('/Images/crackled.png');
}



html, body {
  margin: 0;
  padding: 0;
  color: var(--text, #e6f2ef);
  font-family: "Cormorant Garamond", serif;
  line-height: 1.6;
  background: var(--bg) url('/Images/Background/background2.png') center/cover no-repeat fixed;
  overflow-x: hidden;
}

/* ------------------------
   Torchlight Effect
------------------------- */
.torch {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 150px at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 220, 0.65) 0%,
    rgba(255, 245, 200, 0.35) 20%,
    rgba(255, 230, 160, 0.15) 45%,
    rgba(0, 0, 0, 0) 70%
  );
  mix-blend-mode: screen;
  z-index: 9999;
  transition: background 0.05s linear;
  filter: blur(1.5px);
}

/* ------------------------
   Navigation
------------------------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
  backdrop-filter: blur(8px);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

/* ------------------------
   Brand Logos
------------------------- */
.brand, .brand-right {
  position: absolute;
  top: 50px;             /* lowered slightly from 22px */
  width: 130px;
  z-index: 1100;
}

.brand {
  left: 28px;
}

.brand-right {
  right: 28px;
  text-align: right;
}

.brand img, .brand-right img {
  width: 100%;
  height: auto;
  max-width: 130px;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.brand img:hover, .brand-right img:hover {
  transform: scale(1.05);
}


/* ------------------------
   Menu Links
------------------------- */
.menu {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  flex-wrap: nowrap;
  height: 64px;
}

.menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  font-family: "Cinzel Decorative", serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--turq-0);
  opacity: 0.95;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--turq-0), var(--turq-1), var(--turq-2));
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.35s ease;
}

.menu a:hover::after,
.menu a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu a:hover,
.menu a.active {
  color: var(--turq-1);
}

/* ------------------------
   Page Header
------------------------- */
.page-header {
  text-align: center;
  margin-top: 60px;
  position: relative;
}
.page-header::before,
.page-header::after {
  content: "";
  display: block;
  width: 90%;
  max-width: 700px;
  height: 2px;
  margin: 12px auto;
  background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
  box-shadow: 0 0 12px rgba(127,193,179,0.5);
}
.page-header img {
  display: block;
  margin: 0 auto;
  max-width: 420px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(127,193,179,0.55));
}

/* ------------------------
   Footer
------------------------- */
.site-foot {
  text-align: center;
  padding: 40px 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ------------------------
   Crackled Circles
------------------------- */
.circle {
  flex-shrink: 0;
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--turq-1), var(--turq-2));
  box-shadow:
    inset 0 4px 10px rgba(255,255,255,0.3),
    inset 0 -4px 10px rgba(0,0,0,0.4),
    0 10px 20px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.circle::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--crackle);
  background-size: cover;
  opacity: 0.25;
  mix-blend-mode: overlay;
  border-radius: 50%;
}
.circle::after {
  content: "";
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 45%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), transparent);
  filter: blur(4px);
  opacity: 0.7;
}
.circle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

 /* ------------------------
   Hamburger & Mobile Menu
------------------------- */
.hamburger {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  font-size: 30px;
  cursor: pointer;
  color: var(--turq-0);
  z-index: 4000;                /* raised from 12001 for safe stacking */
  transition: transform 0.25s ease, color 0.25s ease;
}
.hamburger:hover {
  color: var(--turq-1);
  transform: scale(1.1);
}

.menu.desktop-menu { display: flex; }
.menu.mobile-menu  { display: none; }




/* =========================================================
   HIDE-AND-SEEK RELICS (Visible + Torch Interaction Ready)
   ========================================================= */
.vector {
  position: absolute;
  width: 50px;
  height: 50px;
  opacity: 0.03; /* much fainter idle visibility */
  filter: drop-shadow(0 0 2px rgba(127,193,179,0.15));
  transition: opacity 0.35s ease, transform 0.3s ease, filter 0.35s ease;
  z-index: 5;
}

.vector img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 55px;
  max-height: 55px;
  filter: brightness(0.6) contrast(0.8) saturate(0.6);
}

.vector:hover,
.vector.visible {
  opacity: 0.95; /* torch reveal */
  transform: scale(1.15);
  filter: brightness(1.1) contrast(1.2) saturate(1)
          drop-shadow(0 0 14px rgba(127,193,179,0.8));
}


/* =========================================================
   FINAL MOBILE RELIC FIX
========================================================= */
@media (max-width:768px){
  .vector {
    position: fixed !important;
    width: 22vw !important;
    max-width: 120px !important;
    min-width: 64px !important;
    height: auto !important;
    opacity: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    transition: opacity .25s ease, transform .25s ease;
  }
  .vector img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* guaranteed on-screen placement */
  #vec-ring     { left: 12% !important; top: 20% !important; }
  #vec-cinnamon { right: 14% !important; top: 42% !important; }
  #vec-feather  { left: 18% !important; top: 64% !important; }
  #vec-quartz   { right: 10% !important; top: 84% !important; }

  /* menu priority */
  .hamburger, .menu.mobile-menu { z-index: 12002 !important; }
}

/* S-PEN hover fallback */
@media (hover:hover) and (pointer:fine) {
  .vector {
    opacity: 0.06 !important;
    transform: scale(1.05);
  }
  .vector:hover {
    opacity: 0.9 !important;
    transform: scale(1.15);
    filter: brightness(1.2) contrast(1.2) saturate(1.2)
            drop-shadow(0 0 12px rgba(127,193,179,0.8));
  }
}



/* Unified footer styling (match Index) */
footer, .site-foot {
  text-align: center;
  margin-top: 100px;
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text, #e6f2ef);
  opacity: 0.85;
}

footer::before,
.site-foot::before {
  content: "";
  display: block;
  width: 60%;
  max-width: 700px;
  height: 1.5px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
  box-shadow: 0 0 12px rgba(127,193,179,0.5);
}
/* === Ensure glowing footer line visible on all pages === */
footer, .site-foot {
  position: relative;
  z-index: 10010; /* higher than .torch (9999) */
  text-align: center;
  margin-top: 100px;
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text, #e6f2ef);
  opacity: 0.85;
}

footer::before,
.site-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 700px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
  box-shadow: 0 0 12px rgba(127,193,179,0.5);
}
/* =========================================================
   FINAL TORCH + FOOTER FIX (works like Index)
   ========================================================= */

/* Torch stays behind all content */
.torch {
  pointer-events: none !important;
  z-index: 1 !important;
  mix-blend-mode: screen !important;
  position: fixed;
  inset: 0;
}

/* Relics remain above torch when revealed */
.vector {
  z-index: 2 !important;
  pointer-events: auto !important;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.4s ease;
}

.vector:hover,
.vector.visible {
  opacity: 1 !important;
  transform: scale(1.18);
  filter: brightness(1.4) contrast(1.3) saturate(1.3)
          drop-shadow(0 0 22px rgba(127,193,179,0.95));
}

/* === Footer alignment and styling — match Index === */
footer, .site-foot {
  text-align: center;
  margin-top: 100px;
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.85;
  position: relative;
  z-index: 5; /* ensures it sits above background */
}

footer::before,
.site-foot::before {
  content: "";
  display: block;
  width: 60%;
  max-width: 700px;
  height: 1.5px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
  box-shadow: 0 0 12px rgba(127,193,179,0.5);
}
/* === RESTORE WORKING FOOTER (same as Index fix that worked before) === */
.torch {
  z-index: 1 !important;   /* keep torch behind content */
  pointer-events: none;
}

footer, .site-foot {
  text-align: center;
  margin-top: 100px;
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.85;
  position: relative;
  z-index: 10;  /* ensure footer line is above torch */
}

footer::before,
.site-foot::before {
  content: "";
  display: block;
  width: 60%;
  max-width: 700px;
  height: 1.5px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
  box-shadow: 0 0 12px rgba(127,193,179,0.5);
}
/* =========================================================
   BOOK DISPLAY — Responsive Horizontal (PC) / Vertical (Mobile)
   ========================================================= */
.book-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.book-container img {
  width: 220px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(127,193,179,0.25);
}

.book-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(127,193,179,0.6);
}

/* Stack vertically on mobile */
@media (max-width: 768px) {
  .book-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Contact form styling */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1.5px solid var(--turq-1);
  border-radius: 6px;
  background: rgba(10,15,16,0.85);
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: inset 0 0 8px rgba(127,193,179,0.2);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--turq-2);
  box-shadow: 0 0 10px rgba(127,193,179,0.5);
}

/* Submit button to match form */
.contact-form button[type="submit"] {
  background: var(--turq-2);
  color: var(--ink);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Lora', serif;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s;
}

.contact-form button[type="submit"]:hover {
  background: var(--turq-1);
  transform: scale(1.03);
}
.divider-line {
  width: 60%;
  max-width: 700px;
  height: 1.5px;
  margin: 40px auto;
  background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
  box-shadow: 0 0 12px rgba(127,193,179,0.5);
}
/* Divider line — always visible (incl. mobile) */
.divider-line{
  position: relative;
  z-index: 5;                 /* sit above background/torch */
  width: 60%;
  max-width: 700px;
  height: 1.5px;
  margin: 40px auto;
  background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
  box-shadow: 0 0 12px rgba(127,193,179,0.5);
  display: block;
}

@media (max-width:768px){
  .divider-line{
    width: 80%;
    height: 2px;              /* thicker for hi-DPI */
    border-top: 1px solid var(--turq-1);  /* fallback so it can’t disappear */
    box-shadow: 0 0 16px rgba(127,193,179,0.65);
    transform: translateZ(0);             /* force paint on mobile */
  }
}
/* ----------------------------------------------------------
   Divider Line — match footer style + show on all devices
----------------------------------------------------------- */
.divider-line {
  content: "";
  display: block;
  width: 60%;
  max-width: 700px;
  height: 1.5px;
  margin: 40px auto 30px;
  background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
  box-shadow: 0 0 12px rgba(127,193,179,0.5);
  opacity: 0.9;
  z-index: 5;
  position: relative;
}

/* Mobile fix: ensure the line renders and remains visible */
@media (max-width: 768px) {
  .divider-line {
    width: 75%;
    height: 1.5px;
    margin: 30px auto 25px;
    background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
    box-shadow: 0 0 10px rgba(127,193,179,0.45);
    transform: translateZ(0);
    opacity: 1;
    display: block !important;
    visibility: visible !important;
  }
}
/* Force the newsletter divider line to render on mobile */
.divider-line {
  position: relative;
  z-index: 2000;                         /* sits above torch & background */
  display: block !important;
  width: 60%;
  max-width: 700px;
  height: 2px;                           /* thicker so retina phones can paint it */
  margin: 38px auto 30px;
  background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
  box-shadow: 0 0 12px rgba(127,193,179,0.5);
  opacity: 0.9;
  transform: translateZ(0);              /* forces GPU repaint */
  will-change: opacity, box-shadow;
}

/* extra safeguard for smaller screens */
@media (max-width: 768px) {
  .divider-line::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, var(--turq-1), transparent);
    box-shadow: 0 0 10px rgba(127,193,179,0.45);
    opacity: 1;
    z-index: -1;
  }
}
.section-title {
  background: linear-gradient(180deg, var(--turq-1), var(--turq-2));
  box-shadow: inset 0 4px 10px rgba(255,255,255,0.3),
              inset 0 -4px 10px rgba(0,0,0,0.4),
              0 10px 20px rgba(0,0,0,0.5);
  position: relative;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: 'Lora', serif;
}
.section-title::before {
  background-image: url('/Images/crackled.png');
}
/* Overview box under each book (same column width as the card) */
.card .overview-box {
  margin: 12px auto 0;
  width: 96%;               /* slightly wider than most cover images */
  padding: 14px 16px;
  background: rgba(15,10,8,0.65);
  border: 1px solid rgba(127,193,179,0.4);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  box-shadow: 0 0 8px rgba(127,193,179,0.25);
  box-sizing: border-box;
}

/* If your .card centers children, ensure the box stretches nicely */
.card { align-items: stretch; }        /* harmless if not a flex container */

/* Optional: keep covers a touch narrower so the box feels “slightly bigger” */
.card .cover { display:block; margin:0 auto; width:90%; height:auto; }
/* --- BOOK OVERVIEW BOXES --- */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.card {
  width: 300px;
  text-align: center;
}

.card .cover {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  transform: none; /* removes the old 40px offset */
}

.card .overview-box {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(15,10,8,0.65);
  border: 1px solid rgba(127,193,179,0.4);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  box-shadow: 0 0 8px rgba(127,193,179,0.25);
  box-sizing: border-box;
}

/* responsive stacking on small screens */
@media (max-width: 768px) {
  .card {
    width: 90%;
  }
}
.book-desc em {
  display: block;
  margin-top: 10px; /* adds space above the italic line */
  font-style: italic;
  opacity: 0.9;
}


 
/* =========================================================
   FINAL — UNIFIED MOBILE MENU (MASTER VERSION)
   ========================================================= */
@media (max-width: 768px) {
  /* Hide desktop nav */
  .menu.desktop-menu { display: none !important; }

  /* Hamburger icon */
  .hamburger {
    display: block !important;
    position: fixed !important;
    top: 18px !important;
    right: 18px !important;
    font-size: 30px !important;
    color: var(--turq-0) !important;
    z-index: 12005 !important;
    cursor: pointer;
    transition: transform 0.25s ease, color 0.25s ease;
  }

  .hamburger:hover {
    color: var(--turq-1) !important;
    transform: scale(1.1);
  }

  /* Hidden state */
  .menu.mobile-menu {
    display: none !important;
    position: fixed !important;
    top: 100px !important;           /* lower to show first link */
    right: 18px !important;
    background: rgba(10,15,16,0.96) !important;
    border: 1px solid var(--turq-2) !important;
    border-radius: 12px !important;
    padding: 8px 20px !important;    /* reduced internal padding */
    text-align: right !important;
    flex-direction: column !important;
    gap: 2px !important;             /* tight spacing between items */
    box-shadow: 0 6px 20px rgba(0,0,0,0.6) !important;
    z-index: 12004 !important;
  }

  /* Visible state */
  .menu.mobile-menu.show { display: flex !important; }

  /* Link styling */
  .menu.mobile-menu a {
    display: block !important;
    padding: 8px 0 !important;
    line-height: 1.1 !important;
    font-size: 0.95rem !important;
    color: var(--turq-0) !important;
    text-decoration: none !important;
    font-family: 'Cinzel Decorative', serif !important;
    font-weight: 600 !important;
    transition: color 0.3s ease;
  }

  .menu.mobile-menu a:hover {
    color: var(--turq-1) !important;
  }

  /* Torch stays behind */
  .torch {
    pointer-events: none !important;
    z-index: 1 !important;
  }
}
/* Hide the side logos on mobile */
@media (max-width: 768px) {
  .brand,
  .brand-right {
    display: none !important;
  }
}
/* FINAL — proper relic visibility control */
@media (max-width: 768px) {
  .vector {
    opacity: 0 !important;              /* hidden until touched */
    pointer-events: none !important;
    z-index: 1 !important;
  }
}

@media (min-width: 769px) {
  .vector {
    opacity: 0.03 !important;           /* faintly visible on desktop */
    pointer-events: auto !important;
    z-index: 2 !important;
  }
}
/* === FINAL MOBILE RELIC VISIBILITY === */
@media (max-width: 768px) {
  .vector {
    opacity: 0 !important;            /* hidden until touch event */
    pointer-events: none !important;
    z-index: 1 !important;
    transition: opacity .25s ease, transform .25s ease, filter .25s ease;
  }
}

/* === FINAL DESKTOP RELIC VISIBILITY === */
@media (min-width: 769px) {
  .vector {
    opacity: 0.03 !important;         /* faint default visibility */
    pointer-events: auto !important;
    z-index: 2 !important;
  }
}
/* === TEMPORARY DEBUG MODE === */
@media (max-width: 768px) {
  .vector {
    opacity: 0.8 !important;
    z-index: 999 !important;
    filter: drop-shadow(0 0 10px cyan) !important;
  }
}
#vec-ring {
  top: 20px !important;
  left: 20px !important;
  opacity: 1 !important;
  z-index: 9999 !important;
}
/* === DEBUG RELIC VISIBILITY (STEP 1) === */
.vector {
  opacity: 0.6 !important;
  transform: scale(1);
  filter: brightness(1.1) contrast(1.1) saturate(1.1)
          drop-shadow(0 0 10px rgba(127,193,179,0.6)) !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.vector:hover {
  opacity: 1 !important;
  transform: scale(1.15);
  filter: brightness(1.3) contrast(1.3) saturate(1.3)
          drop-shadow(0 0 16px rgba(127,193,179,0.9)) !important;
}


/* Desktop (wider screens) */
@media screen and (min-width: 769px) {
  #vec-ring     { left: 20% !important; top: 45% !important; transform: scale(0.9) !important; }
  #vec-cinnamon { right: 14% !important; top: 58% !important; transform: scale(0.9) !important; }
  #vec-feather  { left: 8% !important; top: 152% !important; transform: scale(0.9) !important; } /* moved lower */
  #vec-quartz   { right: 10% !important; top: 174% !important; transform: scale(0.9) !important; } /* moved further down */
}

/* Mobile (narrow screens) */
@media (max-width: 768px) {
  #vec-ring     { left: 12% !important; top: 20% !important; }
  #vec-cinnamon { right: 14% !important; top: 58% !important; }
  #vec-feather  { left: 12% !important; top: 210% !important; }
  #vec-quartz   { right: 5% !important; top: 300% !important; }
}
/* =========================================================
   RELIC VISIBILITY — Hidden until Hover / Touch
   ========================================================= */
.vector {
  opacity: 0; /* fully invisible at rest */
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.5s ease;
  filter: brightness(0.7) contrast(0.8) saturate(0.8)
          drop-shadow(0 0 4px rgba(127,193,179,0.25));
  pointer-events: auto; /* allow interaction */
}

/* Hover or touch — fade in + gentle zoom */
.vector:hover,
.vector:active {
  opacity: 1;
  transform: scale(1.18);
  filter: brightness(1.2) contrast(1.3) saturate(1.4)
          drop-shadow(0 0 18px rgba(127,193,179,0.85));
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.5s ease;
}
/* === FINAL RELIC BEHAVIOUR OVERRIDE (hidden → pop on hover/touch) === */
/* Always start hidden (even if JS adds .visible) */
#vec-ring:not(:hover):not(:active),
#vec-cinnamon:not(:hover):not(:active),
#vec-feather:not(:hover):not(:active),
#vec-quartz:not(:hover):not(:active) {
  opacity: 0 !important;
  transform: scale(1) !important;
  filter: brightness(0.7) contrast(0.8) saturate(0.8)
          drop-shadow(0 0 4px rgba(127,193,179,0.25)) !important;
  pointer-events: auto !important;   /* still interactive while invisible */
  transition: opacity .4s ease, transform .4s ease, filter .5s ease !important;
}

/* Pop/glow when hovered (desktop) or pressed (mobile) */
#vec-ring:hover, #vec-ring:active,
#vec-cinnamon:hover, #vec-cinnamon:active,
#vec-feather:hover, #vec-feather:active,
#vec-quartz:hover, #vec-quartz:active {
  opacity: 1 !important;
  transform: scale(1.18) !important;
  filter: brightness(1.2) contrast(1.3) saturate(1.4)
          drop-shadow(0 0 18px rgba(127,193,179,0.85)) !important;
  transition: opacity .4s ease, transform .4s ease, filter .5s ease !important;
  cursor: pointer;
}
/* tighten spacing from the bio paragraph above */
main.container > p { margin: 0 auto 10px auto !important; }

.section-behind {
  margin: 80px auto; /* balanced spacing above and below */
  display: flex;
  justify-content: center;
}

.behind-wrapper {
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 0 auto;
  padding: 20px 0;
}

.behind-headshot {
  float: left;
  width: 260px;
  margin: 0 40px 0 0;
  shape-outside: circle(50%);
  clip-path: circle(50%);
}

.behind-wrapper p {
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  font-size: 0.97rem;
  margin: 0;
}


.shadow-col-left {
  width: 280px;
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.shadow-text{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* aligns top with title, bottom with headshot */
}

.shadow-text p{
  margin: 0 0 14px 0;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  max-width: 100%;
}

.shadow-text .epigraph{
  margin-top: 8px;
  text-align: right;
  opacity: 0.95;
  font-size: 0.95em;
}

@media (max-width: 768px){
  .behind-wrapper{
    flex-direction: column;
    gap: 16px;
  }
  .shadow-col-left{ width: 100%; flex: 0 0 auto; }
  .shadow-text .epigraph{ text-align: left; }
}


