:root {
  --bg: #0b0f14;             /* deep midnight black-blue */
  --ink: #f8f6f0;            /* iridescent pearl (soft white) */
  --muted: #b08fb6;          /* muted lavender-grey */

  --accent: #6a0dad;         /* deep shimmering dark purple */
  --accent2: #ff4fa3;        /* shimmering pink */

  --card: #111720;           /* titanium dark container */
  --chip: #1a2230;           /* chip background */

  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 19px/1.55 system-ui, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Noto Color Emoji, Segoe UI Emoji;
}

a { color: var(--ink); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
}

input, select, textarea { -webkit-appearance: none; }

blockquote {
    margin: auto;
    color: lightblue;
    width: 80%;
    padding: 10px;
}

blockquote i {
    color: cyan;
}

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(11,15,20,.9), rgba(11,15,20,.6));
  backdrop-filter: saturate(1.2) blur(8px);
}

.toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: .5px;
}

.moon-wrapper {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  transform: rotate(-22deg); /* moon angle */
}

.moon-wrapper::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(175,152,233,0.15) 0%, transparent 70%);
  border-radius: 50%;
  left: -5%;
  top: -5%;
  z-index: -1;
}

.moon-back {
  position: absolute;
  left: 0;
  font-size: 32px;
  color: #6ca6cd; /* titanium blue */
  text-shadow:
    0 0 6px rgba(108, 166, 205, 0.35),
    0 0 14px rgba(175, 152, 233, 0.2); /* plum glow */
}

.moon-front {
  position: absolute;
  left: 7px;
  font-size: 32px;
  color: #0B0F14;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

h1, h2 {
  background: linear-gradient(180deg, var(--accent2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#site-name {
  background: linear-gradient(90deg, #6ca6cd, #b48add);  /* titanium blue → plum */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 32px;
}

#site-tagline {
  font-size: 18px;
  font-style: italic;
  color: #d3b3f0;
  letter-spacing: 0.5px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.4;
}


.hamburger {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--chip);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid #1f2a3a;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
  position: relative;
}

.hamburger span:before,
.hamburger span:after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.hamburger span:before { top: -6px; }
.hamburger span:after  { top:  6px; }

.menu { display: none; }
.menu.open { display: block; }
.menu a {
  display: block;
  padding: 12px 18px;
  border-top: 1px solid #1c2533;
  background: #0d131d;
  text-align: center;
}
.menu a:hover { background: #101827; }

/* ── Gallery Row ───────────────────────────────────── */
.row {
  display: grid;
  gap: 18px;
  margin: 22px auto;
  max-width: 1080px;
}
.row.gallery { grid-template-columns: 1.3fr .9fr; }
@media (max-width:900px){ .row.gallery { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid #1b2636;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Make the parent that contains .thumbs the positioning context */
.card:has(> .thumbs) { position: relative; }

/* Always show the down-arrow on the thumbs card
.card:has(> .thumbs)::after {
  content: "▾";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-size: 66px;
  line-height: 1;
  color: var(--muted);
  opacity: .85;
  pointer-events: none;
  animation: bounce 1.2s infinite;
  display: block;              
}

 Keep your bounce animation 
@keyframes bounce {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, 6px); }
} */

.thumbs-card { position: relative; }
.thumbs-card::after { position: relative; }

.hero {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.hero-figure {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0; /* reset default <figure> margin */
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills parent card, crops if needed */
  display: block;
}

#hero-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 5px 8px;
  font-style: italic;
  color: var(--ink);
  text-shadow:
    0 1px 2px rgba(0,0,0,.8),
    0 0 12px rgba(0,0,0,.75);
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  pointer-events: none;
}

/* Scrollable thumbs */
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 100%;
  overflow-y: auto;
  /*padding-bottom: 36px;  give extra space so arrow doesn't overlap content */
  position: relative;
}

.thumb {
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  opacity: .85;
  border: 1px solid #1e2838;
  transition: transform .08s ease, opacity .15s ease;
}
.thumb:hover { opacity:1; transform:translateY(-1px); }

/* ── Stats Row ─────────────────────────────────────── */
.row.stats { grid-template-columns: 1fr 1fr; }
@media (max-width:900px){ .row.stats { grid-template-columns:1fr; } }

.stack { padding:18px 18px 8px; }
.h1 { font-size:28px; font-weight:800; margin:0 0 4px; }
.sub { color:var(--muted); font-size:14px; margin-bottom:12px; }
.chips { display:flex; flex-wrap:wrap; gap:10px; }

.chip {
  background: var(--chip);
  border: 1px solid #1f2a3a;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: #c7d2e2;
  transition: transform .08s ease, filter .15s ease, background .2s ease, color .2s ease;
}
.chip:hover { transform: translateY(-1px); filter: brightness(1.05); }

#links .chip { cursor:pointer; display:inline-flex; align-items:center; gap:8px; }

/* Chip variants (driven by JS classes, not :contains) */
.chip--ig {
  background: rgba(255,79,163,.12);
  border-color: rgba(255,79,163,.35);
  color:#ffd3e9;
}
.chip--ig:hover { background: rgba(255,79,163,.18); }

.chip--email {
  background: rgba(106,13,173,.12);
  border-color: rgba(106,13,173,.35);
  color:#e6d4ff;
}
.chip--email:hover { background: rgba(106,13,173,.18); }

.bio { color:#cfe1ff; font-weight:500; font-size:17px; }

/* Tagline */
#tagline { font-size:17px; line-height:1.5; }

/* Scrollable creed */
#creed {
  display:block;
  height: 100%;
  overflow-y:auto;
  padding-right:6px;
  position:relative;
    font-size: 0.95rem;
  line-height: 1.7;
}
#stats .card:nth-child(2){ position:relative; }
#stats .card.has-more::after {
  content:"▾";
  position:absolute;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  font-size:20px;
  color:var(--muted);
  animation:bounce 1.2s infinite;
  pointer-events:none;
  opacity:.8;
  display:block;
}

/* ── Blog Row ──────────────────────────────────────── */
.row.blog { grid-template-columns:1fr; }
.post {
  padding:18px;
  border-top:1px solid #1c2431;
    font-size: 0.95rem;
  line-height: 1.7;
}
.post:first-child { border-top:none; }
.post h3 { margin:0 0 6px; font-size:1.2em; 
background: linear-gradient(180deg, var(--accent2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;}
.post time { color:var(--muted); font-size:15px; }

.continue-btn {
    color: cyan;
}

.continue-btn:hover {
    color: pink;
}

.load-more {
  display:block;
  width:100%;
  margin:14px auto 8px;
  padding:12px 14px;
  background:var(--chip);
  border:1px solid #223047;
  border-radius:12px;
  color:#dbe7ff;
  cursor:pointer;
}
.load-more:hover { filter:brightness(1.1); }

/* ── Footer ───────────────────────────────────────── */
footer { opacity:.7; text-align:center; padding:30px 12px; }
.muted { color:var(--muted); }

/* ── Contact Modal ─────────────────────────────────── */
.backdrop {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(2px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:80;
}
.backdrop.open { display:flex; }

.modal {
  width:min(640px,92vw);
  background:var(--card);
  border:1px solid #1b2636;
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.modal h3 { margin:0 0 12px; font-size:20px; }

.grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:700px){ .grid { grid-template-columns:1fr; } }

.field { display:flex; flex-direction:column; gap:6px; }
.field label { font-size:13px; color:var(--muted); }

.field input,
.field select,
.field textarea {
  background:#0d131d;
  border:1px solid #223047;
  border-radius:12px;
  padding:10px 12px;
  color:var(--ink);
}

.row-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
.btn {
  background:var(--chip);
  border:1px solid #223047;
  border-radius:12px;
  padding:10px 14px;
  color:#dbe7ff;
  cursor:pointer;
}
.btn.primary { border-color:var(--accent); }

.captcha { display:flex; align-items:center; gap:10px; font-size:14px; }
.hint { color:var(--muted); font-size:12px; }

/* Gate modal (frosted background) */
.backdrop.gate {
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gate-modal {
  width: min(720px, 92vw);
  background: rgba(17,23,32,.85);
  border: 1px solid #263348;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.gate-modal h1 { margin: 0 0 10px; }
.gate-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

#contactSuccess p {
  font-size: 1.2em;
  color: var(--accent);
  margin-bottom: 1em;
}
#cf_close_success {
  background: var(--accent);
  color: #fff;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.hidden.rest {
  display: none;
}
.rest:not(.hidden) {
  display: block;
}

/* ---------------------- Post Modal -------------------------- */
.blog-modal {
  max-height: 85vh;
  overflow: auto;
  max-width: 1000px;
  width: 100%;
}

.modal-content {
  max-height: 80vh;
  overflow-y: auto;
  padding: 0 20px;
    font-size: 0.95rem;
  line-height: 1.7;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-close {
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  padding: 0;
  margin: 0;
}

.modal-close i {
  font-size: 1.8rem;
}

/* Modal Header Alignment */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Modal Close Button */
.modal-close {
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  background: none;
  padding: 0;
  margin: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.modal-close i {
  font-size: 1.9rem;
}

/* Optional hover effect */
.modal-close:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px var(--muted));
}

/* Modal Body Scroll Area */
.blog-modal .modal-content {
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  background: var(--bg, #fff);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.25s ease-out;
}

/* Optional fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promises-section {
  max-width: 850px;
  width: 100%;
  margin: 1rem auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid #aaa;
  border-radius: 6px;
  backdrop-filter: blur(2px);
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #eee;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: background 0.4s ease;
}

.promises-section:hover {
  background: rgba(255, 255, 255, 0.06);
}

.promises-section h2 {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1.6rem;
  color: #f5f5f5;
  margin-bottom: 1.4rem;
  letter-spacing: 0.5px;
}

#liminalSpace img, #liminalSpace2 img {
 width: 100%;
 height: auto;
 border-radius: 50px;
}

.stats-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.stats-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.stats-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #f8f6f0;
  font-size: 0.8rem;
  top: 0.2rem;
}

#blogModalTitle {
background: linear-gradient(180deg, var(--accent2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.6em;
}

.blogModalDate {
    color: pink !important;
}