/* Cuisine by Genki — maritime-monochrome remodel
   Design system: .claude/DESIGN.md (cord.com reference)
   Light theme, navy #0b3658 text, single harbor-blue #4e9ad9 accent,
   Figtree type, generous rounding, blue-tinted shadows. */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  color-scheme: light;

  /* Colors */
  --color-midnight-harbor: #0b3658;
  --color-signal-blue: #4e9ad9;
  --color-slate-channel: #486984;
  --color-pale-steel: #688dac;
  --color-sea-fog: #dde7ee;
  --color-ice-tint: #e6f1fa;
  --color-light-mist: #c8d8e4;
  --color-canvas-white: #ffffff;
  --color-active-teal: #42b3b1;

  /* Semantic aliases */
  --text: var(--color-midnight-harbor);
  --text-soft: var(--color-slate-channel);
  --text-meta: var(--color-pale-steel);
  --accent: var(--color-signal-blue);
  --bg: var(--color-canvas-white);
  --wash: var(--color-ice-tint);
  --hairline: var(--color-sea-fog);

  /* Type */
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --radius-cards: 20px;
  --radius-images: 20px;
  --radius-inputs: 24px;
  --radius-buttons: 24px;
  --radius-badges: 5px;
  --radius-pills: 35px;

  /* Shadows (blue-tinted) */
  --shadow-xl: 0px 12px 48px 0px rgba(11, 54, 88, 0.08);
  --shadow-xl-2: 0px 4px 32px 0px rgba(11, 54, 88, 0.08);
  --shadow-md: 0px 4px 12px 0px rgba(11, 54, 88, 0.04);

  /* Layout */
  --max-width: 1200px;
  --section-gap: clamp(64px, 9vw, 112px);
  --header-h: clamp(76px, 8vw, 100px);

  /* Blurred hero backdrop behind the scrolling content */
  --hero-image: url("Images/optimized/Main/IMG_3066.webp");
  --page-scrim: rgba(247, 250, 253, 0.66);

  /* Frosted translucent card surface so content blends with the backdrop */
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 255, 255, 0.74);
  --panel-blur: saturate(1.4) blur(10px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Single fixed hero image behind everything: sharp behind the hero, then
   progressively blurs in place as you scroll down. Same photo, same crop.
   --bg-blur and --scrim-opacity are driven by scroll progress in navbar.js. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--hero-image) center 42% / cover no-repeat;
  transform: scale(1.08);
  filter: blur(var(--bg-blur, 0px)) saturate(1.05);
}

/* Light maritime scrim: absent behind the hero (vivid photo), fades in with
   scroll so navy text and white cards stay readable over the blur. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page-scrim);
  opacity: var(--scrim-opacity, 0);
}

a {
  color: inherit;
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent);
}

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 60;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow-xl-2);
}

/* ---------- Layout wrappers ---------- */

.section {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
  padding-block: var(--section-gap);
}

/* Offset anchor targets so the fixed navbar doesn't cover section tops */
section[id],
[id]:target {
  scroll-margin-top: 96px;
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.12;
}

.section-lead {
  color: var(--text-soft);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-buttons);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: #3f89c8;
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}

.button-secondary:hover {
  background: var(--wash);
  color: var(--text);
}

/* ---------- Header / Resizable Navbar ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
}

.nav-body {
  pointer-events: auto;
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-radius: 18px;
  background: transparent;
  transition: max-width 300ms ease, background-color 300ms ease, box-shadow 300ms ease,
    border-radius 300ms ease, padding 300ms ease, backdrop-filter 300ms ease;
}

.is-scrolled .nav-body {
  max-width: 960px;
  padding: 0.5rem 0.65rem 0.5rem 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 10px 34px rgba(11, 54, 88, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
}

.brand-home {
  display: inline-flex;
  text-decoration: none;
}

.nav-logo {
  flex-shrink: 0;
}

.header-logo {
  width: auto;
  height: clamp(62px, 7.6vw, 90px);
  filter: brightness(0) invert(1);
  transition: filter 250ms ease, height 300ms ease;
}

.is-scrolled .header-logo {
  filter: none;
  height: clamp(52px, 6vw, 72px);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-items a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-items a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.is-scrolled .nav-items a {
  color: var(--text-soft);
}

.is-scrolled .nav-items a:hover {
  color: var(--text);
  background: var(--wash);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-cta.button {
  min-height: 2.6rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.92rem;
}

/* Mobile bar + toggle */
.nav-mobile {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #fff;
  transition: transform 220ms ease, opacity 200ms ease, background-color 250ms ease;
}

.is-scrolled .nav-toggle-bar {
  background: var(--text);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile dropdown menu */
.mobile-menu {
  pointer-events: auto;
  width: 100%;
  max-width: var(--max-width);
  margin-top: 0.5rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 12px 40px rgba(11, 54, 88, 0.16);
  border: 1px solid var(--hairline);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-menu a:not(.button) {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-menu a:not(.button):hover {
  background: var(--wash);
}

.mobile-menu .button {
  margin-top: 0.35rem;
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 54, 88, 0.35) 0%, rgba(11, 54, 88, 0.5) 55%, rgba(11, 54, 88, 0.72) 100%);
}

.hero-content {
  display: grid;
  gap: 1.35rem;
  justify-items: center;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  color: #fff;
}

.hero-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cfe4f6;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 20ch;
}

.hero-subtitle {
  margin: 0;
  color: #eaf2f9;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.5;
  max-width: 62ch;
}

.hero-quote {
  margin: 0;
  color: #cfe4f6;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.social-links a {
  text-decoration: none;
  color: var(--text-soft);
}

.social-links a:hover {
  color: var(--accent);
}

.hero .social-links {
  color: #eaf2f9;
}

.hero .social-links a {
  color: #eaf2f9;
}

.hero .social-links a:hover {
  color: #fff;
}

.hero .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.hero .button-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
}

/* keep scroll cue simple in new layout */
.scroll-down {
  display: none;
}

/* ---------- Featured event ---------- */

.event-feature {
  background: var(--color-canvas-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.5rem;
}

.event-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.event-meta {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 500;
}

.event-feature .button {
  justify-self: start;
}

/* ---------- Services ---------- */

.service-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-btn {
  min-height: 96px;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-cards);
  border: 1px solid var(--hairline);
  background: var(--color-canvas-white);
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.service-btn:hover {
  border-color: var(--color-light-mist);
  background: var(--wash);
  box-shadow: var(--shadow-xl-2);
  transform: translateY(-2px);
}

.service-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.service-contact {
  margin: 1.5rem 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.service-contact a {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- About ---------- */

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
}

.two-column-grid p {
  color: var(--text-soft);
  font-size: 1.075rem;
  line-height: 1.65;
}

/* ---------- Team ---------- */

.cards-grid {
  display: grid;
  gap: 1.25rem;
}

#team .cards-grid {
  grid-template-columns: 1fr;
}

.team-card {
  background: var(--color-canvas-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-xl-2);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  gap: 1rem 1.75rem;
  align-items: start;
}

.team-card > img {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
  border-radius: var(--radius-images);
  border: 1px solid var(--hairline);
}

.team-card-content {
  grid-column: 2;
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}

.team-card-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.team-card-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.card-date {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Animated testimonials (chefs) ---------- */

.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  grid-template-areas:
    "images body"
    "images controls";
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 1.5rem;
  align-items: center;
}

.testimonials-images {
  grid-area: images;
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin-inline: auto;
  perspective: 1000px;
}

.testimonials-body {
  grid-area: body;
}

.t-controls {
  grid-area: controls;
}

.t-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.94) rotate(var(--rot, 0deg));
  transform-origin: bottom center;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1), opacity 500ms ease;
  will-change: transform, opacity;
}

.t-image.is-behind {
  opacity: 0.55;
}

.t-image.is-active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  z-index: 3;
}

.t-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-xl);
  cursor: default;
  pointer-events: none;
}

.testimonials-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 0;
}

.t-panels {
  position: relative;
  display: grid;
}

.t-panel {
  grid-area: 1 / 1;
  display: grid;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none;
}

.t-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.t-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.t-role {
  margin: 0;
}

.t-panel p:not(.t-role) {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

.t-controls {
  display: flex;
  gap: 0.75rem;
}

.t-nav {
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--hairline);
  background: var(--panel);
  -webkit-backdrop-filter: var(--panel-blur);
  backdrop-filter: var(--panel-blur);
  color: var(--text);
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.t-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.t-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Gallery archive ---------- */

.event-archive-list {
  display: grid;
  gap: 1.5rem;
}

.event-archive {
  background: var(--color-canvas-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-xl-2);
  padding: 1.5rem;
}

.event-archive-head {
  margin-bottom: 1.1rem;
}

.event-archive-head h3 {
  margin: 0.2rem 0 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.event-archive-gallery {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.event-archive-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.event-archive-track img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 14px;
  border: 1px solid var(--hairline);
}

.archive-nav {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--hairline);
  background: var(--color-canvas-white);
  color: var(--text);
  border-radius: 999px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.archive-nav:hover {
  background: var(--wash);
  border-color: var(--color-light-mist);
}

/* ---------- Focus-cards gallery ---------- */

.focus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}

.focus-cards[hidden] {
  display: none;
}

.focus-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-cards);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--panel);
  box-shadow: var(--shadow-xl-2);
  transition: transform 300ms ease, filter 300ms ease, box-shadow 300ms ease, opacity 300ms ease;
}

.focus-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 500ms ease;
}

.focus-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  padding: 1.15rem;
  text-align: left;
  background: linear-gradient(to top, rgba(11, 54, 88, 0.82) 0%, rgba(11, 54, 88, 0.25) 45%, transparent 75%);
  transition: opacity 300ms ease;
}

.focus-card-overlay .card-date {
  color: #cfe4f6;
}

.focus-card-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.focus-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Hover-capable devices get the Aceternity focus behavior: the hovered card
   sharpens and reveals its title while the others blur and recede. On touch
   the titles stay visible (overlay default opacity 1). */
@media (hover: hover) {
  .focus-card-overlay {
    opacity: 0;
  }

  .focus-card:hover .focus-card-overlay {
    opacity: 1;
  }

  .focus-card:hover img {
    transform: scale(1.05);
  }

  .focus-card:hover {
    box-shadow: var(--shadow-xl);
  }

  .focus-cards:hover .focus-card:not(:hover) {
    filter: blur(1.5px);
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* The gallery hosts a fixed modal overlay, so it must not create a containing
   block via transform — reveal it with opacity only. */
#gallery.reveal {
  transform: none;
}

/* Focused single-event view: a modal overlay. The carousel pops on top of
   the screen while the rest of the page dims and blurs out of focus. */
.event-focus-list {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: rgba(11, 54, 88, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.event-focus-list.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.gallery-modal-open {
  overflow: hidden;
}

.event-focus {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
  transform: translateY(10px) scale(0.99);
  transition: transform 260ms ease;
}

.event-focus-list.is-open .event-focus {
  transform: none;
}

.event-focus[hidden] {
  display: none;
}

/* Light header over the dark backdrop */
.event-focus .event-focus-head {
  justify-content: center;
  margin-bottom: 0;
  width: 100%;
}

.event-focus .card-date {
  color: #cfe4f6;
}

/* 3D perspective carousel (built from each event's photos in carousel.js) */
.gcar {
  --gcar-size: min(58vmin, 90vw);
  --gcar-gap: min(3.5vmin, 1.25rem);
  position: relative;
  width: var(--gcar-size);
  aspect-ratio: 1;
  margin: 0 auto;
}

.gcar-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  margin: 0 calc(-1 * var(--gcar-gap));
  padding: 0;
  list-style: none;
  transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gcar-slide {
  position: relative;
  flex: 0 0 auto;
  width: var(--gcar-size);
  aspect-ratio: 1;
  margin: 0 var(--gcar-gap);
  perspective: 1200px;
  cursor: pointer;
}

.gcar-slide.is-active {
  cursor: default;
}

.gcar-inner {
  position: absolute;
  inset: 0;
  transform: scale(0.98) rotateX(8deg);
  transform-origin: bottom;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.gcar-slide.is-active .gcar-inner {
  transform: scale(1) rotateX(0deg);
}

.gcar-bg {
  position: absolute;
  inset: 0;
  background: #1d1f2f;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.gcar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 600ms ease-in-out, transform 150ms ease-out;
  pointer-events: none;
}

.gcar-slide.is-active .gcar-img {
  opacity: 1;
  transform: translate3d(calc(var(--x, 0px) / 40), calc(var(--y, 0px) / 40), 0);
}

.gcar-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 800ms ease;
}

.gcar-slide.is-active .gcar-shade {
  opacity: 1;
}

.gcar-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.gcar-btn {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, background-color 160ms ease;
}

.gcar-btn:hover {
  transform: translateY(-1px);
  background: #fff;
}

.gcar-btn:active {
  transform: translateY(1px);
}

.gcar-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.event-focus-head {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.event-focus-back {
  border: 1px solid var(--hairline);
  background: var(--color-canvas-white);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.event-focus-back:hover {
  background: var(--wash);
  border-color: var(--color-light-mist);
}

.event-focus-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.event-focus-titles h3 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0.1rem 0 0;
}

/* ---------- Merch ---------- */

.merch-grid {
  display: grid;
  gap: 1.25rem;
}

.merch-card {
  background: var(--color-canvas-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
}

.merch-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.merch-card-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.merch-card-info h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
}

.merch-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.merch-card-info p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

.merch-card-info .button {
  margin-top: auto;
  align-self: start;
}

/* ---------- Dark CTA banner ---------- */

.cta-banner {
  background: var(--color-midnight-harbor);
  color: #fff;
}

.cta-banner-inner {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  text-align: center;
}

.cta-banner .eyebrow {
  color: var(--color-signal-blue);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.cta-banner p {
  margin: 0;
  color: var(--color-sea-fog);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 56ch;
}

.cta-banner .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-banner .button-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Contact ---------- */

.contact-panel {
  background: var(--color-canvas-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-xl);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.contact-intro p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-field {
  display: grid;
  gap: 0.4rem;
}

.contact-field span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-meta);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.85rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  background: rgba(255, 255, 255, 0.85);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-meta);
}

.contact-field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(78, 154, 217, 0.18);
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-meta);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--wash);
}

.site-footer-inner {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
  padding-block: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand p {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.footer-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease;
}

.footer-icon-link:hover {
  color: var(--accent);
  background: var(--color-canvas-white);
}

.footer-logo-link .footer-brand-logo {
  filter: none;
}

.footer-icon {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-policy-btn {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--color-canvas-white);
  color: var(--text-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-policy-btn:hover {
  border-color: var(--color-light-mist);
  color: var(--text);
}

.footer-policy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Lightbox ---------- */

img:not(.header-logo):not(.merch-product-img):not(.footer-brand-logo):not(.hero-bg) {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 54, 88, 0.82);
  z-index: 60;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-image {
  width: auto;
  max-width: min(94vw, 1280px);
  max-height: 88vh;
  border-radius: var(--radius-images);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 220ms ease, transform 220ms ease;
}

.lightbox-image.is-swapping {
  opacity: 0.18;
  transform: scale(0.985);
}

.image-lightbox.is-open .lightbox-image {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-md);
  touch-action: manipulation;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.7rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ---------- Modals (service + privacy) ---------- */

.service-modal,
.privacy-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 54, 88, 0.78);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.service-modal.is-open,
.privacy-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-modal-panel,
.privacy-modal-panel {
  position: relative;
  width: min(720px, calc(100% - 1rem));
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-cards);
  box-shadow: 0 30px 70px rgba(11, 54, 88, 0.35);
  padding: 1.75rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.privacy-modal-panel {
  max-height: min(88vh, 780px);
  overflow-y: auto;
}

.service-modal.is-open .service-modal-panel,
.privacy-modal.is-open .privacy-modal-panel {
  opacity: 1;
  transform: translateY(0);
}

.service-modal-panel h3,
.privacy-modal-panel h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
  padding-right: 2.5rem;
}

.service-modal-panel p,
.privacy-modal-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.privacy-modal-panel h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1rem 0 0.35rem;
}

.privacy-modal-panel a,
.service-modal-email a {
  color: var(--accent);
  font-weight: 600;
}

.service-modal-email {
  margin-top: 1rem !important;
}

.privacy-policy-updated {
  margin-bottom: 0.85rem !important;
  color: var(--text-meta) !important;
}

.service-modal-close,
.privacy-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  background: #fff;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Frosted card surfaces ---------- */
/* Placed after the card definitions so it overrides their solid white.
   Translucent white + backdrop blur so cards read as glass over the
   blurred hero backdrop rather than opaque blocks. */
.event-feature,
.service-btn,
.team-card,
.event-archive,
.contact-panel {
  background: var(--panel);
  -webkit-backdrop-filter: var(--panel-blur);
  backdrop-filter: var(--panel-blur);
  border-color: rgba(255, 255, 255, 0.55);
}

.merch-card {
  background: var(--panel-strong);
  -webkit-backdrop-filter: var(--panel-blur);
  backdrop-filter: var(--panel-blur);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */

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

  .nav-mobile {
    display: flex;
  }

  /* Mobile does the opposite of desktop: a solid pill at the top that fades
     to fully transparent once scrolled past the hero (so it stops covering
     content). Logo + hamburger read navy in both states. */
  .nav-body {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 8px 24px rgba(11, 54, 88, 0.12);
    border-radius: 9999px;
  }

  .is-scrolled .nav-body {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    max-width: var(--max-width);
  }

  .header-logo {
    filter: none;
  }

  .nav-toggle-bar {
    background: var(--text);
  }

  .two-column-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  /* Arrows flank the photo in the gutters (a 3-column row) so they
     never cover the image; photo shrinks to leave room. */
  .testimonials {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "prev images next"
      "body body body";
    column-gap: 0.5rem;
    row-gap: 1.5rem;
    align-items: center;
  }

  .testimonials-images {
    max-width: 300px;
  }

  /* Promote the two arrows into the grid so they become flanking cells */
  .t-controls {
    display: contents;
  }

  .t-prev { grid-area: prev; }
  .t-next { grid-area: next; }

  .t-nav {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(11, 54, 88, 0.22);
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card > img {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 1.1;
    height: auto;
  }

  .team-card-content {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .service-buttons {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .merch-card {
    grid-template-columns: 1fr;
  }

  .merch-product-img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .event-archive-gallery {
    grid-template-columns: 1fr;
  }

  .event-archive-gallery .archive-nav {
    display: none;
  }

  .event-archive-track {
    grid-auto-columns: 82%;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .site-footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .lightbox-nav {
    top: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    transform: none;
  }

  .lightbox-prev { left: calc(50% - 3rem); }
  .lightbox-next { right: calc(50% - 3rem); }
}

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

  .reveal,
  .button {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
