:root {
  --bg: #04070f;
  --ink: #e9f1f7;
  --mute: #8ea4b4;
  --ice: #7fe0ff;
  --vio: #9a8cff;
  --line: rgba(127, 224, 255, 0.16);
  --glass: rgba(10, 20, 34, 0.55);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 1.2rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(4, 7, 15, 0.75) 100%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}

#ld {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition:
    opacity 1s,
    visibility 1s;
}

#ld i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  border-top-color: var(--ice);
  animation: sp 1s linear infinite;
}

#ld.hide {
  opacity: 0;
  visibility: hidden;
}

@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition:
    background 0.4s,
    backdrop-filter 0.4s;
}

header.solid {
  background: rgba(4, 7, 15, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
}

.logo {
  font: 600 1.35rem var(--serif);
  letter-spacing: 0.32em;
}

.logo b {
  color: var(--ice);
}

.links {
  display: flex;
  gap: 6px;
}

.links a {
  position: relative;
  padding: 8px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color 0.3s;
}

.links a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 1px;
  background: var(--ice);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.links a:hover,
.links a.on {
  color: var(--ink);
}

.links a.on::after {
  transform: scaleX(1);
}

#mb {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}

#mb span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--ink);
  transition: 0.4s;
}

#mb span:first-child {
  top: 18px;
}

#mb span:last-child {
  top: 26px;
}

#mb.x span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

#mb.x span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 32px 100px;
  scroll-margin-top: 0;
}

.wrap {
  max-width: 1180px;
  margin: auto;
  width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 300;
  margin: 0;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  letter-spacing: -0.01em;
}

h2 em,
h1 em {
  font-style: italic;
  color: var(--ice);
}

p {
  margin: 0 0 1.2em;
  color: var(--mute);
  max-width: 62ch;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 28px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--glass);
  backdrop-filter: blur(8px);
}

#home {
  text-align: center;
  justify-content: center;
}

#home h1 {
  font-size: clamp(4.2rem, 15vw, 13rem);
  letter-spacing: 0.06em;
  font-weight: 300;
  line-height: 0.9;
  text-shadow: 0 0 80px rgba(127, 224, 255, 0.35);
}

#home h1 span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

#home h1 span i {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.ready #home h1 span i {
  transform: none;
}

body.ready #home h1 span:nth-child(2) i {
  transition-delay: 0.18s;
}

.sub {
  font: italic 300 clamp(1.3rem, 3vw, 2.2rem) var(--serif);
  color: var(--ink);
  margin: 34px auto 8px;
  max-width: none;
}

.by {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 auto 46px;
}

.btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--sans);
  transition: 0.4s;
}

.btn:hover {
  border-color: var(--ice);
  box-shadow: 0 0 40px rgba(127, 224, 255, 0.25);
  transform: translateY(-2px);
}

.btn.pri {
  background: linear-gradient(135deg, var(--ice), var(--vio));
  color: #04101a;
  border: 0;
  font-weight: 600;
}

.btn.pri:hover {
  box-shadow: 0 10px 50px rgba(127, 224, 255, 0.4);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.bridge {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin: 56px 0 0;
  align-items: stretch;
}

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(14px);
}

.card h3 {
  font-size: 1.9rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.link {
  align-self: center;
  width: 110px;
  text-align: center;
  font: italic 300 1.15rem/1.1 var(--serif);
  color: var(--ice);
  position: relative;
}

.link::before,
.link::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--ice);
  opacity: 0.5;
}

.link::before {
  left: -8px;
}

.link::after {
  right: -8px;
}

.author {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(
    160deg,
    rgba(127, 224, 255, 0.08),
    rgba(10, 20, 34, 0.6)
  );
  backdrop-filter: blur(16px);
}

.author h3 {
  font-size: 2.4rem;
  margin: 4px 0 16px;
}

.author .mono {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
}

.quote {
  font: italic 300 1.6rem/1.35 var(--serif);
  color: var(--ink);
  margin: 26px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.bookgrid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: center;
}

.cover-wrap {
  perspective: 1400px;
  display: grid;
  place-items: center;
}

.cover {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 2/3;
  border-radius: 6px 14px 14px 6px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(127, 224, 255, 0.35),
      transparent 42%
    ),
    linear-gradient(160deg, #0b1a2c, #050b16);
  border: 1px solid var(--line);
  box-shadow:
    -18px 30px 80px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(127, 224, 255, 0.15);
  transform: rotateY(-18deg) rotateX(4deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.cover:hover {
  transform: rotateY(-4deg) rotateX(1deg);
}

.cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent);
  border-radius: 6px 0 0 6px;
}

.cover .rings {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
}

.cover .rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(127, 224, 255, 0.55);
  border-radius: 50%;
  animation: orb 9s linear infinite;
}

.cover .rings i:nth-child(2) {
  transform: rotate(60deg);
  animation-duration: 13s;
}

.cover .rings i:nth-child(3) {
  transform: rotate(120deg);
  animation-duration: 17s;
}

.cover .rings i {
  transform: rotateX(70deg) rotateZ(0);
}

@keyframes orb {
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}

.cover small {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mute);
  position: relative;
}

.cover strong {
  font: 300 2.7rem/0.95 var(--serif);
  letter-spacing: 0.05em;
  position: relative;
}

.cover em {
  font: italic 300 1rem var(--serif);
  color: var(--ice);
  display: block;
  margin-top: 8px;
}

.points {
  display: grid;
  gap: 0;
  margin: 36px 0 40px;
  border-top: 1px solid var(--line);
}

.points div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.points h3 {
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.points p {
  margin: 0;
  font-size: 0.95rem;
}

#contact {
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

#contact h2 {
  font-size: clamp(3rem, 9vw, 8rem);
  max-width: 12ch;
  margin: 0 auto 28px;
}

form {
  width: min(640px, 100%);
  margin: 46px auto 0;
  display: grid;
  gap: 14px;
  text-align: left;
}

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
textarea {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  color: var(--ink);
  font: 300 1rem var(--sans);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

input::placeholder,
textarea::placeholder {
  color: #6c8292;
}

input:focus,
textarea:focus {
  outline: 0;
  border-color: var(--ice);
  box-shadow: 0 0 36px rgba(127, 224, 255, 0.18);
}

form .btn {
  justify-self: center;
  margin-top: 8px;
}

footer {
  position: relative;
  z-index: 2;
  padding: 34px 32px 90px;
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 15, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}

footer a:hover {
  color: var(--ice);
}

.rv {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1.1s,
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  section {
    padding: 120px 22px 90px;
  }

  nav {
    padding: 16px 22px;
  }

  .links {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 15, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .links.open {
    opacity: 1;
    visibility: visible;
  }

  .links a {
    font: 300 2.6rem var(--serif);
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--ink);
  }

  #mb {
    display: block;
    z-index: 60;
  }

  .split,
  .bookgrid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .bridge {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .link {
    width: auto;
    padding: 6px;
  }

  .link::before,
  .link::after {
    display: none;
  }

  form .row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01s !important;
  }

  html {
    scroll-behavior: auto;
  }

  .rv {
    opacity: 1;
    transform: none;
  }

  #home h1 span i {
    transform: none;
  }
}

#home {
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#home .wrap {
  width: 100%;
  text-align: center;
}

/* IN COMMON */
#home h1 {
  margin: 0;
  color: #f5f5f7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(65px, 10vw, 110px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -5px;
  text-transform: uppercase;
}

#home h1 span {
  display: inline;
}

#home h1 span:first-child {
  display: block;
  color: #4bb8df;
  font-size: 0.42em;
  letter-spacing: 5px;
  margin-bottom: 35px;
}

#home h1 i {
  font-style: normal;
}

#home h1 em {
  font-style: normal;
}

/* A UNIFIED OF EVERYTHING */
#home .sub {
  color: #f5f5f7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(65px, 10vw, 130px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -5px;
  text-transform: uppercase;
  max-width: 950px;
  margin: 0 auto;
}

/* BY STONY BROOK */
#home .by {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 35px;
}

/* BUTTONS */
#home .btns {
  margin-top: 35px;
}

/* ===== Lenis ===== */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.gsap-on .rv {
  transition: none;
}

/* ===== Trailer section ===== */
#trailer {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
#trailer .wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}
#trailer h2 {
  max-width: 14ch;
  margin: 0 auto 22px;
}
#trailer .wrap > p {
  margin: 0 auto;
}
.vframe {
  margin-top: 50px;
}
.vscale {
  transform-origin: center top;
}
.vbox {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(127, 224, 255, 0.14);
}
.vratio {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #02050b;
}
.vratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
@media (max-width: 900px) {
  #trailer h2 {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }
  .vframe {
    margin-top: 34px;
  }
  .vbox {
    padding: 8px;
    border-radius: 18px;
  }
  .vratio {
    border-radius: 12px;
  }
}

/* ===== Site-wide bubble background ===== */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      40% 35% at 15% 20%,
      rgba(154, 140, 255, 0.13),
      transparent 70%
    ),
    radial-gradient(
      35% 30% at 85% 75%,
      rgba(95, 240, 200, 0.09),
      transparent 70%
    ),
    radial-gradient(
      45% 40% at 70% 15%,
      rgba(127, 224, 255, 0.1),
      transparent 70%
    );
  animation: aura 24s ease-in-out infinite alternate;
}
@keyframes aura {
  to {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

/* ===== Section headers + text: bolder, brighter, bigger (all sections except Home) ===== */
:root {
  --mute: #bccbd6;
}

section:not(#home) h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f5f5f7;
  font-size: clamp(2.4rem, 3vw, 5rem);
  text-shadow: 0 4px 30px rgba(4, 7, 15, 0.85);
}
section:not(#home) h2 em {
  font-style: normal;
  color: #4bb8df;
}
#contact h2 {
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  max-width: 14ch;
}

section:not(#home) h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
section:not(#home) .card h3 {
  font-size: 1.7rem;
}
section:not(#home) .author h3 {
  font-size: 2.3rem;
}
section:not(#home) .points h3 {
  font-size: 1.45rem;
}

section:not(#home) p {
  color: #d3dfe8;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 2px 16px rgba(4, 7, 15, 0.9);
}
section:not(#home) .card p,
section:not(#home) .points p {
  font-size: 1.08rem;
}
section:not(#home) .quote {
  font-size: 1.8rem;
  color: #fff;
}
section:not(#home) .tag,
section:not(#home) .author .mono {
  font-size: 0.82rem;
  font-weight: 500;
  color: #8fe6ff;
}
section:not(#home) input,
section:not(#home) textarea {
  font-size: 1.1rem;
  font-weight: 400;
}
input::placeholder,
textarea::placeholder {
  color: #93a9b8;
}
section:not(#home) .btn {
  font-size: 0.88rem;
}
footer {
  font-size: 0.82rem;
  color: #bccbd6;
}

@media (max-width: 900px) {
  section:not(#home) h2 {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }
  #contact h2 {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }
  section:not(#home) p {
    font-size: 1.12rem;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 70px 32px 90px;
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(4, 7, 15, 0.72),
    rgba(4, 7, 15, 0.92)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  color: #bccbd6;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(320px, 60%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 60px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.footer-heading {
  display: block;
  margin-bottom: 22px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ice);
}

/* Brand */
.footer-logo:hover,
.footer-logo:focus {
  color: #fff;
}

.footer-logo {
  display: inline-block;
  font: 600 1.35rem var(--serif);
  letter-spacing: 0.32em;
  color: #fff;
}

.footer-tagline {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #93a9b8;
  text-shadow: none;
}

/* Navigation */
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  position: relative;
  padding: 5px 0;
  font-size: 0.95rem;
  color: #bccbd6;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer-nav a:hover {
  color: var(--ice);
  transform: translateX(4px);
}

/* Contact */
.footer-information {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-left: 130px; /* push contact to the right - increase/decrease to taste */
}

.footer-information .footer-heading {
  margin-bottom: 8px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #d3dfe8;
  transition: color 0.3s ease;
}

.footer-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  font-size: 1rem;
  color: var(--ice);
  transition: all 0.3s ease;
}

.footer-contact-link:hover {
  color: var(--ice);
}

.footer-location,
.footer-location:hover {
  color: #d3dfe8;
  cursor: default;
}

.footer-location:hover .footer-icon {
  border-color: var(--line);
  box-shadow: none;
}

.footer-contact-link:hover .footer-icon {
  border-color: var(--ice);
  box-shadow: 0 0 22px rgba(127, 224, 255, 0.35);
}

/* Divider */
.footer-line {
  width: 100%;
  max-width: 1180px;
  height: 1px;
  margin: 0 auto;
  background: var(--line);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 26px;
  font-size: 0.82rem;
  color: #8ea4b4;
}

.footer-credit a {
  color: #d3dfe8;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--ice);
  border-color: var(--ice);
}

/* Tablet */
@media (max-width: 900px) {
  .site-footer {
    padding: 56px 22px 90px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 44px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-information {
    padding-left: 0;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-nav {
  margin-left: 50px;
}

.rv p,
.author p {
  text-align: justify;
  text-indent: 35px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.book-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* =====================================================================
   RESPONSIVE PASS
   ===================================================================== */

/* header: blur lives on a pseudo-element so the fixed mobile menu isn't clipped */
header.solid {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 7, 15, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s;
}
header.solid::before {
  opacity: 1;
}
body.menu-open {
  overflow: hidden;
}

section {
  min-height: 100vh;
  min-height: 100svh;
}
.tag {
  max-width: 100%;
}

/* hero: fluid sizes (no fixed 65px minimum, no fixed px letter-spacing) */
#home h1 {
  font-size: clamp(3rem, 10vw, 110px);
  letter-spacing: -0.04em;
}
#home h1 span:first-child {
  letter-spacing: 0.12em;
}
#home .sub {
  font-size: clamp(2.4rem, 13vw, 130px);
  letter-spacing: -0.04em;
}
#home .by {
  letter-spacing: 0.3em;
}

/* book + contact (inline styles replaced by classes) */
section:not(#home) h2.book-title {
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  line-height: 1.15;
}
.book-copy {
  text-align: justify;
  text-indent: 40px;
  line-height: 1.8;
}
.btns.left {
  justify-content: flex-start;
}
section#contact h2 {
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  max-width: 14ch;
}
#contact .btns {
  margin-top: 40px;
}
.author p {
  margin: 0 0 18px;
}
.author p:last-child {
  margin-bottom: 0;
}

/* large laptops → small desktops */
@media (max-width: 1100px) {
  .footer-inner {
    gap: 36px;
  }
  .footer-information {
    padding-left: 40px;
  }
  .footer-nav {
    margin-left: 0;
  }
}

/* tablet + below */
@media (max-width: 900px) {
  nav {
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }
  .links {
    overflow-y: auto;
    padding: 80px 22px;
  }
  .links a {
    font-size: min(2.6rem, 9vh);
  }
  .book-image {
    max-width: min(340px, 80%);
  }
  .footer-information {
    padding-left: 0;
  }
  .footer-nav {
    margin-left: 0;
  }
  .site-footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }
  .btns {
    gap: 12px;
  }
  .bookgrid .rv {
    min-width: 0;
  }
}

/* phones */
@media (max-width: 600px) {
  section {
    padding: 104px 18px 64px;
  }
  .logo {
    font-size: 1.15rem;
    letter-spacing: 0.24em;
  }
  #home .tag {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    line-height: 1.6;
    border-radius: 18px;
    padding: 8px 14px;
  }
  #home .by {
    font-size: 12px;
    letter-spacing: 0.22em;
  }
  .author {
    padding: 26px 20px;
    border-radius: 22px;
  }
  .card {
    padding: 22px;
    border-radius: 18px;
  }
  .rv p,
  .author p,
  .book-copy {
    text-align: left;
    text-indent: 0;
  }
  section:not(#home) p {
    font-size: 1.05rem;
  }
  .btns .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .site-footer {
    padding: 48px 18px calc(36px + env(safe-area-inset-bottom, 0px));
  }
  .footer-logo {
    font-size: 1.15rem;
    letter-spacing: 0.24em;
  }
  .footer-bottom {
    gap: 8px;
  }
}

/* small phones */
@media (max-width: 380px) {
  .logo,
  .footer-logo {
    font-size: 1rem;
    letter-spacing: 0.18em;
  }
  section:not(#home) h2 {
    font-size: 1.95rem;
  }
}

/* landscape phones / short screens */
@media (max-height: 520px) and (orientation: landscape) {
  section {
    padding-top: 90px;
    padding-bottom: 50px;
  }
  #home .sub {
    font-size: clamp(2rem, 11vh, 3.6rem);
  }
  #home h1 {
    font-size: clamp(2.4rem, 9vh, 4rem);
  }
}

.btns .btn {
  font-weight: 700;
}

.btn,
.btn.pri {
  font-weight: 700 !important;
}

.by {
  font-weight: 900;
  -webkit-text-stroke: 0.5px currentColor;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.8),
    0 0 12px rgb(255, 255, 255),
    0 0 22px rgb(255, 255, 255);
}

/* =====================================================================
   FRANKFURT BOOK FAIR SECTION + LIGHTBOX
   ===================================================================== */
#frankfurt {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
#frankfurt .wrap {
  max-width: 1080px;
}
#frankfurt h2 {
  max-width: 18ch;
  margin: 0 auto 22px;
}
#frankfurt .wrap > p {
  margin: 0 auto;
}

.fxgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  margin-top: 54px;
  justify-items: center;
  align-items: start;
}
.fxitem {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cap {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
}

/* flip card */
.flip {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.flip-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1400 / 1986;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  perspective: 1600px;
}
.flip-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.flip.is-back .flip-inner {
  transform: rotateY(180deg);
}
.face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0a1422;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(127, 224, 255, 0.12);
}
.face.back {
  transform: rotateY(180deg);
}
.face img,
.poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-tabs {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.flip-tabs button {
  border: 0;
  background: none;
  color: var(--mute);
  font: 500 0.8rem var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 99px;
  cursor: pointer;
  transition: 0.3s;
}
.flip-tabs button:hover {
  color: var(--ink);
}
.flip-tabs button.on {
  background: linear-gradient(135deg, var(--ice), var(--vio));
  color: #04101a;
  font-weight: 600;
}

/* poster */
.poster {
  display: block;
  width: 100%;
  aspect-ratio: 1400 / 2100;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a1422;
  cursor: zoom-in;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(127, 224, 255, 0.12);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s;
}
.poster:hover {
  transform: translateY(-6px);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(127, 224, 255, 0.22);
}

/* optional video */
.fxvideo {
  margin-top: 80px;
}
.fxvideo h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 26px;
}

/* lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 5, 11, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s,
    visibility 0.35s;
}
.lb.open {
  opacity: 1;
  visibility: visible;
}
.lb img {
  display: block;
  max-width: min(100%, 920px);
  max-height: 92vh;
  max-height: 92svh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}
.lb-x {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.lb-x:hover {
  border-color: var(--ice);
}

@media (max-width: 760px) {
  .fxgrid {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 36px;
  }
  .fxitem {
    max-width: 380px;
  }
  .fxvideo {
    margin-top: 56px;
  }
  .flip-tabs button {
    padding: 10px 16px;
    font-size: 0.74rem;
  }
}

/* Frankfurt video header: same style as the other section headers */
#frankfurt .fxvideo h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 18ch;
  margin: 0 auto;
}
#frankfurt .fxvideo .vscale {
  margin-top: 36px;
}
@media (max-width: 600px) {
  #frankfurt .fxvideo h2 {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }
  #frankfurt .fxvideo .vscale {
    margin-top: 26px;
  }
}
#home .sub {
    font-size: 100px;
    line-height: 1.2;
}




















/* =========================================
   BOOK SECTION - VISIBILITY & BUTTON FIX
========================================= */

/* Ensure book content is visible */
#book .book-content {
    min-width: 0;
}

#book .rv.in {
    opacity: 1;
    visibility: visible;
}

/* Book action container */
#book .book-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    margin-top: 30px;
    gap: 14px;
}

/* Two bookstore cards */
#book .bookstores {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

/* Individual bookstore buttons */
#book .store-btn {
    position: relative;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100px;
    padding: 20px;
    gap: 7px;

    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(10, 20, 34, 0.85);

    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

#book .store-btn:hover {
    transform: translateY(-4px);
    border-color: var(--ice);
    box-shadow: 0 10px 30px rgba(127, 224, 255, 0.18);
}

/* Store labels */
#book .store-label {
    display: block;
    color: #bccbd6;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

#book .store-name {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
}

#book .store-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    color: var(--ice);
    font-size: 1.2rem;
}

#book .trafford-btn {
    border-top: 2px solid var(--ice);
}

#book .bn-btn {
    border-top: 2px solid var(--vio);
}

#book .bn-btn .store-arrow {
    color: var(--vio);
}

/* Press release button */
#book .press-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;

    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 20, 34, 0.75);

    color: #d3dfe8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

#book .press-btn:hover {
    border-color: var(--ice);
    color: var(--ice);
    background: rgba(127, 224, 255, 0.08);
}

#book .press-icon {
    color: var(--ice);
    font-size: 1.1rem;
}

/* Tablet and mobile */
@media (max-width: 900px) {
    #book .book-actions {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    #book .bookstores {
        grid-template-columns: 1fr;
    }

    #book .store-btn {
        min-height: 85px;
    }

    #book .store-name {
        font-size: 1rem;
    }

    #book .press-btn {
        font-size: 0.7rem;
    }
}
/* Thin buttons while keeping all content visible */
#book .store-btn {
    min-height: 52px;
    padding: 7px 12px;
    gap: 2px;
}

#book .store-label {
    display: block;
    font-size: 0.52rem;
}

#book .store-name {
    display: block;
    font-size: 0.78rem;
}

#book .store-arrow {
    display: block;
    font-size: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
}

#book .press-btn {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.68rem;
}

#book .press-icon {
    display: inline;
    font-size: 0.9rem;
}

/* Book section button fonts */
#book .store-name {
    font-size: 1rem;
}

#book .store-label {
    font-size: 0.62rem;
}

#book .press-btn {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

#book .press-icon {
    font-size: 1.1rem;
}