:root {
  --bg: #120d08;
  --bg-soft: rgba(35, 24, 16, 0.42);
  --border: rgba(196, 152, 86, 0.18);
  --gold: #d8ad67;
  --gold-soft: #9a7240;
  --text: #f5efe5;
  --muted: rgba(245, 239, 229, 0.78);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 243, 217, 0.34), transparent 14%),
    radial-gradient(circle at 50% 40%, rgba(214, 171, 96, 0.20), transparent 24%),
    linear-gradient(180deg, rgba(255,248,232,0.50) 0%, rgba(213,168,94,0.12) 26%, rgba(56,27,12,0.30) 54%, rgba(20,12,8,0.84) 100%),
    url('assets/universe-bg.jpg') center top / cover no-repeat;
  filter: saturate(0.95) brightness(0.72) contrast(1.06) blur(0.6px);
  transform: scale(1.02);
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 237, 208, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(255,250,242,0.08), rgba(46,24,14,0.22) 46%, rgba(16,9,6,0.72));
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255,255,255,.75) 0.65px, transparent 0.65px);
  background-size: 6px 6px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0 10px;
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.08), rgba(255,249,240,0.02));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 72px);
  padding: 12px 28px 13px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  isolation: isolate;
}

.nav::before {
  content: '';
  position: absolute;
  inset: -12px -44px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.07)),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 14%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.08) 86%, transparent 100%);
  filter: blur(18px);
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.9) 14%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.9) 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.9) 14%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.9) 86%, transparent 100%);
}

.nav::after {
  content: '';
  position: absolute;
  inset: -24px -76px;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.08) 28%, rgba(255,255,255,0.03) 54%, transparent 76%);
  filter: blur(26px);
  opacity: 0.55;
}

.nav a {
  font-family: 'Lora', 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(226, 186, 116, 0.99);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.05),
    0 2px 10px rgba(0,0,0,0.16);
  transition: color .25s ease, text-shadow .25s ease, opacity .25s ease;
}

.nav a:hover {
  color: #f2cd8d;
  text-shadow:
    0 0 6px rgba(255,255,255,0.16),
    0 1px 0 rgba(78,48,20,0.34),
    0 2px 14px rgba(0,0,0,0.18);
}

main, .footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 48px 22px 80px;
}

.hero-inner {
  width: min(900px, 100%);
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.tag,
.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: rgba(223, 183, 118, 0.92);
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  margin-top: 14px;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0,0,0,0.18);
}

.subtitle {
  width: min(680px, 100%);
  margin: 18px auto 0;
  color: rgba(255, 250, 244, 0.94);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.8;
  text-shadow: 0 1px 10px rgba(255,249,240,0.18);
}

.rift-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.rift {
  width: min(760px, 76vw);
  height: 300px;
  opacity: 0.52;
  filter: blur(0.2px);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,240,202,0.18), rgba(214,171,96,0.06) 10%, transparent 32%),
    linear-gradient(90deg,
      transparent 0%,
      rgba(214,171,96,0.03) 38%,
      rgba(214,171,96,0.14) 45%,
      rgba(244, 215, 159, 0.20) 50%,
      rgba(214,171,96,0.14) 55%,
      rgba(214,171,96,0.03) 62%,
      transparent 100%);
  clip-path: polygon(0 54%, 20% 52%, 36% 56%, 47% 50%, 54% 54%, 69% 47%, 82% 50%, 100% 46%, 100% 54%, 84% 58%, 67% 53%, 53% 58%, 45% 53%, 32% 59%, 18% 56%, 0 60%);
  box-shadow: 0 0 50px rgba(214,171,96,0.08);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-header.narrow {
  width: min(760px, 100%);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.cards {
  display: grid;
  gap: 20px;
}

.book-featured {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 22px;
  align-items: center;
}

.card {
  position: relative;
  padding: 24px 26px;
  border-top: 1px solid rgba(196, 152, 86, 0.20);
  border-bottom: 1px solid rgba(196, 152, 86, 0.16);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255,247,236,0.15), rgba(82,42,18,0.18));
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  overflow: visible;
  isolation: isolate;
  z-index: 0;
}

.book-featured:focus-within,
.book-featured:hover {
  z-index: 12;
}

.book-cover-wrap {
  overflow: hidden;
  border: 1px solid rgba(196,152,86,0.16);
  background: rgba(255,249,240,0.06);
}

.book-copy {
  display: grid;
  gap: 12px;
}

h3 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.inline-links,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.inline-links a,
.card a,
.socials a {
  color: #f1c57d;
}

.inline-links a:hover,
.card a:hover,
.socials a:hover {
  color: #ffe2af;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.x-icon {
  color: #f1c57d;
}

.email-link span {
  line-height: 1;
}

.synopsis-pop {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 20;
}

.synopsis-trigger {
  color: #f1c57d;
  cursor: default;
  font: inherit;
}

.synopsis-trigger:hover,
.synopsis-pop:hover .synopsis-trigger,
.synopsis-pop:focus-within .synopsis-trigger {
  color: #ffe2af;
}

.synopsis-box {
  position: absolute;
  width: min(520px, 44vw);
  min-width: 320px;
  padding: 22px 24px;
  border-top: 1px solid rgba(196, 152, 86, 0.22);
  border-bottom: 1px solid rgba(196, 152, 86, 0.16);
  background: linear-gradient(180deg, rgba(255,247,236,0.985), rgba(232,214,185,0.975));
  box-shadow: 0 20px 52px rgba(0,0,0,0.34);
  color: rgba(20, 14, 10, 0.94);
  line-height: 1.68;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.synopsis-pop--right .synopsis-box {
  left: 72px;
  top: 50%;
  transform: translateY(-46%) translateX(12px);
}

.synopsis-pop--up .synopsis-box {
  left: 0;
  bottom: calc(100% + 14px);
  transform: translateY(8px);
}

.short-synopsis {
  width: min(460px, 40vw);
}

.synopsis-box p {
  margin: 0 0 16px;
  color: rgba(20, 14, 10, 0.94);
  font-size: 1rem;
}

.synopsis-box p:last-child {
  margin-bottom: 0;
}

.synopsis-pop:hover .synopsis-box,
.synopsis-pop:focus-within .synopsis-box {
  opacity: 1;
  visibility: visible;
}

.synopsis-pop--right:hover .synopsis-box,
.synopsis-pop--right:focus-within .synopsis-box {
  transform: translateY(-46%) translateX(0);
}

.synopsis-pop--up:hover .synopsis-box,
.synopsis-pop--up:focus-within .synopsis-box {
  transform: translateY(0);
}

.prose-card {
  width: min(860px, 100%);
}

.writings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.writing-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer {
  padding: 20px 16px 48px;
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(196,152,86,0.18);
  padding-top: 24px;
  display: grid;
  gap: 14px;
  text-align: center;
}

.socials {
  justify-content: center;
}

.footer-note {
  margin: 0;
  color: rgba(245, 239, 229, 0.62);
  text-align: center;
}

@media (max-width: 860px) {
  .book-featured,
  .writings-grid {
    grid-template-columns: 1fr;
  }

  .book-cover-wrap {
    max-width: 320px;
  }

  .book-featured {
    justify-items: center;
  }

  .book-copy {
    text-align: center;
  }

  .inline-links {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    padding-top: 10px;
  }

  .nav {
    width: calc(100% - 16px);
    justify-content: space-evenly;
    gap: 10px;
    padding: 12px 8px;
  }

  .nav::before {
    inset: -10px -16px;
    filter: blur(14px);
  }

  .nav::after {
    inset: -18px -28px;
    filter: blur(20px);
  }

  .nav a {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }

  .hero {
    min-height: 88vh;
    padding-top: 36px;
  }

  .rift {
    width: 92vw;
    height: 220px;
    opacity: 0.48;
  }

  .section {
    width: min(1120px, calc(100% - 22px));
    padding: 56px 0;
  }

  .card {
    padding: 18px;
  }

  .socials,
  .inline-links {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .synopsis-box,
  .short-synopsis {
    left: 50% !important;
    right: auto;
    top: calc(100% + 12px) !important;
    bottom: auto !important;
    width: min(92vw, 560px);
    min-width: 0;
    transform: translate(-50%, 8px) !important;
  }

  .synopsis-pop:hover .synopsis-box,
  .synopsis-pop:focus-within .synopsis-box {
    transform: translate(-50%, 0) !important;
  }
}

.footer-inner {
  display: grid;
  gap: 18px;
  place-items: center;
  text-align: center;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(255,247,236,0.12), rgba(82,42,18,0.16));
  border-top: 1px solid rgba(196, 152, 86, 0.20);
  border-bottom: 1px solid rgba(196, 152, 86, 0.16);
  color: rgba(245, 239, 229, 0.96);
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
}

.social-pill:hover {
  color: #fff7ea;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.email-link span {
  word-break: break-all;
}

.footer-note {
  color: rgba(245, 239, 229, 0.72);
}

.footer {
  padding: 28px 0 48px;
}

.footer-bar-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px 13px;
  background: rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

.footer-bar::before {
  content: '';
  position: absolute;
  inset: -12px -44px;
  z-index: -1;
  background:
    rgba(255, 255, 255, 0.08);
  filter: blur(18px);
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.9) 14%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.9) 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.9) 14%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.9) 86%, transparent 100%);
}

.footer-bar::after {
  content: '';
  position: absolute;
  inset: -24px -76px;
  z-index: -2;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(26px);
  opacity: 0.55;
}

.footer-link {
  font-family: 'Lora', 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(226, 186, 116, 0.99);
  text-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 2px 10px rgba(0,0,0,0.16);
}

.footer-link:hover {
  color: #f2cd8d;
  text-shadow: 0 0 6px rgba(255,255,255,0.16), 0 2px 14px rgba(0,0,0,0.18);
}

.footer-link .x-icon {
  color: currentColor;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 18px;
  border-top: 0;
}

.socials {
  gap: clamp(18px, 3vw, 34px);
}

.social-pill {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 640px) {
  .footer-bar {
    width: calc(100% - 16px);
    padding: 12px 8px;
  }

  .footer-bar::before {
    inset: -10px -16px;
    filter: blur(14px);
  }

  .footer-bar::after {
    inset: -18px -28px;
    filter: blur(20px);
  }

  .footer-link {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }

  .socials {
    gap: 12px;
  }
}

/* Footer fixes */
.footer-bar-shell {
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(196,152,86,0.12);
}

.footer-bar {
  width: min(1120px, calc(100% - 24px));
}

.footer-bar .socials {
  width: 100%;
  justify-content: center;
  gap: 22px;
}

.footer-link {
  color: rgba(245,239,229,0.96);
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}

.footer-link:hover {
  color: #fff3da;
}

.x-only-link {
  padding-right: 2px;
}

.x-only-link .social-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.email-link {
  gap: 8px;
}

/* footer final override */
.footer {
  padding: 28px 0 48px;
}

.footer-bar-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 20px 13px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  isolation: isolate;
}

.footer-bar::before {
  content: '';
  position: absolute;
  inset: -12px 0;
  z-index: -1;
  background:
    rgba(255, 255, 255, 0.08);
  filter: blur(18px);
  opacity: 0.92;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.9) 14%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.9) 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.9) 14%, rgba(0,0,0,1) 50%, rgba(0,0,0,0.9) 86%, transparent 100%);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}

.footer-socials .social-link {
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(226, 186, 116, 0.99);
}

.footer-text-link {
  font-family: 'Lora', 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(226, 186, 116, 0.99);
  text-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 2px 10px rgba(0,0,0,0.16);
}

.footer-socials .social-link:hover {
  color: #f2cd8d;
}

.footer-socials .x-icon {
  width: 22px;
  height: 22px;
  color: rgba(226, 186, 116, 0.99);
}

.footer-socials .gmail-icon {
  width: 18px;
  height: 18px;
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(196,152,86,0.18);
  padding-top: 24px;
  display: grid;
  gap: 14px;
  text-align: center;
}

@media (max-width: 640px) {
  .footer-bar {
    padding: 12px 12px 13px;
  }
  .footer-socials {
    gap: 14px 18px;
  }
  .footer-text-link {
    font-size: 0.95rem;
  }
  .email-link span {
    word-break: break-word;
  }
}

/* --- Writings editor --- */
.writings-tools {
  display: grid;
  gap: 10px;
  margin: 8px 0 22px;
}

.edit-toggle,
.writer-form button,
.import-btn {
  appearance: none;
  border: 1px solid rgba(216, 173, 103, 0.28);
  background: linear-gradient(180deg, rgba(255,247,236,0.10), rgba(82,42,18,0.14));
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.edit-toggle {
  width: fit-content;
}

.edit-toggle:hover,
.writer-form button:hover,
.import-btn:hover {
  background: linear-gradient(180deg, rgba(255,247,236,0.14), rgba(82,42,18,0.20));
  border-color: rgba(216, 173, 103, 0.42);
  transform: translateY(-1px);
}

.writings-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.writer-admin {
  margin-top: 24px;
  padding: 22px 24px 24px;
  border-top: 1px solid rgba(196, 152, 86, 0.20);
  border-bottom: 1px solid rgba(196, 152, 86, 0.16);
  background: linear-gradient(180deg, rgba(255,247,236,0.10), rgba(82,42,18,0.16));
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.writer-admin__head h3,
.writer-list-wrap h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  margin: 0 0 6px;
}

.writer-admin__head p,
.writer-list-empty {
  margin: 0 0 18px;
  color: var(--muted);
}

.writer-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
}

.writer-form label {
  display: grid;
  gap: 8px;
}

.writer-form span {
  color: rgba(223, 183, 118, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.writer-form input,
.writer-form textarea {
  width: 100%;
  background: rgba(12, 8, 6, 0.44);
  border: 1px solid rgba(216, 173, 103, 0.18);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.writer-form textarea {
  resize: vertical;
  min-height: 118px;
}

.writer-form input:focus,
.writer-form textarea:focus {
  border-color: rgba(216, 173, 103, 0.42);
  box-shadow: 0 0 0 1px rgba(216, 173, 103, 0.14);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-btn {
  background: rgba(255,255,255,0.04) !important;
}

.writer-list-wrap {
  margin-top: 22px;
}

.writer-list {
  display: grid;
  gap: 12px;
}

.writer-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: rgba(12, 8, 6, 0.28);
  border: 1px solid rgba(216, 173, 103, 0.12);
}

.writer-list-item strong {
  display: block;
  margin-bottom: 6px;
}

.writer-list-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.writer-list-actions {
  display: flex;
  gap: 8px;
}

.writer-list-actions button {
  padding: 10px 12px;
  font-size: 0.88rem;
}

.writing-card a[disabled],
.writing-card a.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 760px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .writer-list-item {
    grid-template-columns: 1fr;
  }

  .writer-list-actions {
    justify-content: flex-start;
  }
}

/* footer transparency override */
footer .footer-bar,
.footer-bar,
footer .footer-links,
.footer-links {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* footer subtle translucent bar calibration */
footer .footer-bar,
.footer-bar,
footer .footer-links,
.footer-links {
  background: rgba(255, 255, 255, 0.03) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.035) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025) !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.018) inset !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

/* footer full transparency recalibration */
.footer-bar-shell {
  background: rgba(255, 255, 255, 0.015) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  border-top: 1px solid rgba(255,255,255,0.025) !important;
  border-bottom: 1px solid rgba(255,255,255,0.02) !important;
}

.footer-bar {
  background: rgba(255, 255, 255, 0.012) !important;
  box-shadow: none !important;
}

.footer-bar::before {
  background: rgba(255, 255, 255, 0.012) !important;
  filter: blur(12px) !important;
  opacity: 0.45 !important;
}

.footer-bar::after {
  opacity: 0.18 !important;
}

.footer-socials .social-link {
  background: transparent !important;
}

/* footer inner bar extra transparency */
.footer-bar {
  background: rgba(255, 255, 255, 0.006) !important;
}

.footer-bar::before {
  background: rgba(255, 255, 255, 0.006) !important;
  opacity: 0.28 !important;
  filter: blur(14px) !important;
}

.footer-bar::after {
  opacity: 0.10 !important;
}

/* ========= Mobile optimization pass (v12) ========= */
@media (max-width: 768px) {
  .nav {
    width: calc(100% - 18px);
    gap: 8px;
    padding: 10px 8px 11px;
  }

  .nav a {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
  }

  .hero {
    min-height: 100svh;
    padding: 40px 18px 64px;
    align-items: flex-start;
  }

  .hero-inner {
    width: 100%;
    max-width: 300px;
    margin: 18vh auto 0;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.8rem, 10vw, 3.7rem);
    line-height: 0.95;
    margin: 10px 0 0;
    word-break: normal;
    overflow-wrap: normal;
  }

  .subtitle {
    width: 100%;
    max-width: 280px;
    margin: 14px auto 0;
    font-size: 1rem;
    line-height: 1.5;
  }

  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .section {
    width: min(100%, calc(100% - 20px));
    padding: 50px 0;
  }

  .card {
    padding: 20px 18px;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 4px;
    padding: 9px 4px 10px;
  }

  .nav a {
    font-size: 0.8rem;
    letter-spacing: 0;
  }

  .hero-inner {
    max-width: 270px;
    margin-top: 16vh;
  }

  h1 {
    font-size: clamp(2.45rem, 9.5vw, 3.2rem);
    line-height: 0.96;
  }

  .subtitle {
    max-width: 250px;
    font-size: 0.95rem;
  }
}
