/* ABC Gabig — Homepage */

:root {
  --bg-deep: #0a1628;
  --bg-navy: #001c44;
  --cream: #f5ede0;
  --cream-muted: rgba(245, 237, 224, 0.78);
  --text-dark: #0f2444;
  --magenta: #e91e63;
  --cyan: #4dd0e1;
  --gold: #ffd54f;
  --gold-dark: #ffc107;
  --panel-surface: rgba(255, 255, 255, 0.14);
  --panel-surface-hover: rgba(255, 255, 255, 0.2);
  --panel-border: rgba(255, 255, 255, 0.22);
  --band-bg: rgba(255, 255, 255, 0.11);
  --band-border: rgba(255, 255, 255, 0.16);
  --band-edge-fade: 16%;
  --header-h: 72px;
  --font-armenian-bold: "yerevanyanbold", serif;
  --font-armenian: "yerevanyanregular", serif;
  --font-heading: "Alegreya Sans", Georgia, serif;
  --font-body: "Titillium Web", Arial, sans-serif;
  --content-pad: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --transition: 0.3s ease;
  --carousel-min-h: 500px;
  --carousel-min-h-books: 760px;
  --discover-max-w: 1280px;
  --carousel-nav-size: 44px;
  --carousel-frame-pad-top: 20px;
  --carousel-nav-inset-y: calc(
    var(--carousel-frame-pad-top) + (var(--carousel-min-h) - var(--carousel-nav-size)) / 2
  );
  --offering-figure-h: min(360px, 52vh);
  --offering-figure-h-tablet: clamp(200px, 28vh, 280px);
  --lori-peek-h: 188px;
  /* leaves-strip.jpg 337×2000 @ 1.0 scale — fixed px, not viewport-relative */
  --leaf-scale: 1;
  --leaf-tile-w: 337px;
  --leaf-tile-h: 2000px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Firefox — thin, muted grey (rgba supported) */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) rgba(255, 255, 255, 0.06);
}

/* Chromium, Safari, Edge — muted grey to pair with Firefox */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.28);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.42);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--cream);
  background-color: var(--bg-navy);
  position: relative;
}

/* Leaf borders — fixed-size tiles, baked flip asset, parent mask/vignette */
#left-leaves,
#right-leaves {
  position: fixed;
  top: var(--leaf-strip-top, -80vh);
  height: var(--leaf-strip-height, 260vh);
  width: var(--leaf-tile-w);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
  overflow: visible;
  will-change: transform;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to left, transparent 0%, #000 48%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to left, transparent 0%, #000 48%, #000 100%);
  mask-composite: intersect;
}

#left-leaves::before,
#left-leaves::after,
#right-leaves::before,
#right-leaves::after {
  content: "";
  position: absolute;
  left: 0;
  width: var(--leaf-tile-w);
  background-repeat: repeat-y;
  background-size: var(--leaf-tile-w) var(--leaf-tile-h);
  pointer-events: none;
}

/* Normal tile */
#left-leaves::before,
#right-leaves::before {
  top: 0;
  height: 100%;
  background-image: url(../images/leaves-strip.jpg);
  background-position: left top;
}

/* Flipped tile (baked asset), interleaved one tile below */
#left-leaves::after,
#right-leaves::after {
  top: var(--leaf-tile-h);
  height: calc(100% + var(--leaf-tile-h));
  background-image: url(../images/leaves-strip-flipped.jpg);
  background-position: left top;
}

#left-leaves {
  left: -40px;
  transform: translate3d(0, calc(-1 * var(--leaf-parallax-y, 0px)), 0);
  background-image: linear-gradient(
    to right,
    rgba(0, 12, 36, 0.4) 0%,
    rgba(0, 12, 36, 0.12) 22%,
    transparent 55%
  );
}

#right-leaves::before {
  background-position: left calc(var(--leaf-tile-h) * 0.5);
}

#right-leaves::after {
  top: calc(var(--leaf-tile-h) * 1.5);
  height: calc(100% + var(--leaf-tile-h) * 1.5);
}

#right-leaves {
  left: unset;
  right: -40px;
  transform: rotate(180deg) translate3d(0, var(--leaf-parallax-y, 0), 0);
  background-image: linear-gradient(
    to left,
    rgba(0, 12, 36, 0.4) 0%,
    rgba(0, 12, 36, 0.12) 22%,
    transparent 55%
  );
}

@media (prefers-reduced-motion: reduce) {
  #left-leaves,
  #right-leaves {
    top: -20vh;
    height: 140vh;
  }

  #left-leaves {
    transform: translate3d(0, 0, 0);
  }

  #right-leaves {
    transform: rotate(180deg);
  }
}

.site-header,
.home-main,
.home-band,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Language */
[data-lang="hy"] .lang-en {
  display: none;
}
[data-lang="en"] .lang-hy {
  display: none;
}
[data-lang="hy"] .product-name__translit-group {
  display: none;
}

/* Product name (Lori card) */
.product-name {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: inherit;
}

.product-name__arm {
  font-family: var(--font-armenian-bold);
  color: inherit;
  line-height: 1.2;
}

.product-name__translit {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.82em;
  color: rgba(245, 237, 224, 0.85);
  letter-spacing: 0.02em;
  line-height: 1.35;
  font-weight: 400;
}

.book-title-block {
  gap: 0.45rem;
}

.product-name__arm-group,
.product-name__translit-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: inherit;
}

.product-name__arm.product-name__subtitle {
  font-family: var(--font-armenian);
  font-size: 0.88em;
  font-weight: 400;
  color: var(--cream);
}

.product-name__subtitle-translit {
  font-size: 0.78em;
}

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--panel-border);
  border-radius: 50px;
  padding: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cream);
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.lang-toggle:hover {
  border-color: rgba(255, 213, 79, 0.55);
}

.lang-toggle__opt {
  padding: 5px 12px;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.lang-toggle__opt.active {
  background: var(--gold);
  color: var(--text-dark);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 var(--content-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: rgba(0, 28, 68, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--band-border);
}

.site-header__logo {
  justify-self: start;
}

.site-header__logo img {
  height: 48px;
  width: auto;
  transition: opacity var(--transition);
}

.site-header__logo:hover img {
  opacity: 0.88;
}

.site-header__discover {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em 0.55em;
  margin: 0;
  text-align: center;
  line-height: 1.2;
  pointer-events: none;
}

.site-header__discover-pre,
.site-header__discover-post {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header__discover-pre {
  font-size: clamp(0.65rem, 1.6vw, 0.82rem);
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(77, 208, 225, 0.35);
}

.site-header__discover-pre.lang-hy {
  font-family: var(--font-armenian-bold);
  letter-spacing: 0.04em;
  text-transform: none;
}

.site-header__discover-post {
  font-size: clamp(0.9rem, 2.2vw, 1.15rem);
  background: linear-gradient(90deg, var(--gold) 0%, #fff8e1 40%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.25));
}

.site-header__discover-post.lang-hy {
  font-family: var(--font-armenian-bold);
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-header .lang-toggle {
  justify-self: end;
  grid-column: 3;
}

/* Main — full width */
.home-main {
  width: 100%;
  padding: calc(var(--header-h) + 24px) var(--content-pad) 0;
}

/* Hero — large logo */
.home-hero {
  text-align: center;
  padding: 8px 0 32px;
}

.home-hero__logo {
  width: min(92vw, 420px);
  max-height: min(42vh, 340px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45));
}

/* Discover — full width panel with connected tabs */
.discover {
  width: 100%;
  padding: 0 0 40px;
}

.discover-panel {
  width: 100%;
  max-width: var(--discover-max-w);
  margin: 0 auto;
  background: var(--panel-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.discover-tabs {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  background: rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid var(--panel-border);
}

.discover-tabs__btn {
  flex: 1;
  font-family: var(--font-heading);
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 700;
  padding: 14px 16px;
  border: none;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--cream-muted);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.discover-tabs__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
}

.discover-tabs__btn--active {
  background: var(--panel-surface);
  color: var(--cream);
  border-bottom-color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.discover-tabs__btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.discover-carousel__frame {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 20px 16px 24px;
}

.discover-carousel__prev,
.discover-carousel__next {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel-surface-hover);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.discover-carousel__prev:hover,
.discover-carousel__next:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: var(--cyan);
}

.discover-carousel__prev:focus-visible,
.discover-carousel__next:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.discover-carousel__prev svg,
.discover-carousel__next svg {
  width: 22px;
  height: 22px;
}

/* Books is taller — keep nav at App/Videos vertical position */
.discover-carousel__frame:has(.discover-slide--books.discover-slide--active)
  .discover-carousel__prev,
.discover-carousel__frame:has(.discover-slide--books.discover-slide--active)
  .discover-carousel__next {
  align-self: flex-start;
  margin-top: var(--carousel-nav-inset-y);
}

.discover-carousel__viewport {
  flex: 1;
  position: relative;
  min-height: var(--carousel-min-h);
  overflow: hidden;
}

/* Slides — no vertical scrollbar */
.discover-slide {
  position: absolute;
  inset: 0;
  padding: 24px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
}

.discover-slide--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.discover-slide__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(var(--carousel-min-h) - 48px);
}

.discover-slide__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: var(--gold);
  border: none;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.discover-slide__blurb {
  font-size: 1rem;
  color: var(--cream-muted);
  max-width: 32em;
  margin-bottom: 20px;
  line-height: 1.65;
}

.discover-slide__content {
  position: relative;
  z-index: 2;
  max-width: 58%;
  padding-right: 12px;
}

.discover-slide__figure {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-width: 40%;
  max-height: 85%;
  pointer-events: none;
}

.discover-slide__figure img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.discover-slide__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 28, 68, 0.5) 0%, transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}

.discover-slide__notify-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cyan);
  transition: color var(--transition);
}

.discover-slide__notify-link:hover {
  color: var(--gold);
}

/* App slide — Boghos bottom-left, copy on the right */
.discover-slide--app .discover-slide__inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: auto;
  min-height: calc(var(--carousel-min-h) - 48px);
}

.home-app-slide {
  width: max-content;
  max-width: min(52rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 18px);
  padding: clamp(16px, 3vw, 28px);
}

.home-app-slide__figure {
  flex: 0 0 auto;
  margin: 0;
  align-self: flex-end;
}

.home-app-slide__figure img,
.home-videos-slide__figure img {
  display: block;
  height: var(--offering-figure-h);
  width: auto;
  object-fit: contain;
}

.home-app-slide__figure img {
  object-position: bottom center;
}

.home-videos-slide__figure img {
  object-position: bottom center;
}

.home-app-slide__copy {
  flex: 0 1 auto;
  align-self: center;
  max-width: 32em;
}

.home-app-slide__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream);
  margin: 0 0 12px;
}

.home-app-slide__heading.lang-hy {
  font-family: var(--font-armenian-bold);
}

.home-app-slide .discover-slide__blurb {
  max-width: none;
  margin-bottom: 20px;
}

.home-app-slide .discover-slide__badge {
  margin-bottom: 12px;
}

/* Videos slide — copy left, dancer bottom-right */
.discover-slide--videos .discover-slide__inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: auto;
  min-height: calc(var(--carousel-min-h) - 48px);
}

.home-videos-slide {
  width: max-content;
  max-width: min(52rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 18px);
  padding: clamp(16px, 3vw, 28px);
}

.home-videos-slide__copy {
  flex: 0 1 auto;
  align-self: center;
  max-width: 32em;
}

.home-videos-slide__figure {
  flex: 0 0 auto;
  margin: 0;
  align-self: flex-end;
}

.home-videos-slide__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream);
  margin: 0 0 12px;
}

.home-videos-slide__heading.lang-hy {
  font-family: var(--font-armenian-bold);
}

.home-videos-slide .discover-slide__blurb {
  max-width: none;
  margin-bottom: 20px;
}

.home-videos-slide .discover-slide__badge {
  margin-bottom: 12px;
}

/* Books slide — inner grows with content (not height: 100%) */
.discover-slide--books .discover-slide__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  height: auto;
  min-height: 0;
}

.discover-carousel__viewport:has(.discover-slide--books.discover-slide--active) {
  min-height: var(--carousel-min-h-books);
}

.discover-slide--books.discover-slide--active {
  overflow: visible;
}

.home-books-intro {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  padding: clamp(16px, 3vw, 28px);
  margin-bottom: clamp(28px, 5vw, 40px);
}

.home-books-intro__figure {
  margin: 0;
}

.home-books-intro__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.28));
}

.home-books-intro__copy {
  min-width: 0;
}

.home-books-intro__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream);
  margin: 0 0 12px;
}

.home-books-intro__heading.lang-hy {
  font-family: var(--font-armenian-bold);
}

.home-books-intro .discover-slide__blurb {
  max-width: none;
  text-align: left;
  margin: 0;
}

.home-books-intro__copy .home-store-link {
  display: inline-block;
  margin-top: 14px;
}

.home-lori-promo-wrap {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.home-lori-promo-peek {
  position: relative;
  width: 100%;
  transition: transform var(--transition);
}

.home-lori-promo-peek:has(.home-lori-promo:hover) {
  transform: translateY(-2px);
}

.home-lori-promo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.home-lori-promo:hover {
  border-color: rgba(77, 208, 225, 0.55);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.home-lori-promo__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  text-align: center;
}

.home-lori-promo__body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-lori-promo__cover-wrap {
  flex-shrink: 0;
  width: 100px;
}

.home-lori-promo__cover {
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.home-lori-promo__titles {
  flex: 1;
  min-width: 0;
}

.home-lori-promo__cta {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--cyan);
}

.home-lori-promo:hover .home-lori-promo__cta {
  color: var(--gold);
}

.home-lori-promo__lori {
  position: absolute;
  left: 100%;
  top: 50%;
  z-index: 3;
  height: var(--lori-peek-h);
  width: auto;
  transform: translate(-32px, -50%);
  pointer-events: none;
  display: none;
  object-fit: contain;
  object-position: bottom left;
}

.home-store-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan);
  transition: color var(--transition);
}

.home-store-link:hover {
  color: var(--gold);
}

/* Full-bleed bands (email + about) — background fades at sides over leaves */
.home-band {
  width: 100%;
  margin: 0;
  max-width: none;
  border-radius: 0;
  border-left: none;
  border-right: none;
  position: relative;
  background: transparent;
  --band-fill: 0.11;
}

.home-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, var(--band-fill)) var(--band-edge-fade),
    rgba(255, 255, 255, var(--band-fill)) calc(100% - var(--band-edge-fade)),
    transparent 100%
  );
}

.home-band > * {
  position: relative;
  z-index: 1;
}

.home-email-cta {
  scroll-margin-top: calc(var(--header-h) + 16px);
  padding: 48px var(--content-pad);
  text-align: center;
  overflow: hidden;
}

/* Faded horizontal rules (edges blend with leaves) */
.home-email-cta::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 0;
  left: var(--band-edge-fade);
  right: var(--band-edge-fade);
  background:
    linear-gradient(
        90deg,
        transparent 0%,
        var(--band-border) 25%,
        var(--band-border) 75%,
        transparent 100%
      )
      top / 100% 1px no-repeat,
    linear-gradient(
        90deg,
        transparent 0%,
        var(--band-border) 25%,
        var(--band-border) 75%,
        transparent 100%
      )
      bottom / 100% 1px no-repeat;
}

.home-email-cta > .home-email-cta__mascot {
  position: absolute;
  bottom: clamp(12px, 2.5vw, 28px);
  /* Match right edge to centered discover carousel panel */
  right: max(
    var(--content-pad),
    calc(
      (
        100vw - min(var(--discover-max-w), calc(100vw - 2 * var(--content-pad)))
      ) / 2
    )
  );
  z-index: 2;
  width: clamp(94px, 15.6vw, 166px);
  height: auto;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.32));
}

.home-email-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--cream);
}

.home-email-cta__text {
  font-size: 1rem;
  color: var(--cream-muted);
  max-width: 36em;
  margin: 0 auto 24px;
}

.home-email-cta__btn {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: 0 4px 24px rgba(255, 213, 79, 0.4);
  transition: transform var(--transition), filter var(--transition);
}

.home-email-cta__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.home-email-cta__btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.home-about {
  padding: 48px var(--content-pad) clamp(140px, 22vw, 200px);
  --band-fill: 0.08;
  overflow: visible;
}

.home-about > .home-about__mascot {
  position: absolute;
  bottom: -8px;
  left: 50%;
  z-index: 2;
  width: clamp(95px, 15.3vw, 170px);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.34));
}

.home-about::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: var(--band-edge-fade);
  right: var(--band-edge-fade);
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--band-border) 25%,
    var(--band-border) 75%,
    transparent 100%
  );
}

.home-about__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.home-about__body {
  max-width: 44em;
  margin: 0 auto;
}

.home-about__body p {
  font-size: 1rem;
  color: var(--cream-muted);
  line-height: 1.7;
  margin-bottom: 1em;
}

.home-about__body p:last-child {
  margin-bottom: 0;
}

.home-about__body em {
  font-style: italic;
  color: var(--cream);
}

.home-about__signoff {
  margin-top: 1.25em !important;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--cream) !important;
  text-align: center;
}

/* Footer — full width, same edge fade */
.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px var(--content-pad) 40px;
  text-align: center;
  position: relative;
  background: transparent;
  border-top: none;
  --band-fill: 0.09;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, var(--band-fill)) var(--band-edge-fade),
    rgba(0, 0, 0, var(--band-fill)) calc(100% - var(--band-edge-fade)),
    transparent 100%
  );
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.site-footer__social {
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}

.site-footer__social:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.site-footer__social img {
  width: 44px;
  height: 44px;
}

.site-footer__gofundme {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #f48fb1;
  transition: color var(--transition);
}

.site-footer__gofundme:hover {
  color: var(--gold);
}

.site-footer__copy {
  font-size: 0.82rem;
  color: var(--cream-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .site-header__logo img {
    height: 42px;
  }

  .discover-slide__content {
    max-width: 100%;
  }

  .discover-slide__figure {
    max-width: 36%;
  }
}

/* Tablet — scaled figures/images, centered in their column */
@media (min-width: 721px) and (max-width: 900px) {
  .home-books-intro {
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    align-items: center;
  }

  .home-books-intro__figure {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-books-intro__figure img {
    width: 100%;
    object-position: center center;
  }

  .home-app-slide {
    display: grid;
    width: 100%;
    max-width: 52rem;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: clamp(12px, 2.5vw, 24px);
    align-items: center;
  }

  .home-app-slide__figure {
    align-self: center;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-app-slide__figure img,
  .home-videos-slide__figure img {
    height: var(--offering-figure-h-tablet);
    object-position: center center;
  }

  .home-app-slide__copy {
    align-self: center;
  }

  .home-videos-slide {
    display: grid;
    width: 100%;
    max-width: 52rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
    gap: clamp(12px, 2.5vw, 24px);
    align-items: center;
  }

  .home-videos-slide__copy {
    align-self: center;
  }

  .home-videos-slide__figure {
    align-self: center;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 901px) {
  .home-app-slide,
  .home-videos-slide {
    width: max-content;
    max-width: min(52rem, 100%);
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: center;
  }

  .home-videos-slide {
    grid-template-columns: unset;
  }
}

@media (min-width: 721px) {
  .discover-carousel__viewport:has(.discover-slide--books.discover-slide--active) {
    overflow: visible;
  }

  .home-lori-promo-wrap {
    overflow: visible;
  }

  .home-lori-promo-peek {
    width: max-content;
    max-width: min(32rem, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .home-lori-promo {
    width: 32rem;
    max-width: 100%;
  }

  .home-lori-promo__lori {
    display: block;
    height: var(--lori-peek-h);
    transform: translate(-36px, -56%);
  }
}

@media (max-width: 720px) {
  :root {
    --carousel-min-h: 540px;
    --carousel-min-h-books: 880px;
    --carousel-frame-pad-top: 12px;
    --header-h: 64px;
    --band-edge-fade: 8%;
  }

  #left-leaves {
    left: -60px;
    opacity: 0.45;
  }

  #right-leaves {
    right: -60px;
    opacity: 0.45;
  }

  .discover-carousel__frame {
    position: relative;
    padding: 12px 8px 16px;
  }

  .discover-carousel__prev,
  .discover-carousel__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 28, 68, 0.9);
  }

  .discover-carousel__prev {
    left: 2px;
  }

  .discover-carousel__next {
    right: 2px;
  }

  .discover-carousel__frame:has(.discover-slide--books.discover-slide--active)
    .discover-carousel__prev,
  .discover-carousel__frame:has(.discover-slide--books.discover-slide--active)
    .discover-carousel__next {
    top: calc(var(--carousel-frame-pad-top) + var(--carousel-min-h) / 2);
    margin-top: 0;
  }

  .discover-slide {
    padding: 18px 18px 18px 16px;
  }

  .discover-slide__content {
    max-width: 100%;
    padding-right: 0;
  }

  .discover-slide__figure {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: 52%;
    margin: 12px auto 0;
  }

  .discover-slide__figure img {
    max-height: 180px;
    margin: 0 auto;
  }

  .discover-slide__figure::before {
    display: none;
  }

  .discover-slide--app .discover-slide__inner,
  .discover-slide--videos .discover-slide__inner {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    align-items: center;
  }

  .home-app-slide {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 12px 8px 8px;
    align-items: center;
  }

  .home-app-slide__copy {
    order: 1;
    max-width: 100%;
    text-align: center;
  }

  .home-app-slide .discover-slide__blurb {
    text-align: center;
  }

  .home-videos-slide {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 12px 8px 8px;
    align-items: center;
  }

  .home-videos-slide__copy {
    order: 1;
    padding-right: 0;
    max-width: 100%;
    text-align: center;
  }

  .home-videos-slide .discover-slide__blurb {
    text-align: center;
  }

  /* App / Videos — shorter box + bottom fade (mask + real clip height) */
  .home-app-slide__figure,
  .home-videos-slide__figure {
    --mobile-figure-h: min(240px, 44vw);
    --mobile-figure-visible: calc(var(--mobile-figure-h) * 0.78);
    order: 2;
    display: block;
    width: auto;
    max-width: min(200px, 56vw);
    height: var(--mobile-figure-visible);
    margin: 10px auto 0;
    overflow: hidden;
    line-height: 0;
    flex-shrink: 0;
  }

  .home-app-slide__figure img,
  .home-videos-slide__figure img {
    display: block;
    height: var(--mobile-figure-h);
    width: auto;
    max-width: min(200px, 56vw);
    margin: 0;
    object-fit: contain;
    object-position: top center;
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 58%,
      rgba(0, 0, 0, 0.72) 68%,
      rgba(0, 0, 0, 0.18) 74%,
      transparent 80%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 58%,
      rgba(0, 0, 0, 0.72) 68%,
      rgba(0, 0, 0, 0.18) 74%,
      transparent 80%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  .home-lori-promo__body {
    flex-direction: column;
    text-align: center;
  }

  .home-lori-promo__cover-wrap {
    width: 112px;
  }

  .home-lori-promo__titles {
    align-items: center;
    text-align: center;
  }

  .home-lori-promo-wrap {
    align-items: center;
    max-width: 100%;
  }

  .home-books-intro {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px 8px 20px;
    margin-bottom: 24px;
    text-align: center;
  }

  .home-books-intro__figure {
    max-width: min(240px, 72vw);
    margin: 0 auto;
  }

  .home-books-intro .discover-slide__blurb {
    text-align: center;
  }

  .home-lori-promo__lori {
    display: none;
  }

  .home-email-cta > .home-email-cta__mascot {
    width: clamp(73px, 20.8vw, 114px);
    bottom: 8px;
  }

  .home-about {
    padding-bottom: clamp(120px, 32vw, 160px);
  }

  .home-about > .home-about__mascot {
    width: clamp(82px, 23.8vw, 119px);
  }

  .discover-tabs__btn {
    padding: 12px 8px;
  }
}

@media (max-width: 480px) {
  :root {
    --carousel-nav-size: 40px;
  }

  .discover-tabs__btn {
    font-size: 0.82rem;
    padding: 10px 6px;
  }

  .discover-carousel__prev,
  .discover-carousel__next {
    width: 40px;
    height: 40px;
  }

  .home-hero__logo {
    width: min(88vw, 320px);
  }
}
