html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: #0C0538;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -10;
  display: block;
}

/* Portrait avatars — at least 200px everywhere they appear. */
.portrait-lg {
  width: 12.5rem;
  height: 12.5rem;
}
.portrait-md {
  width: 12.5rem;
  height: 12.5rem;
}

/* Hero scrim — dark only where the text/icons sit (centre), so the photo
   shows through clearly at the edges. Kept light (roughly half-strength)
   so the photo still reads through, while keeping text/icons legible. */
.hero-scrim {
  background:
    radial-gradient(ellipse 55% 40% at 50% 52%,
      rgba(248, 179, 6, 0.08) 0%,
      rgba(248, 179, 6, 0) 70%
    ),
    radial-gradient(ellipse 75% 68% at 50% 58%,
      rgba(24, 12, 4, 0.425) 0%,
      rgba(24, 12, 4, 0.25) 45%,
      rgba(24, 12, 4, 0.06) 75%,
      rgba(24, 12, 4, 0.15) 100%
    );
}

/* subtle warm paper grain for light sections — applied on the element's own
   background (not the fixed starfield layer, which sits behind opaque
   section backgrounds and can't show through them) */
.paper-texture {
  background-color: #F7F5EF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.55  0 0 0 0 0.42  0 0 0 0 0.2  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
}

/* film-grain texture over the starfield so the dark sections read as sky, not flat color */
#grain {
  position: fixed;
  inset: 0;
  z-index: -9;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

::selection {
  background: #F8B306;
  color: #0C0538;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #F8B306;
  outline-offset: 3px;
}

@font-face {
  font-family: "Kreatives";
  src: url("../fonts/Kreatives.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* script accent — for the words that carry the "your story" theme */
.hand {
  font-family: "Kreatives", cursive;
  font-weight: 400;
  display: inline-block;
  position: relative;
}
.hand.underline-flourish::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.08em;
  height: 0.09em;
  background: currentColor;
  opacity: 0.55;
  border-radius: 999px;
  transform: rotate(-0.6deg);
}

/* nav */
#navBar {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
#navBar.nav-scrolled {
  background-color: rgba(12, 5, 56, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(248, 179, 6, 0.12);
}

/* matching bar at the bottom of the viewport, framing the page like a
   cinema window alongside the top nav bar; also carries the social icons,
   which fade in together with the bar once scrolled. Height is set from JS
   to match navBar's actual rendered height exactly. */
#bottomBar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 40;
  pointer-events: none;
  background-color: transparent;
  border-top: 1px solid transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
#bottomBar.nav-scrolled {
  background-color: rgba(12, 5, 56, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(248, 179, 6, 0.12);
  pointer-events: auto;
}
#bottomBar .social-icons {
  opacity: 0;
  transition: opacity 0.4s ease;
}
#bottomBar.nav-scrolled .social-icons {
  opacity: 1;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* hero cinematic entrance — orchestrated by hero-intro.js */
#top .hero-anim,
#top .hero-anim-line {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
#top .hero-anim-line {
  display: inline-block;
}
#top .hero-anim.is-in,
#top .hero-anim-line.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #top .hero-anim,
  #top .hero-anim-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* menu overlay */
#menuOverlay {
  transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* elevated card — light version, used by Contact */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(12, 5, 56, 0.08);
  box-shadow: 0 24px 48px -24px rgba(12, 5, 56, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Quiz card is a bright, lit "window" floating on the dark starfield — deliberately
   lighter than its surroundings so it reads as a distinct, contained element rather
   than one more dark section. */
#quiz .glass-card {
  background-color: rgba(247, 245, 239, 0.97);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.55  0 0 0 0 0.42  0 0 0 0 0.2  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  border: 1px solid rgba(248, 179, 6, 0.25);
  box-shadow: 0 0 90px rgba(248, 179, 6, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Contact is a dark section — its card needs the dark glass treatment instead */
#contact .glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5);
}

.quiz-choice:focus-visible {
  outline: 2px solid #F8B306;
  outline-offset: 2px;
}

.quiz-choice-letter {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(12, 5, 56, 0.25);
  border-radius: 999px;
  font-family: Futura, "Futura PT", Jost, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.0625em;
  margin-top: 0.1rem;
}

/* Satori Story Quiz — result reveal sequence */
/* Cormorant Garamond regular reads as quite light at body sizes, especially
   over the reduced-opacity ink used throughout the reveal — bump the weight
   for legibility without changing the visual hierarchy. */
#quizResult h3 {
  font-weight: 700;
}
#quizResult p,
#quizResult li {
  font-weight: 500;
}

.satori-loader {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(12, 5, 56, 0.12);
  border-top-color: #F8B306;
  animation: satori-spin 0.9s linear infinite;
}
@keyframes satori-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .satori-loader { animation: none; }
}

.satori-badge {
  margin: 0 auto;
  border-radius: 999px;
  overflow: hidden;
  display: block;
}
.satori-badge svg,
.satori-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.satori-label {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C99A0E;
  margin-bottom: 0.6rem;
}
/* #quizResult p has its own font-weight:500 rule with higher specificity
   (ID + element beats class); re-assert 700 here so labels stay bold there. */
#quizResult p.satori-label {
  font-weight: 700;
}

.satori-bullets {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.satori-bullets li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(12, 5, 56, 0.75);
  line-height: 1.45;
  font-size: 1.125rem;
}
.satori-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #F8B306;
}

.satori-shift-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid rgba(248, 179, 6, 0.4);
  border-radius: 999px;
  font-family: Futura, "Futura PT", Jost, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0C0538;
}
.satori-shift-chip span {
  color: #C99A0E;
}

.satori-shift-banner {
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(248, 179, 6, 0.06);
  border: 1px solid rgba(248, 179, 6, 0.2);
  text-align: center;
}

.story-loop {
  display: grid;
  gap: 0.4rem;
}
.story-loop-step {
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(12, 5, 56, 0.12);
  border-radius: 0.6rem;
  background: rgba(12, 5, 56, 0.02);
  text-align: left;
}
.story-loop-step p {
  color: rgba(12, 5, 56, 0.8);
  line-height: 1.4;
  margin-top: 0.15rem;
  font-size: 1.125rem;
}
.story-loop-label {
  font-family: Futura, "Futura PT", Jost, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #C99A0E;
}
.story-loop-arrow {
  text-align: center;
  color: rgba(248, 179, 6, 0.6);
  font-size: 0.9rem;
  line-height: 1;
}

.decode-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.decode-step {
  font-family: Futura, "Futura PT", Jost, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 5, 56, 0.15);
  color: rgba(12, 5, 56, 0.45);
}
.decode-step.is-done {
  border-color: rgba(248, 179, 6, 0.5);
  background: rgba(248, 179, 6, 0.12);
  color: #0C0538;
}
.decode-step-arrow {
  color: rgba(12, 5, 56, 0.3);
}

.quiz-restart-btn {
  cursor: pointer;
}

/* Satori Experience — cinematic banner, no overlay on the photo itself */
.experience-banner {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(248, 179, 6, 0.25);
}
.experience-banner img {
  display: block;
  width: 100%;
  height: auto;
  animation: experience-banner-zoom 24s ease-in-out infinite alternate;
}
@keyframes experience-banner-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .experience-banner img { animation: none; }
}

/* Satori Experience — Decode/Disrupt/Design editorial process band */
.experience-process {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.experience-node {
  flex: 1 1 0;
  max-width: 260px;
  text-align: center;
  padding: 0 1.25rem;
  transition: transform 0.4s ease;
}
.experience-node:hover {
  transform: translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
  .experience-node:hover { transform: none; }
}
.experience-node-number {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 2.75rem;
  color: rgba(248, 179, 6, 0.35);
  line-height: 1;
  margin-bottom: 0.85rem;
  transition: color 0.4s ease;
}
.experience-node:hover .experience-node-number {
  color: #F8B306;
}
.experience-node-title {
  font-family: Futura, "Futura PT", Jost, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.85rem;
}
.experience-node-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.55;
}
.experience-node-line {
  flex: 0 0 auto;
  width: 64px;
  height: 1px;
  margin-top: 2.4rem;
  background: linear-gradient(90deg, rgba(248, 179, 6, 0.05), rgba(248, 179, 6, 0.45), rgba(248, 179, 6, 0.05));
}
@media (max-width: 767px) {
  .experience-process { flex-direction: column; align-items: center; gap: 2.75rem; }
  .experience-node { max-width: 320px; }
  .experience-node-line { display: none; }
}

/* segmented / intricate quiz progress */
#quizTicks {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.quiz-tick {
  flex: 1;
  max-width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(12, 5, 56, 0.15);
  transition: background-color 0.4s ease, transform 0.3s ease;
}
.quiz-tick.is-done {
  background: #F8B306;
}
.quiz-tick.is-current {
  background: #F8B306;
  transform: scaleY(1.6);
}

/* honeypot field — hidden from sighted users and screen readers, visible to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* storybook menu toggle — closed book swings shut/open like a page turning */
#menuToggle {
  transform-style: preserve-3d;
}
#menuToggle .book-closed,
#menuToggle .book-open {
  grid-area: 1 / 1;
  transform-origin: 50% 50%;
  transition: opacity 0.45s ease, transform 0.45s ease;
  backface-visibility: hidden;
}
#menuToggle .book-closed {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}
#menuToggle .book-open {
  opacity: 0;
  transform: rotateY(90deg) scale(0.85);
}
#menuToggle:hover .book-closed,
#menuToggle[aria-expanded="true"] .book-closed {
  opacity: 0;
  transform: rotateY(-90deg) scale(0.85);
}
#menuToggle:hover .book-open,
#menuToggle[aria-expanded="true"] .book-open {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  #menuToggle .book-closed,
  #menuToggle .book-open {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
}

/* galleries / sliders (Guidance & Events) — crossfade between slides */
[data-slider-track] {
  position: relative;
  height: 100%;
}
[data-slide] {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
[data-slide].is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  [data-slide] { transition: none; }
}
[data-slider-dots] {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* founder cards — About section, side-by-side profiles */
.founder-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(248, 179, 6, 0.3);
  border-radius: 1rem;
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 40px -24px rgba(12, 5, 56, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
/* Choose Your Guide sits on the dark starfield — a fully opaque card reads
   more clearly there than the translucent version used on the light About
   section background. */
#guidance .founder-card {
  background: #ffffff;
}
.founder-card:hover {
  box-shadow: 0 24px 48px -20px rgba(248, 179, 6, 0.3);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .founder-card:hover { transform: none; }
}
.founder-card-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: #0C0538;
}
.founder-card-title {
  font-family: Futura, "Futura PT", Jost, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.275em;
  text-transform: uppercase;
  color: #A6790C;
  margin: 0.5rem 0 1.25rem;
}
.founder-card-bio {
  color: rgba(12, 5, 56, 0.7);
  line-height: 1.6;
  font-size: 1.0625rem;
}
/* sophisticated form inputs — light version, used by Contact */
.field-input {
  width: 100%;
  background: rgba(12, 5, 56, 0.03);
  border: 1px solid rgba(12, 5, 56, 0.15);
  border-radius: 6px;
  color: #0C0538;
  padding: 0.95rem 1.15rem;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
}
.field-input::placeholder {
  color: rgba(12, 5, 56, 0.35);
}
.field-input:focus {
  border-color: #F8B306;
  background: rgba(255, 255, 255, 0.9);
}
/* Contact's fields sit on a dark section */
#contact .field-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}
#contact .field-input::placeholder {
  color: rgba(185, 180, 217, 0.45);
}
#contact .field-input:focus {
  border-color: #F8B306;
  background: rgba(255, 255, 255, 0.1);
}
select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23F8B306'%3E%3Cpath d='M5 7.5 10 13l5-5.5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 15px 15px;
  padding-right: 2.75rem;
}
select.field-input option {
  background: #0C0538;
  color: #fff;
}

img {
  max-width: 100%;
}

/* prominent CTA — soft ambient gold glow that intensifies on hover, with a
   gentle lift, to make the button feel worth pressing rather than just present */
.cta-glow {
  box-shadow: 0 8px 30px -8px rgba(12, 5, 56, 0.45);
  transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.cta-glow:hover {
  box-shadow: 0 12px 40px -6px rgba(248, 179, 6, 0.65);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .cta-glow:hover { transform: none; }
}

/* shooting-star flourish that streaks across a button on hover */
.btn-shooting-star {
  position: relative;
}
.shooting-star {
  position: absolute;
  top: 65%;
  left: -6%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff1cc;
  box-shadow: 0 0 6px 2px rgba(248, 179, 6, 0.9);
  pointer-events: none;
  animation: shoot-across 0.75s ease-out forwards;
}
.shooting-star::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 46px;
  height: 1.6px;
  background: linear-gradient(90deg, rgba(248, 179, 6, 0), rgba(255, 225, 150, 0.85));
  transform: translateY(-50%);
}
@keyframes shoot-across {
  0% { left: -6%; top: 65%; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 106%; top: 20%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shooting-star { display: none; }
}
