/* styles.css */
:root{
  --page-bg: #f6e5a0;
  --panel-bg: #f1d87a;
  --text: #1b1b1b;

  /* Header sizing */
  --sticky-h: 150px;
  --sticky-h-sm: 85px;

  /* JS-updated current header height (used for interior sticky header offset) */
  --smart-header-h: var(--sticky-h);

  /* Logo sizing + position */
  --logo-w: 215px;
  --logo-w-sm: 166px;
  --logo-top-offset: 19px;

  /* Interior page */
  --interior-radius: 2% 3%;
  --interior-top-margin: 0px;
  --headingfont: "Slackey", sans-serif;
  --bodyfont: "Galindo", sans-serif;
  --shadow: 0 14px 30px rgba(0,0,0,0.14);

  /* Landing width cap */
  --landing-max: 1250px;

  /* Colors */
  --yellow:#f2b705;
  --red:#a82401;
}



/* ===========================
   GLOBAL / TYPOGRAPHY
   =========================== */

body{
  color: var(--text);
  background: url(../img/bgr/hero-1.jpg);
  font-family: var(--bodyfont);
  font-size: 20px;
  backdrop-filter: blur(0px);
  background-size: 100vw;
  position: relative;
  background-position: top right;
  background-repeat: no-repeat;
  background-color: #000000;
  overflow-x: hidden;

  /* helps avoid odd short-doc gaps */
  min-height: 100vh;
}

body:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  z-index: -1;
  height: 97%;
  background: linear-gradient(to right, black 10%, transparent 50%, transparent), linear-gradient(to top, black 10%, transparent);
  background-size: 100vw;
  overflow-x: hidden;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6{
  font-family: var(--headingfont);
}

a
 {
    color: var(--red);
    text-decoration: underline dotted;
}
a:hover{}


@media (min-width: 1200px){
  /* Default container stays WIDE (for header + interior pages) */
  .container{ max-width: 95vw; }
}

/* Landing page container is narrower */
.container-landing{
  max-width: var(--landing-max) !important;
}

/* ===========================
   SMART STICKY HEADER
   =========================== */

.smart-sticky{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: unset;
  overflow: visible;
  height: var(--sticky-h);
  display: flex;
  align-items: center;
  transition: height 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.smart-sticky.is-scrolled{
  height: var(--sticky-h-sm);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
  background: rgba(246, 229, 160, 0.98);
  background: var(--red);
}

.main-nav{ width: 100%; }

/* Menu closer to logo */
.nav-col-left .nav{ justify-content: flex-end !important; }
.nav-col-right .nav{ justify-content: flex-start !important; }
.nav-col-left .nav-link{ padding-right: .55rem; }
.nav-col-right .nav-link{ padding-left: .55rem; }

.nav-link{
  font-weight: 500;
  color: white !important;
  font-size: 1.55rem;
  padding: .55rem 1.0rem;
  font-family: var(--headingfont);
  border-radius: 10px;
  transition: 120ms ease;
}
.nav-link:hover{ text-decoration: underline; }

.nav-link.is-active{
  text-decoration: underline;
  background: rgba(0,0,0,0.08);
}

/* Logo link */
.brand-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-wrap{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo{
  width: var(--logo-w);
  max-width: 100%;
  user-select: none;
  transform: translateY(26px);
  position: relative;
  top: var(--logo-top-offset);
  transition: width 260ms ease, transform 260ms ease, top 260ms ease, opacity 220ms ease, filter 220ms ease;
  transform-origin: center;
  opacity: 1;
  filter: blur(0px);
}

.brand-logo.is-logo-fading{
  opacity: 0;
  filter: blur(1px);
}

.smart-sticky.is-scrolled .brand-logo{
  width: var(--logo-w-sm);
  top: 0;
  transform: translateY(0);
}

/* ===========================
   LANDING PAGE
   =========================== */

.hero{ position: relative; background: unset; }
.hero-body{ position: relative; padding: 26px 0 90px; }

/* Social rail */
.social-rail{
  position: absolute;
  right: 18px;
  top: calc(var(--sticky-h) + 140px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: top 260ms ease;
  /* position: fixed; */
  /* top: 15px; */
}
.smart-sticky.is-scrolled ~ .hero-body .social-rail{
  top: calc(var(--sticky-h-sm) + 140px);
}
.social-btn{
  width: 73px;
  height: 73px;
  border-radius: 34% 37px 47% 30px;
  background: var(--yellow);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  text-decoration: none;
}
.social-btn:hover{ filter: brightness(0.95); }
.social-btn i{font-size: 1.7rem;}

/* Hero left */

.landing-hero {
  padding-top: 10rem;
  height: 50vh;
}

.landing-title{
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -.6px;
  text-shadow: 0 6px 16px rgba(0,0,0,0.10);
  font-size: clamp(44px, 5vw, 78px);
}

.landing-subtitle{
  margin: 0 0 34px;
  font-size: 1.15rem;
  max-width: 50ch;
}

/* wrapper */
.landing-bubble {
  position: relative;
  display: inline-block;
}

/* badge */
.landing-badge {
  position: absolute;
  top: -53px;
  left: 0px;
  background: black;
  color: var(--yellow);
  font-weight: 600;
  font-size: 1.4rem;
  padding: 8px 8px;
  border-radius: 7% 13% 8% 13%;
  border: 0px solid rgba(255,255,255,.8);
  z-index: 2;
  letter-spacing: 0.5px;
  transform: rotate(0deg);
}

/* make sure subtitle sits underneath */
.landing-subtitle {
  position: relative;
  z-index: 1;
}

p.landing-subtitle {
  display: inline;
  outline: rgba(255,255,255,1) dashed 4px;
  outline-offset: 1.3rem;
  border-radius: 1% 1.9rem 11%;
  color:white;
  font-size: 1.75rem;
  font-weight: 500!important;
  position:relative;
  letter-spacing: .5px;
  line-height: 1.25;
}

p.landing-subtitle:before {
  content: '';
  left: 14px;
  bottom: -46px;
  position: absolute;
  border-top: 11px solid rgba(255,255,255,1);
  border-left: 4px solid transparent;
  border-right: 15px solid transparent;
  opacity: 0;
}

.landing-bullets{
  margin: 0 0 18px;
  padding-left: 1.2rem;
  font-size: 1.05rem;
}
.landing-bullets li{ margin: 6px 0; }

.landing-cta{
  margin-top:50px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: min(500px, 100%);
}

/* Buttons */
.btn{
  border-radius: 15% 1.2em 23%;
  font-weight: 500;
  letter-spacing: -.2px;
  padding: 16px 21px;
  border: 2px solid rgba(0,0,0,0.10);
}

.btn:hover { border: 2px solid; }

.btn-cta-primary{
  background: var(--yellow);
  color: #111;
  box-shadow: 0 14px 22px rgba(0,0,0,0.12);
}
.btn-cta-primary:hover{filter: brightness(0.97);background: black;color: white;}

.btn-cta-secondary{
  background: rgb(255 255 255 / 94%);
  color: black;
  border-color: rgba(255,255,255,0.12);
}
.btn-cta-secondary:hover{filter: brightness(0.98);background: black;color: white;}

.btn-sm{
  padding: 10px 14px;
  border-radius: 12px;
}

.upcoming .btn {
    background: #b7b7b7;
    color: #414141 !important;
    pointer-events: none;
}

/* Hero right art */
.hero-art{ position: relative; }
.hero-art-shade{}

/* Sections */
.section-block{padding-top: 65px;}

.section-head,
.episodes-head{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 2px;
}

.section-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -.4px;
  font-size: 2.8rem;
  color: var(--yellow);
}

/* pills + tabs */
.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-weight: 900;
  font-size: .9rem;
  border: 2px solid rgba(0,0,0,0.10);
}

.pill-newest{ background: #f2b705; color: #111; }
.pill-new{ background: #f2b705; color: #111; height: 26px; font-size: .85rem; }

.tab{
  font-weight: 900;
  font-size: 1rem;
  opacity: .85;
}

/* ===========================
   FEATURE CARD (NEW EPISODE)
   =========================== */

.feature-card{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-radius: 2vw 15% 30px 7%;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 35px;
  border: 2px solid rgba(0,0,0,0.10);
}

.feature-card-bg{
  background-image: var(--feature-bg);
  background-size: cover;
  background-position: center;
}

.feature-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.95) 55%,
    rgba(255,255,255,0.92) 100%
  );
  backdrop-filter: blur(7px);
}

.feature-body,
.feature-action{
  position: relative;
  z-index: 1;
}

.feature-body{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 2px;
}

.feature-episode{font-weight: 500;opacity: .9;font-family: var(--bodyfont);font-size: 1.1rem;}
.feature-title{
  margin: 4px 0 8px;
  font-weight: 900;
  font-size: 2.1rem;
}
.feature-desc{
  margin: 0 0 12px;
  opacity: .95;
  font-size: 1.3rem;
}

.feature-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-dot{font-weight: 400;opacity: .9;font-size: .85rem;color: #7b7b7b;}

.feature-action{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
}

/* ===========================
   EPISODE CARDS
   =========================== */

.ep-card{
  display: flex;
  align-items: stretch;
  flex-direction: row;
  border-radius: 15px 12% 9% 3vw;
  overflow: hidden;
  background: rgba(255,255,255);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.ep-card.upcoming {
    pointer-events: none;
    background: #9c9c9c;
}

.ep-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}

.ep-thumb {
  flex: 0 0 320px;
  height: 350px;
  position: relative;
  transition: .2s ease;
  overflow: hidden;
  clip-path: ellipse(51% 183% at 47% 22%);
}

.ep-card:hover .ep-thumb {
  clip-path: ellipse(50% 193% at 47% 22%);
}

.ep-thumb img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition:.3s ease;
}

.ep-card:hover .ep-thumb img{ scale:120%; }

/* ===========================
   FEATURE (NEW EPISODE) uses EP-CARD layout
   =========================== */

.feature-ep{
  border: 2px solid rgba(255,255,255,0.10);
}

.feature-ep .ep-thumb{
  flex: 0 0 48%;
  height: 380px;
}

.feature-ep .ep-thumb img{ height: 400px; }
.feature-ep .ep-title{ font-size: 2.05rem; }
.feature-ep .ep-desc{ font-size: 1.15rem; }

@media (max-width: 992px){
  .feature-ep{ flex-direction: column; }
  .feature-ep .ep-thumb{
    flex: 0 0 auto;
    width: 100%;
    height: 320px;
    clip-path: none;
  }
  .feature-ep .ep-thumb img{ height: 340px; }
  .feature-ep:hover .ep-thumb img{ height: 420px; }
}

.ep-body{padding: 19px 19px 19px;display: flex;flex-direction: column;justify-content: center;}
.ep-episode{font-weight: 500;opacity: .9;font-family: var(--bodyfont);font-size: 1.1rem;}
.ep-title{margin: 6px 0 8px;font-weight: 900;font-size: 1.3rem;color: var(--red);}
.upcoming .ep-title{color:#414141 !important}

.ep-desc{ margin: 0 0 12px; opacity: .95; font-size: 1.05rem; }

.ep-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ep-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===========================
   COMING SOON (UPCOMING EPISODES)
   =========================== */

.coming-card{
  display: flex;
  align-items: stretch;
  gap: 10px;
  border-radius: 11% 34px 8% 7%;
  overflow: hidden;
  background: rgb(255 255 255 / 61%);
  border: 2px solid rgba(0,0,0,0.10);
  box-shadow: var(--shadow);
  flex-direction: column;
}

.coming-thumb{
  width: 100%;
  flex: 0 0 210px;
  overflow: hidden;
}

.coming-thumb img{
  width: 100%;
  height: 100%;
  min-height: 215px;
  object-fit: cover;
  display: block;
}

.coming-body{
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coming-episode{font-weight: 500;opacity: .9;font-family: var(--bodyfont);font-size: 1.1rem;}
.coming-title{margin: 6px 0 8px;font-weight: 800;font-size: 1.25rem;color: black;}
.coming-desc{ margin: 0; opacity: .95; font-size: 1.05rem; }

/* ===========================
   COMING SOON SLIDER
   =========================== */

.coming-slider{
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.coming-viewport{
  overflow: hidden;
  width: 100%;
}

.coming-track{
  display: flex;
  gap: 1rem;
  will-change: transform;
  transition: transform 0.3s ease;
}

.coming-slide{
  flex: 0 0 calc((100% - (1rem * 3)) / 4);
}

@media (max-width: 992px){
  .coming-slide{ flex: 0 0 calc((100% - (1rem * 1)) / 2); }
}

@media (max-width: 576px){
  .coming-slide{ flex: 0 0 100%; }
}

/* arrows */
.coming-arrow{
  border: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
  flex: 0 0 auto;
  position: absolute;
}

.coming-prev { left: -65px; }
.coming-next { right: -65px; }

.coming-arrow i{ font-size: 1.4rem; color: #111; }
.coming-arrow:hover{ transform: scale(1.06); filter: brightness(0.98); }

.coming-arrow:disabled{
  opacity: 0.35;
  cursor: default;
  transform: none;
}

/* dots */
.coming-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.coming-dot{
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.coming-dot:hover{ transform: scale(1.15); }

.coming-dot.is-active{
  background: rgba(255,255,255,0.95);
}

@media (max-width: 576px){
  .coming-card{ flex-direction: column; }
  .coming-thumb{ width: 100%; flex: 0 0 auto; }
  .coming-body{ padding: 14px; }
}

/* ===========================
   INTERIOR PAGE (FIXED OVERLAY) - BUGFIX: NO FIRST-OPEN GAP
   =========================== */

.interior-page{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--smart-header-h);
  width: 100%;
  height: calc(100vh - var(--smart-header-h));
  overflow-y: auto;
  overflow-x: hidden;

  /* No top padding -> no visible gap strip */
  padding-top: 0;
  padding-bottom: 40px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0.3s;

  z-index: 1020; /* below header (1030), above landing */
}

body.is-panel-open .interior-page{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0s;
}

body.is-panel-closing .interior-page{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s linear 0.3s;
}

body.is-panel-open #landingRoot{ display: none; }

.interior-shell{
  margin-top: 0;
  background: #fff;
  border-radius: var(--interior-radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  overflow: visible;
}

/* interior header stays visible while interior scrolls */
.interior-header{
  padding: 25px 3vw;
  background: #fff;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  position: sticky;
  top: 0;
  z-index: 1025;
}

.interior-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -.1px;
  font-size: 2.3rem;
  text-transform: none;
  text-shadow: none;
  color: #111;

  transform-origin: left center;
  transition: transform 0.3s ease;
}

.interior-header.is-compact .interior-title{
  transform: scale(0.8);
}

.interior-header.is-compact.interior-header{
  padding: 3px 3vw;
}

.interior-close{
  appearance: none;
  border: 0;
  background: transparent;
  color: #111;
  width: 56px;
  height: 56px;
  line-height: 1;
  font-weight: 900;
  font-size: 5rem;
  opacity: .9;
  transition: .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.interior-close:hover{ opacity: 1; transform: scale(1.08); }

.interior-body{padding: 3vw;}
.interior-body p{ line-height: 1.55; font-size: 1.5rem; }

/* ===========================
   INTERIOR PAGE (for episodes)
   =========================== */

#interiorPage .ep-thumb { min-width: 500px; }
#interiorPage .ep-thumb img {
  width: 600px;
  height: auto;
  object-fit: cover;
  display: block;
}

#interiorPage .upcoming{background: #b7b7b7;color: #414141 !important;pointer-events: none;}
#interiorPage .upcoming .ep-title {color:#414141 !important;}

#interiorPage .ep-body{
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: stretch;
}

#interiorPage .ep-title{
  margin: 26px 0 28px;
  font-weight: 600;
  font-size: 2.1rem;
}

#interiorPage .ep-thumb { min-width: 575px; height: unset; }

#interiorPage .ep-body{
  padding: 18px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: stretch;
}

#interiorPage .ep-episode{
  font-weight: 500;
  opacity: 1;
  font-family: var(--bodyfont);
  font-size: 1.1rem;
}

#interiorPage .ep-title{
  margin: 0px 0 -5px;
  font-weight: 600;
  font-size: 2.7rem;
  color: #a82401;
  padding:30px 0px;
  border-radius:15% 30px;
}

#interiorPage .ep-desc{
  margin: 0 0 12px;
  opacity: .95;
  font-size: 1.15rem;
  border-radius:5% 40px;
}

#interiorPage .ep-foot{
}

/* ===========================
   CHARACTERS GRID (NO DISTORTION)
   =========================== */

.modal-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 992px){ .modal-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 576px){ .modal-grid{ grid-template-columns: 1fr; } }

.modal-grid-item{
  background: #fff;
  overflow: hidden;
  text-align: center;
  padding-block: .5rem 2rem 0;
  transition: .2s ease;
  border: 1px solid transparent;
}
.modal-grid-item h3{
  padding-inline: 1rem;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
  color: #ff6619;
  padding-block: 1rem;
  display:block;
}
.modal-grid-item h3 span{
  color:red;
  font-size: 2.1rem;
  display:block;
}
.modal-grid-item:hover{
  box-shadow: rgba(100, 100, 111, 0.4) 0px 7px 29px 0px;
  border-radius: 255px 35px 225px 15px/15px 225px 15px 256px;
}
.modal-grid-item img{
  width: 100%;
  object-fit: cover;
  display:block;
  transition: .2s ease;
}

.modal-grid-item:hover img{ transform: translateY(-50px); scale: 0.75; }
.modal-grid-item p{
  transform: translateY(50px);
  opacity: 0;
  font-size: 1.1rem;
  transition: .2s ease;
  padding-inline: 1rem;
  line-height: 1.3;
  margin-bottom: 0;
  transform: rotateX(95deg);
}
.modal-grid-item:hover h3{ transform: translateY(-55px); transition: .4s ease; }
.modal-grid-item:hover p{
  transform: translateY(-55px);
  opacity: 1;
  transition: .2s ease;
  display: block;
}

.modal-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}

@media (max-width: 992px){
  .modal-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px){
  .modal-grid{ grid-template-columns: 1fr; }
}

.modal-grid--characters{ align-items: stretch; }

.character-card{
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  border: 2px solid rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 0;
  box-shadow: 0 12px 22px rgba(0,0,0,0.10);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.character-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.14);
}

.character-media{
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
}

.character-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.character-card .grid-content{ padding: 10px 12px 16px; }

.character-card h3{
  margin: 0;
  padding: 10px 6px 6px;
  font-size: 1.35rem;
  line-height: 1.05;
  font-weight: 500;
  color: #ff6619;
  display: block;
}

.character-card h3 span{
  color: red;
  font-size: 2.1rem;
  display: block;
}

.character-card p{
  margin: 0;
  padding: 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}



/* ===========================
   Author
   =========================== */
.author-grid {
  display: flex;
  gap: 36px;
  align-items: center;
}



.author-video {
    flex: 0 0 40%;
}

.author-info {
    flex: 0 0 40%;
}

.author-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */


@media (max-width: 992px) {
    .author-grid {
        flex-direction: column;
    }
}



/* ===========================
   BACK TO TOP
   =========================== */

.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 78px; /* sits above the credit */
  z-index: 2100;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgb(0 0 0 / 54%);
  color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.back-to-top i{ font-size: 1.3rem; }

.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover{ filter: brightness(1.08); }

/* ===========================
   FIXED CREDIT (BOTTOM RIGHT)
   =========================== */

.site-credit{
  position: fixed; /* was absolute -> caused big gaps on landing */
  right: 16px;
  bottom: 14px;
  z-index: 2000;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: .2px;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  background: rgb(0 0 0 / 54%);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 10px 17px;
  border-radius: 2% 9px;
  backdrop-filter: blur(8px);
  display: block;
}
.site-credit:hover{
  color: #fff;
  background: rgba(0,0,0,0.45);
}

/* ===========================
   RESPONSIVE TWEAKS
   =========================== */

@media (max-width: 992px){
  .social-rail{ display: none; }

  :root{
    --logo-w: 220px;
    --logo-w-sm: 110px;
  }

  .smart-sticky{ height: 96px; }
  .smart-sticky.is-scrolled{ height: 72px; }
  .brand-logo{ transform: translateY(18px); }

  .feature-card{
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-overlay{
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.92) 0%,
      rgba(255,255,255,0.78) 55%,
      rgba(255,255,255,0.62) 100%
    );
  }
  .feature-action{ justify-content: flex-start; padding: 0 2px 6px; }
}

@media (max-width: 576px){
  :root{
    --logo-w: 180px;
    --logo-w-sm: 96px;
  }
  .back-to-top{ right: 14px; bottom: 74px; }
  .site-credit{ right: 14px; }
}
