@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  /* Color palette */
  --stage-midnight: #14213D;
  --moving-coral: #F2545B;
  --studio-teal: #00796B;
  --warm-paper: #FFF9F2;
  --chalk-sand: #F3EEE8;
  --ink: #1F1F1F;
  --spotlight-yellow: #FFD166;
  --white: #FFFFFF;
  --black: #000000;

  /* Neutral grays */
  --gray-100: #F3EEE8;
  --gray-200: #E7E7E7;
  --gray-300: #D1D1D1;
  --gray-400: #7A7A7A;
  --gray-500: #555D66;
  --gray-600: #40464D;

  /* 8pt spacing scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-9: 6rem;      /* 96px */
  --space-10: 8rem;     /* 128px */

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.05);
  --shadow-md: 0 4px 12px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 33, 61, 0.12);
  --shadow-xl: 0 24px 48px rgba(20, 33, 61, 0.16);
  --shadow-glow: 0 0 24px rgba(242, 84, 91, 0.3);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --gutter: 1.5rem; /* 24px */
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--warm-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--studio-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--moving-coral);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--stage-midnight);
}

p {
  margin: 0 0 var(--space-4);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1000;
  padding: var(--space-3) var(--space-5);
  background: var(--stage-midnight);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-4);
  outline: 3px solid var(--spotlight-yellow);
  outline-offset: 3px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--spotlight-yellow);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--moving-coral);
  color: var(--white);
  border-color: var(--moving-coral);
}

.btn-primary:hover {
  background: #e0454c;
  border-color: #e0454c;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242, 84, 91, 0.3);
}

.btn-teal {
  background: var(--studio-teal);
  color: var(--white);
  border-color: var(--studio-teal);
}

.btn-teal:hover {
  background: #00695c;
  border-color: #00695c;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 121, 107, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--stage-midnight);
  border-color: var(--stage-midnight);
}

.btn-outline:hover {
  background: var(--stage-midnight);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 33, 61, 0.2);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: 1.0625rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 33, 61, 0.06);
  transition: box-shadow 0.3s ease;
}

.site-header:has(.nav-toggle[aria-expanded="true"]) {
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--gutter);
  min-height: 72px;
  position: relative;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--stage-midnight);
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--stage-midnight);
}

.brand-tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  font-weight: 500;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  position: relative;
  z-index: 110;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--spotlight-yellow);
  outline-offset: 3px;
}

.nav-toggle-bars {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--stage-midnight);
  position: relative;
  transition: background 0.2s ease;
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--stage-midnight);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle-bars::before {
  top: -8px;
}

.nav-toggle-bars::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Primary nav */
.primary-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--warm-paper);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  z-index: 100;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
}

.nav-toggle[aria-expanded="true"] + .primary-nav {
  display: flex;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-item {
  position: relative;
}

.nav-item > a,
.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--stage-midnight);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
}

.nav-item > a:hover,
.submenu-toggle:hover {
  background: rgba(20, 33, 61, 0.05);
  color: var(--moving-coral);
}

.has-submenu .submenu-toggle {
  cursor: pointer;
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.submenu-toggle[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.submenu {
  display: none;
  padding-left: var(--space-4);
  margin-top: var(--space-1);
}

.submenu-toggle[aria-expanded="true"] + .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.submenu li a:hover {
  background: var(--chalk-sand);
  color: var(--moving-coral);
}

/* Search */
.site-search {
  display: none;
  align-items: center;
  gap: var(--space-1);
  background: rgba(20, 33, 61, 0.05);
  border-radius: var(--radius-full);
  padding: 2px 2px 2px var(--space-4);
  margin-top: var(--space-3);
}

.search-input {
  border: none;
  background: transparent;
  padding: var(--space-2) 0;
  font-size: 0.875rem;
  width: 100%;
  min-width: 0;
  outline: none;
  color: var(--ink);
  font-family: var(--font-body);
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-submit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--stage-midnight);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.search-submit:hover {
  background: var(--moving-coral);
  transform: scale(1.05);
}

.search-submit:focus-visible {
  outline: 3px solid var(--spotlight-yellow);
  outline-offset: 3px;
}

.header-cta {
  display: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--stage-midnight);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 22% 50%, rgba(20, 33, 61, 0.94) 0%, rgba(20, 33, 61, 0.72) 45%, rgba(20, 33, 61, 0.2) 80%),
    linear-gradient(135deg, rgba(20, 33, 61, 0.9) 0%, rgba(20, 33, 61, 0.68) 50%, rgba(20, 33, 61, 0.88) 100%);
  mix-blend-mode: multiply;
}

/* Keep hero copy legible over busy background artwork */
.display-1,
.hero-lead,
.hero-sub,
.hero-facts span {
  text-shadow: 0 2px 18px rgba(20, 33, 61, 0.55);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-9) var(--gutter);
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moving-coral);
  margin-bottom: var(--space-3);
}

.eyebrow-light {
  color: var(--spotlight-yellow);
}

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.display-1 span {
  color: var(--spotlight-yellow);
}

.hero-lead {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-3);
  max-width: 800px;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-5);
}

.hero-facts span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-facts span::before {
  content: '●';
  color: var(--spotlight-yellow);
  font-size: 0.5rem;
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  background: var(--spotlight-yellow);
  color: var(--stage-midnight);
  overflow: hidden;
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(20, 33, 61, 0.1);
  border-bottom: 1px solid rgba(20, 33, 61, 0.1);
}

.marquee-track {
  display: flex;
  gap: var(--space-6);
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  width: max-content;
}

.marquee-track span {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.marquee-track span::after {
  content: '★';
  color: var(--moving-coral);
  font-size: 0.875rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: var(--space-7) 0;
}

.section-intro {
  background: var(--warm-paper);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
}

.split-main {
  max-width: 720px;
}

.h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
  color: var(--stage-midnight);
  margin-bottom: var(--space-4);
}

.body-large {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink);
}

.body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}

.pill {
  background: var(--chalk-sand);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stage-midnight);
  border: 1px solid rgba(20, 33, 61, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}

.pill:hover {
  background: var(--spotlight-yellow);
  transform: translateY(-2px);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.split-aside {
  position: relative;
}

.cta-panel {
  background: var(--stage-midnight);
  color: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-panel::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: var(--moving-coral);
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(40px);
  mask-image: radial-gradient(circle, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

.cta-panel-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--spotlight-yellow);
  margin-bottom: var(--space-2);
  display: block;
}

.h3 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-3);
}

/* Ensure high-contrast copy inside the dark conversion card (WCAG AA) */
.cta-panel .h3,
.cta-panel h2,
.cta-panel h3 {
  color: var(--white);
}

.cta-panel p,
.cta-panel .body,
.cta-panel .body-large {
  color: #E9F5EF;
}

.cta-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--studio-teal);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  margin-bottom: var(--space-4);
}

.cta-panel-link:hover {
  background: #00695C;
  color: var(--white);
  transform: translateY(-2px);
}

.cta-panel-link:focus-visible {
  outline: 3px solid var(--spotlight-yellow);
  outline-offset: 3px;
}

.cta-panel-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-top: var(--space-4);
}

/* ==========================================================================
   DIALOG / CHAT
   ========================================================================== */
.section-dialog {
  background: var(--chalk-sand);
  position: relative;
  overflow: hidden;
}

.section-dialog::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: var(--moving-coral);
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(60px);
  mask-image: radial-gradient(circle, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-top: var(--space-3);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.chat-turn {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.chat-visitor {
  align-self: flex-start;
  max-width: 85%;
}

.chat-studio {
  align-self: flex-end;
  text-align: right;
  max-width: 85%;
}

.chat-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: var(--space-1);
}

.chat-text {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: 1.0625rem;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-text:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.chat-visitor .chat-text {
  background: var(--white);
  color: var(--ink);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-studio .chat-text {
  background: var(--studio-teal);
  color: var(--white);
  border-bottom-right-radius: var(--radius-sm);
}

/* ==========================================================================
   BENTO GRID
   ========================================================================== */
.section-bento {
  background: var(--warm-paper);
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.bento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, 0.04);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.bento-card-wide {
  grid-column: span 1;
}

.card-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moving-coral);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--studio-teal);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link:hover {
  gap: var(--space-3);
  color: var(--moving-coral);
}

.bento-card-accent {
  background: var(--spotlight-yellow);
  color: var(--stage-midnight);
  position: relative;
  overflow: hidden;
}

.bento-card-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: var(--moving-coral);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  opacity: 0.2;
}

.bento-card-accent .card-kicker {
  color: var(--stage-midnight);
}

.bento-card-accent .card-link {
  color: var(--stage-midnight);
}

.bento-card-accent .card-link:hover {
  color: var(--moving-coral);
}

.bento-card-dark {
  background: var(--stage-midnight);
  color: var(--white);
}

.bento-card-dark .card-kicker {
  color: var(--spotlight-yellow);
}

.bento-card-dark .card-link {
  color: var(--spotlight-yellow);
}

.bento-card-dark .card-link:hover {
  color: var(--white);
}

/* ==========================================================================
   STAGES / EVENTS
   ========================================================================== */
.section-stages {
  background: var(--chalk-sand);
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(135deg, var(--moving-coral), var(--studio-teal));
  mix-blend-mode: multiply;
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}

.event-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  position: relative;
  z-index: 0;
  transition: transform 0.4s ease;
}

.event-card:hover img {
  transform: scale(1.04);
}

.event-card-content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  position: relative;
  z-index: 2;
  background: var(--white);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
/* Keep inline icon/word content in FAQ answers fully visible and aligned */
.faq-answer {
  overflow: visible;
}

.faq-answer svg,
.faq-answer img {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.faq-answer iconify-icon {
  display: inline-block;
  vertical-align: -0.15em;
}

/* Ensure inline links inside answers render as visible, distinguishable text */
.faq-answer a {
  color: var(--studio-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--moving-coral);
}

/* Empty inline anchors must not leave blank gaps in sentences */
.faq-answer a:empty::before {
  content: attr(href);
  color: inherit;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--stage-midnight);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-7) 0 var(--space-5);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 340px;
}

.footer-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--spotlight-yellow);
  margin: 0 0 var(--space-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a,
.footer-contact a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-legal a:hover {
  color: var(--spotlight-yellow);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-contact address {
  font-style: normal;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  background: var(--moving-coral);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social a:focus-visible,
.footer-links a:focus-visible,
.footer-legal a:focus-visible,
.footer-contact a:focus-visible {
  outline: 3px solid var(--spotlight-yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  text-align: center;
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    padding: var(--space-9) 0 var(--space-5);
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-7);
  }
}

/* ==========================================================================
   SCROLL-REVEAL (progressive enhancement)
   ========================================================================== */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section .split,
    .section .chat-turn,
    .section .bento-card,
    .section .event-card,
    .section .cta-panel {
      animation: fadeUp both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(24px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
}

/* ==========================================================================
   PUBLIC-PAGE SAFETY — hide preview-only editor controls
   ========================================================================== */
.edit-button,
.edit-btn,
.edit-toggle,
.edit-control,
.edit-fab,
.floating-edit,
.editor-button,
.editor-toggle,
.editor-toolbar,
.preview-edit-button,
[data-edit-button],
[data-editor-control] {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVE — TABLET
   ========================================================================== */
@media (min-width: 768px) {
  /* Keep a visible menu trigger on tablet widths (below the desktop nav) */
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .split {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .bento-card-wide {
    grid-column: span 2;
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat-visitor {
    max-width: 75%;
  }

  .chat-studio {
    max-width: 75%;
  }

  .hero {
    min-height: 640px;
  }

  .section {
    padding: var(--space-9) 0;
  }

  .hero-facts {
    gap: var(--space-6);
  }
}

/* Tablet-only: keep hero copy on a clean band over the decorative artwork */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-scrim {
    background:
      radial-gradient(ellipse at 28% 50%, rgba(20, 33, 61, 0.97) 0%, rgba(20, 33, 61, 0.88) 50%, rgba(20, 33, 61, 0.62) 85%),
      linear-gradient(135deg, rgba(20, 33, 61, 0.95) 0%, rgba(20, 33, 61, 0.82) 50%, rgba(20, 33, 61, 0.94) 100%);
  }

  .hero-inner {
    background: linear-gradient(90deg, rgba(20, 33, 61, 0.92) 0%, rgba(20, 33, 61, 0.74) 60%, rgba(20, 33, 61, 0) 100%);
  }
}

/* ==========================================================================
   RESPONSIVE — DESKTOP
   ========================================================================== */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    padding: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    border-bottom: none;
    gap: var(--space-1);
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
  }

  .nav-item > a,
  .submenu-toggle {
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
    width: auto;
  }

  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu {
    display: block;
  }

  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    border: 1px solid rgba(20, 33, 61, 0.06);
    z-index: 120;
    margin-top: var(--space-1);
    padding-left: 0;
  }

  .submenu li a {
    padding: var(--space-2) var(--space-3);
  }

  .site-search {
    display: flex;
    margin-top: 0;
    margin-left: var(--space-2);
    width: auto;
  }

  .search-input {
    width: 120px;
  }

  .header-cta {
    display: inline-flex;
    margin-left: var(--space-2);
  }

  .split {
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--space-9);
  }

  .bento {
    grid-template-columns: repeat(4, 1fr);
  }

  .bento-card-wide {
    grid-column: span 2;
  }

  .hero-inner {
    padding: var(--space-10) var(--gutter);
  }

  .hero {
    min-height: 680px;
  }

  .chat-visitor {
    max-width: 70%;
  }

  .chat-studio {
    max-width: 70%;
  }

  .event-card img {
    height: 240px;
  }

  .event-card::before {
    height: 240px;
  }
}

/* ==========================================================================
   LARGE DESKTOP
   ========================================================================== */
@media (min-width: 1280px) {
  .hero {
    min-height: 720px;
  }

  .display-1 {
    font-size: clamp(3.5rem, 7vw, 7.5rem);
  }
}