:root {
  --ink: #e8edf7;
  --muted: #c0c9dd;
  --panel: rgba(16, 20, 32, 0.82);
  --outline: rgba(255, 255, 255, 0.08);
  --accent: #ffb8a6;
  --accent-2: #bde3ff;
  --accent-3: #d9c1ff;
  --shadow: 0 20px 60px rgba(4, 6, 18, 0.45);
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(72px, 14vh) 1fr minmax(120px, 18vh);
  gap: 10px;
  padding: 10px 0 14px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 22, 38, 0.8) 0%, rgba(27, 36, 56, 0.68) 40%, rgba(36, 31, 54, 0.76) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.05) brightness(0.6);
  transform: scale(1.12);
  z-index: -1;
  pointer-events: none;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.35;
  z-index: 1;
}

.header {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  background: rgba(10, 13, 23, 0.7);
  border: 1px solid var(--outline);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 36px rgba(5, 6, 18, 0.35);
  position: sticky;
  top: 12px;
  z-index: 3;
}

.brand {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(120deg, #ffcabd, #c7e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding: 4px 0;
}

.brand-mark img{
  position: absolute;
  width: 6rem;
  left: 1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-name {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.brand-tag {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.9;
}

.nav {
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
}

.nav a,
.nav button {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.78;
  transition: opacity 0.15s ease;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover {
  opacity: 1;
}

.cta-small {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, #ffcabd, #c7e7ff);
  color: #0f1321;
  border: 1px solid rgba(12, 16, 26, 0.25);
  box-shadow: 0 12px 32px rgba(4, 6, 18, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.cta-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(31, 36, 51, 0.16);
}

.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shell {
  width: min(1200px, calc(100% - 48px));
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw + 8px, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  justify-items: center;
  align-items: center;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.hero-logo {
  width: 140px;
  max-width: 60%;
  display: block;
  margin: 0 auto 6px;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 3vw + 1rem, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 540px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.btn {
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(120deg, #ffcabd 0%, #ffe0f0 50%, #c6e6ff 100%);
  color: #0f1321;
  box-shadow: 0 16px 40px rgba(4, 6, 18, 0.4);
  border: 1px solid rgba(15, 19, 33, 0.2);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(4, 6, 18, 0.45);
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 22px rgba(4, 6, 18, 0.35);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 3px rgba(10, 13, 23, 0.7);
}

.visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.frame {
  position: relative;
  width: min(520px, 100%);
  height: clamp(320px, 72vh, 600px);
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #ffcfd9, #cce7ff);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0) 0 55%, rgba(0, 0, 0, 0.16) 80%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.32));
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05) brightness(1.02);
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slider:not(.ready) {
  background: center / cover no-repeat url("images/slider/image00005.jpg");
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.orb-a {
  width: 260px;
  height: 260px;
  background: #ffc8d0;
  top: -30px;
  right: 10%;
}

.orb-b {
  width: 240px;
  height: 240px;
  background: #c7e6ff;
  bottom: -40px;
  left: 5%;
}

.footer {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 18px;
  background: rgba(10, 13, 23, 0.78);
  border: 1px solid var(--outline);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(4, 6, 18, 0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 760px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(4, 6, 18, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  /* flex: 1 1 150px; */
  /* min-width: 150px; */
}

.pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.pill-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 12px;
  font-weight: 700;
  color: #0f1321;
}

.pill-icon.small {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.footer-links .pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(4, 6, 18, 0.45);
}

.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
}

.press {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(4, 6, 18, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.press:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(4, 6, 18, 0.45);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 16, 0.6);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(720px, 100%);
  background: rgba(16, 20, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: clamp(22px, 3vw, 32px);
  position: relative;
}

.modal h2 {
  margin: 6px 0 10px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.3rem);
  letter-spacing: -0.02em;
}

.modal-lede {
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

#book-modal .btn {
  justify-content: center;
  text-align: center;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.modal-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.modal-card a {
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-2);
}

.card-title {
  font-weight: 700;
}

.modal-embeds {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.embed-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.embed-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(4, 6, 18, 0.35);
}

@media (max-width: 960px) {
  body {
    grid-template-rows: auto 1fr auto;
    overflow: auto;
  }

  .header {
    width: min(1200px, calc(100% - 32px));
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: static;
  }

  .nav {
    justify-content: center;
  }

  .brand {
    position: static;
    transform: none;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .copy {
    align-items: center;
    max-width: none;
  }

  .highlights {
    justify-content: center;
  }

  .visual {
    order: -1;
  }
}

@media (max-width: 600px) {
  body {
    padding: 8px 0 12px;
  }

  .hero-shell {
    padding: 20px;
    border-radius: 20px;
  }

  .header {
    border-radius: 14px;
    gap: 12px;
  }

  .cta-small {
    width: 100%;
    text-align: center;
  }

  .cta-row {
    justify-content: center;
  }

  .brand {
    justify-content: center;
  }
}
