:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Pair 1: Rakkas display · GFS Neohellenic Greek titles · Inter body */
  --display: "Rakkas", "GFS Neohellenic", Georgia, serif;
  --serif: "GFS Neohellenic", "Rakkas", Georgia, serif;
  --greek: "GFS Neohellenic", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
.palette-dark {
  --bg: #050508;
  --fg: #f7f1e4;
  --muted: #c9bfae;
  --accent: #C9CED6;
  --veil: rgba(5,5,8,0.55);
}
.palette-day {
  --bg: #d9cfc0;
  --fg: #2a241c;
  --muted: #5a5348;
  --accent: #8b4518;
  --veil: rgba(255,250,240,0.35);
  /* terracotta / sea-blue accents */
  --sea: #2a6f8f;
  --terra: #c46a3a;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.35s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(0.95rem + var(--safe-top)) 1.1rem 0.85rem;
  pointer-events: none;
  background: transparent !important;
}
.topbar > * { pointer-events: auto; }

.brand {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-shadow:
    0 1px 2px rgba(0,0,0,0.55),
    0 3px 16px rgba(0,0,0,0.35);
  background: transparent !important;
  border: 0; padding: 0.15rem 0;
}
.palette-day .brand {
  text-shadow: 0 1px 2px rgba(255,255,255,0.7), 0 2px 12px rgba(255,250,240,0.55);
}
.brand:hover { color: var(--accent); }

.menu-btn {
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  background: transparent !important;
  border: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
}
.menu-btn span {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 1.5px rgba(5,5,8,0.55),
    0 0 8px color-mix(in srgb, var(--accent) 70%, transparent),
    0 1px 2px rgba(0,0,0,0.65);
}
.palette-day .menu-btn span {
  background: #8b4518;
  box-shadow:
    0 0 0 2px rgba(255,250,240,0.95),
    0 0 10px rgba(255,248,235,0.9),
    0 0 14px rgba(139,69,24,0.55),
    0 1px 2px rgba(42,36,28,0.35);
}
.palette-dark .menu-btn span {
  background: #C9CED6;
  box-shadow:
    0 0 0 1.5px rgba(5,5,8,0.7),
    0 0 10px rgba(232,213,163,0.75),
    0 1px 3px rgba(0,0,0,0.8);
}

.menu-panel {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4,3,8,0.97);
  backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: calc(5rem + var(--safe-top)) 1.75rem calc(2.5rem + var(--safe-bottom));
}
.palette-day .menu-panel { background: rgba(248,242,230,0.97); }
.menu-panel[hidden] { display: none !important; }
.menu-ornament {
  font-family: var(--serif); color: var(--accent);
  letter-spacing: 0.45em; font-size: 0.9rem;
  margin: 0 0 1.75rem; opacity: 0.85; text-align: center;
}
.menu-panel ul, .static-menu {
  list-style: none; margin: 0 auto; padding: 0; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 28rem; width: 100%;
}
.menu-panel li { border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.menu-panel li:first-child { border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.menu-panel a {
  display: block; padding: 1.05rem 0.15rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 6vw, 2.05rem);
  color: var(--fg); letter-spacing: 0.03em;
}
.menu-panel a .en {
  display: block; margin-top: 0.15rem;
  font-family: var(--serif); font-size: 0.92rem;
  color: var(--muted); font-style: italic;
  letter-spacing: 0.12em; text-transform: none;
}
.menu-close {
  margin: 1.6rem auto 0; padding: 0.85rem 1.5rem;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--muted); font-family: var(--serif);
  letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.75rem;
  background: transparent !important;
}

.scroll-track {
  position: relative; z-index: 10;
  height: 100dvh; height: 100svh;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: transparent;
}
.scroll-track::-webkit-scrollbar { display: none; }
.snap {
  height: 100dvh; height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.stage {
  position: fixed; inset: 0; z-index: 5;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.puddle-base {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.35s ease;
}

/* Type on art — no boxes, no bars */
.dive-cue-home, .intro-copy {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  z-index: 25; /* above .scroll-track (10) so taps reach dive CTA on phones */
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex; flex-direction: column; align-items: center;
  width: min(90vw, 360px);
  padding: 0.5rem 0.75rem;
  background: transparent !important;
  border: 0; border-radius: 0;
  box-shadow: none;
  color: var(--fg);
  text-align: center;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.65),
    0 3px 18px rgba(0,0,0,0.4);
}
.palette-day .dive-cue-home,
.palette-day .intro-copy {
  text-shadow:
    0 0 12px rgba(8,18,40,0.55),
    0 1px 2px rgba(8,18,40,0.85),
    0 2px 8px rgba(8,18,40,0.65),
    0 4px 22px rgba(8,18,40,0.45);
}
.palette-day .intro-copy .el {
  text-shadow:
    0 0 10px rgba(8,18,40,0.5),
    0 1px 2px rgba(8,18,40,0.8),
    0 3px 14px rgba(8,18,40,0.55);
}
.palette-day .intro-copy .en {
  color: #f3efe6;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 14px rgba(8,18,40,0.7),
    0 1px 3px rgba(8,18,40,0.95),
    0 3px 16px rgba(8,18,40,0.65),
    0 0 2px rgba(8,18,40,0.9);
}
.dive-cue-home {
  bottom: calc(6% + var(--safe-bottom));
}
.dive-cue-home[hidden], .intro-copy[hidden] { display: none !important; }

.dive-cue-home.cue-textless .dive-title,
.dive-cue-home.cue-textless .dive-sub,
.dive-cue-home.cue-textless .dive-ornament-once,
.dive-cue-home.cue-textless .dive-rule-once {
  /* titles stay; only dive label removed via JS hidden — keep titles */
}
.dive-cue-home.cue-textless .dive-label { display: none !important; }

.dive-ornament {
  font-family: var(--serif); color: var(--accent);
  font-size: 1.05rem; letter-spacing: 0.55em;
  margin-bottom: 0.25rem;
}
.dive-rule {
  display: block; width: 3.2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0.3rem auto 0.45rem; opacity: 0.85;
}
.dive-title, .intro-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1.08; letter-spacing: 0.03em;
  margin: 0; font-weight: 400;
}
.dive-sub {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--muted);
  letter-spacing: 0.12em; text-transform: lowercase;
  margin: 0.2rem 0 0.75rem;
}
.dive-action {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  margin-top: 0.1rem;
}
.dive-ring {
  width: 56px; height: 56px;
  border: 1.75px solid var(--accent);
  border-radius: 50%;
  position: relative;
  background: transparent !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: pulse 2.6s ease-out infinite;
}
.dive-ring::after {
  content: "✧";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.95rem; color: var(--accent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 55%, transparent);
}
.dive-label {
  font-family: var(--serif);
  font-size: 0.7rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
  background: transparent !important;
}
.dive-label[hidden] { display: none !important; }

.intro-copy {
  top: 50%; bottom: auto;
  transform: translate(-50%, -46%);
  width: min(92vw, 380px);
  gap: 0.35rem;
  max-height: 78dvh;
  overflow: hidden;
}
.intro-title { font-size: clamp(1.55rem, 6.5vw, 2.1rem); margin-bottom: 0.2rem; }
.intro-block { margin: 0.55rem 0 0.35rem; text-align: center; }
.intro-block h2 {
  font-family: var(--display); font-size: 1.15rem; font-weight: 400;
  letter-spacing: 0.08em; margin: 0 0 0.35rem; color: var(--accent);
}
.intro-block h2 .en-inline {
  font-family: var(--serif); font-style: italic; font-size: 0.85em;
  color: var(--muted); letter-spacing: 0.06em; margin-left: 0.25rem;
}
.intro-block .el {
  font-size: 0.92rem; line-height: 1.45; margin: 0 0 0.3rem; color: var(--fg);
}
.intro-block .en {
  font-size: 0.95rem; line-height: 1.45; margin: 0;
  font-style: italic; font-weight: 600; color: var(--fg);
  opacity: 0.95;
}
.intro-scroll-hint {
  margin-top: 0.85rem;
  font-size: 0.65rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); opacity: 0.8;
}

.draft-tag {
  position: fixed; z-index: 20;
  bottom: calc(0.4rem + var(--safe-bottom)); left: 0; right: 0;
  text-align: center;
  font-family: var(--serif); font-size: 0.58rem; letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--fg) 40%, transparent);
  pointer-events: none; text-transform: uppercase;
  background: transparent !important;
}

.dive-overlay {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, transparent 0%, transparent 14%, var(--bg) 52%);
  opacity: 0; transform: scale(1);
  transition: opacity 0.85s ease, transform 1.05s cubic-bezier(0.2,0.8,0.2,1);
}
.dive-overlay[hidden] { display: none !important; }
.dive-overlay.active { display: block; opacity: 1; transform: scale(3.4); }
.home.diving .puddle-base {
  transition: transform 1.05s cubic-bezier(0.2,0.8,0.2,1), filter 0.9s ease;
  transform: scale(2.55);
  filter: blur(2px) brightness(0.7) saturate(1.25);
}
.home.diving .dive-cue-home, .home.diving .intro-copy { opacity: 0; transition: opacity 0.25s; }

/* Section pages — FULLSCREEN cover, no letterbox */
.section-page { min-height: 100dvh; position: relative; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); }
.section-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.section-veil {
  position: fixed; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    transparent 0%, transparent 45%,
    color-mix(in srgb, var(--bg) 35%, transparent) 70%,
    color-mix(in srgb, var(--bg) 55%, transparent) 100%);
  pointer-events: none;
}
.section-hero {
  position: relative; z-index: 2;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(5.5rem + var(--safe-top)) 1.5rem calc(3rem + var(--safe-bottom));
  max-width: 36rem; margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 4px 22px rgba(0,0,0,0.35);
  background: transparent !important;
}
.palette-day .section-hero {
  text-shadow: 0 1px 1px rgba(255,255,255,0.75), 0 2px 14px rgba(255,250,240,0.45);
}
.eyebrow {
  font-family: var(--serif); color: var(--accent);
  letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.68rem; margin: 0;
}
.ornament {
  font-family: var(--serif); color: var(--accent);
  font-size: 1.1rem; margin: 0.5rem 0 0.1rem; letter-spacing: 0.4em;
}
.section-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 11vw, 3.5rem);
  font-weight: 400; line-height: 1.05;
  margin: 0.1rem 0 0.3rem; letter-spacing: 0.02em;
}
.title-en {
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; color: var(--muted); margin: 0 0 0.9rem;
  letter-spacing: 0.1em; text-transform: lowercase;
}
.lede {
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.5;
  color: var(--fg); margin: 0; opacity: 0.92;
}
.lede .en { color: var(--muted); font-style: italic; font-size: 0.95em; }
.uc {
  margin-top: 1.5rem; padding: 0.75rem 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent); font-family: var(--serif);
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent !important;
}


/* Intro legibility: cream type over deepened blue sky band */
.palette-day .intro-copy,
.palette-day .intro-copy .intro-title,
.palette-day .intro-copy .el,
.palette-day .intro-copy .en,
.palette-day .intro-copy h2 {
  color: #f7f1e4;
}
.palette-day .intro-copy h2,
.palette-day .intro-copy .dive-ornament,
.palette-day .intro-scroll-hint {
  color: #C9CED6;
}
.palette-day .intro-copy h2 .en-inline {
  color: rgba(247,241,228,0.85);
}
.palette-day .intro-copy .el {
  color: #f3efe6;
  font-size: 0.98rem;
  font-weight: 500;
  text-shadow:
    0 0 12px rgba(5,12,30,0.75),
    0 1px 3px rgba(5,12,30,0.95),
    0 3px 16px rgba(5,12,30,0.7);
}
.palette-day .intro-copy .en {
  color: #fffaf0;
  font-size: 1.02rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.015em;
  text-shadow:
    0 0 16px rgba(5,12,30,0.85),
    0 1px 3px rgba(5,12,30,1),
    0 3px 18px rgba(5,12,30,0.75),
    0 0 3px rgba(5,12,30,0.95);
}
.palette-day .intro-title {
  color: #f7f1e4;
  text-shadow:
    0 0 14px rgba(5,12,30,0.8),
    0 2px 8px rgba(5,12,30,0.9);
}


/* Day sections: legible EN subtitles + stronger ring (no boxes) */
.palette-day .dive-sub,
.palette-day .title-en {
  color: #163a4f; /* deeper sea-blue ink */
  font-size: 1.28rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  -webkit-text-stroke: 0.35px rgba(255,250,240,0.55);
  paint-order: stroke fill;
  text-shadow:
    0 0 6px rgba(255,252,245,1),
    0 0 14px rgba(255,250,240,1),
    0 0 24px rgba(255,248,235,0.95),
    0 1px 0 #fffaf0,
    0 -1px 0 rgba(255,250,240,0.85),
    1px 0 0 rgba(255,250,240,0.7),
    -1px 0 0 rgba(255,250,240,0.7),
    0 2px 10px rgba(255,250,240,0.85),
    0 1px 2px rgba(22,58,79,0.2);
}
.palette-day .dive-title,
.palette-day .section-hero h1 {
  color: #2a241c;
  text-shadow:
    0 0 12px rgba(255,250,240,0.9),
    0 1px 0 rgba(255,255,255,0.8),
    0 2px 10px rgba(255,248,235,0.7),
    0 1px 2px rgba(42,36,28,0.2);
}
.palette-day .dive-ornament,
.palette-day .dive-rule,
.palette-day .ornament,
.palette-day .eyebrow {
  color: #a85a32; /* terracotta */
  text-shadow:
    0 0 8px rgba(255,250,240,0.85),
    0 1px 0 rgba(255,255,255,0.7);
}
.palette-day .dive-ring {
  border-color: #a85a32;
  border-width: 2.25px;
  box-shadow:
    0 0 0 2px rgba(255,250,240,0.65),
    0 0 0 4px rgba(168,90,50,0.25),
    0 0 18px rgba(168,90,50,0.55),
    0 0 28px rgba(255,250,240,0.45);
}
.palette-day .dive-ring::after {
  color: #8b4518;
  text-shadow:
    0 0 10px rgba(255,250,240,0.95),
    0 0 14px rgba(168,90,50,0.55);
}
.palette-day .lede,
.palette-day .lede .en {
  color: #2a241c;
  text-shadow:
    0 0 10px rgba(255,250,240,0.9),
    0 1px 0 rgba(255,255,255,0.75),
    0 2px 8px rgba(255,248,235,0.65);
}
.palette-day .lede .en {
  color: #1e4d66;
  font-weight: 600;
  font-size: 1.02em;
}
.palette-day .uc {
  color: #8b4518;
  text-shadow:
    0 0 8px rgba(255,250,240,0.9),
    0 1px 0 rgba(255,255,255,0.7);
}
.palette-day .brand {
  color: #2a241c;
  text-shadow:
    0 0 10px rgba(255,250,240,0.95),
    0 1px 0 rgba(255,255,255,0.85),
    0 2px 8px rgba(255,248,235,0.7);
}
/* Night: keep EN muted but ensure readable weight */
.palette-dark .dive-sub,
.palette-dark .title-en {
  color: #d9d0c0;
  font-weight: 500;
  font-size: 1.1rem;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.85),
    0 3px 14px rgba(0,0,0,0.55);
}
.palette-dark .dive-ring {
  border-width: 2px;
  box-shadow:
    0 0 0 1px rgba(232,213,163,0.35),
    0 0 16px rgba(232,213,163,0.45);
}

@keyframes pulse {
  0% {
    box-shadow:
      0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent),
      0 0 14px color-mix(in srgb, var(--accent) 40%, transparent);
    transform: scale(1);
  }
  70% {
    box-shadow:
      0 0 0 18px transparent,
      0 0 8px color-mix(in srgb, var(--accent) 20%, transparent);
    transform: scale(1.06);
  }
  100% {
    box-shadow:
      0 0 0 0 transparent,
      0 0 14px color-mix(in srgb, var(--accent) 40%, transparent);
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dive-ring { animation: none; }
  .dive-overlay, .home.diving .puddle-base, .puddle-base { transition: none !important; }
}


/* —— v0.4e film landing + about (all-dark) —— */
.film-slot {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 0 1.4rem calc(2.6rem + var(--safe-bottom));
  pointer-events: none;
}
.film-slot[hidden] { display: none !important; }
.stage.is-sky .film-slot[hidden],
.stage.is-film .film-slot[hidden],
.stage.clouds-parting .film-slot[hidden] { display: block !important; }
.own-film {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: transparent;
}
.puddle-base.is-poster {
  /* poster shows under empty video; hide when real film playing via opacity if needed */
  z-index: 1;
}
.film-caption {
  position: relative; z-index: 6;
  text-align: center;
  max-width: 22rem;
  background: transparent !important;
  border: 0; box-shadow: none;
}
.film-caption .dive-ornament {
  margin: 0 0 0.65rem;
  color: var(--accent);
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.film-line {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 5.2vw, 1.85rem);
  letter-spacing: 0.06em;
  font-weight: 400;
  color: var(--fg);
  text-shadow:
    0 1px 2px rgba(0,0,0,0.75),
    0 4px 22px rgba(0,0,0,0.55);
}
.film-note {
  margin: 0.55rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-shadow: 0 1px 8px rgba(0,0,0,0.65);
}
.home.diving .film-slot { opacity: 0; transition: opacity 0.25s; }

.about-hero {
  max-width: 28rem;
  padding-bottom: calc(3rem + var(--safe-bottom));
}
.about-block {
  margin: 1.6rem 0 0;
  text-align: left;
  background: transparent !important;
  border: 0;
}
.about-block h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 400;
}
.about-el, .about-en {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--fg);
  text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}
.about-en {
  font-style: italic;
  color: var(--muted);
}


/* v0.7 locked frame — full composites (identical surround baked in).
   Stage stays position:fixed (do not override). Surround/oil layers reserved
   for a future content-only plate pass; hidden while composites carry both. */
.puddle-surround,
.puddle-oil {
  display: none !important;
}
.puddle-inner {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  transition: opacity 0.35s ease;
}
.puddle-base[hidden] { display: none !important; }
.brand {
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.menu-brand {
  text-align: center;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--fg);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}
.film-slot .own-film {
  -webkit-mask-image: url('assets/puddle-mask.png');
  mask-image: url('assets/puddle-mask.png');
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  z-index: 4;
}
.home.diving .puddle-inner { transform: scale(1.08); transition: transform 1.1s ease; }

/* === v0.7 landing + exposure === */
:root { --tilt: 0deg; --tilt-scale: 1; --exposure: 0; }
.exposure-veil {
  position: fixed; inset: 0; z-index: 6; pointer-events: none;
  background: #000;
  opacity: calc(var(--exposure) * 0.42);
  transition: opacity 0.45s ease;
}
.sky-plate {
  position: absolute; inset: 0; z-index: 4;
  overflow: hidden;
}
.sky-plate[hidden] { display: none !important; }
.sky-base {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cloud-veil {
  position: absolute; top: 0; bottom: 0; width: 58%;
  background: url('assets/landing-clouds.webp') center/cover no-repeat;
  filter: brightness(0.55) saturate(1.05);
  transition: transform 0.05s linear;
  will-change: transform;
  pointer-events: none;
}
.cloud-left {
  left: 0;
  /* masks removed — caused a center seam when halves parted */
}
.cloud-right {
  right: 0;
}
.stage.is-sky .puddle-inner { opacity: 1; }
.stage.is-sky .sky-base {
  transition: opacity 0.05s linear, transform 0.05s linear;
  transform-origin: center center;
}
.stage.is-sky.clouds-parting .sky-base {
  /* open a clear window onto the reel underneath */
  opacity: calc(1 - var(--cloud-part, 0) * 1.15);
  transform: scale(calc(1 + var(--cloud-part, 0) * 0.18));
  filter: brightness(calc(1 - var(--cloud-part, 0) * 0.35));
}
.stage.is-sky.clouds-parting .cloud-veil {
  opacity: calc(1 - var(--cloud-part, 0) * 0.55);
}
.stage.is-film .puddle-inner { opacity: 0.35; }
.stage.is-puddle .puddle-inner { opacity: 1; }
.stage.tilting {
  transform: perspective(1200px) rotateX(var(--tilt)) scale(var(--tilt-scale));
  transform-origin: 50% 78%;
  transition: transform 0.05s linear;
  background: #050508;
}
.stage {
  background: #050508;
  overflow: hidden;
}
html, body { background: #050508; }
.stage.is-puddle:not(.tilting) {
  /* v52: keep letterbox centering (was transform:none which shifted stage right) */
  transform: translateX(-50%);
}
.menu-muted {
  opacity: 0.45;
  pointer-events: none;
  font-family: var(--sans, Inter, system-ui, sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  list-style: none;
  margin-top: 1.25rem;
  text-align: center;
}
.menu-muted span { color: var(--fg); }
.dive-title {
  font-size: clamp(1.0rem, 3.5vw, 1.28rem);
  max-width: 11.5em;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-wrap: balance;
  white-space: pre-line;
}
body[data-kind="sky"] .draft-tag,
body[data-kind="film"] .draft-tag { opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  .cloud-veil { transform: none !important; }
  .stage.tilting { transform: none !important; }
  .exposure-veil { transition: none; }
}

.about-outline-wrap {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.about-outline {
  /* Full-frame 1080×1920 plate with equal-aspect coastline already placed; do not stretch. */
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(232,200,122,0.55));
}
.about-outline-wrap { display: none !important; } /* outline baked into still-07 / sub-07 */
.about-page .section-hero { position: relative; z-index: 5; }
.about-philosophy {
  margin-top: 0.75rem;
  font-style: italic;
  opacity: 0.9;
}
.section-page .section-bg {
  object-fit: cover;
  width: 100%; height: 100%;
  position: fixed; inset: 0; z-index: 0;
}


/* === v0.8 cloud/oil kill === */
/* Landing clouds must never paint once past the film section. */
.stage.is-film .sky-plate,
.stage.is-puddle .sky-plate,
.stage.is-film .cloud-veil,
.stage.is-puddle .cloud-veil,
.stage.is-film .sky-base,
.stage.is-puddle .sky-base {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: none !important;
  background-image: none !important;
}
.puddle-oil,
.puddle-surround,
img[src*="oil-overlay"] {
  display: none !important;
  opacity: 0 !important;
}


/* v0.9 tilt-band kill + section icons */
html, body {
  background: #050508 !important;
}
.stage {
  background: #050508;
  overflow: hidden;
}
.stage.tilting {
  /* softer tilt; bg matches surround so no dark strip */
  background: #050508;
}
.dive-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  color: #C9CED6;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
}
.dive-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
.dive-ring.has-icon::after {
  content: none !important;
}
.dive-ring-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9CED6;
  pointer-events: none;
}
.dive-ring-icon svg {
  width: 18px;
  height: 18px;
}
.dive-title-el-extra {
  display: block;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(232, 220, 190, 0.78);
  margin-top: 0.15rem;
  line-height: 1.35;
  max-width: 16rem;
}
.dive-cue.cue-textless .dive-icon {
  display: flex; /* keep matching icon even when Studio dive-text once-mode ends */
}

/* v0.9b no-ornament — matching icons only */
.dive-ornament,
.dive-ornament-once,
.film-caption .dive-ornament {
  display: none !important;
}
.dive-title-el-extra {
  display: block;
  font-family: var(--serif);
  font-size: clamp(0.72rem, 3.1vw, 0.88rem);
  letter-spacing: 0.02em;
  color: rgba(232, 220, 190, 0.9);
  margin: 0.18rem auto 0.1rem;
  line-height: 1.3;
  max-width: 16.5rem;
  text-wrap: balance;
  white-space: normal;
}
.dive-title-el-extra[hidden] { display: none !important; }
.dive-cue-home .dive-sub {
  margin-top: 0.15rem;
  font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  max-width: 16.5rem;
  text-wrap: balance;
  line-height: 1.3;
}
.dive-cue-home .dive-title {
  font-size: clamp(1.05rem, 3.8vw, 1.32rem);
  max-width: 14rem;
}
.film-caption .dive-icon,
.film-icon {
  width: 28px; height: 28px;
  margin: 0 auto 8px;
  color: #C9CED6;
  display: flex; align-items: center; justify-content: center;
}
.film-caption .dive-icon svg,
.film-icon svg { width: 26px; height: 26px; display: block; }

/* v0.10 silver + empty ring */
:root, .palette-dark, body {
  --accent: #C9CED6;
  --icon-silver: #C9CED6;
}
.dive-icon,
.film-icon,
.dive-ring-icon {
  color: var(--icon-silver) !important;
}
.dive-ring::after {
  content: none !important;
}
/* icons restored — was display:none */
.menu-btn span,
.menu-dots,
.brand-dot {
  /* menu dots inherit accent via existing rules */
}
.dive-icon svg,
.film-icon svg {
  filter: drop-shadow(0 0 3px rgba(201, 206, 214, 0.35));
}


/* v0.13 wide plates — desktop sees more street; puddle stays centred */
#puddle-picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
#puddle-picture .puddle-inner {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  transition: opacity 0.35s ease;
}
@media (min-width: 900px) {
  .film-slot .own-film {
    -webkit-mask-image: url('assets/puddle-mask-wide.png');
    mask-image: url('assets/puddle-mask-wide.png');
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-position: center;
    mask-position: center;
  }
  /* Keep dive cue / menu affordances centred over the puddle art */
  .dive-cue-home, .intro-copy {
    width: min(90vw, 420px);
  }
}


/* v0.14 Creative Studio services menu */
.studio-services {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.studio-services .studio-veil {
  background: linear-gradient(
    180deg,
    rgba(5,5,8,0.55) 0%,
    rgba(5,5,8,0.72) 28%,
    rgba(5,5,8,0.88) 60%,
    rgba(5,5,8,0.94) 100%
  );
}
.services-main {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  margin: 0 auto;
  padding: calc(5.2rem + var(--safe-top)) 1.35rem calc(3.5rem + var(--safe-bottom));
}
.services-intro {
  text-align: center;
  margin-bottom: 2.25rem;
}
.services-intro h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 2.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0.15rem 0 0.25rem;
  line-height: 1.08;
}
.services-intro .title-en {
  margin-bottom: 0.85rem;
}
.services-lede {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto;
  max-width: 28rem;
  font-style: italic;
}
.services-icon {
  display: inline-flex;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--accent);
  opacity: 0.92;
}
.services-icon svg { width: 100%; height: 100%; }
.services-intro .services-icon {
  width: 1.85rem;
  height: 1.85rem;
  margin: 0.55rem 0 0.35rem;
}
.svc-block {
  margin: 0 0 1.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.svc-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.95rem 0 0.85rem;
}
.svc-head h2 {
  font-family: var(--display);
  font-size: clamp(1.2rem, 4.6vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--fg);
}
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.svc-list li {
  padding: 0.15rem 0 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.svc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.svc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}
.svc-name {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.svc-price {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.svc-price em {
  font-style: normal;
  opacity: 0.7;
  font-weight: 400;
  font-size: 0.78em;
}
.svc-desc {
  margin: 0.28rem 0 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}
.svc-desc em {
  font-style: normal;
  opacity: 0.75;
  font-size: 0.88em;
}
.svc-featured {
  position: relative;
  padding: 0.65rem 0.75rem 0.75rem;
  margin: 0.1rem -0.35rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, transparent) !important;
}
.svc-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}
.svc-aside {
  margin: 0.25rem 0 1.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.svc-note-inline {
  margin: -0.25rem 0 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
}
.svc-warm {
  margin: 1.5rem 0 1.25rem;
  padding: 1.15rem 1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  text-align: center;
}
.svc-warm p {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--fg);
  opacity: 0.92;
}
.svc-contact-link {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--fg);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.svc-contact-link:hover,
.svc-contact-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  outline: none;
}
.services-back {
  text-align: center;
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.services-back a { color: var(--muted); }
.services-back a:hover { color: var(--accent); }

@media (min-width: 900px) {
  .services-main {
    max-width: 40rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .svc-row { gap: 0.5rem 1.5rem; }
  .svc-name { font-size: 1.12rem; }
  .svc-price { font-size: 0.88rem; }
}


/* v1.0 finished dive pages */
.dive-page {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.dive-page .section-veil {
  /* light veil — translucent panels carry readability */
  background: rgba(5,5,8,0.22);
}
.dive-main {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 0 auto;
  padding: calc(5.1rem + var(--safe-top)) 1.35rem calc(3.2rem + var(--safe-bottom));
}
.dive-main.wide { max-width: 42rem; }
.dive-kicker {
  font-family: var(--serif);
  color: var(--accent);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin: 0 0 0.4rem;
  text-align: center;
}
.dive-icon-row {
  display: flex; justify-content: center; margin: 0.35rem 0 0.45rem;
}
.dive-icon-row svg {
  width: 1.7rem; height: 1.7rem; color: var(--accent); stroke: currentColor;
}
.dive-main h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0.1rem 0 0.25rem;
  text-align: center;
}
.dive-main .title-en {
  text-align: center;
  margin-bottom: 1rem;
}
.dive-lede {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--fg);
  margin: 0 0 0.75rem;
  text-align: center;
  opacity: 0.95;
}
.dive-lede .en {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-style: italic;
  font-size: 0.98em;
}
.dive-body {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.25rem;
  text-align: center;
}
.dive-media {
  margin: 1.1rem 0 1.4rem;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: #050508;
}
.dive-media img,
.dive-media video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.dive-media.portrait img { aspect-ratio: 3/4; object-fit: cover; }
.dive-media.square img { aspect-ratio: 1; object-fit: cover; }
.dive-caption {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  opacity: 0.85;
}
.seq-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0.75rem 0 1.5rem;
}
.seq-strip img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
}
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}
@media (min-width: 640px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
}
.tile {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 0.55rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.tile img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.tile figcaption {
  padding: 0.65rem 0.75rem 0.85rem;
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}
.tile figcaption strong {
  display: block;
  color: var(--fg);
  font-weight: 400;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}
.contact-card {
  margin: 1.25rem auto 1.5rem;
  max-width: 26rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 0.7rem;
  text-align: center;
  background: color-mix(in srgb, var(--bg) 50%, transparent);
}
.contact-card a {
  color: var(--fg);
  display: inline-block;
  margin: 0.35rem 0;
  letter-spacing: 0.02em;
}
.contact-card a:hover { color: var(--accent); }
.contact-meta {
  margin: 0.75rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
}
.enquiry-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px;
  font-family: var(--serif);
  letter-spacing: 0.06em;
  color: var(--fg);
}
.enquiry-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.soft-note {
  margin: 1.25rem 0;
  padding: 0.95rem 1rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.back-puddle {
  text-align: center;
  margin: 1.75rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.back-puddle a { color: var(--muted); }
.back-puddle a:hover { color: var(--accent); }
.film-coming {
  text-align: center;
}
.film-coming .film-line {
  letter-spacing: 0.12em;
  text-transform: lowercase;
}
.film-coming .film-note {
  opacity: 0.75;
  font-style: italic;
}
@media (min-width: 900px) {
  .dive-main { max-width: 40rem; padding-left: 2rem; padding-right: 2rem; }
  .dive-main.wide { max-width: 48rem; }
}


/* Pair 1: --display is Rakkas + GFS Neohellenic; unicode-range sends Latin→Rakkas, Greek→Neohellenic. */

/* Portfolio long pages + linked tiles */
.dive-main.portfolio-wide { max-width: 48rem; }
@media (min-width: 900px) {
  .dive-main.portfolio-wide { max-width: 56rem; }
}
.case-block {
  margin: 2rem 0 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
}
.case-block h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 0.35rem;
}
.case-meta {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.folio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0.5rem 0 0.75rem;
}
@media (min-width: 640px) {
  .folio-grid { grid-template-columns: 1fr 1fr; }
  .folio-grid .span-2 { grid-column: 1 / -1; }
}
.folio-grid figure {
  margin: 0;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  background: #050508;
}
.folio-grid img,
.folio-grid video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.folio-grid .span-2 img,
.folio-grid .span-2 video {
  aspect-ratio: 16/10;
}
.folio-grid figcaption {
  padding: 0.45rem 0.65rem 0.6rem;
  font-family: var(--serif);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.35;
}
a.tile-link {
  color: inherit;
  display: block;
  text-decoration: none;
}
a.tile-link:hover .tile {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
a.tile-link:hover figcaption strong { color: var(--accent); }
.tile-grid.folio-index {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .tile-grid.folio-index { grid-template-columns: 1fr 1fr; }
}
.svc-sample {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  opacity: 0.9;
}
.svc-sample:hover { opacity: 1; text-decoration: underline; }
.svc-sample-muted {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
}


/* === v40: translucent content panels over fullscreen bg === */
.section-page .section-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
.section-page .section-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(5,5,8,0.28);
}
.section-page .dive-main,
.section-page .services-main {
  position: relative;
  z-index: 2;
  background: rgba(5, 5, 8, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 1rem;
  padding: 1.35rem 1.15rem 1.6rem;
  margin-top: calc(4.6rem + var(--safe-top));
  margin-bottom: calc(1.5rem + var(--safe-bottom));
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
/* dive-main already has its own padding — neutralize double top from rule above */
.section-page .dive-main {
  padding-top: 1.35rem;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
  padding-bottom: 1.6rem;
}
.section-page .dive-main.wide,
.section-page .dive-main.portfolio-wide {
  /* keep width constraints from earlier rules */
}
.section-page .services-main {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.35rem 1.15rem 1.6rem;
  margin-top: calc(4.6rem + var(--safe-top));
}
@media (min-width: 900px) {
  .section-page .dive-main,
  .section-page .services-main {
    padding: 1.75rem 1.75rem 2rem;
    background: rgba(5, 5, 8, 0.58);
  }
}
/* Nested figures inside panel already bordered — keep readable */
.section-page .folio-grid figure,
.section-page .dive-media,
.section-page .tile {
  background: rgba(5,5,8,0.45);
}
/* Ensure menu + brand remain tappable above bg */
.section-page .topbar { z-index: 40; }
.section-page .menu-panel { z-index: 50; }
.section-page a, .section-page button {
  touch-action: manipulation;
}


/* === v40b: scrollable sections + tappable dive === */
.section-page {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.dive-cue-home {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.dive-cue-home .dive-action {
  padding: 0.5rem 1.25rem 0.75rem;
  min-width: 88px;
  min-height: 88px;
  justify-content: center;
}
/* Keep scroll-track from capturing above dive via stacking — dive is fixed z25 */
.scroll-track { z-index: 10; }
.topbar { z-index: 40; }
.menu-panel { z-index: 50; }
.dive-cue-home, .intro-copy { z-index: 25; }


/* === v41: spot enter (no dive CTA) + looping stills + price toggle === */
.dive-cue-home.spot-enter,
.dive-cue-home {
  cursor: pointer;
}
.dive-cue-home .dive-action { display: flex !important; }
.dive-cue-home.is-pressed {
  transform: translateX(-50%) scale(0.985);
  opacity: 0.92;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.dive-cue-home .dive-title {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}
@media (hover: hover) and (pointer: fine) {
  .dive-cue-home:hover .dive-title {
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  }
}
.puddle-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.puddle-loop.is-playing { opacity: 1; }
.puddle-loop[hidden] { display: none !important; }
/* when loop playing, soften still underneath */
.stage.is-puddle .puddle-inner { z-index: 1; }
.stage.has-loop .puddle-inner { opacity: 0; }

.prices-hidden .svc-price,
.prices-hidden .svc-desc em,
body.prices-hidden .svc-price { visibility: hidden; }
/* Keep layout: use opacity so rows don't jump */
.studio-services:not(.prices-shown) .svc-price {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}
.studio-services:not(.prices-shown) .svc-desc em { opacity: 0; }
.studio-services .price-toggle-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.25rem 0 1.25rem;
  padding: 0.85rem 0.15rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.studio-services .price-toggle {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: transparent;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
}
.studio-services .price-toggle[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.studio-services .price-toggle-note {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  flex: 1 1 12rem;
}
.svc-sample { display: none !important; }


/* Original Content social links */
.social-links { margin-top: 1rem; }
.social-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: rgba(0,0,0,0.25);
}
.social-btn:hover, .social-btn:focus-visible {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}


/* === v45: English under title + oil-ripple enter + cloud part === */
.dive-cue-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}
.dive-cue-home .dive-title {
  order: 1;
  margin: 0;
}
.dive-cue-home .dive-sub {
  order: 2;
  margin: 0.05rem 0 0.15rem;
  opacity: 0.85;
  font-style: italic;
  letter-spacing: 0.04em;
}
.dive-cue-home .dive-title-el-extra {
  order: 3;
  font-size: 0.72rem;
  opacity: 0.55;
  margin: 0;
  letter-spacing: 0.02em;
}
.dive-cue-home .dive-icon {
  order: 0;
}
.dive-cue-home .dive-action {
  order: 4;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  padding: 0.35rem;
  min-width: 72px;
  min-height: 72px;
  background: transparent;
  border: 0;
  pointer-events: none; /* parent button handles tap */
}
.dive-ring.oil-ripple {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  /* thin-film oil slick: magenta / gold / teal / violet */
  background:
    conic-gradient(from 210deg,
      #ff4fd8 0deg,
      #ffe28a 70deg,
      #4dffd2 140deg,
      #8b6cff 210deg,
      #ff4fd8 280deg,
      #7ee7ff 330deg,
      #ff4fd8 360deg),
    radial-gradient(circle at 35% 30%,
      rgba(255,255,255,0.55) 0%,
      rgba(255,255,255,0.08) 28%,
      transparent 55%);
  background-blend-mode: screen, normal;
  box-shadow:
    0 0 0 1px color-mix(in srgb, #ffe28a 45%, #4dffd2),
    0 0 16px color-mix(in srgb, #ff4fd8 40%, transparent),
    0 0 28px color-mix(in srgb, #4dffd2 28%, transparent),
    inset 0 0 10px rgba(255,255,255,0.25);
  position: relative;
  animation: oilPulse 2.8s ease-out infinite;
  overflow: visible;
  filter: saturate(1.25);
}
.dive-ring.oil-ripple::after { content: none !important; display: none !important; }
.oil-ripple-r {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: none;
  opacity: 0;
  transform: scale(0.55);
  animation: oilRippleOut 2.8s ease-out infinite;
  pointer-events: none;
  /* iridescent thin rings */
  box-shadow:
    0 0 0 1.5px #ff4fd8,
    0 0 0 2.5px #ffe28a,
    0 0 12px color-mix(in srgb, #4dffd2 55%, transparent);
}
.oil-r1 { animation-delay: 0s; }
.oil-r2 {
  animation-delay: 0.9s;
  box-shadow:
    0 0 0 1.4px #ffe28a,
    0 0 0 2.4px #8b6cff,
    0 0 14px color-mix(in srgb, #ff4fd8 40%, transparent);
}
.oil-r3 {
  animation-delay: 1.8s;
  box-shadow:
    0 0 0 1.3px #4dffd2,
    0 0 0 2.3px #ff4fd8,
    0 0 16px color-mix(in srgb, #8b6cff 45%, transparent);
}

@keyframes oilPulse {
  0%, 100% { transform: scale(1); filter: saturate(1.05) brightness(1); }
  50% { transform: scale(1.04); filter: saturate(1.25) brightness(1.08); }
}
@keyframes oilRippleOut {
  0% { opacity: 0.85; transform: scale(0.55); }
  70% { opacity: 0.2; }
  100% { opacity: 0; transform: scale(2.15); }
}
@media (prefers-reduced-motion: reduce) {
  .dive-ring.oil-ripple,
  .oil-ripple-r { animation: none !important; }
  .oil-ripple-r { opacity: 0.45; transform: scale(1.15); }
}

/* Section pages: title then English directly under */
.dive-main > h1 + .title-en,
.dive-main h1 + .title-en {
  margin-top: 0.2rem;
  margin-bottom: 0.85rem;
  opacity: 0.82;
  font-style: italic;
}
.dive-main > .dive-kicker { order: -2; }
.dive-main > .dive-icon-row { order: -1; }

/* Opening clouds parting — reveal reel under sky plate */
.stage.is-sky .sky-plate { z-index: 4; }
.stage.is-sky .puddle-inner,
.stage.is-sky #puddle-picture {
  z-index: 2;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}
.stage.is-sky .sky-plate {
  z-index: 4;
  pointer-events: none;
  /* part open from center to reveal reel under */
  clip-path: inset(0 calc(var(--cloud-part, 0) * 38%) 0 calc(var(--cloud-part, 0) * 38%));
  transition: clip-path 0.05s linear;
}
.stage.is-sky .cloud-veil {
  /* keep soft edge as halves slide */
  opacity: calc(1 - var(--cloud-part, 0) * 0.25);
}
.stage.is-sky #puddle-picture { position: absolute; inset: 0; }
.stage.clouds-parting .cloud-veil {
  transition: transform 0.05s linear;
  will-change: transform;
}
.cloud-veil {
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}



/* === v50: one puddle frame + still-at-rest / animate-on-enter === */
.puddle-inner {
  animation: puddleShimmer 9s ease-in-out infinite;
  transform-origin: 50% 55%;
}
@keyframes puddleShimmer {
  0%, 100% { filter: brightness(1) saturate(1); transform: scale(1); }
  50% { filter: brightness(1.03) saturate(1.04); transform: scale(1.008); }
}
@media (prefers-reduced-motion: reduce) {
  .puddle-inner { animation: none !important; }
}

/* At rest: never hide still under a playing loop */
.stage.is-puddle:not(.enter-animating) .puddle-loop {
  opacity: 0 !important;
  visibility: hidden;
}
.stage.is-puddle:not(.enter-animating) .puddle-inner {
  opacity: 1 !important;
}
.stage.enter-animating.has-loop .puddle-inner {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.stage.enter-animating .puddle-loop.is-playing {
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* Enter: zoom the whole puddle frame (picture + loop) */
.home.diving #puddle-picture,
.home.diving .puddle-loop,
.home.diving .puddle-base {
  transition: transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1s ease, opacity 0.9s ease;
  transform: scale(2.35);
  filter: blur(1.5px) brightness(0.78) saturate(1.2);
  transform-origin: 50% 48%;
}
.home.diving.enter-css-fallback #puddle-picture {
  /* CSS-only fallback when loop not ready */
  animation: enterZoomFade 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes enterZoomFade {
  0% { transform: scale(1); filter: none; opacity: 1; }
  100% { transform: scale(2.5); filter: blur(2px) brightness(0.65) saturate(1.25); opacity: 0.35; }
}
.home.diving-fade #puddle-picture,
.home.diving-fade .puddle-loop {
  transition: opacity 0.28s ease !important;
  opacity: 0 !important;
  transform: none !important;
  filter: none !important;
}
.dive-overlay.fade-only {
  background: var(--bg);
  transform: none !important;
  transition: opacity 0.28s ease !important;
}

/* Tap-origin oil ripple during enter */
.tap-enter-ripple {
  position: fixed;
  z-index: 90;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle,
    rgba(255,210,255,0.55) 0%,
    rgba(126,231,255,0.35) 28%,
    rgba(255,224,138,0.3) 52%,
    transparent 72%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, #ff9ad5 55%, #7ee7ff),
    0 0 24px color-mix(in srgb, #7ee7ff 35%, transparent);
  transform: scale(0.4);
  transition: transform 1.05s cubic-bezier(0.15, 0.75, 0.2, 1), opacity 1.05s ease;
}
.tap-enter-ripple.is-on {
  opacity: 0.85;
  transform: scale(18);
}

/* Version tag: corner, away from puddle art / labels */
.draft-tag {
  bottom: auto;
  top: calc(0.55rem + var(--safe-top, 0px));
  left: auto;
  right: 0.65rem;
  width: auto;
  text-align: right;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--fg) 28%, transparent);
  z-index: 18;
}

/* Keep oil-ripple enter button clear of street edge on small phones */
@media (max-width: 430px) {
  .dive-cue-home {
    bottom: calc(7.5% + var(--safe-bottom));
    width: min(88vw, 340px);
  }
  .dive-cue-home .dive-action {
    margin-top: 0.35rem;
  }
}

/* Soften cloud-part clip so edges don't hard-crop oddly */
.stage.is-sky .sky-plate {
  clip-path: inset(0 calc(var(--cloud-part, 0) * 38%) 0 calc(var(--cloud-part, 0) * 38%) round 12px);
}

/* === v51: desktop vertical letterbox + oil SVG button + immersive motion + projects carousels === */

/* --- Desktop: same 9:16 scene, centred, black surround (no wide plates) --- */
html, body.home {
  background: #050508;
}
body.home {
  overflow: hidden;
}
.stage {
  /* Cap stage to 9:16 of viewport height; centre with black pillarbox. */
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: min(100vw, calc(100dvh * 9 / 16));
  height: 100dvh;
  max-height: 100dvh;
  transform: translateX(-50%);
  background: #050508;
}
/* Compose letterbox centering with existing tilt */
.stage.tilting {
  transform: translateX(-50%) perspective(1200px) rotateX(var(--tilt)) scale(var(--tilt-scale));
}
@media (min-width: 900px) {
  .stage {
    width: min(100vw, calc(100dvh * 9 / 16));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
  }
  /* Never switch to wide puddle mask on desktop */
  .film-slot .own-film,
  .puddle-loop,
  #puddle-picture,
  .puddle-inner,
  .puddle-base {
    -webkit-mask-image: url('assets/puddle-mask.png') !important;
    mask-image: url('assets/puddle-mask.png') !important;
    -webkit-mask-size: cover !important;
    mask-size: cover !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
  }
  .dive-cue-home, .intro-copy {
    width: min(90%, 380px);
  }
}
/* Soft feathered puddle rim (CSS) over painted mask */
.stage.is-puddle #puddle-picture,
.stage.is-puddle .puddle-loop,
.stage.is-puddle .puddle-base {
  -webkit-mask-image: url('assets/puddle-mask.png');
  mask-image: url('assets/puddle-mask.png');
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-position: center;
  mask-position: center;
  /* slight blur of mask edges via filter on a wrapper is costly; use soft vignette instead */
}
.stage.is-puddle::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background: radial-gradient(ellipse 62% 48% at 50% 52%,
    transparent 52%,
    rgba(5,5,8,0.18) 68%,
    rgba(5,5,8,0.55) 82%,
    rgba(5,5,8,0.92) 100%);
  opacity: 0.85;
  mix-blend-mode: multiply;
}

/* --- Oil-slick enter button with centred section icon --- */
.oil-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.dive-ring.oil-ripple {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible;
  position: relative;
  animation: oilPulse 2.8s ease-out infinite;
  display: grid;
  place-items: center;
}
.oil-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.oil-ring-svg .oil-disk {
  opacity: 0.88;
}
.oil-ring-svg .oil-rim {
  opacity: 0.95;
}
/* Override v0.10 hide — icon lives in the oil disk */
.dive-ring.oil-ripple .dive-ring-icon,
.dive-ring.has-icon .dive-ring-icon {
  display: flex !important;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #0a0a0e !important;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.35));
  pointer-events: none;
}
.dive-ring.oil-ripple .dive-ring-icon svg {
  width: 22px;
  height: 22px;
  stroke: #0a0a0e;
  stroke-width: 1.7;
}
.dive-ring.oil-ripple .oil-ripple-r {
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .oil-ring-svg .oil-disk,
  .oil-ring-svg .oil-rim { filter: none !important; }
  .oil-defs animate { display: none; }
}

/* --- Immersive scroll crossfade between reflections --- */
.puddle-crossfade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
  -webkit-mask-image: url('assets/puddle-mask.png');
  mask-image: url('assets/puddle-mask.png');
  -webkit-mask-size: cover;
  mask-size: cover;
}
.puddle-crossfade.is-visible { opacity: 1; transition: none; }
.puddle-crossfade.is-fading { opacity: 0; }
.stage.spot-crossfading #puddle-picture .puddle-inner {
  /* incoming still settles under overlay */
  opacity: 1;
}
.stage.spot-parallax-nudge #puddle-picture {
  animation: spotParallax 0.48s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes spotParallax {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(1.2%) scale(1.012); }
  100% { transform: translateY(0) scale(1); }
}
.stage.spot-settled #puddle-picture .puddle-inner {
  animation: spotSettle 0.42s ease;
}
@keyframes spotSettle {
  from { filter: brightness(1.04) saturate(1.06); }
  to { filter: none; }
}

/* --- Ambient water on existing stills (transform-only, phone-safe) --- */
.puddle-inner {
  /* replace expensive filter shimmer with subtle transform drift */
  animation: none;
}
.stage.ambient-water:not(.enter-animating) #puddle-picture .puddle-inner {
  animation: ambientDrift 14s ease-in-out infinite;
  will-change: transform;
  transform-origin: 50% 55%;
}
@keyframes ambientDrift {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.012) translate3d(0.4%, -0.35%, 0); }
}
/* Soft rain-ripple highlight via pseudo on stage (CSS only, no new media) */
.stage.ambient-water.is-puddle::before {
  content: '';
  position: absolute;
  inset: 18% 12% 28% 12%;
  z-index: 5;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.07) 0%, transparent 42%),
    radial-gradient(circle at 70% 55%, rgba(180,230,255,0.05) 0%, transparent 38%);
  animation: ambientShimmer 7.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
  opacity: 0.7;
}
@keyframes ambientShimmer {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .stage.ambient-water:not(.enter-animating) #puddle-picture .puddle-inner,
  .stage.ambient-water.is-puddle::before,
  .stage.spot-parallax-nudge #puddle-picture,
  .stage.spot-settled #puddle-picture .puddle-inner {
    animation: none !important;
  }
  .puddle-crossfade { transition: none !important; }
}

/* --- Section page enter / exit reveals --- */
body.section-page .section-bg {
  transform: scale(1.06);
  opacity: 0.85;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}
body.section-page .dive-main,
body.section-page .services-main,
body.section-page .projects-main {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease 0.12s, transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s;
}
body.section-page.page-revealed .section-bg {
  transform: scale(1);
  opacity: 1;
}
body.section-page.page-revealed .dive-main,
body.section-page.page-revealed .services-main,
body.section-page.page-revealed .projects-main {
  opacity: 1;
  transform: translateY(0);
}
body.section-page.page-exiting .dive-main,
body.section-page.page-exiting .services-main,
body.section-page.page-exiting .projects-main {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition-duration: 0.35s;
}
body.section-page.page-exiting .section-bg {
  transform: scale(1.08);
  opacity: 0.5;
  filter: blur(2px);
  transition-duration: 0.4s;
}
@media (prefers-reduced-motion: reduce) {
  body.section-page .section-bg,
  body.section-page .dive-main,
  body.section-page .services-main,
  body.section-page .projects-main {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }
}

/* --- Projects index: horizontal carousels --- */
.projects-main { max-width: 42rem; }
.proj-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin: 1.75rem 0 2rem;
}
.proj-card {
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.proj-carousel {
  position: relative;
  background: #0a0a0e;
}
.proj-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
}
.proj-track::-webkit-scrollbar { display: none; }
.proj-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.proj-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  aspect-ratio: 4 / 3;
  background: #0a0a0e;
}
.proj-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.proj-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(5,5,8,0.55);
  color: #eee;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 0;
}
.proj-nav:disabled { opacity: 0.25; cursor: default; }
.proj-prev { left: 0.5rem; }
.proj-next { right: 0.5rem; }
.proj-dots {
  position: absolute;
  bottom: 0.55rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 2;
  pointer-events: none;
}
.proj-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}
.proj-dot.is-on { background: #fff; transform: scale(1.2); }
.proj-meta {
  padding: 0.95rem 1.05rem 1.15rem;
}
.proj-title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.2rem;
  letter-spacing: 0.02em;
}
.proj-sub {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 0.92rem;
  opacity: 0.75;
  font-style: italic;
}
.proj-more {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 0.1rem;
}
.proj-more:hover { color: #fff; border-bottom-color: #fff; }
@media (min-width: 720px) {
  .proj-slide { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: reduce) {
  .proj-track { scroll-behavior: auto; }
}

/* --- Lightbox --- */
.lb-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5,5,8,0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.28s ease;
  padding: 2rem;
}
.lb-root.is-on { opacity: 1; }
.lb-root.is-out { opacity: 0; }
.lb-img {
  max-width: min(96vw, 1100px);
  max-height: 86dvh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity 0.2s ease;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
body.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .lb-root { transition: none; }
}

/* View Transitions (progressive) */
@supports (view-transition-name: none) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.45s;
  }
}

/* Reverse of enter when landing back on home from a section */
body.home.returning-from-section #puddle-picture {
  transform: scale(1.35);
  filter: blur(1px) brightness(0.85);
  opacity: 0.7;
}
body.home.returning-from-section.returned-settled #puddle-picture {
  transform: scale(1);
  filter: none;
  opacity: 1;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.55s ease, opacity 0.5s ease;
}
body.home.returning-from-section .dive-cue-home {
  opacity: 0;
}
body.home.returning-from-section.returned-settled .dive-cue-home {
  opacity: 1;
  transition: opacity 0.45s ease 0.15s;
}
@media (prefers-reduced-motion: reduce) {
  body.home.returning-from-section #puddle-picture,
  body.home.returning-from-section .dive-cue-home {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* Scroll track stays full-viewport for snap; art is letterboxed in .stage */
body.home .scroll-track {
  background: transparent;
}

/* === v52: reliability — landing tagline, simple fade, outline buttons, menu groups === */

/* Stage letterbox: keep vertical frame on desktop; full bleed on narrow phones */
.stage {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: min(100vw, calc(100dvh * 9 / 16));
  height: 100dvh;
  max-height: 100dvh;
  transform: translateX(-50%);
  background: #050508;
}
.stage.tilting { transform: translateX(-50%); } /* tilt disabled in v52 JS */

/* Kill cloud parting leftovers */
.cloud-veil, .sky-plate { display: none !important; }

/* Landing plate + tagline */
.landing-plate {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: calc(1 - var(--land-fade, 0));
  transition: opacity 0.05s linear;
}
.landing-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.9);
}
.landing-tagline {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 1.25rem;
  max-width: 14ch;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #f4efe6;
  text-shadow:
    0 2px 24px rgba(0,0,0,0.55),
    0 1px 2px rgba(0,0,0,0.8);
  text-wrap: balance;
}
/* Film/poster rises under landing as you scroll */
.stage.is-sky #puddle-picture,
.stage.is-sky .puddle-inner {
  opacity: var(--land-fade, 0) !important;
  z-index: 4;
  transition: opacity 0.05s linear;
}
.stage.is-film #puddle-picture,
.stage.is-film .puddle-inner {
  opacity: 1 !important;
}
body.home {
  --land-fade: 0;
  background: #050508;
}
@media (prefers-reduced-motion: reduce) {
  .landing-plate,
  .stage.is-sky #puddle-picture,
  .stage.is-sky .puddle-inner {
    transition: none !important;
  }
}

/* Oil enter: OUTLINE only, clear inside, icon centre */
.dive-ring.oil-ripple {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  display: grid;
  place-items: center;
  position: relative;
  animation: oilPulse 2.8s ease-out infinite;
  overflow: visible;
}
.oil-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.oil-ring-svg .oil-disk { display: none !important; }
.dive-ring.oil-ripple .dive-ring-icon,
.dive-ring.has-icon .dive-ring-icon {
  display: flex !important;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #e8e4dc !important;
  background: transparent !important;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.55));
  pointer-events: none;
}
.dive-ring.oil-ripple .dive-ring-icon svg {
  width: 22px;
  height: 22px;
  stroke: #e8e4dc;
  stroke-width: 1.6;
}
/* Expanding rings stay outline-like */
.oil-ripple-r {
  background: transparent !important;
  border: none;
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, #ff4fd8 70%, #4dffd2),
    0 0 10px color-mix(in srgb, #4dffd2 25%, transparent);
}

/* Generic outline buttons (clear fill) */
.btn-outline,
button.price-toggle,
.menu-close,
a.proj-more {
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent) !important;
  color: var(--fg);
  border-radius: 999px;
  box-shadow: none !important;
}
button.price-toggle {
  padding: 0.65rem 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  cursor: pointer;
}
a.proj-more {
  display: inline-block;
  padding: 0.55rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
a.proj-more:hover {
  border-color: #fff !important;
  color: #fff;
}
.menu-close {
  margin-top: 1.75rem;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
}

/* Menu: clearer groups, bigger taps */
.menu-panel ul, .static-menu {
  justify-content: flex-start;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}
.menu-panel li.menu-group {
  border: 0 !important;
  margin: 1.35rem 0 0.35rem;
  padding: 0;
  list-style: none;
}
.menu-panel li.menu-group-first { margin-top: 0.25rem; }
.menu-group-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 70%, transparent);
  padding: 0.35rem 0.15rem 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.menu-panel li.menu-item {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
}
.menu-panel li.menu-item a {
  padding: 1.15rem 0.2rem;
  min-height: 3.25rem;
}
.menu-panel li.menu-muted {
  margin-top: 1.5rem;
  border: 0 !important;
  opacity: 0.55;
  padding: 0.75rem 0.15rem;
}

/* Disable heavy ambient / vignette extras that fought readability */
.stage.ambient-water.is-puddle::before,
.stage.ambient-water.is-puddle::after,
.stage.is-puddle::after {
  display: none !important;
}
.stage.ambient-water:not(.enter-animating) #puddle-picture .puddle-inner {
  animation: none !important;
}

/* Simpler crossfade layer */
.puddle-crossfade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
  -webkit-mask-image: url('assets/puddle-mask.png');
  mask-image: url('assets/puddle-mask.png');
  -webkit-mask-size: cover;
  mask-size: cover;
}
.puddle-crossfade.is-visible { opacity: 1; transition: none; }
.puddle-crossfade.is-fading { opacity: 0; }

/* Scroll track: reliable snap */
.scroll-track {
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}
.snap {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100dvh;
  height: 100svh;
}

@media (prefers-reduced-motion: reduce) {
  .dive-ring.oil-ripple,
  .oil-ripple-r { animation: none !important; }
  .puddle-crossfade { transition: none !important; }
}

/* === v52 overrides (win over older blocks) === */
.stage,
.stage.is-puddle,
.stage.is-puddle:not(.tilting),
.stage.is-film,
.stage.is-sky,
.stage.tilting {
  /* never use inset shorthand — it clears left */
  top: 0 !important;
  bottom: 0 !important;
  left: 50% !important;
  right: auto !important;
  width: min(100vw, calc(100dvh * 9 / 16)) !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  transform: translateX(-50%) !important;
  background: #050508;
}
.stage.has-loop:not(.enter-animating) .puddle-inner { opacity: 1 !important; }
.stage.is-film .puddle-inner { opacity: 1 !important; }
.stage.is-sky .puddle-inner,
.stage.is-sky #puddle-picture {
  opacity: var(--land-fade, 0) !important;
}
.stage.is-sky.clouds-parting .sky-base,
.stage.is-sky .sky-plate,
.cloud-veil { display: none !important; }
.topbar { z-index: 40; }
.dive-cue-home {
  z-index: 20;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(100vw, calc(100dvh * 9 / 16)) !important;
  max-width: min(100vw, calc(100dvh * 9 / 16)) !important;
}
.menu-panel { z-index: 50; }
.menu-btn.btn-outline {
  background: transparent !important;
  border: 1px solid rgba(232,228,220,0.55) !important;
  box-shadow: none !important;
}
.menu-panel {
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  overflow: hidden;
}
.menu-panel ul, .menu-panel .static-menu {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}
.menu-panel .menu-close {
  flex: 0 0 auto;
  margin-top: 0.75rem;
}


/* === v56: cherry metal, sparkles, simple page fades, no expanding rings === */
:root {
  --cherry-1: #5a0a14;
  --cherry-2: #c4122e;
  --cherry-3: #ff4d6a;
  --cherry-glow: #ffd0d6;
}

.accent-cherry,
.landing-tagline.accent-cherry {
  color: var(--cherry-3);
  background: linear-gradient(105deg, #5a0a14 0%, #c4122e 28%, #ff6b81 48%, #ffe4e8 52%, #e11d48 62%, #7a0c1c 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: cherryTextSheen 7.5s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 1px 10px rgba(196, 18, 46, 0.28));
}
@keyframes cherryTextSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .accent-cherry, .landing-tagline.accent-cherry { animation: none; background-position: 40% 50%; }
}

/* Dive title accent word */
.dive-title .accent-cherry,
.dive-main h1 .accent-cherry,
.services-intro h1 .accent-cherry {
  display: inline;
}

/* Cherry enter ring — outline only, no expanding circles */
.dive-ring.cherry-ring,
.dive-ring.oil-ripple {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  animation: none !important;
}
.oil-ripple-r { display: none !important; }
.cherry-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.cherry-rim {
  filter: drop-shadow(0 0 3px rgba(225, 29, 72, 0.45));
}
.cherry-sheen-arc {
  animation: cherryRingGlint 3.8s ease-in-out infinite;
  opacity: 0.95;
}
@keyframes cherryRingGlint {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.35; }
  40% { opacity: 1; }
  55% { stroke-dashoffset: -90; opacity: 0.9; }
  70%, 100% { stroke-dashoffset: -140; opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .cherry-sheen-arc { animation: none; opacity: 0.7; stroke-dashoffset: -40; }
}
.dive-ring.cherry-ring .dive-ring-icon,
.dive-ring.has-icon .dive-ring-icon {
  display: flex !important;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #f8e9ec !important;
  background: transparent !important;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.55));
  pointer-events: none;
}
.dive-ring.cherry-ring .dive-ring-icon svg {
  width: 22px;
  height: 22px;
  stroke: #f8e9ec;
  stroke-width: 1.6;
}

/* Sparkle burst on tap */
.sparkle-burst {
  position: fixed;
  z-index: 120;
  width: 0;
  height: 0;
  pointer-events: none;
}
.sparkle-burst span {
  position: absolute;
  left: 0; top: 0;
  width: var(--size, 4px);
  height: var(--size, 4px);
  margin: calc(var(--size, 4px) / -2) 0 0 calc(var(--size, 4px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, #ffe4e8 0%, #ff4d6a 45%, #9e1028 100%);
  box-shadow: 0 0 6px rgba(255, 77, 106, 0.85);
  animation: sparkFly 0.55s ease-out forwards;
  animation-delay: var(--delay, 0ms);
  opacity: 0;
}
@keyframes sparkFly {
  0% { transform: translate(0,0) scale(0.4); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle-burst { display: none !important; }
}

/* Simple page fade (~360ms) — home + sections */
body.section-page,
body.home {
  transition: opacity 0.36s ease, transform 0.36s ease;
}
body.section-page.page-enter-soft,
body.section-page.page-enter-from-puddle,
body.home.returning-from-section {
  opacity: 0;
  transform: scale(0.985);
}
body.section-page.page-revealed,
body.home.returning-from-section.returned-settled {
  opacity: 1;
  transform: scale(1);
}
body.page-exiting,
body.home.page-exiting {
  opacity: 0 !important;
  transform: scale(0.985) !important;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  body.section-page,
  body.home,
  body.page-exiting,
  body.home.page-exiting {
    transition: none !important;
    transform: none !important;
  }
}

/* Kill View Transition leftovers if any */
::view-transition-old(root),
::view-transition-new(root) { animation: none !important; }


/* === v60: no home accents; black↔cherry landing; thin magical enter; icons restored === */

/* Home section titles: never red accents */
body.home .dive-title .accent-cherry,
body.home .dive-sub .accent-cherry,
body.home .dive-title-el-extra .accent-cherry {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
  filter: none !important;
  animation: none !important;
}
body.home .dive-title,
body.home .dive-sub,
body.home #dive-title-el-extra {
  color: #f4efe6;
  -webkit-text-fill-color: #f4efe6;
}

/* Landing: glimmer black ↔ dark cherry (no white/silver) */
.landing-tagline-wrap {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  z-index: 5;
  margin: 0;
  padding: 0 0.75rem;
  width: min(18rem, 92vw);
  text-align: center;
  pointer-events: none;
  filter: none !important;
}
.landing-tagline-glow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: transparent;
  opacity: 0.9;
  filter: none !important;
  -webkit-text-stroke: 0;
  text-shadow:
    0 0 12px rgba(120, 18, 30, 0.65),
    0 0 24px rgba(80, 10, 18, 0.4);
  pointer-events: none;
  user-select: none;
}
.landing-tagline.landing-glimmer,
.landing-tagline.accent-cherry {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.15rem, 9.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  /* Solid fallback (Safari/Chrome without clip): dark metallic cherry — no white */
  color: #6b0f1a;
  background-image: linear-gradient(
    180deg,
    #0a0506 0%,
    #1a080c 28%,
    #3a0c14 62%,
    #6b0f1a 100%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none;
  text-shadow: none;
  filter: none !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-wrap: balance;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .landing-tagline.landing-glimmer,
  .landing-tagline.accent-cherry {
    background-image: none;
    color: #6b0f1a;
    -webkit-text-fill-color: #6b0f1a;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-tagline.landing-glimmer { animation: none; }
}

/* Subpage accents stay (sparingly) — darker cherry, no silver peak */
body.section-page .accent-cherry {
  background: linear-gradient(105deg, #2a050a 0%, #7a101f 40%, #9D1425 52%, #7a101f 70%, #2a050a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cherryTextSheen 8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(90, 12, 22, 0.4));
}

/* Enter ring: thinner, darker, magical */
.dive-ring.cherry-ring {
  width: 56px;
  height: 56px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
  overflow: visible;
  display: grid;
  place-items: center;
  position: relative;
}
.cherry-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(100, 16, 28, 0.55));
}
.cherry-glow {
  opacity: 0.7;
}
.cherry-rim {
  filter: drop-shadow(0 0 2px rgba(140, 20, 36, 0.7));
}
.cherry-sheen-arc {
  animation: cherryRingTravel 4.2s linear infinite;
  opacity: 0.9;
}
@keyframes cherryRingTravel {
  0% { stroke-dashoffset: 0; opacity: 0.25; }
  12% { opacity: 0.95; }
  100% { stroke-dashoffset: -146; opacity: 0.25; }
}
.cherry-twinkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9D1425;
  box-shadow: 0 0 5px #5E1630, 0 0 10px rgba(80,10,18,0.8);
  pointer-events: none;
  opacity: 0;
  animation: twinkleDrift 5.5s ease-in-out infinite;
}
.cherry-twinkle.t1 { top: 6%; left: 62%; animation-delay: 0s; }
.cherry-twinkle.t2 { top: 58%; left: 8%; animation-delay: 1.8s; }
.cherry-twinkle.t3 { top: 72%; left: 78%; animation-delay: 3.2s; }
@keyframes twinkleDrift {
  0%, 100% { opacity: 0; transform: scale(0.4) translate(0,0); }
  35% { opacity: 0.85; transform: scale(1) translate(2px, -3px); }
  55% { opacity: 0.3; transform: scale(0.6) translate(-2px, -5px); }
}
@media (prefers-reduced-motion: reduce) {
  .cherry-sheen-arc, .cherry-twinkle { animation: none !important; opacity: 0.55; }
  .cherry-twinkle { opacity: 0; }
}

/* Icons MUST show — override older hide rules */
.dive-ring.cherry-ring .dive-ring-icon,
.dive-ring.has-icon .dive-ring-icon,
#dive-ring-icon {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 4;
  color: #e8d0d4 !important;
  background: transparent !important;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.65));
}
.dive-ring.cherry-ring .dive-ring-icon svg,
#dive-ring-icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #e8d0d4 !important;
  fill: none !important;
  stroke-width: 1.55;
  display: block !important;
}

/* Visible sparkle burst */
.sparkle-burst {
  position: fixed;
  z-index: 200;
  width: 0;
  height: 0;
  pointer-events: none;
}
.sparkle-burst span {
  position: absolute;
  left: 0; top: 0;
  width: var(--size, 7px);
  height: var(--size, 7px);
  margin: calc(var(--size, 7px) / -2) 0 0 calc(var(--size, 7px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, #e83a55 0%, #9D1425 40%, #6b0f1a 75%, #2a050a 100%);
  box-shadow: 0 0 10px rgba(110,26,55, 1), 0 0 18px rgba(140, 20, 40, 0.85), 0 0 2px #1a0306;
  animation: sparkFly 0.7s cubic-bezier(0.12, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
  opacity: 0;
  will-change: transform, opacity;
}
.sparkle-burst span.is-star {
  border-radius: 1px;
  background: #d42845;
  box-shadow: 0 0 0 1px rgba(232,58,85,0.5), 0 0 14px rgba(154,21,40,1), 0 0 22px rgba(90,12,22,0.8);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes sparkFly {
  0% { transform: translate(0,0) scale(0.25) rotate(0deg); opacity: 0; }
  8% { opacity: 1; transform: translate(calc(var(--dx) * 0.08), calc(var(--dy) * 0.08)) scale(1.15) rotate(8deg); }
  55% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(var(--rot, 20deg)); opacity: 0; }
}
.dive-ring.cherry-ring.is-sparking {
  filter: drop-shadow(0 0 12px rgba(154, 21, 40, 0.75));
}
@media (prefers-reduced-motion: reduce) {
  .sparkle-burst { display: none !important; }
}

/* Other buttons: thinner magical outline, dark cherry */
.btn-outline,
button.price-toggle,
.menu-close,
a.proj-more,
.menu-btn.btn-outline {
  background: transparent !important;
  border: 1px solid color-mix(in srgb, #6b0f1a 70%, transparent) !important;
  box-shadow: 0 0 10px rgba(60, 8, 14, 0.25) !important;
  color: var(--fg, #f4efe6);
}
.menu-btn.btn-outline {
  border-color: rgba(140, 40, 55, 0.45) !important;
}


/* === v64: cloud parting + buttery page fx + about no inline media === */

html, body {
  background: #050508 !important;
}

/* Fixed GPU overlay for page crossfade */
.laa-fx {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  background: #050508;
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.laa-fx.is-cover.is-on {
  opacity: 1;
  pointer-events: auto;
}
.laa-fx.is-reveal {
  opacity: 0;
}

/* Page enter/exit — opacity + transform only, ~450ms */
body.section-page,
body.home {
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
body.section-page.page-enter-soft,
body.section-page.page-enter-from-puddle,
body.home.returning-from-section {
  opacity: 0;
  transform: scale(1.04);
}
body.section-page.page-revealed,
body.home.returning-from-section.returned-settled {
  opacity: 1;
  transform: scale(1);
}
body.page-exiting,
body.home.page-exiting {
  opacity: 0.35 !important;
  transform: scale(0.985) !important;
  pointer-events: none;
}

body.section-page .section-bg {
  transform: scale(1.04);
  opacity: 0.92;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
body.section-page.page-revealed .section-bg {
  transform: scale(1);
  opacity: 1;
}
body.section-page.page-exiting .section-bg {
  transform: scale(1.04);
  opacity: 0.75;
  filter: none; /* no blur — was janky */
  transition-duration: 0.45s;
}
body.section-page .dive-main,
body.section-page .services-main,
body.section-page .projects-main {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}
body.section-page.page-revealed .dive-main,
body.section-page.page-revealed .services-main,
body.section-page.page-revealed .projects-main {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
body.section-page.page-exiting .dive-main,
body.section-page.page-exiting .services-main,
body.section-page.page-exiting .projects-main {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition-duration: 0.35s;
}

/* About: no inline hero image */
body.about-page .dive-media { display: none !important; }

/* --- Scroll-linked cloud parting (simple + solid) --- */
/* Override older kill rule for our new halves */
.cloud-veil, .sky-plate { display: none !important; }

.landing-plate {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  display: block;
  opacity: 1;
  transition: opacity 0.2s linear;
  overflow: hidden;
  contain: layout style;
}
.cloud-split {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.cloud-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(0.9);
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
}
/* legacy — do NOT drive .cloud-half panels (those are JS + soft mask) */
img.cloud-left.cloud-layer {
  clip-path: inset(0 49.5% 0 0);
  transform: translate3d(calc(var(--cloud-part, 0) * -100%), 0, 0);
}
img.cloud-right.cloud-layer {
  clip-path: inset(0 0 0 49.5%);
  transform: translate3d(calc(var(--cloud-part, 0) * 100%), 0, 0);
}

.landing-tagline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  margin: 0;
  padding: 0 1.25rem;
  width: min(14ch, 90vw);
  text-align: center;
  opacity: calc(1 - var(--cloud-part, 0) * 1.25);
  transition: opacity 0.05s linear;
  pointer-events: none;
}

/* Reel under parting clouds — hidden until scroll starts parting */
.stage.is-sky .film-slot {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: var(--cloud-part, 0);
  visibility: visible;
  transition: opacity 0.05s linear;
}
.stage.is-film .film-slot {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 1 !important;
  visibility: visible;
}
.stage.is-sky #puddle-picture,
.stage.is-sky .puddle-inner {
  opacity: calc(var(--cloud-part, 0) * 0.55) !important;
  z-index: 3;
}
.stage.is-sky .film-caption {
  opacity: calc((var(--cloud-part, 0) - 0.35) / 0.65);
}

/* Cloud parting driven by JS --cloud-part (rAF). Optional SDA duplicates the same motion when supported. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Only if scroll timeline can bind to the page scroll-track; otherwise JS var wins.
       Do NOT set transform:none here — that broke parting when animation was disabled. */
  }
}

@keyframes cloudPartLeft {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-104%,0,0); }
}
@keyframes cloudPartRight {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(104%,0,0); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-left, .cloud-right { transition: none !important; }
  .laa-fx { transition: none !important; }
  body.section-page .section-bg,
  body.section-page .dive-main,
  body.section-page .services-main,
  body.section-page .projects-main,
  body.section-page,
  body.home {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

body.home {
  --cloud-part: 0;
  --land-fade: 0;
}



/* === v70: real cloud curtains + crisp tagline + visible reel poster === */

/* Kill conflicting early half rules */
.cloud-veil, .sky-plate { display: none !important; }

.landing-plate {
  position: absolute !important;
  inset: 0 !important;
  z-index: 8 !important;
  pointer-events: none !important;
  display: block !important;
  overflow: hidden !important;
  background: transparent !important;
  opacity: 1 !important;
  contain: none !important; /* contain was clipping transforms oddly */
}

.cloud-split {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: visible; /* full-bleed layers slide off-stage */
  pointer-events: none;
}

/* Full-viewport curtain layers: IDENTICAL full-bleed art + complementary masks.
   Never width:50% panels — that re-crops and duplicates the moon. */
.cloud-half {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-source-type: alpha;
}
.cloud-half.cloud-left {
  left: 0;
  right: 0;
  -webkit-mask-image: url('assets/cloud-mask-left.png');
  mask-image: url('assets/cloud-mask-left.png');
}
.cloud-half.cloud-right {
  left: 0;
  right: 0;
  -webkit-mask-image: url('assets/cloud-mask-right.png');
  mask-image: url('assets/cloud-mask-right.png');
}
.cloud-half .cloud-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center; /* IDENTICAL crop both layers */
  filter: brightness(0.84) saturate(1.12);
  pointer-events: none;
  user-select: none;
}
.cloud-half.cloud-left .cloud-art,
.cloud-half.cloud-right .cloud-art {
  left: 0;
  right: 0;
  object-position: center center;
}

/* Override any older clip-path layers */
.cloud-layer,
img.cloud-left,
img.cloud-right {
  clip-path: none !important;
}

/* Reel underlay: always the poster frame, visible as soon as a gap opens */
.film-underlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
  filter: brightness(1.08) contrast(1.06) saturate(1.1);
}
.stage.is-sky .film-slot,
.stage.is-film .film-slot,
.stage.clouds-parting .film-slot {
  display: block !important;
  visibility: visible !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  opacity: 1 !important;
  pointer-events: none;
}
.film-slot .own-film {
  z-index: 2;
  opacity: 0; /* no src yet — don't cover poster with empty video */
  pointer-events: none;
}
.film-slot.has-own-film .own-film {
  opacity: 1;
}
.film-slot .film-caption {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 6;
  /* opacity set by JS — 0 until clouds mostly open */
  opacity: 0;
  transition: none;
}

/* Poster also via puddle-inner under the curtains */
.stage.is-sky #puddle-picture,
.stage.is-sky .puddle-inner,
.stage.is-film #puddle-picture,
.stage.is-film .puddle-inner {
  opacity: 1 !important;
  z-index: 3 !important;
  filter: brightness(1.12) contrast(1.04);
}

/* Tagline wrap opacity is JS-driven; kill old calc that kept it overlapping */
.landing-plate .landing-tagline-wrap {
  opacity: 1;
}
.landing-plate .landing-tagline {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  /* transform/opacity owned by v86 scroll-rise rules on .landing-glimmer */
}
/* v85 cherry gradient superseded by v86 electric blue block below */

body.home {
  --cloud-part: 0;
  --land-fade: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cloud-half { transition: none !important; }
  .landing-tagline-glow { filter: none; opacity: 0.55; }
}


/* === v82: full-bleed curtain overrides === */
.landing-plate .cloud-half.cloud-left,
.landing-plate .cloud-half.cloud-right {
  clip-path: none !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  -webkit-mask-size: 100% 100% !important;
  mask-size: 100% 100% !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-mode: alpha !important;
  mask-mode: alpha !important;
  -webkit-mask-source-type: alpha !important;
}
.landing-plate .cloud-half.cloud-left {
  -webkit-mask-image: url('assets/cloud-mask-left.png') !important;
  mask-image: url('assets/cloud-mask-left.png') !important;
}
.landing-plate .cloud-half.cloud-right {
  -webkit-mask-image: url('assets/cloud-mask-right.png') !important;
  mask-image: url('assets/cloud-mask-right.png') !important;
}
.landing-plate .cloud-half .cloud-art {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  right: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}
/* film caption timing only via JS */
.stage.is-sky .film-caption {
  opacity: 0; /* JS overrides via style */
}


/* === v85: services mini cards + signature air + portfolio tag cloud === */

.svc-minis {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 0 0 0.55rem;
}
.svc-mini {
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--fg) 3.5%, transparent);
}
.svc-mini-face {
  display: block;
  padding: 1rem 1.05rem 1.05rem;
  color: inherit;
  text-decoration: none;
  cursor: default;
}
/* Ready for future <a href> — keep hit area when linked later */
a.svc-mini-face[href]:not([href=""]):not([href="#"]) {
  cursor: pointer;
}
.svc-mini .svc-name {
  display: block;
  font-size: 1.12rem;
  margin: 0 0 0.35rem;
}
.svc-mini .svc-desc {
  margin: 0 0 0.55rem;
}
.svc-mini .svc-price {
  display: inline-block;
  margin-top: 0.15rem;
}
.svc-mini.svc-featured,
.svc-featured.svc-mini {
  position: relative;
  margin: 1.55rem 0.15rem;
  padding: 0.55rem;
  border: 1px solid color-mix(in srgb, #6b0f1a 55%, transparent);
  border-radius: 1.05rem;
  background: color-mix(in srgb, #6b0f1a 10%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, #6b0f1a 22%, transparent),
    0 0 28px rgba(60, 8, 14, 0.28);
}
.svc-mini.svc-featured .svc-mini-face {
  padding: 1.45rem 1.25rem 1.55rem;
}
.svc-mini.svc-featured .svc-badge {
  margin-left: 0.45rem;
}

/* Portfolio filter word-cloud */
.proj-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.5rem;
  margin: 0.35rem auto 1.55rem;
  padding: 0.15rem 0.25rem 0.35rem;
  max-width: 40rem;
}
.proj-filter-chip {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid color-mix(in srgb, #6b0f1a 70%, transparent);
  box-shadow: 0 0 10px rgba(60, 8, 14, 0.22);
  color: var(--fg, #f4efe6);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.2s ease, background-color 0.2s ease;
  min-height: 36px;
}
.proj-filter-chip:hover {
  border-color: color-mix(in srgb, #9D1425 55%, transparent);
}
.proj-filter-chip.is-on {
  background: color-mix(in srgb, #6b0f1a 48%, transparent);
  border-color: #9D1425;
  color: #f4efe6;
  box-shadow: 0 0 14px rgba(100, 16, 28, 0.45);
}
.proj-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: none;
}
.proj-card.is-filter-out {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
.proj-card[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .proj-card { transition: none; }
  .proj-filter-chip { transition: none; }
}


/* === v86: single-veil transitions + electric blue/cherry accents + summer landing === */

:root {
  --cherry: #6b0f1a;
  --cherry-bright: #9D1425;
  --electric: #1A2C5C;
  --electric-bright: #3A4BD8;
  --electric-deep: #1A2C5C;
}

/* Veil-only: body must NOT fade/scale under the cover (was the flicker) */
body.section-page,
body.home {
  transition: none !important;
}
body.section-page.page-enter-soft,
body.section-page.page-enter-from-puddle,
body.home.returning-from-section,
body.section-page.page-revealed,
body.home.returning-from-section.returned-settled,
body.page-exiting,
body.home.page-exiting {
  opacity: 1 !important;
  transform: none !important;
}
body.section-page .section-bg {
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
  will-change: auto !important;
}
body.section-page.page-revealed .section-bg,
body.section-page.page-exiting .section-bg {
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}
body.section-page .dive-main,
body.section-page .services-main,
body.section-page .projects-main,
body.section-page.page-revealed .dive-main,
body.section-page.page-revealed .services-main,
body.section-page.page-revealed .projects-main,
body.section-page.page-exiting .dive-main,
body.section-page.page-exiting .services-main,
body.section-page.page-exiting .projects-main {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.laa-fx {
  background: #050508 !important;
  transition: opacity 0.42s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Landing tagline: exact centre via full-bleed grid; rise/fade on inner text */
.landing-tagline-wrap,
.landing-plate .landing-tagline-wrap,
#landing-tagline.landing-tagline-wrap {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 0.75rem !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  z-index: 5 !important;
  pointer-events: none !important;
  transform: none !important;
  opacity: 1 !important; /* opacity lives on inner text */
  filter: none !important;
}
.landing-plate .landing-tagline.landing-glimmer,
#landing-tagline .landing-tagline.landing-glimmer {
  transform: translate3d(0, var(--tag-rise, 0px), 0) !important;
  opacity: var(--tag-op, 1) !important;
  transition: opacity 0.05s linear, transform 0.05s linear;
  will-change: transform, opacity;
  width: min(18rem, 92vw);
  justify-self: center;
}
.landing-plate .landing-tagline.landing-glimmer,
.landing-tagline.landing-glimmer,
.landing-tagline.accent-cherry {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: block !important;
  margin: 0 auto !important;
  color: #1A2C5C !important; /* solid fallback */
  background-image: linear-gradient(
    180deg,
    #1A2C5C 0%,
    #1A2C5C 42%,
    #3A4BD8 78%,
    #6aa8ff 100%
  ) !important;
  background-color: transparent !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: none !important;
  text-shadow: none !important;
  filter: drop-shadow(0 1px 1px rgba(8, 24, 64, 0.45)) drop-shadow(0 0 12px rgba(26,44,92, 0.4)) !important;
  -webkit-font-smoothing: antialiased;
}

/* Accent pairing: cherry on even section pages, electric on odd */
body.section-page.accent-electric {
  --accent: #3A4BD8;
}
body.section-page.accent-cherry-tone {
  --accent: #9D1425;
}
body.section-page.accent-electric .accent-cherry {
  background: linear-gradient(105deg, #1A2C5C 0%, #1A2C5C 45%, #3A4BD8 70%, #1A2C5C 100%) !important;
  background-size: 200% 100%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #1A2C5C !important;
  animation: none !important;
  filter: drop-shadow(0 0 8px rgba(26,44,92, 0.35)) !important;
}
body.section-page.accent-cherry-tone .accent-cherry {
  background: linear-gradient(105deg, #2a050a 0%, #7a101f 40%, #9D1425 55%, #7a101f 75%, #2a050a 100%) !important;
  background-size: 200% 100%;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #9D1425 !important;
  filter: drop-shadow(0 0 8px rgba(90, 12, 22, 0.4)) !important;
}

/* Outline buttons follow page accent (pair blue/cherry) */
body.section-page.accent-electric .btn-outline,
body.section-page.accent-electric button.price-toggle,
body.section-page.accent-electric .menu-close,
body.section-page.accent-electric a.proj-more,
body.section-page.accent-electric .menu-btn.btn-outline,
body.section-page.accent-electric .proj-filter-chip {
  border-color: color-mix(in srgb, #1A2C5C 70%, transparent) !important;
  box-shadow: 0 0 10px rgba(26,44,92, 0.28) !important;
}
body.section-page.accent-cherry-tone .btn-outline,
body.section-page.accent-cherry-tone button.price-toggle,
body.section-page.accent-cherry-tone .menu-close,
body.section-page.accent-cherry-tone a.proj-more,
body.section-page.accent-cherry-tone .menu-btn.btn-outline,
body.section-page.accent-cherry-tone .proj-filter-chip {
  border-color: color-mix(in srgb, #6b0f1a 70%, transparent) !important;
  box-shadow: 0 0 10px rgba(60, 8, 14, 0.25) !important;
}

/* Home menu: no red accent words */
body.home .menu-panel .accent-cherry,
body.home #menu-list .accent-cherry {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
  filter: none !important;
  animation: none !important;
}
/* Home dive titles / sparkles: alternate by spot via data attribute */
body.home[data-accent="blue"] .dive-ring.cherry-ring,
body.home[data-accent="blue"] .sparkle {
  /* electric tint */
  filter: hue-rotate(210deg) saturate(1.2);
}
body.home[data-accent="cherry"] .dive-ring.cherry-ring {
  filter: none;
}

/* Summer pages: light sky palette */
body.section-page.summer-page {
  --fg: #1a2433;
  --muted: #4a5a6e;
  background: #cfe8ff !important;
}
body.section-page.summer-page .section-veil {
  background: linear-gradient(
    180deg,
    rgba(180, 220, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.55) 40%,
    rgba(255, 252, 245, 0.78) 100%
  ) !important;
  opacity: 1 !important;
}
body.section-page.summer-page .topbar .brand,
body.section-page.summer-page .dive-main,
body.section-page.summer-page .services-main,
body.section-page.summer-page h1,
body.section-page.summer-page h2,
body.section-page.summer-page .title-en,
body.section-page.summer-page .dive-lede,
body.section-page.summer-page .dive-kicker,
body.section-page.summer-page .eyebrow {
  color: #1a2433;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
body.section-page.summer-page .menu-btn span {
  background: #1a2433 !important;
}
body.section-page.summer-page .menu-panel {
  background: rgba(245, 250, 255, 0.96) !important;
  color: #1a2433;
}
body.section-page.summer-page .menu-panel a {
  color: #1a2433;
}
body.section-page.summer-page .back-puddle a,
body.section-page.summer-page .services-back a {
  color: #1a2433;
}

@media (prefers-reduced-motion: reduce) {
  .landing-tagline-wrap {
    transition: none !important;
  }
}


/* v86b: home dive accent words alternate blue/cherry (menu stays plain) */
body.home[data-accent="blue"] .dive-title .accent-cherry,
body.home[data-accent="blue"] .dive-sub .accent-cherry,
body.home[data-accent="blue"] .dive-title-el-extra .accent-cherry {
  background: linear-gradient(105deg, #1A2C5C 0%, #1A2C5C 50%, #3A4BD8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #1A2C5C !important;
  filter: drop-shadow(0 0 8px rgba(26,44,92, 0.35)) !important;
  animation: none !important;
}
body.home[data-accent="cherry"] .dive-title .accent-cherry,
body.home[data-accent="cherry"] .dive-sub .accent-cherry,
body.home[data-accent="cherry"] .dive-title-el-extra .accent-cherry {
  background: linear-gradient(105deg, #2a050a 0%, #7a101f 40%, #9D1425 55%, #7a101f 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #9D1425 !important;
  filter: drop-shadow(0 0 8px rgba(90, 12, 22, 0.4)) !important;
  animation: none !important;
}
body.home[data-accent="blue"] .menu-btn.btn-outline {
  border-color: color-mix(in srgb, #1A2C5C 55%, transparent) !important;
  box-shadow: 0 0 10px rgba(26,44,92, 0.25) !important;
}
body.home[data-accent="cherry"] .menu-btn.btn-outline {
  border-color: color-mix(in srgb, #6b0f1a 70%, transparent) !important;
  box-shadow: 0 0 10px rgba(60, 8, 14, 0.25) !important;
}
body.home[data-accent="blue"] .dive-ring.cherry-ring::before,
body.home[data-accent="blue"] .sparkle-burst .sparkle {
  /* keep electric via filter already set; reinforce outline */
}


/* v86c: summer pages — light glass panels over daytime sky */
body.section-page.summer-page .dive-main,
body.section-page.summer-page .services-main {
  background: rgba(255, 252, 248, 0.78) !important;
  border-color: color-mix(in srgb, var(--accent) 28%, transparent) !important;
  box-shadow: 0 12px 36px rgba(40, 80, 120, 0.18) !important;
  color: #1a2433 !important;
}
body.section-page.summer-page .dive-main p,
body.section-page.summer-page .dive-main li,
body.section-page.summer-page .dive-lede,
body.section-page.summer-page .title-en,
body.section-page.summer-page .dive-kicker,
body.section-page.summer-page .eyebrow,
body.section-page.summer-page .soft-note {
  color: #2a3648 !important;
}
body.section-page.summer-page h1,
body.section-page.summer-page h2,
body.section-page.summer-page h3 {
  color: #152033 !important;
}
body.section-page.summer-page .section-bg {
  filter: saturate(1.08) brightness(1.06);
}
body.section-page.summer-page .topbar .brand {
  color: #152033 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
body.section-page.summer-page .menu-btn.btn-outline {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent) !important;
}

/* === v87: full-bleed summer landing + seamless masks + crisp tagline === */

/* Bright summer art — no night dimming */
.landing-plate .cloud-half .cloud-art,
.cloud-half .cloud-art {
  filter: brightness(1.04) saturate(1.1) contrast(1.02) !important;
}

/* Sky-colored stage under curtains so any subpixel gap stays summery, not navy */
.stage.is-sky {
  background: #7ec8f0 !important;
}
body.home[data-kind="sky"] {
  background: #7ec8f0;
}

/* Tagline wrap: optical centre (lift ~8px) */
.landing-tagline-wrap,
.landing-plate .landing-tagline-wrap,
#landing-tagline.landing-tagline-wrap {
  place-items: center !important;
  align-content: center !important;
  /* optical nudge: Latin caps sit heavy — pad bottom so visual centre rises */
  padding: 0 0.75rem 1.35rem !important;
}

/* Rise/fade MUST win over older transform:none */
.landing-plate .landing-tagline.landing-glimmer,
#landing-tagline .landing-tagline.landing-glimmer,
.landing-tagline.landing-glimmer {
  transform: translate3d(0, calc(var(--tag-rise, 0px) - 14px), 0) !important;
  opacity: var(--tag-op, 1) !important;
  transition: opacity 0.05s linear, transform 0.05s linear !important;
  will-change: transform, opacity;
  width: min(18rem, 92vw) !important;
  justify-self: center !important;
  margin: 0 auto !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  display: block !important;
  font-weight: 650 !important;
  font-size: clamp(2.35rem, 10.5vw, 3.45rem) !important;
  letter-spacing: 0.01em !important;
  line-height: 1.08 !important;
  /* deeper saturated electric blue */
  color: #0a4dff !important;
  background-image: linear-gradient(
    180deg,
    #0636c4 0%,
    #0a4dff 38%,
    #1a62ff 72%,
    #3d85ff 100%
  ) !important;
  background-color: transparent !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: none !important;
  text-shadow: none !important;
  /* soft white halo + dark-blue depth for contrast on light sky */
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, 1))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.45))
    drop-shadow(0 1px 2px rgba(3, 22, 72, 0.65))
    drop-shadow(0 2px 12px rgba(8, 55, 200, 0.4)) !important;
  -webkit-font-smoothing: antialiased;
}

/* Keep accent-cherry override from stomping landing electric when both match */
.landing-tagline.accent-cherry:not(.landing-glimmer) {
  /* untouched — section accents stay elsewhere */
}

/* === v89: Experience group subline + ungrouped menu cluster === */
.menu-group-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.35;
  color: color-mix(in srgb, var(--fg) 62%, transparent);
  padding: 0.15rem 0.15rem 0.65rem;
  max-width: 22rem;
}
.menu-panel li.menu-item.menu-loose-first {
  margin-top: 1.55rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  padding-top: 0.15rem;
}


/* === v89b: simplified landing slot + contact form === */
.stage.is-sky .film-slot.landing-slot,
.film-slot.landing-slot {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 4 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}
.film-slot.landing-slot .film-underlay {
  filter: brightness(1.02) saturate(1.05);
}
.film-slot.landing-slot .own-film {
  opacity: 0;
}
.film-slot.landing-slot.has-own-film .own-film {
  opacity: 1;
}
.film-caption,
.film-coming { display: none !important; }
.cloud-split, .cloud-half { display: none !important; }

.contact-h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 1.5rem 0 0.65rem;
  text-align: center;
  color: var(--fg);
}
.contact-why .dive-body { margin: 0.35rem 0; text-align: center; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 22rem;
  margin: 0.75rem auto 0;
}
.cf-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 72%, transparent);
}
.cf-label input,
.cf-label select,
.cf-label textarea {
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  color: var(--fg);
}
.cf-label textarea { resize: vertical; min-height: 6rem; }
body.home[data-kind="sky"] { background: #c9b8a6; }
.stage.is-sky { background: #c9b8a6 !important; }

/* v89c: menu scrolls so ungrouped Contact is reachable */
.menu-panel {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.menu-panel .static-menu,
.menu-panel #menu-list {
  padding-bottom: 5.5rem;
}


/* === v90: remove intro overlay; video-first + one-shot tagline === */
/* Kill every rule that forced the film/landing layer over later snaps/pages */
.landing-plate,
#landing-plate,
.cloud-split,
.cloud-half,
.cloud-veil,
.sky-plate,
.sky-base,
.film-caption,
.film-coming {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.film-slot[hidden],
#film-slot[hidden],
.stage .film-slot[hidden],
.stage.is-sky .film-slot[hidden],
.stage.is-film .film-slot[hidden],
.stage.clouds-parting .film-slot[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* No more forced full-bleed film when not requested */
.stage.is-sky .film-slot:not([hidden]),
.stage.is-film .film-slot:not([hidden]),
.stage.clouds-parting .film-slot:not([hidden]),
.film-slot.landing-slot {
  /* only show if JS removed [hidden] (OWN_FILM_SRC set) */
  display: block;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.film-slot.landing-slot {
  /* class retired — never force-show */
  display: none !important;
}

/* First snap uses normal puddle still (landing poster) at full opacity */
.stage.is-sky #puddle-picture,
.stage.is-sky .puddle-inner,
body.home[data-kind="sky"] #puddle-picture,
body.home[data-kind="sky"] .puddle-inner {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
  filter: brightness(1.05) contrast(1.03) saturate(1.05);
}
.stage.is-sky {
  background: #0a1628 !important; /* neutral under poster; not forced summer sky gap */
}

/* One-shot tagline: centred over first snap, hold ~0.8s then rise+fade ~2.2s */
.home-tagline-wrap {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 0 0.75rem 1.35rem;
  margin: 0;
  pointer-events: none;
  opacity: 1;
}
.home-tagline-wrap[hidden] {
  display: none !important;
}
.home-tagline {
  display: block;
  width: min(18rem, 92vw);
  margin: 0 auto;
  text-align: center;
  font-family: var(--display, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif);
  font-weight: 650;
  font-size: clamp(2.35rem, 10.5vw, 3.45rem);
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: #0a4dff;
  background-image: linear-gradient(
    180deg,
    #0636c4 0%,
    #0a4dff 38%,
    #1a62ff 72%,
    #3d85ff 100%
  );
  background-color: transparent;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, 1))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.45))
    drop-shadow(0 1px 2px rgba(3, 22, 72, 0.65))
    drop-shadow(0 2px 12px rgba(8, 55, 200, 0.4));
  transform: translate3d(0, -14px, 0);
  opacity: 1;
}
.home-tagline-wrap.tag-play .home-tagline {
  animation: homeTagRise 3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.home-tagline-wrap.tag-reduced .home-tagline {
  animation: homeTagFade 0.7s ease forwards;
}
@keyframes homeTagRise {
  /* brief hold ~0.8s, then rise + fade over ~2.2s (total ~3s) */
  0%, 26.5% {
    opacity: 1;
    transform: translate3d(0, -14px, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -72px, 0);
  }
}
@keyframes homeTagFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-tagline-wrap.tag-play .home-tagline {
    animation: homeTagFade 0.7s ease forwards;
  }
}


/* Plain section background (Event planning — no reused art) */
.section-bg-plain {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #050508;
  pointer-events: none;
}


/* === v92: dark empty landing (no dawn poster) === */
.stage.is-sky {
  background: #050508 !important;
}
body.home[data-kind="sky"] {
  background: #050508 !important;
}
.stage.is-sky #puddle-picture,
.stage.is-sky .puddle-inner,
body.home[data-kind="sky"] #puddle-picture,
body.home[data-kind="sky"] .puddle-inner {
  filter: none;
}


/* About & Contact — email sign-up (mailto stub; swap for a provider later) */
.contact-signup {
  margin: 2rem auto 0;
  max-width: 22rem;
  text-align: center;
}
.contact-signup .dive-body {
  margin: 0.35rem 0 0.85rem;
  text-align: center;
}
.contact-signup-form {
  margin-top: 0.5rem;
}
.contact-signup .enquiry-btn.btn-outline {
  background: transparent !important;
  align-self: center;
  cursor: pointer;
}
.signup-thanks {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
  text-align: center;
}
.signup-thanks[hidden] { display: none !important; }


/* Hide Life as Art wordmark once scrolled (keep menu button) */
.topbar .brand.brand-scrolled {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.topbar .brand {
  transition: opacity 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .topbar .brand { transition: none; }
}
