:root {
  --bg: #fbf7f0;
  --bg-card: #ffffff;
  --ink: #2c2521;
  --ink-soft: #6b6258;
  --line: #e8ded0;
  --accent: #c2632f;
  --accent-soft: #f3e2d4;
  --accent-ink: #9a4a1f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(44, 37, 33, 0.04),
    0 10px 30px rgba(44, 37, 33, 0.06);
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1330 0%, #241a2f 50%, #2c1d28 100%);
  color: #fff;
  padding-bottom: 5.5rem;
}

/* Drifting aurora blobs — a living, video-like background with no heavy assets. */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob-1 {
  background: #e0584e;
  top: -12%;
  left: -8%;
  animation: drift1 19s ease-in-out infinite;
}
.blob-2 {
  background: #3d8fc4;
  top: 4%;
  right: -12%;
  animation: drift2 23s ease-in-out infinite;
}
.blob-3 {
  background: #c558aa;
  bottom: -25%;
  left: 18%;
  animation: drift3 21s ease-in-out infinite;
}
.blob-4 {
  background: #e0a02a;
  top: 28%;
  left: 38%;
  animation: drift4 27s ease-in-out infinite;
}
@keyframes drift1 {
  50% { transform: translate(18vw, 12vh) scale(1.15); }
}
@keyframes drift2 {
  50% { transform: translate(-14vw, 16vh) scale(1.2); }
}
@keyframes drift3 {
  50% { transform: translate(12vw, -14vh) scale(1.1); }
}
@keyframes drift4 {
  50% { transform: translate(-16vw, -10vh) scale(1.25); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-word {
  background: linear-gradient(90deg, #ffd9a0, #ff9d6c, #ff7e9d, #c9a6ff, #ffd9a0);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer {
  to { background-position: 250% center; }
}

.brand-mark {
  font-size: 1.95rem;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(255, 160, 90, 0.5));
  animation: compass 6s ease-in-out infinite;
}
@keyframes compass {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-3px); }
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: #fff;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffb98a;
  margin: 0 0 1rem;
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.lede {
  max-width: 620px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.3rem;
}
.lede:last-of-type {
  margin-bottom: 2rem;
}

.cta {
  display: inline-block;
  background: linear-gradient(135deg, #ff8a4c, #ff5f7e);
  color: #fff;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px rgba(255, 95, 126, 0.4);
}
.cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(255, 95, 126, 0.55);
}

/* ---------- Chips / category nav ---------- */
.chips {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  scroll-margin-top: 1rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--cat, var(--accent));
  color: var(--cat, var(--accent));
  transform: translateY(-2px);
}
.chip.active {
  background: var(--cat, var(--accent));
  border-color: var(--cat, var(--accent));
  color: #fff;
}

/* ---------- Sections ---------- */
main {
  padding: 2.5rem 1.5rem 4rem;
}

#content {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  margin-top: 2.75rem;
}

/* Each section is its own colorful, rounded panel — clearly separated from its neighbors. */
.section {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 2.75rem 2.25rem 3rem;
  border-radius: 30px;
  scroll-margin-top: 1.5rem;
  background: color-mix(in srgb, var(--cat, var(--accent)) 8%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 22%, transparent);
  position: relative;
  overflow: hidden;
}

/* A soft glow in the corner for a bit of life. */
.section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--cat, var(--accent)) 22%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.section-head {
  max-width: 720px;
  position: relative;
}

.section-emoji {
  font-size: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--cat, var(--accent)) 20%, #fff);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--cat, var(--accent)) 28%, transparent);
}

.section h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: color-mix(in srgb, var(--cat, var(--accent)) 78%, #1c1714);
}

.section .tagline {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: color-mix(in srgb, var(--cat, var(--accent)) 70%, #2c2521);
  margin: 0 0 1rem;
}

.section .blurb {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 18%, var(--line));
  border-top: 4px solid var(--cat, var(--accent));
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--cat, var(--accent)) 26%, transparent);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
}

.card h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.logo {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 25%, var(--line));
  padding: 3px;
}

.card h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.22rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.cost {
  flex: 0 1 auto;
  align-self: flex-start;
  color: color-mix(in srgb, var(--cat, var(--accent)) 80%, #000);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.summary {
  font-weight: 500;
  margin: 0 0 0.7rem;
}

.details {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--cat, var(--accent)) 80%, #000);
}
.card-link:hover {
  text-decoration: underline;
}
.card-link.disabled {
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.footer strong {
  color: var(--ink);
}
.fine {
  font-size: 0.88rem;
  max-width: 640px;
}

@media (max-width: 640px) {
  main {
    padding: 1.75rem 1rem 3rem;
  }
  #content {
    gap: 2rem;
    margin-top: 2rem;
  }
  .section {
    padding: 2rem 1.35rem 2.25rem;
    border-radius: 24px;
  }
}

@media (max-width: 540px) {
  .nav-link {
    display: none;
  }
}

/* ---------- Scroll reveal ---------- */
/* Only applied when JS is present, so no-JS users still see everything. */
.reveal-ready .section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready .section.in {
  opacity: 1;
  transform: none;
}

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .blob,
  .brand-mark,
  .brand-word,
  .cta {
    animation: none !important;
  }
  .hero-canvas {
    display: none;
  }
  .reveal-ready .section {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}
