:root {
  color-scheme: light;
  --gold: #f2c66d;
  --amber: #d99648;
  --teal: #2bb9aa;
  --rose: #e84859;
  --ink: #15120e;
  --smoke: #f7f1e7;
  --panel: rgba(255, 252, 242, 0.88);
  --line: rgba(92, 67, 34, 0.2);
  --look-x: 0;
  --look-y: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #f1eadf;
  color: var(--smoke);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

.experience {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #f1eadf;
}

.scene {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  transition:
    opacity 900ms ease,
    filter 900ms ease,
    transform 900ms ease,
    visibility 900ms ease;
}

.scene.is-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  filter: blur(18px);
  transform: scale(1.02);
}

.cinema-noise,
.gallery-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.cinema-noise {
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4px 4px;
  animation: shimmer 2.4s steps(5) infinite;
}

.gallery-vignette {
  z-index: 4;
  box-shadow: inset 0 0 80px rgba(78, 56, 31, 0.28), inset 0 -16vh 90px rgba(255, 248, 232, 0.25);
}

.intro-scene {
  isolation: isolate;
  overflow: hidden;
  background: #f4eadc;
}

.intro-photo,
.intro-transition-photo,
.intro-daylight,
.intro-depth {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-photo {
  z-index: 0;
  background-image: url("./assets/exterieur-majordome.webp");
  background-position: center;
  background-size: cover;
  transform: translate3d(calc(var(--look-x) * -14px), calc(var(--look-y) * -8px), 0) scale(1.045);
  filter: saturate(1.03) contrast(1.02);
}

.intro-transition-photo {
  z-index: 3;
  opacity: 0;
  background-image: url("./assets/exterieur-moderne-immersif-v27-sans-dame-interieur-4k.webp");
  background-position: center 43%;
  background-size: cover;
  transform: translate3d(calc(var(--look-x) * -14px), calc(var(--look-y) * -8px), 0) scale(1.045);
  filter: blur(18px);
  transition:
    opacity 900ms ease,
    filter 900ms ease,
    transform 900ms ease;
}

.intro-transition-photo.is-fading {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(calc(var(--look-x) * -14px), calc(var(--look-y) * -8px), 0) scale(1.045);
  animation: introPhotoExit 900ms ease forwards;
}

.intro-daylight {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 252, 240, 0.72) 0%, rgba(255, 252, 240, 0.34) 34%, rgba(255, 252, 240, 0.03) 62%),
    radial-gradient(circle at 17% 18%, rgba(255, 255, 255, 0.62), transparent 28%),
    radial-gradient(circle at 86% 15%, rgba(251, 225, 171, 0.22), transparent 30%);
}

.intro-depth {
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 0%, rgba(22, 16, 10, 0.08) 66%, rgba(24, 16, 8, 0.38) 100%),
    radial-gradient(circle at calc(78% + var(--look-x) * -8%) 48%, transparent 0 24%, rgba(255, 252, 242, 0.1) 36%, rgba(255, 252, 242, 0.38) 72%);
}

.champagne-prop {
  position: absolute;
  z-index: 6;
  left: clamp(49vw, 52vw, 56vw);
  top: clamp(405px, 60vh, 570px);
  width: 74px;
  height: 170px;
  opacity: 0;
  transform: translateY(24px) rotate(-8deg);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.champagne-prop::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 0;
  width: 34px;
  height: 82px;
  border: 2px solid rgba(255, 247, 219, 0.68);
  border-radius: 18px 18px 7px 7px;
  background: linear-gradient(180deg, transparent 0 22%, rgba(242, 198, 109, 0.8) 23% 88%, rgba(255, 255, 255, 0.38) 100%);
  box-shadow: 0 0 28px rgba(242, 198, 109, 0.4);
}

.champagne-prop::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 80px;
  width: 4px;
  height: 72px;
  background: rgba(255, 247, 219, 0.68);
  box-shadow: -18px 70px 0 14px rgba(255, 247, 219, 0.22);
}

.champagne-prop span,
.champagne-prop span::before,
.champagne-prop span::after {
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 248, 218, 0.8);
}

.champagne-prop span {
  top: 24px;
  left: 34px;
  animation: bubbleRise 1.9s ease-in-out infinite;
}

.champagne-prop span::before {
  content: "";
  left: -11px;
  top: 22px;
  animation: bubbleRise 2.4s ease-in-out infinite;
}

.champagne-prop span::after {
  content: "";
  left: 13px;
  top: 36px;
  animation: bubbleRise 2.1s ease-in-out infinite;
}

.experience[data-step="champagne"] .champagne-prop {
  opacity: 1;
  transform: translateY(0) rotate(-8deg);
}

.dialogue-panel {
  position: absolute;
  left: clamp(18px, 5vw, 74px);
  bottom: clamp(22px, 8vh, 82px);
  z-index: 10;
  width: min(590px, calc(100vw - 36px));
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 30px 30px 12px 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.25)),
    var(--panel);
  color: #201911;
  box-shadow: 0 22px 70px rgba(86, 61, 30, 0.22);
  backdrop-filter: blur(18px);
  transform: translate3d(calc(var(--look-x) * 8px), calc(var(--look-y) * 4px), 0);
}

.dialogue-panel::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 48%;
  width: 54px;
  height: 38px;
  background: var(--panel);
  clip-path: polygon(0 0, 100% 46%, 0 100%);
  filter: drop-shadow(14px 14px 20px rgba(86, 61, 30, 0.14));
}

.scene-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dialogue-panel h1 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3.45rem);
  line-height: 0.98;
}

.dialogue-panel p {
  max-width: 58ch;
  margin: 0;
  color: rgba(32, 25, 17, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.58;
}

.choice-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  margin-top: 26px;
}

.choice-btn {
  min-width: 112px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(242, 198, 109, 0.34);
  border-radius: 999px;
  color: #2a2117;
  cursor: pointer;
  transition:
    transform 190ms ease,
    border-color 190ms ease,
    background 190ms ease,
    box-shadow 190ms ease;
}

.choice-btn:hover,
.choice-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 198, 109, 0.8);
  box-shadow: 0 0 34px rgba(242, 198, 109, 0.24);
  outline: none;
}

.choice-btn.primary {
  background: linear-gradient(135deg, #f2c66d, #d78a40);
  color: #171006;
  font-weight: 800;
}

.choice-btn.ghost {
  background: rgba(255, 255, 255, 0.28);
}

.choice-btn.is-running {
  position: fixed;
  z-index: 80;
  pointer-events: none;
}

.gallery-scene {
  overflow: auto;
  background: #f3eadf;
}

.gallery-room,
.gallery-daylight {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.gallery-room {
  background-image: url("./assets/galerie-six-oeuvres-journal.webp");
  background-position: center;
  background-size: cover;
  transform: translate3d(calc(var(--look-x) * -10px), calc(var(--look-y) * -5px), 0) scale(1.025);
  filter: saturate(1.02) contrast(1.01);
}

.gallery-daylight {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(90deg, rgba(255, 252, 241, 0.14), transparent 42%, rgba(255, 255, 255, 0.1));
}

.gallery-horizon {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(78, 56, 31, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(78, 56, 31, 0.05) 1px, transparent 1px);
  background-size: 13vw 100%, 100% 12vh;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 78%, transparent 100%);
  transform: perspective(760px) rotateX(64deg) translateY(26vh);
  transform-origin: center center;
  opacity: 0.22;
}

.gallery-hud {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px) clamp(18px, 5vw, 72px);
  color: #201911;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.82), rgba(255, 252, 244, 0));
  backdrop-filter: blur(10px);
}

.gallery-hud p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-hud h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.8vw, 3.2rem);
  line-height: 0.98;
}

.gallery-shell {
  position: relative;
  z-index: 8;
  width: min(1620px, 100vw);
  min-height: max(1020px, 128svh);
  margin: 0 auto;
  perspective: 1200px;
}

.gallery-track {
  position: relative;
  min-height: max(1020px, 128svh);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--look-y) * -0.8deg)) rotateY(calc(var(--look-x) * 1.2deg));
  transition: transform 120ms linear;
}

.art-button {
  position: absolute;
  width: clamp(150px, 15vw, 232px);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
}

.art-button:nth-child(1) {
  left: 11.5%;
  top: 22%;
  width: clamp(118px, 12vw, 190px);
  transform: translateZ(70px) rotateY(18deg);
}

.art-button:nth-child(2) {
  left: 28%;
  top: 20%;
  width: clamp(128px, 13vw, 210px);
  transform: translateZ(105px) rotateY(8deg);
}

.art-button:nth-child(3) {
  left: 45%;
  top: 24%;
  width: clamp(110px, 10vw, 170px);
  transform: translateZ(15px) scale(0.92);
}

.art-button:nth-child(4) {
  left: 65.5%;
  top: 21%;
  width: clamp(140px, 14vw, 224px);
  transform: translateZ(80px) rotateY(-12deg);
}

.art-button:nth-child(5) {
  left: 81.5%;
  top: 36%;
  width: clamp(116px, 11vw, 182px);
  transform: translateZ(115px) rotateY(-24deg);
}

.art-button:nth-child(6) {
  left: 20%;
  top: 50%;
  width: clamp(138px, 14vw, 224px);
  transform: translateZ(155px) rotateY(13deg);
}

.art-button:nth-child(7) {
  left: 53%;
  top: 52%;
  width: clamp(156px, 17vw, 270px);
  transform: translateZ(190px) rotateY(-5deg);
}

.art-card {
  position: relative;
  display: block;
  padding: clamp(7px, 0.8vw, 12px);
  border: 1px solid rgba(96, 70, 36, 0.3);
  border-radius: 3px;
  background: #fffdf7;
  box-shadow:
    0 22px 36px rgba(88, 64, 32, 0.22),
    inset 0 0 0 4px rgba(238, 228, 204, 0.82);
  transition:
    transform 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.art-card::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 45%, rgba(242, 198, 109, 0.26), transparent 62%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.art-button:hover .art-card,
.art-button:focus-visible .art-card {
  border-color: rgba(242, 198, 109, 0.58);
  box-shadow:
    0 30px 70px rgba(88, 64, 32, 0.3),
    0 0 46px rgba(242, 198, 109, 0.42);
  transform: translateY(-8px) scale(1.025);
}

.art-button:hover .art-card::before,
.art-button:focus-visible .art-card::before {
  opacity: 1;
}

.art-card img {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 13;
  border-radius: 2px;
  object-fit: cover;
}

.art-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 112%;
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid rgba(96, 70, 36, 0.16);
  border-radius: 2px;
  background: rgba(255, 253, 247, 0.84);
  color: #231a11;
  text-align: center;
  box-shadow: 0 10px 24px rgba(77, 54, 26, 0.14);
  backdrop-filter: blur(8px);
}

.art-label strong {
  color: #231a11;
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  line-height: 1.1;
}

.art-label span {
  color: rgba(35, 26, 17, 0.66);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
}

.art-modal {
  width: min(1050px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 1px solid rgba(96, 70, 36, 0.22);
  border-radius: 8px;
  overflow: hidden;
  color: #231a11;
  background: rgba(255, 252, 244, 0.96);
  box-shadow: 0 28px 110px rgba(58, 41, 22, 0.36);
}

.art-modal::backdrop {
  background:
    radial-gradient(circle at 50% 28%, rgba(242, 198, 109, 0.18), transparent 28%),
    rgba(24, 18, 12, 0.46);
  backdrop-filter: blur(12px);
}

.modal-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.7fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 3vw, 36px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(96, 70, 36, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #231a11;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.modal-art-wrap {
  border: 1px solid rgba(96, 70, 36, 0.16);
  border-radius: 6px;
  padding: 12px;
  background: #fffdf7;
  box-shadow: inset 0 0 0 8px rgba(238, 228, 204, 0.72);
}

.modal-art-wrap img {
  display: block;
  width: 100%;
  max-height: min(70svh, 720px);
  border-radius: 4px;
  object-fit: contain;
}

.modal-copy {
  align-self: center;
  padding-right: 30px;
}

.modal-copy p {
  color: rgba(35, 26, 17, 0.76);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
}

#modalMeta {
  margin: 0 0 10px;
  color: #9a6c24;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-copy h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.modal-nav {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(96, 70, 36, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #231a11;
  cursor: pointer;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes hostBreath {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes bubbleRise {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.7);
  }
  30%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(1);
  }
}

@keyframes shimmer {
  to {
    transform: translate3d(2px, -2px, 0);
  }
}

@keyframes introPhotoExit {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(calc(var(--look-x) * -14px), calc(var(--look-y) * -8px), 0) scale(1.045);
  }

  100% {
    opacity: 0;
    filter: blur(18px);
    transform: translate3d(calc(var(--look-x) * -14px), calc(var(--look-y) * -8px), 0) scale(1.065);
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .experience {
    min-height: 100svh;
  }

  .scene {
    min-height: 100svh;
  }

  .intro-photo {
    background-position: 62% center;
    transform: translate3d(calc(var(--look-x) * -8px), calc(var(--look-y) * -5px), 0) scale(1.07);
  }

  .intro-daylight {
    background:
      linear-gradient(180deg, rgba(255, 252, 240, 0.26), transparent 32%),
      linear-gradient(90deg, rgba(255, 252, 240, 0.74), rgba(255, 252, 240, 0.16) 58%, transparent);
  }

  .dialogue-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    border-radius: 24px 24px 10px 24px;
  }

  .dialogue-panel::after {
    right: 32px;
    top: -24px;
    width: 34px;
    height: 28px;
    transform: rotate(-70deg);
  }

  .dialogue-panel h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .choice-row {
    gap: 10px;
  }

  .choice-btn {
    min-width: 96px;
    padding: 0 18px;
  }

  .gallery-hud {
    position: sticky;
    align-items: flex-start;
  }

  .gallery-shell {
    width: min(560px, calc(100vw - 24px));
    min-height: auto;
    margin-top: 16px;
  }

  .gallery-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding-bottom: 28px;
    transform: none;
  }

  .art-button,
  .art-button:nth-child(n) {
    position: relative;
    inset: auto;
    width: min(74vw, 310px);
    margin: 0 auto;
    transform: none;
  }

  .art-label {
    position: static;
    width: auto;
    max-width: none;
    transform: none;
    margin-top: 9px;
    text-align: left;
    box-shadow: none;
  }

  .modal-frame {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal-copy {
    padding-right: 0;
  }
}

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

/* Direction artistique v2: bulle BD, majordome, galerie murale. */
.intro-photo {
  background-image: url("./assets/exterieur-majordome.webp");
  background-position: center;
  background-size: cover;
}

.experience[data-step="champagne"] .intro-photo {
  background-image: url("./assets/entree-champagne-moderne-v3-chignon-4k.webp");
}

.intro-daylight {
  background:
    linear-gradient(90deg, rgba(255, 246, 226, 0.04), rgba(255, 246, 226, 0.08) 45%, rgba(31, 18, 12, 0.18)),
    radial-gradient(circle at 21% 31%, rgba(255, 255, 255, 0.2), transparent 31%);
}

.intro-depth {
  background:
    linear-gradient(180deg, rgba(8, 5, 3, 0.02), rgba(8, 5, 3, 0.28)),
    radial-gradient(circle at calc(72% + var(--look-x) * 4%) 45%, transparent 0 22%, rgba(20, 11, 8, 0.16) 80%);
}

.wall-title {
  position: absolute;
  z-index: 7;
  left: clamp(24px, 4.2vw, 72px);
  top: clamp(42px, 7vh, 86px);
  max-width: 360px;
  color: #f2c66d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.7vw, 2.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.48),
    0 0 16px rgba(242, 198, 109, 0.28);
  transform: rotate(-1deg) perspective(420px) rotateY(6deg);
}

.experience[data-step="champagne"] .wall-title {
  opacity: 0;
}

.experience[data-step="champagne"] .dialogue-panel {
  width: min(455px, 37vw);
}

.dialogue-panel {
  left: clamp(52px, 9vw, 150px);
  top: clamp(148px, 22vh, 205px);
  bottom: auto;
  width: min(520px, 42vw);
  min-height: 210px;
  padding: clamp(20px, 2.2vw, 30px) clamp(22px, 2.9vw, 34px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #111;
}

.dialogue-panel::after {
  display: none;
}

.dialogue-panel p {
  color: #111;
  font-size: clamp(0.94rem, 1.35vw, 1.12rem);
  font-weight: 650;
  line-height: 1.35;
}

.choice-row {
  margin-top: 16px;
  gap: 12px;
}

.choice-btn {
  min-width: 96px;
  min-height: 42px;
  border: 3px solid #111;
  background: #fff;
  color: #111;
  box-shadow: 0 5px 0 #111;
}

.choice-btn:hover,
.choice-btn:focus-visible {
  border-color: #111;
  box-shadow: 0 7px 0 #111, 0 0 0 4px rgba(242, 198, 109, 0.26);
}

.choice-btn.primary {
  background: #f2c66d;
  color: #111;
}

.choice-btn.ghost {
  background: #fff;
}

.gallery-scene {
  overflow: hidden;
  background: #260911;
}

.gallery-room {
  background-image: url("./assets/galerie-six-oeuvres-journal.webp");
  background-position: center;
  background-size: cover;
  filter: saturate(1.02) contrast(1.02);
}

.gallery-daylight {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 248, 221, 0.18), transparent 25%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.14));
}

.gallery-vignette {
  z-index: 3;
  box-shadow: inset 0 0 80px rgba(19, 5, 8, 0.22), inset 0 -13vh 80px rgba(23, 7, 9, 0.2);
}

.gallery-horizon,
.gallery-hud {
  display: none;
}

.gallery-shell {
  position: relative;
  z-index: 8;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  margin: 0;
  perspective: none;
}

.gallery-track {
  position: absolute;
  inset: 0;
  min-height: 0;
  transform: none;
}

.art-button {
  position: absolute;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.001);
  cursor: pointer;
  transform: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.art-button:nth-child(1) {
  left: 2.5%;
  top: 21.5%;
  width: 15.4%;
  height: 41.5%;
  transform: perspective(900px) rotateY(8deg);
}

.art-button:nth-child(2) {
  left: 20.3%;
  top: 30.3%;
  width: 7.9%;
  height: 27.5%;
  transform: perspective(900px) rotateY(13deg);
}

.art-button:nth-child(3) {
  left: 35.7%;
  top: 36.3%;
  width: 12.1%;
  height: 24.6%;
}

.art-button:nth-child(4) {
  left: 52%;
  top: 36.5%;
  width: 12.5%;
  height: 24.3%;
}

.art-button:nth-child(5) {
  left: 72.9%;
  top: 32%;
  width: 8.8%;
  height: 27.2%;
  transform: perspective(900px) rotateY(-13deg);
}

.art-button:nth-child(6) {
  left: 82%;
  top: 21.3%;
  width: 15.4%;
  height: 42%;
  transform: perspective(900px) rotateY(-8deg);
}

.art-button:hover,
.art-button:focus-visible {
  border-color: rgba(242, 198, 109, 0.86);
  background: rgba(242, 198, 109, 0.08);
  box-shadow: 0 0 34px rgba(242, 198, 109, 0.56);
  outline: none;
}

.art-hotspot-label {
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: max-content;
  max-width: 220px;
  padding: 7px 10px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.art-button:hover .art-hotspot-label,
.art-button:focus-visible .art-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.journal-button {
  position: absolute;
  z-index: 10;
  left: 39.5%;
  top: 82.6%;
  width: 24%;
  height: 11.8%;
  border: 3px solid transparent;
  border-radius: 999px 999px 18px 18px;
  background: rgba(255, 255, 255, 0.001);
  cursor: pointer;
  transform: perspective(700px) rotateX(42deg);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.journal-button span {
  position: absolute;
  left: 50%;
  top: -22px;
  width: max-content;
  padding: 7px 10px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-50%) translateY(6px) rotateX(-42deg);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.journal-button:hover,
.journal-button:focus-visible {
  border-color: rgba(242, 198, 109, 0.9);
  background: rgba(242, 198, 109, 0.1);
  box-shadow: 0 0 34px rgba(242, 198, 109, 0.6);
  outline: none;
}

.journal-button:hover span,
.journal-button:focus-visible span {
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotateX(-42deg);
}

.journal-modal {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 1px solid rgba(57, 41, 26, 0.3);
  border-radius: 8px;
  overflow: hidden;
  color: #1e1711;
  background: #efe2c8;
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.46);
}

.journal-modal::backdrop {
  background: rgba(18, 6, 9, 0.66);
  backdrop-filter: blur(12px);
}

.journal-frame {
  position: relative;
  padding: clamp(16px, 3vw, 34px);
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(84, 61, 40, 0.26) 49.8% 50.2%, transparent 50.3%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.36), transparent 68%),
    #efe2c8;
}

.newspaper-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 4vw, 48px);
}

.newspaper-page {
  min-height: 520px;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(rgba(42, 28, 18, 0.06) 1px, transparent 1px),
    #f8eed9;
  background-size: 100% 9px;
  box-shadow: inset 0 0 0 1px rgba(57, 41, 26, 0.16);
}

.newspaper-kicker {
  margin: 0 0 8px;
  color: #8c1622;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.newspaper-page h3 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.88;
}

.newspaper-page h4 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 3.3rem);
}

.newspaper-lead {
  margin: 0 0 24px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 760;
  line-height: 1.45;
}

.newspaper-columns {
  columns: 2;
  column-gap: 24px;
}

.newspaper-page p,
.newspaper-page li {
  color: rgba(30, 23, 17, 0.82);
  line-height: 1.62;
}

.newspaper-page ul {
  margin: 0;
  padding-left: 20px;
}

.newspaper-signature {
  margin-top: 42px;
  border-top: 2px solid rgba(30, 23, 17, 0.24);
  padding-top: 16px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .intro-photo {
    background-position: 70% center;
  }

  .experience[data-step="champagne"] .intro-photo {
    background-position: 68% center;
  }

  .wall-title {
    left: 18px;
    top: 28px;
    max-width: 210px;
    font-size: clamp(1.1rem, 8vw, 2.1rem);
  }

  .dialogue-panel {
    left: 28px;
    right: 28px;
    top: auto;
    bottom: 28px;
    width: auto;
    min-height: 0;
    padding: 22px 24px 26px;
    border: 4px solid #111;
    border-radius: 28px;
    background: #fff;
    box-shadow: 8px 8px 0 #111;
  }

  .dialogue-panel::after {
    display: block;
    right: auto;
    left: 52px;
    top: -26px;
    width: 38px;
    height: 34px;
    background: #fff;
    clip-path: polygon(20% 100%, 100% 100%, 0 0);
    filter: none;
  }

  .dialogue-panel p {
    font-size: 0.98rem;
  }

  .gallery-scene {
    overflow: auto;
  }

  .gallery-room,
  .gallery-daylight,
  .gallery-vignette {
    position: absolute;
    width: 1280px;
    height: 720px;
  }

  .gallery-shell {
    width: 1280px;
    height: 720px;
    min-height: 720px;
  }

  .journal-modal {
    width: min(720px, calc(100vw - 22px));
  }

  .newspaper-spread {
    grid-template-columns: 1fr;
  }

  .newspaper-page {
    min-height: auto;
  }

  .newspaper-columns {
    columns: 1;
  }
}

/* Final responsive pass: HTML bubble, tighter runaway target, visible journal. */
.dialogue-panel {
  left: clamp(24px, 5.6vw, 92px);
  top: clamp(116px, 16vh, 158px);
  width: min(500px, 39vw);
  min-height: 0;
  padding: clamp(18px, 2.1vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 251, 239, 0.76)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 22px 60px rgba(14, 7, 5, 0.28),
    inset 0 0 0 1px rgba(44, 26, 14, 0.08);
  backdrop-filter: blur(18px) saturate(1.12);
}

.dialogue-panel::after {
  display: block;
  content: "";
  position: absolute;
  right: -16px;
  top: 54%;
  width: 30px;
  height: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 252, 244, 0.86);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  filter: drop-shadow(8px 12px 18px rgba(14, 7, 5, 0.16));
}

.experience[data-step="champagne"] .dialogue-panel {
  width: min(470px, 37vw);
}

.dialogue-panel p {
  display: grid;
  gap: 12px;
  margin: 0;
  color: #17120d;
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  font-weight: 590;
  line-height: 1.42;
}

.dialogue-body,
.dialogue-question {
  display: block;
}

.dialogue-question {
  position: relative;
  width: auto;
  max-width: 92%;
  margin-top: 2px;
  padding: 12px 0 0 18px;
  border: 0;
  border-left: 3px solid rgba(188, 137, 58, 0.92);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(242, 198, 109, 0.2), rgba(242, 198, 109, 0));
  color: #4a2a13;
  font-size: clamp(1.04rem, 1.45vw, 1.3rem);
  font-weight: 860;
  line-height: 1.16;
  box-shadow: none;
}

.dialogue-question::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: min(118px, 44%);
  height: 1px;
  background: linear-gradient(90deg, rgba(188, 137, 58, 0.92), rgba(188, 137, 58, 0));
}

.choice-row {
  margin-top: 18px;
}

.choice-btn {
  min-width: 92px;
  min-height: 42px;
  border-width: 2px;
  box-shadow: 0 4px 0 #111;
}

.choice-btn.is-running {
  z-index: 120;
  pointer-events: none;
}

.gallery-room,
.gallery-daylight,
.gallery-vignette {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}

.gallery-room {
  transform: none;
  background-size: cover;
}

.gallery-shell {
  width: 100vw;
  height: 100svh;
  min-height: 620px;
}

.gallery-track {
  height: 100%;
}

.journal-button {
  left: 36.7%;
  top: 69.2%;
  width: 27%;
  height: 23%;
  border-radius: 999px 999px 28px 28px;
  transform: perspective(760px) rotateX(36deg);
}

.journal-button span {
  top: -10px;
  transform: translateX(-50%) translateY(6px) rotateX(-36deg);
}

.journal-button:hover span,
.journal-button:focus-visible span {
  transform: translateX(-50%) translateY(0) rotateX(-36deg);
}

.click-indicator {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: block;
  width: clamp(18px, 1.55vw, 23px);
  height: clamp(18px, 1.55vw, 23px);
  font-style: normal;
  pointer-events: none;
  opacity: 0.98;
  transform: translate(-50%, -50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.click-indicator::before,
.click-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.click-indicator::before {
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background:
    radial-gradient(circle at 35% 28%, #fff, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle, #fff8cf 0 44%, #ffe28a 66%, #d99a35 100%);
  box-shadow:
    0 2px 8px rgba(18, 8, 3, 0.34),
    0 0 8px rgba(255, 255, 255, 0.86),
    0 0 19px rgba(255, 221, 112, 0.86),
    0 0 34px rgba(255, 196, 74, 0.42);
}

.click-indicator::after {
  border: 1px solid rgba(255, 242, 179, 0.76);
  box-shadow:
    0 0 16px rgba(255, 242, 179, 0.48),
    inset 0 0 10px rgba(255, 255, 255, 0.18);
  animation: indicator-pulse 2.45s ease-out infinite;
}

.art-button:hover .click-indicator,
.art-button:focus-visible .click-indicator,
.journal-button:hover .click-indicator,
.journal-button:focus-visible .click-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.12);
}

.art-button:hover .click-indicator::before,
.art-button:focus-visible .click-indicator::before,
.journal-button:hover .click-indicator::before,
.journal-button:focus-visible .click-indicator::before {
  background:
    radial-gradient(circle at 35% 28%, #fff, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle, #fffdf1 0 42%, #ffe89d 66%, #eca738 100%);
  box-shadow:
    0 3px 11px rgba(18, 8, 3, 0.4),
    0 0 12px rgba(255, 255, 255, 0.95),
    0 0 27px rgba(255, 221, 112, 0.98),
    0 0 44px rgba(255, 196, 74, 0.56);
}

.journal-click-indicator {
  top: 58%;
  transform: translate(-50%, -50%) rotateX(-36deg);
}

.journal-button:hover .journal-click-indicator,
.journal-button:focus-visible .journal-click-indicator {
  transform: translate(-50%, -50%) rotateX(-36deg) scale(1.12);
}

@keyframes indicator-pulse {
  0% {
    opacity: 0.72;
    transform: scale(1);
  }

  72%,
  100% {
    opacity: 0;
    transform: scale(2.35);
  }
}

@media (max-width: 820px) {
  body {
    overflow: hidden;
  }

  .intro-photo {
    background-position: 69% center;
    transform: translate3d(calc(var(--look-x) * -5px), calc(var(--look-y) * -3px), 0) scale(1.02);
  }

  .experience[data-step="champagne"] .intro-photo {
    background-position: 69% center;
  }

  .intro-daylight {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.24)),
      linear-gradient(90deg, rgba(255, 250, 238, 0.24), transparent 68%);
  }

  .wall-title {
    left: 18px;
    top: 22px;
    max-width: 190px;
    font-size: clamp(1.08rem, 7vw, 1.9rem);
  }

  .dialogue-panel,
  .experience[data-step="champagne"] .dialogue-panel {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: auto;
    padding: 16px;
    border-radius: 22px;
  }

  .dialogue-panel::after {
    right: 34px;
    top: -15px;
    width: 24px;
    height: 24px;
    transform: rotate(-54deg);
  }

  .dialogue-panel p {
    gap: 9px;
    font-size: 0.92rem;
    line-height: 1.34;
  }

  .dialogue-question {
    max-width: 100%;
    padding: 10px 0 0 14px;
    font-size: 1rem;
  }

  .choice-row {
    min-height: 44px;
    margin-top: 12px;
  }

  .choice-btn {
    min-width: 84px;
    min-height: 38px;
    padding: 0 16px;
  }

  .gallery-scene {
    overflow: auto;
    background: #260911;
  }

  .gallery-room,
  .gallery-daylight,
  .gallery-vignette,
  .gallery-shell {
    width: max(100vw, calc(100svh * 1.7778));
    height: 100svh;
    min-height: 620px;
  }

  .gallery-room,
  .gallery-daylight,
  .gallery-vignette {
    position: absolute;
    inset: 0 auto auto 0;
  }

  .gallery-shell {
    margin: 0;
  }

  .gallery-track {
    position: absolute;
    inset: 0;
    display: block;
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  .art-button,
  .art-button:nth-child(n) {
    position: absolute;
    margin: 0;
  }

  .art-button:nth-child(1) {
    left: 2.5%;
    top: 21.5%;
    width: 15.4%;
    height: 41.5%;
    transform: perspective(900px) rotateY(8deg);
  }

  .art-button:nth-child(2) {
    left: 20.3%;
    top: 30.3%;
    width: 7.9%;
    height: 27.5%;
    transform: perspective(900px) rotateY(13deg);
  }

  .art-button:nth-child(3) {
    left: 35.7%;
    top: 36.3%;
    width: 12.1%;
    height: 24.6%;
    transform: none;
  }

  .art-button:nth-child(4) {
    left: 52%;
    top: 36.5%;
    width: 12.5%;
    height: 24.3%;
    transform: none;
  }

  .art-button:nth-child(5) {
    left: 72.9%;
    top: 32%;
    width: 8.8%;
    height: 27.2%;
    transform: perspective(900px) rotateY(-13deg);
  }

  .art-button:nth-child(6) {
    left: 82%;
    top: 21.3%;
    width: 15.4%;
    height: 42%;
    transform: perspective(900px) rotateY(-8deg);
  }

  .journal-button {
    left: 36.7%;
    top: 69.2%;
    width: 27%;
    height: 23%;
  }

  .click-indicator {
    width: 17px;
    height: 17px;
  }

  .journal-click-indicator {
    top: 58%;
  }

  .journal-modal {
    width: min(720px, calc(100vw - 18px));
    max-height: calc(100svh - 18px);
  }

  .journal-frame {
    overflow: auto;
    max-height: calc(100svh - 18px);
  }
}

/* Liquid glass UI pass: cinematic glass, refined controls, readable overlays. */
:root {
  --glass-fill: rgba(255, 255, 255, 0.42);
  --glass-fill-strong: rgba(255, 255, 255, 0.62);
  --glass-stroke: rgba(255, 255, 255, 0.72);
  --glass-shadow: rgba(24, 12, 7, 0.26);
  --glass-blue: rgba(160, 214, 255, 0.46);
  --glass-gold: rgba(242, 198, 109, 0.74);
  --glass-coral: rgba(232, 72, 89, 0.34);
}

.dialogue-panel {
  overflow: visible;
  isolation: isolate;
  border: 1px solid var(--glass-stroke);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 92% 100%, rgba(242, 198, 109, 0.24), rgba(242, 198, 109, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  box-shadow:
    0 28px 80px var(--glass-shadow),
    0 10px 28px rgba(255, 255, 255, 0.18) inset,
    0 -18px 36px rgba(78, 35, 22, 0.1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.32) inset;
  -webkit-backdrop-filter: blur(26px) saturate(1.42) contrast(1.02);
  backdrop-filter: blur(26px) saturate(1.42) contrast(1.02);
}

.dialogue-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 28%),
    linear-gradient(300deg, rgba(170, 220, 255, 0.28), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 76% 16%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 18%);
  opacity: 0.88;
  pointer-events: none;
}

.dialogue-panel::after {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.dialogue-body {
  color: rgba(17, 14, 11, 0.88);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.dialogue-question {
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 10px 14px 11px 18px;
  border-left: 3px solid rgba(242, 198, 109, 0.86);
  border-radius: 0 18px 18px 0;
  background:
    linear-gradient(90deg, rgba(242, 198, 109, 0.24), rgba(242, 198, 109, 0.05) 58%, rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  box-shadow:
    0 10px 24px rgba(61, 36, 18, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.74) inset;
  color: #3b250f;
  -webkit-backdrop-filter: blur(16px) saturate(1.28);
  backdrop-filter: blur(16px) saturate(1.28);
}

.dialogue-question::before {
  left: 14px;
  top: 8px;
  width: min(88px, 36%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(242, 198, 109, 0));
}

.choice-btn,
.modal-nav,
.modal-close {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18));
  color: #17120d;
  box-shadow:
    0 14px 30px rgba(26, 13, 8, 0.2),
    0 3px 14px rgba(255, 255, 255, 0.26) inset,
    0 -12px 20px rgba(54, 27, 17, 0.09) inset,
    0 0 0 1px rgba(255, 255, 255, 0.32) inset;
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
}

.choice-btn::before,
.modal-nav::before,
.modal-close::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 84% 78%, rgba(160, 214, 255, 0.44), rgba(160, 214, 255, 0) 28%);
  opacity: 0.82;
  pointer-events: none;
}

.choice-btn.primary {
  border-color: rgba(255, 242, 196, 0.78);
  background:
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 28%),
    linear-gradient(140deg, rgba(255, 225, 139, 0.92), rgba(255, 142, 80, 0.78) 54%, rgba(242, 198, 109, 0.78));
  box-shadow:
    0 16px 34px rgba(153, 76, 31, 0.32),
    0 0 24px rgba(242, 198, 109, 0.34),
    0 4px 18px rgba(255, 255, 255, 0.36) inset,
    0 -14px 24px rgba(127, 47, 18, 0.16) inset,
    0 0 0 1px rgba(255, 255, 255, 0.44) inset;
}

.choice-btn.ghost {
  background:
    radial-gradient(circle at 25% 12%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.16));
}

.choice-btn:hover,
.choice-btn:focus-visible,
.modal-nav:hover,
.modal-nav:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 42px rgba(26, 13, 8, 0.26),
    0 0 30px rgba(160, 214, 255, 0.24),
    0 0 24px rgba(242, 198, 109, 0.22),
    0 4px 18px rgba(255, 255, 255, 0.42) inset,
    0 -14px 24px rgba(54, 27, 17, 0.1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
  outline: none;
}

.choice-btn.is-running {
  pointer-events: none;
}

.art-button {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0);
  box-shadow: none;
}

.art-button:hover,
.art-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 48%),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 0 0 1px rgba(242, 198, 109, 0.34) inset,
    0 0 34px rgba(255, 255, 255, 0.22),
    0 0 36px rgba(242, 198, 109, 0.34);
}

.art-hotspot-label,
.journal-button span {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 32%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22));
  color: #17120d;
  box-shadow:
    0 12px 30px rgba(16, 8, 5, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset,
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  -webkit-backdrop-filter: blur(18px) saturate(1.38);
  backdrop-filter: blur(18px) saturate(1.38);
}

.click-indicator {
  width: clamp(14px, 1.25vw, 18px);
  height: clamp(14px, 1.25vw, 18px);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 18px rgba(242, 198, 109, 0.58));
}

.click-indicator::before {
  inset: 3px;
  border-color: rgba(255, 255, 255, 0.98);
  background:
    radial-gradient(circle at 32% 26%, #ffffff 0 18%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle, #fffdf1 0 28%, #ffe8a1 58%, rgba(255, 255, 255, 0.28) 100%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.98),
    0 0 18px rgba(255, 225, 139, 0.88),
    0 0 34px rgba(160, 214, 255, 0.34);
}

.click-indicator::after {
  border-color: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.52),
    0 0 28px rgba(242, 198, 109, 0.34),
    inset 0 0 10px rgba(255, 255, 255, 0.24);
}

.art-modal,
.journal-modal {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34));
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.45),
    0 10px 34px rgba(255, 255, 255, 0.18) inset,
    0 -24px 44px rgba(49, 22, 17, 0.12) inset,
    0 0 0 1px rgba(255, 255, 255, 0.26) inset;
  -webkit-backdrop-filter: blur(28px) saturate(1.36);
  backdrop-filter: blur(28px) saturate(1.36);
}

.art-modal::backdrop,
.journal-modal::backdrop {
  background:
    radial-gradient(circle at 48% 26%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(242, 198, 109, 0.14), transparent 30%),
    rgba(18, 6, 9, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
}

.modal-frame,
.journal-frame {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 88% 12%, rgba(160, 214, 255, 0.2), rgba(160, 214, 255, 0) 30%),
    radial-gradient(circle at 18% 88%, rgba(242, 198, 109, 0.18), rgba(242, 198, 109, 0) 34%);
}

.modal-art-wrap,
.newspaper-page {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.32)),
    rgba(255, 250, 236, 0.62);
  box-shadow:
    0 18px 42px rgba(36, 18, 10, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 -14px 30px rgba(80, 40, 18, 0.08) inset;
}

.modal-art-wrap {
  grid-column: 1;
  grid-row: 1;
}

.modal-copy {
  grid-column: 2;
  grid-row: 1;
}

.modal-art-wrap img {
  border-radius: 14px;
}

.journal-button:hover,
.journal-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 46%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(242, 198, 109, 0.28) inset,
    0 0 36px rgba(255, 255, 255, 0.22),
    0 0 38px rgba(242, 198, 109, 0.32);
}

@media (max-width: 820px) {
  .dialogue-panel,
  .experience[data-step="champagne"] .dialogue-panel {
    border-radius: 24px;
    background:
      radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 30%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.52));
    box-shadow:
      0 18px 54px rgba(14, 7, 5, 0.34),
      0 8px 24px rgba(255, 255, 255, 0.18) inset,
      0 0 0 1px rgba(255, 255, 255, 0.34) inset;
    -webkit-backdrop-filter: blur(22px) saturate(1.32);
    backdrop-filter: blur(22px) saturate(1.32);
  }

  .dialogue-panel::after {
    border-color: rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.62);
  }

  .dialogue-question {
    width: 100%;
    padding: 11px 14px 11px 16px;
    border-radius: 0 16px 16px 0;
  }

  .choice-btn {
    min-width: 82px;
    border-radius: 999px;
  }

  .art-hotspot-label,
  .journal-button span {
    font-size: 0.74rem;
  }

  .click-indicator {
    width: 14px;
    height: 14px;
  }

  .art-modal,
  .journal-modal {
    border-radius: 18px;
  }

  .modal-art-wrap,
  .newspaper-page {
    border-radius: 14px;
  }

  .modal-art-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .modal-copy {
    grid-column: 1;
    grid-row: 2;
  }
}

/* First-view art direction: portfolio launch invitation interface. */
.experience[data-step="invitation"] .wall-title {
  left: clamp(28px, 4vw, 64px);
  top: clamp(28px, 4.8vh, 54px);
  z-index: 16;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  max-width: none;
  color: #fff6e8;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
  transform: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: clamp(58px, 5.4vw, 84px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 17px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.12));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -14px 24px rgba(55, 31, 22, 0.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  backdrop-filter: blur(22px) saturate(1.28);
  color: #fff8ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 2.8vw, 3rem);
  line-height: 0.86;
}

.brand-mark span {
  display: inline-block;
  margin-left: -0.16em;
  transform: translateY(0.34em);
}

.brand-copy {
  display: grid;
  gap: 7px;
}

.brand-copy strong {
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 470;
  letter-spacing: 0;
}

.brand-copy small {
  color: rgba(242, 198, 109, 0.92);
  font-size: clamp(0.72rem, 0.84vw, 0.86rem);
  font-weight: 760;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: clamp(200px, 24vw, 400px);
  max-width: calc(100vw - 128px);
  height: auto;
  filter:
    drop-shadow(0 2px 16px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 18px rgba(255, 248, 232, 0.16));
}

.experience[data-step="invitation"] .dialogue-panel {
  left: clamp(54px, 7.6vw, 130px);
  top: clamp(132px, 20vh, 218px);
  bottom: auto;
  width: min(640px, 48vw);
  padding: clamp(26px, 2.5vw, 44px) clamp(30px, 3.2vw, 54px);
  border-radius: clamp(28px, 2.4vw, 38px);
  background:
    radial-gradient(circle at 20% 11%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 76% 0%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 22%),
    linear-gradient(145deg, rgba(92, 74, 58, 0.62), rgba(60, 48, 39, 0.42) 56%, rgba(32, 27, 23, 0.46));
  box-shadow:
    0 34px 88px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -34px 54px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(30px) saturate(1.18) contrast(1.04);
  backdrop-filter: blur(30px) saturate(1.18) contrast(1.04);
}

.experience[data-step="invitation"] .dialogue-panel::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 24%);
}

.experience[data-step="invitation"] .dialogue-panel::after {
  right: -45px;
  top: 45%;
  width: 72px;
  height: 58px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.16)),
    rgba(78, 62, 50, 0.4);
  clip-path: polygon(0 18%, 100% 50%, 0 82%);
  filter: drop-shadow(14px 16px 20px rgba(0, 0, 0, 0.18));
}

.dialogue-kicker {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: clamp(16px, 1.45vw, 26px);
  color: rgba(242, 198, 109, 0.92);
  font-size: clamp(0.7rem, 0.76vw, 0.82rem);
  font-weight: 760;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.dialogue-kicker::before {
  content: "✦";
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2em;
  letter-spacing: 0;
}

.experience[data-step="invitation"] .dialogue-panel p {
  gap: clamp(14px, 1.65vh, 22px);
}

.experience[data-step="invitation"] .dialogue-body {
  max-width: 12.8em;
  color: rgba(255, 248, 238, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 2.62vw, 3.85rem);
  font-weight: 430;
  line-height: 1.16;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.experience[data-step="invitation"] .dialogue-question {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: rgba(242, 198, 109, 0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.32rem, 1.65vw, 2rem);
  font-weight: 430;
  line-height: 1.15;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.experience[data-step="invitation"] .dialogue-question::before {
  display: none;
}

.experience[data-step="invitation"] .choice-row {
  gap: clamp(18px, 1.5vw, 28px);
  margin-top: clamp(16px, 1.8vh, 24px);
  padding-top: clamp(18px, 1.8vh, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 20px;
  font-weight: 650;
  letter-spacing: 0;
}

.choice-btn span {
  font-size: 1.35rem;
  line-height: 1;
}

.experience[data-step="invitation"] .choice-btn.primary {
  min-width: min(300px, 100%);
}

.experience[data-step="invitation"] .choice-btn.ghost,
body > .choice-btn.ghost.is-running {
  min-width: 150px;
  color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
}

.experience[data-step="champagne"] .dialogue-kicker,
.experience[data-step="champagne"] .contact-ribbon {
  display: none;
}

.contact-ribbon {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 3.2vh, 42px);
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4.3vw, 74px);
  width: min(927px, calc(100vw - 56px));
  min-height: 43px;
  padding: 9px clamp(16px, 2.16vw, 31px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 36%),
    linear-gradient(145deg, rgba(54, 45, 37, 0.58), rgba(30, 27, 24, 0.42));
  box-shadow:
    0 18px 49px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -13px 20px rgba(0, 0, 0, 0.16);
  color: rgba(255, 248, 238, 0.92);
  font-size: clamp(0.76rem, 0.9vw, 0.9rem);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
  backdrop-filter: blur(24px) saturate(1.18);
  transform: translateX(-50%);
}

.contact-ribbon span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.contact-ribbon a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.contact-ribbon a:focus-visible,
.contact-panel a:focus-visible {
  outline: 1px solid rgba(255, 247, 223, 0.78);
  outline-offset: 4px;
}

.contact-ribbon a:hover,
.contact-panel a:hover {
  color: #fff7df;
}

.contact-ribbon span::before {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: rgba(242, 198, 109, 0.96);
  font-size: 0.95rem;
}

.contact-ribbon span:nth-child(1)::before {
  content: "✉";
}

.contact-ribbon span:nth-child(2)::before {
  content: "☎";
}

.contact-ribbon span:nth-child(3)::before {
  content: "⌖";
}

.contact-ribbon a::before {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: rgba(242, 198, 109, 0.96);
  font-size: 0.95rem;
}

.contact-ribbon a:nth-child(1)::before {
  content: "✉";
}

.contact-ribbon a:nth-child(2)::before {
  content: "☎";
}

@media (max-width: 1100px) {
  .experience[data-step="invitation"] .dialogue-panel {
    width: min(570px, 50vw);
  }

  .contact-ribbon {
    gap: 22px;
    font-size: 0.76rem;
  }
}

@media (max-width: 820px) {
  .experience[data-step="invitation"] .wall-title {
    left: 16px;
    top: 16px;
    gap: 12px;
  }

  .brand-mark {
    width: 52px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .brand-copy small {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }

  .brand-logo {
    width: min(198px, calc(100vw - 132px));
    max-width: calc(100vw - 132px);
  }

  .experience[data-step="invitation"] .dialogue-panel,
  .experience[data-step="champagne"] .dialogue-panel {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: auto;
    padding: 22px;
    border-radius: 24px;
  }

  .experience[data-step="invitation"] .dialogue-panel::after {
    right: 34px;
    top: -16px;
    width: 30px;
    height: 28px;
    transform: rotate(-54deg);
  }

  .dialogue-kicker {
    margin-bottom: 16px;
    font-size: 0.64rem;
    letter-spacing: 0.22em;
  }

  .experience[data-step="invitation"] .dialogue-body {
    max-width: 100%;
    font-size: clamp(1.62rem, 8.6vw, 2.45rem);
    line-height: 1.12;
  }

  .experience[data-step="invitation"] .dialogue-question {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }

  .experience[data-step="invitation"] .choice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-top: 18px;
  }

  .choice-btn {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 17px;
    font-size: 0.9rem;
  }

  .choice-btn span {
    font-size: 1.1rem;
  }

  .experience[data-step="invitation"] .choice-btn.primary {
    min-width: 0;
  }

  .experience[data-step="invitation"] .choice-btn.ghost {
    min-width: 82px;
  }

  .contact-ribbon {
    display: none;
  }
}

/* Shared contact layer and champagne view alignment. */
.experience > .contact-ribbon {
  position: fixed;
  z-index: 48;
  pointer-events: auto;
}

.experience[data-step="invitation"] > .contact-ribbon,
.experience[data-step="champagne"] > .contact-ribbon,
.experience[data-step="gallery"] > .contact-ribbon {
  display: flex;
}

.experience[data-step="champagne"] .wall-title {
  left: clamp(78px, 7.6vw, 126px);
  top: clamp(28px, 4.8vh, 54px);
  z-index: 16;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  max-width: none;
  color: #fff6e8;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
  opacity: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
  transform: none;
}

.experience[data-step="champagne"] .dialogue-panel {
  left: clamp(54px, 7.6vw, 130px);
  top: clamp(132px, 20vh, 218px);
  bottom: auto;
  width: min(620px, 46vw);
  padding: clamp(26px, 2.5vw, 44px) clamp(30px, 3.2vw, 54px);
  border-radius: clamp(28px, 2.4vw, 38px);
  background:
    radial-gradient(circle at 20% 11%, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 80% 0%, rgba(242, 198, 109, 0.18), rgba(242, 198, 109, 0) 26%),
    linear-gradient(145deg, rgba(92, 74, 58, 0.62), rgba(60, 48, 39, 0.42) 56%, rgba(32, 27, 23, 0.46));
  box-shadow:
    0 34px 88px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -34px 54px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(30px) saturate(1.18) contrast(1.04);
  backdrop-filter: blur(30px) saturate(1.18) contrast(1.04);
}

.experience[data-step="champagne"] .dialogue-panel::after {
  right: -45px;
  top: 45%;
  width: 72px;
  height: 58px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.16)),
    rgba(78, 62, 50, 0.4);
  clip-path: polygon(0 18%, 100% 50%, 0 82%);
  filter: drop-shadow(14px 16px 20px rgba(0, 0, 0, 0.18));
}

.experience[data-step="champagne"] .dialogue-kicker {
  display: inline-flex;
}

.experience[data-step="champagne"] .dialogue-panel p {
  gap: clamp(14px, 1.65vh, 22px);
}

.experience[data-step="champagne"] .dialogue-body {
  max-width: 17em;
  color: rgba(255, 248, 238, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.44rem, 2vw, 2.78rem);
  font-weight: 430;
  line-height: 1.24;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.experience[data-step="champagne"] .dialogue-question {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: rgba(242, 198, 109, 0.94);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.32rem, 1.65vw, 2rem);
  font-weight: 430;
  line-height: 1.15;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.experience[data-step="champagne"] .dialogue-question::before {
  display: none;
}

.experience[data-step="champagne"] .choice-row {
  gap: clamp(18px, 1.5vw, 28px);
  margin-top: clamp(16px, 1.8vh, 24px);
  padding-top: clamp(18px, 1.8vh, 24px);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.experience[data-step="champagne"] .choice-btn.primary {
  min-width: min(276px, 100%);
}

.experience[data-step="champagne"] .choice-btn.ghost {
  min-width: 150px;
  color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
}

.contact-menu-toggle,
.contact-panel {
  display: none;
}

@media (max-width: 820px) {
  .experience[data-step="invitation"] > .contact-ribbon,
  .experience[data-step="champagne"] > .contact-ribbon,
  .experience[data-step="gallery"] > .contact-ribbon {
    display: none;
  }

  .contact-menu-toggle {
    position: fixed;
    right: 16px;
    top: 16px;
    z-index: 90;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 16px;
    background:
      radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 34%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.14));
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      inset 0 -12px 20px rgba(35, 20, 14, 0.16);
    -webkit-backdrop-filter: blur(22px) saturate(1.28);
    backdrop-filter: blur(22px) saturate(1.28);
    cursor: pointer;
  }

  .contact-menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 248, 238, 0.96);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .contact-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .contact-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .contact-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .contact-panel:not([hidden]) {
    position: fixed;
    right: 16px;
    top: 76px;
    z-index: 89;
    display: grid;
    gap: 10px;
    width: min(310px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 22px;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 30%),
      linear-gradient(145deg, rgba(58, 47, 40, 0.76), rgba(28, 24, 22, 0.66));
    box-shadow:
      0 24px 72px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.56),
      inset 0 -18px 30px rgba(0, 0, 0, 0.2);
    color: rgba(255, 248, 238, 0.94);
    -webkit-backdrop-filter: blur(26px) saturate(1.22);
    backdrop-filter: blur(26px) saturate(1.22);
  }

  .contact-panel p {
    margin: 0 0 4px;
    color: rgba(242, 198, 109, 0.96);
    font-size: 0.72rem;
    font-weight: 780;
    letter-spacing: 0.26em;
    text-transform: uppercase;
  }

  .contact-panel a,
  .contact-panel span {
    color: rgba(255, 248, 238, 0.94);
    font-size: 0.96rem;
    line-height: 1.28;
    text-decoration: none;
  }

  .experience[data-step="invitation"] .wall-title {
    left: 16px;
    top: 32px;
    gap: 12px;
  }

  .experience[data-step="champagne"] .wall-title {
    left: 66px;
    top: 32px;
    gap: 12px;
  }

  .experience[data-step="champagne"] .dialogue-panel {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: auto;
    padding: 22px;
    border-radius: 24px;
  }

  .experience[data-step="champagne"] .dialogue-panel::after {
    right: 34px;
    top: -16px;
    width: 30px;
    height: 28px;
    transform: rotate(-54deg);
  }

  .experience[data-step="champagne"] .dialogue-body {
    max-width: 100%;
    font-size: clamp(1.2rem, 5.7vw, 1.58rem);
    line-height: 1.2;
  }

  .experience[data-step="champagne"] .dialogue-question {
    font-size: clamp(1.12rem, 5.5vw, 1.45rem);
  }

  .experience[data-step="champagne"] .choice-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-top: 18px;
  }

  .experience[data-step="champagne"] .choice-btn.primary {
    min-width: 0;
  }

  .experience[data-step="champagne"] .choice-btn.ghost {
    min-width: 82px;
  }
}

/* Bordeaux glass refresh: inspired by burgundy, black, white, and cream references. */
:root {
  --lux-black: #060606;
  --lux-ink: #11080a;
  --lux-burgundy: #6d0017;
  --lux-burgundy-deep: #3f030d;
  --lux-burgundy-bright: #9d061f;
  --lux-cream: #fff4da;
  --lux-white: #fffdf8;
  --lux-gold: #f6d99a;
  --lux-gold-soft: #e9c178;
  --lux-glass-edge: rgba(255, 255, 255, 0.72);
  --lux-glass-hairline: rgba(255, 244, 218, 0.48);
}

.dialogue-panel,
.experience[data-step="invitation"] .dialogue-panel,
.experience[data-step="champagne"] .dialogue-panel {
  border: 1px solid var(--lux-glass-edge);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.17) 18%, rgba(255, 255, 255, 0.06) 34%, rgba(255, 255, 255, 0.12) 100%),
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 25%),
    radial-gradient(circle at 84% 10%, rgba(246, 217, 154, 0.32), rgba(246, 217, 154, 0) 31%),
    radial-gradient(circle at 20% 88%, rgba(157, 6, 31, 0.56), rgba(157, 6, 31, 0) 42%),
    linear-gradient(145deg, rgba(109, 0, 23, 0.78), rgba(17, 8, 10, 0.64) 54%, rgba(6, 6, 6, 0.58));
  box-shadow:
    0 38px 104px rgba(0, 0, 0, 0.52),
    0 0 48px rgba(157, 6, 31, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 12px 28px rgba(255, 255, 255, 0.16),
    inset 0 -34px 58px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 244, 218, 0.28);
  -webkit-backdrop-filter: blur(42px) saturate(1.62) contrast(1.1);
  backdrop-filter: blur(42px) saturate(1.62) contrast(1.1);
}

.dialogue-panel::before,
.experience[data-step="invitation"] .dialogue-panel::before {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.2) 16%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(302deg, rgba(255, 244, 218, 0.32), rgba(255, 244, 218, 0) 38%),
    radial-gradient(circle at 74% 12%, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0) 19%);
  opacity: 0.95;
}

.dialogue-panel::after,
.experience[data-step="invitation"] .dialogue-panel::after,
.experience[data-step="champagne"] .dialogue-panel::after {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 244, 218, 0.18)),
    rgba(109, 0, 23, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    10px 18px 28px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(32px) saturate(1.44);
  backdrop-filter: blur(32px) saturate(1.44);
}

.dialogue-kicker,
.contact-panel p,
#modalMeta {
  color: var(--lux-gold);
  text-shadow:
    0 0 14px rgba(246, 217, 154, 0.22),
    0 1px 10px rgba(0, 0, 0, 0.32);
}

.dialogue-kicker::before {
  color: var(--lux-white);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
}

.dialogue-body,
.experience[data-step="invitation"] .dialogue-body,
.experience[data-step="champagne"] .dialogue-body {
  color: rgba(255, 250, 239, 0.98);
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(255, 244, 218, 0.08);
}

.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  color: var(--lux-gold);
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.36),
    0 0 20px rgba(246, 217, 154, 0.18);
}

.choice-row,
.experience[data-step="invitation"] .choice-row,
.experience[data-step="champagne"] .choice-row {
  border-top-color: rgba(255, 244, 218, 0.26);
}

.choice-btn,
.modal-nav,
.modal-close {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 84% 90%, rgba(246, 217, 154, 0.22), rgba(246, 217, 154, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(12, 12, 12, 0.34);
  color: var(--lux-cream);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -16px 24px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 244, 218, 0.2);
  -webkit-backdrop-filter: blur(30px) saturate(1.62) contrast(1.08);
  backdrop-filter: blur(30px) saturate(1.62) contrast(1.08);
}

.choice-btn::before,
.modal-nav::before,
.modal-close::before {
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 88% 78%, rgba(246, 217, 154, 0.32), rgba(246, 217, 154, 0) 30%);
  opacity: 0.9;
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  border-color: rgba(255, 244, 218, 0.86);
  background:
    radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 30%),
    linear-gradient(140deg, rgba(255, 244, 218, 0.9), rgba(246, 217, 154, 0.82) 48%, rgba(154, 6, 31, 0.54)),
    rgba(255, 255, 255, 0.18);
  color: var(--lux-black);
  box-shadow:
    0 18px 42px rgba(109, 0, 23, 0.3),
    0 0 28px rgba(246, 217, 154, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -14px 26px rgba(109, 0, 23, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.choice-btn.ghost,
.experience[data-step="invitation"] .choice-btn.ghost,
.experience[data-step="champagne"] .choice-btn.ghost,
body > .choice-btn.ghost.is-running {
  border-color: rgba(255, 244, 218, 0.34);
  background:
    radial-gradient(circle at 26% 10%, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, rgba(157, 6, 31, 0.34), rgba(6, 6, 6, 0.42)),
    rgba(255, 255, 255, 0.04);
  color: rgba(255, 250, 239, 0.92);
}

.choice-btn:hover,
.choice-btn:focus-visible,
.modal-nav:hover,
.modal-nav:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(246, 217, 154, 0.28),
    0 0 34px rgba(157, 6, 31, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -14px 26px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 244, 218, 0.3);
}

.contact-ribbon {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 88% 100%, rgba(157, 6, 31, 0.36), rgba(157, 6, 31, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(7, 7, 7, 0.56);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(157, 6, 31, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -14px 24px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 244, 218, 0.2);
  color: rgba(255, 250, 239, 0.94);
  -webkit-backdrop-filter: blur(34px) saturate(1.56) contrast(1.06);
  backdrop-filter: blur(34px) saturate(1.56) contrast(1.06);
}

.contact-ribbon span::before {
  color: var(--lux-gold);
  text-shadow:
    0 0 14px rgba(246, 217, 154, 0.62),
    0 1px 10px rgba(0, 0, 0, 0.34);
}

.contact-menu-toggle {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 90% 88%, rgba(157, 6, 31, 0.46), rgba(157, 6, 31, 0) 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    rgba(6, 6, 6, 0.44);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    inset 0 -12px 20px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(32px) saturate(1.58);
  backdrop-filter: blur(32px) saturate(1.58);
}

.contact-menu-toggle span {
  background: var(--lux-cream);
}

.contact-panel:not([hidden]) {
  border-color: rgba(255, 255, 255, 0.68);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 88% 100%, rgba(157, 6, 31, 0.38), rgba(157, 6, 31, 0) 36%),
    linear-gradient(145deg, rgba(109, 0, 23, 0.62), rgba(6, 6, 6, 0.64));
  color: rgba(255, 250, 239, 0.95);
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -20px 32px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 244, 218, 0.22);
  -webkit-backdrop-filter: blur(38px) saturate(1.62) contrast(1.08);
  backdrop-filter: blur(38px) saturate(1.62) contrast(1.08);
}

.contact-panel a,
.contact-panel span {
  color: rgba(255, 250, 239, 0.95);
}

.journal-button span,
.art-hotspot-label {
  border-color: rgba(255, 255, 255, 0.66);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 32%),
    linear-gradient(145deg, rgba(109, 0, 23, 0.68), rgba(6, 6, 6, 0.58));
  color: var(--lux-cream);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  backdrop-filter: blur(26px) saturate(1.5);
}

.click-indicator::before {
  border-color: rgba(255, 255, 255, 0.98);
  background:
    radial-gradient(circle at 35% 28%, #fff, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle, #fffdf8 0 40%, #f6d99a 65%, #9d061f 100%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.38),
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 23px rgba(246, 217, 154, 0.95),
    0 0 42px rgba(157, 6, 31, 0.46);
}

.click-indicator::after {
  border-color: rgba(255, 244, 218, 0.82);
  box-shadow:
    0 0 18px rgba(255, 244, 218, 0.52),
    0 0 28px rgba(157, 6, 31, 0.3),
    inset 0 0 12px rgba(255, 255, 255, 0.22);
}

.art-modal,
.journal-modal {
  border-color: rgba(255, 255, 255, 0.64);
  color: var(--lux-cream);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 88% 100%, rgba(157, 6, 31, 0.34), rgba(157, 6, 31, 0) 36%),
    linear-gradient(145deg, rgba(109, 0, 23, 0.54), rgba(6, 6, 6, 0.58));
  box-shadow:
    0 38px 130px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -28px 48px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 244, 218, 0.22);
  -webkit-backdrop-filter: blur(42px) saturate(1.58) contrast(1.08);
  backdrop-filter: blur(42px) saturate(1.58) contrast(1.08);
}

.art-modal::backdrop,
.journal-modal::backdrop {
  background:
    radial-gradient(circle at 48% 26%, rgba(246, 217, 154, 0.12), transparent 25%),
    radial-gradient(circle at 72% 78%, rgba(157, 6, 31, 0.22), transparent 30%),
    rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.16);
  backdrop-filter: blur(20px) saturate(1.16);
}

.modal-frame,
.journal-frame {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.07)),
    radial-gradient(circle at 88% 12%, rgba(246, 217, 154, 0.18), rgba(246, 217, 154, 0) 32%),
    radial-gradient(circle at 16% 88%, rgba(157, 6, 31, 0.24), rgba(157, 6, 31, 0) 34%);
}

.modal-art-wrap,
.newspaper-page {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 244, 218, 0.28)),
    rgba(255, 250, 239, 0.58);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -16px 30px rgba(109, 0, 23, 0.08);
}

.modal-copy p,
.modal-copy h3 {
  color: rgba(255, 250, 239, 0.94);
}

.newspaper-page,
.newspaper-page * {
  color: #15090a;
}

/* True liquid glass correction: neutral glass, color only on text and controls. */
:root {
  --ui-ink: #0b0b0b;
  --ui-burgundy: #6d0017;
  --ui-burgundy-soft: #8b1023;
  --ui-cream: #fff4da;
  --ui-white: #fffdf8;
  --ui-gold: #efd08d;
  --glass-clear: rgba(255, 255, 255, 0.13);
  --glass-clear-soft: rgba(255, 255, 255, 0.07);
  --glass-clear-strong: rgba(255, 255, 255, 0.25);
  --glass-edge: rgba(255, 255, 255, 0.62);
  --glass-edge-soft: rgba(255, 255, 255, 0.36);
  --glass-shadow: rgba(0, 0, 0, 0.34);
}

.dialogue-panel,
.experience[data-step="invitation"] .dialogue-panel,
.experience[data-step="champagne"] .dialogue-panel,
.contact-ribbon,
.contact-panel:not([hidden]),
.contact-menu-toggle,
.art-modal,
.journal-modal {
  border-color: var(--glass-edge);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08) 33%, rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 28px 86px var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -22px 36px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(38px) saturate(1.42) contrast(1.08);
  backdrop-filter: blur(38px) saturate(1.42) contrast(1.08);
}

.art-modal::backdrop,
.journal-modal::backdrop {
  background: rgba(0, 0, 0, 0.54);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  backdrop-filter: blur(20px) saturate(1.08);
}

.dialogue-panel::before,
.experience[data-step="invitation"] .dialogue-panel::before {
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.22) 16%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(304deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 34%);
  opacity: 0.74;
}

.dialogue-panel::after,
.experience[data-step="invitation"] .dialogue-panel::after,
.experience[data-step="champagne"] .dialogue-panel::after {
  border-color: var(--glass-edge-soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    12px 18px 30px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(34px) saturate(1.34);
  backdrop-filter: blur(34px) saturate(1.34);
}

.dialogue-body,
.experience[data-step="invitation"] .dialogue-body,
.experience[data-step="champagne"] .dialogue-body {
  color: var(--ui-white);
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.52),
    0 1px 0 rgba(0, 0, 0, 0.18);
}

.dialogue-kicker,
.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question,
.contact-ribbon span::before,
.contact-panel p,
#modalMeta {
  color: var(--ui-gold);
  text-shadow:
    0 1px 14px rgba(0, 0, 0, 0.46),
    0 0 10px rgba(255, 255, 255, 0.12);
}

.dialogue-kicker::before {
  color: var(--ui-white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.36);
}

.choice-row,
.experience[data-step="invitation"] .choice-row,
.experience[data-step="champagne"] .choice-row {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.choice-btn,
.modal-nav,
.modal-close {
  border-color: rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.08);
  color: var(--ui-white);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -14px 24px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(30px) saturate(1.38) contrast(1.06);
  backdrop-filter: blur(30px) saturate(1.38) contrast(1.06);
}

.choice-btn::before,
.modal-nav::before,
.modal-close::before {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 32%),
    linear-gradient(302deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 38%);
  opacity: 0.78;
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  border-color: rgba(255, 244, 218, 0.74);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 244, 218, 0.44)),
    rgba(255, 244, 218, 0.32);
  color: var(--ui-ink);
}

.choice-btn.primary span {
  color: var(--ui-burgundy);
}

.choice-btn.ghost,
.experience[data-step="invitation"] .choice-btn.ghost,
.experience[data-step="champagne"] .choice-btn.ghost,
body > .choice-btn.ghost.is-running {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
}

.choice-btn:hover,
.choice-btn:focus-visible,
.modal-nav:hover,
.modal-nav:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -14px 24px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.contact-ribbon,
.contact-panel:not([hidden]) {
  color: rgba(255, 255, 255, 0.92);
}

.contact-panel a,
.contact-panel span {
  color: rgba(255, 255, 255, 0.92);
}

.contact-menu-toggle span {
  background: var(--ui-white);
}

.journal-button span,
.art-hotspot-label {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.08);
  color: var(--ui-white);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
  -webkit-backdrop-filter: blur(28px) saturate(1.36);
  backdrop-filter: blur(28px) saturate(1.36);
}

.click-indicator::before {
  border-color: rgba(255, 255, 255, 0.98);
  background:
    radial-gradient(circle at 34% 26%, #fff, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle, #fffdf8 0 42%, #efd08d 68%, #caa05b 100%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.36),
    0 0 10px rgba(255, 255, 255, 0.88),
    0 0 22px rgba(239, 208, 141, 0.78);
}

.click-indicator::after {
  border-color: rgba(255, 244, 218, 0.72);
  box-shadow:
    0 0 16px rgba(255, 244, 218, 0.46),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.modal-frame,
.journal-frame {
  background: transparent;
}

.modal-copy p,
.modal-copy h3 {
  color: var(--ui-white);
}

.modal-art-wrap,
.newspaper-page {
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.14);
}

.newspaper-page,
.newspaper-page * {
  color: #130d0c;
}

/* Reference palette applied to content only: text, CTA, icons, accents. */
:root {
  --ref-black: #050505;
  --ref-burgundy: #6d001a;
  --ref-burgundy-bright: #9b0924;
  --ref-cream: #fff4dc;
  --ref-white: #ffffff;
  --ref-muted-cream: rgba(255, 244, 220, 0.82);
}

.dialogue-body,
.experience[data-step="invitation"] .dialogue-body,
.experience[data-step="champagne"] .dialogue-body {
  color: var(--ref-white);
}

.dialogue-kicker {
  color: var(--ref-cream);
}

.dialogue-kicker::before {
  color: var(--ref-burgundy-bright);
  text-shadow:
    0 0 0 rgba(0, 0, 0, 0),
    0 0 16px rgba(255, 244, 220, 0.28);
}

.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  color: var(--ref-cream);
  text-decoration: underline;
  text-decoration-color: rgba(109, 0, 26, 0.9);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  color: var(--ref-black);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 220, 0.62)),
    rgba(255, 244, 220, 0.42);
}

.choice-btn.primary span {
  color: var(--ref-burgundy);
  font-weight: 900;
}

.choice-btn.ghost,
.experience[data-step="invitation"] .choice-btn.ghost,
.experience[data-step="champagne"] .choice-btn.ghost,
body > .choice-btn.ghost.is-running {
  color: var(--ref-white);
}

.choice-btn.ghost::before {
  opacity: 0.56;
}

.choice-btn:hover,
.choice-btn:focus-visible {
  border-color: rgba(255, 244, 220, 0.86);
}

.choice-btn.primary:hover,
.choice-btn.primary:focus-visible {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(109, 0, 26, 0.28),
    0 0 24px rgba(109, 0, 26, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -12px 22px rgba(109, 0, 26, 0.08);
}

.contact-ribbon,
.contact-panel:not([hidden]) {
  color: var(--ref-white);
}

.contact-ribbon span::before {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ref-cream);
  color: var(--ref-burgundy);
  font-size: 0.82rem;
  text-shadow: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 5px 14px rgba(0, 0, 0, 0.18);
}

.contact-panel p {
  color: var(--ref-cream);
}

.contact-panel a,
.contact-panel span {
  color: var(--ref-white);
}

.contact-menu-toggle span {
  background: var(--ref-white);
}

.contact-menu-toggle[aria-expanded="true"] span {
  background: var(--ref-burgundy);
}

.journal-button span,
.art-hotspot-label {
  color: var(--ref-white);
  border-color: rgba(255, 244, 220, 0.5);
}

.journal-button span::before,
.art-hotspot-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--ref-burgundy-bright);
  box-shadow: 0 0 12px rgba(255, 244, 220, 0.34);
  vertical-align: 0.08em;
}

.click-indicator::before {
  background:
    radial-gradient(circle at 34% 26%, #fff, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle, var(--ref-white) 0 40%, var(--ref-cream) 62%, var(--ref-burgundy) 100%);
}

.click-indicator::after {
  border-color: rgba(255, 244, 220, 0.78);
  box-shadow:
    0 0 18px rgba(255, 244, 220, 0.5),
    0 0 24px rgba(109, 0, 26, 0.18),
    inset 0 0 10px rgba(255, 255, 255, 0.22);
}

.modal-close {
  color: var(--ref-burgundy);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 220, 0.42)),
    rgba(255, 255, 255, 0.16);
}

.modal-nav {
  color: var(--ref-white);
}

.modal-copy h3 {
  color: var(--ref-white);
}

#modalMeta {
  color: var(--ref-cream);
}

.modal-copy p {
  color: rgba(255, 255, 255, 0.88);
}

.newspaper-kicker,
.newspaper-signature {
  color: var(--ref-burgundy);
}

.newspaper-page h3,
.newspaper-page h4 {
  color: #2b050b;
}

.newspaper-page p,
.newspaper-page li {
  color: #130d0c;
}

/* Final UI tuning: burgundy content accents, neutral lighter glass. */
.dialogue-panel,
.experience[data-step="invitation"] .dialogue-panel,
.experience[data-step="champagne"] .dialogue-panel,
.contact-ribbon,
.contact-panel:not([hidden]),
.contact-menu-toggle,
.art-modal,
.journal-modal {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.07) 33%, rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.07);
}

.choice-btn,
.modal-nav,
.modal-close,
.journal-button span,
.art-hotspot-label {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.07);
}

.dialogue-panel::before,
.experience[data-step="invitation"] .dialogue-panel::before,
.experience[data-step="champagne"] .dialogue-panel::before {
  opacity: 0.66;
}

.dialogue-panel::after,
.experience[data-step="invitation"] .dialogue-panel::after,
.experience[data-step="champagne"] .dialogue-panel::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.07);
}

.dialogue-kicker,
.experience[data-step="invitation"] .dialogue-kicker,
.experience[data-step="champagne"] .dialogue-kicker,
.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  color: var(--ref-burgundy);
  text-decoration: none;
}

.dialogue-kicker::before {
  color: var(--ref-burgundy);
  text-shadow: none;
}

.choice-row,
.experience[data-step="invitation"] .choice-row,
.experience[data-step="champagne"] .choice-row {
  border-top: 0;
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  color: var(--ref-burgundy);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.77), rgba(255, 244, 220, 0.56)),
    rgba(255, 244, 220, 0.38);
}

.choice-btn.primary span,
.contact-ribbon span::before,
.contact-menu-toggle span,
.contact-menu-toggle[aria-expanded="true"] span,
.journal-button span::before,
.art-hotspot-label::before,
.modal-close {
  color: var(--ref-burgundy);
}

.contact-ribbon span::before {
  background: transparent;
  box-shadow: none;
}

.contact-menu-toggle span,
.contact-menu-toggle[aria-expanded="true"] span {
  background: var(--ref-burgundy);
}

.journal-button span::before,
.art-hotspot-label::before {
  background: var(--ref-burgundy);
  box-shadow: 0 0 10px rgba(109, 0, 26, 0.48);
}

.click-indicator::before {
  border-color: var(--ref-burgundy);
  background: var(--ref-burgundy);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.32),
    0 0 12px rgba(109, 0, 26, 0.68),
    0 0 22px rgba(109, 0, 26, 0.42);
}

.click-indicator::after {
  border-color: rgba(109, 0, 26, 0.58);
  box-shadow:
    0 0 16px rgba(109, 0, 26, 0.36),
    inset 0 0 10px rgba(109, 0, 26, 0.16);
}

/* 3D liquid glass: smooth ice-cube volume, no visible white outline. */
.dialogue-panel,
.experience[data-step="invitation"] .dialogue-panel,
.experience[data-step="champagne"] .dialogue-panel,
.contact-ribbon,
.contact-panel:not([hidden]),
.contact-menu-toggle,
.art-modal,
.journal-modal {
  border-color: transparent;
  background:
    radial-gradient(120% 72% at 18% -8%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.086) 30%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(80% 68% at 102% 16%, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0) 56%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.216), rgba(255, 255, 255, 0.067) 40%, rgba(255, 255, 255, 0.032) 64%, rgba(255, 255, 255, 0.117)),
    rgba(255, 255, 255, 0.038);
  box-shadow:
    0 40px 106px rgba(0, 0, 0, 0.41),
    0 14px 34px rgba(255, 255, 255, 0.066),
    inset 0 2px 6px rgba(255, 255, 255, 0.58),
    inset 2px 0 6px rgba(255, 255, 255, 0.22),
    inset -2px -3px 8px rgba(0, 0, 0, 0.19),
    inset -22px -29px 53px rgba(255, 255, 255, 0.06),
    inset 17px 19px 41px rgba(255, 255, 255, 0.042);
  -webkit-backdrop-filter: blur(31px) saturate(1.62) contrast(1.11);
  backdrop-filter: blur(31px) saturate(1.62) contrast(1.11);
}

.choice-btn,
.modal-nav,
.modal-close,
.journal-button span,
.art-hotspot-label {
  border-color: transparent;
  background:
    radial-gradient(115% 82% at 18% -18%, rgba(255, 255, 255, 0.41), rgba(255, 255, 255, 0.086) 36%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(70% 72% at 98% 12%, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0) 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.198), rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0.099)),
    rgba(255, 255, 255, 0.038);
  box-shadow:
    0 19px 46px rgba(0, 0, 0, 0.34),
    inset 0 2px 5px rgba(255, 255, 255, 0.62),
    inset 1px 0 4px rgba(255, 255, 255, 0.24),
    inset -2px -3px 8px rgba(0, 0, 0, 0.17),
    inset -12px -14px 29px rgba(255, 255, 255, 0.066);
  -webkit-backdrop-filter: blur(19px) saturate(1.5) contrast(1.08);
  backdrop-filter: blur(19px) saturate(1.5) contrast(1.08);
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  border-color: transparent;
  background:
    radial-gradient(120% 86% at 18% -16%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.13) 36%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.43), rgba(255, 244, 220, 0.234) 46%, rgba(255, 255, 255, 0.099)),
    rgba(255, 244, 220, 0.18);
  box-shadow:
    0 22px 53px rgba(0, 0, 0, 0.34),
    inset 0 2px 6px rgba(255, 255, 255, 0.74),
    inset -2px -3px 10px rgba(109, 0, 26, 0.14),
    inset -14px -17px 34px rgba(255, 255, 255, 0.084);
}

.choice-btn.ghost,
.experience[data-step="invitation"] .choice-btn.ghost,
.experience[data-step="champagne"] .choice-btn.ghost,
body > .choice-btn.ghost.is-running {
  border-color: transparent;
  background:
    radial-gradient(115% 82% at 18% -18%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.076) 36%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(70% 72% at 98% 12%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.162), rgba(255, 255, 255, 0.043) 55%, rgba(255, 255, 255, 0.086)),
    rgba(255, 255, 255, 0.032);
}

.choice-btn:hover,
.choice-btn:focus-visible,
.modal-nav:hover,
.modal-nav:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  border-color: transparent;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.32),
    inset 0 2px 5px rgba(255, 255, 255, 0.56),
    inset 1px 0 4px rgba(255, 255, 255, 0.2),
    inset -2px -3px 8px rgba(0, 0, 0, 0.15),
    inset -12px -14px 28px rgba(255, 255, 255, 0.065);
}

.dialogue-panel::before,
.experience[data-step="invitation"] .dialogue-panel::before,
.experience[data-step="champagne"] .dialogue-panel::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.12) 12%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(315deg, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.19) 100%),
    radial-gradient(38% 34% at 88% 12%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 72%);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.dialogue-panel::after,
.experience[data-step="invitation"] .dialogue-panel::after,
.experience[data-step="champagne"] .dialogue-panel::after {
  border: 0;
  background:
    radial-gradient(88% 80% at 22% 8%, rgba(255, 255, 255, 0.29), rgba(255, 255, 255, 0) 54%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.05) 68%, rgba(255, 255, 255, 0.099)),
    rgba(255, 255, 255, 0.036);
  box-shadow:
    inset 1px 2px 5px rgba(255, 255, 255, 0.41),
    inset -2px -3px 7px rgba(0, 0, 0, 0.14);
  filter: drop-shadow(17px 22px 26px rgba(0, 0, 0, 0.19));
  -webkit-backdrop-filter: blur(22px) saturate(1.34) contrast(1.04);
  backdrop-filter: blur(22px) saturate(1.34) contrast(1.04);
}

/* Edge emphasis: 30% thicker glass sides with edge-only shine and shadow. */
.dialogue-panel,
.experience[data-step="invitation"] .dialogue-panel,
.experience[data-step="champagne"] .dialogue-panel,
.contact-ribbon,
.contact-panel:not([hidden]),
.contact-menu-toggle,
.art-modal,
.journal-modal {
  box-shadow:
    0 42px 112px rgba(0, 0, 0, 0.42),
    0 15px 36px rgba(255, 255, 255, 0.07),
    inset 0 3px 8px rgba(255, 255, 255, 0.7),
    inset 3px 0 8px rgba(255, 255, 255, 0.29),
    inset -3px -4px 10px rgba(0, 0, 0, 0.24),
    inset 0 0 0 2px rgba(255, 255, 255, 0.045),
    inset -29px -38px 69px rgba(255, 255, 255, 0.065),
    inset 22px 25px 53px rgba(255, 255, 255, 0.048);
}

.choice-btn,
.modal-nav,
.modal-close,
.journal-button span,
.art-hotspot-label {
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.35),
    inset 0 3px 7px rgba(255, 255, 255, 0.74),
    inset 2px 0 5px rgba(255, 255, 255, 0.31),
    inset -3px -4px 10px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04),
    inset -16px -18px 38px rgba(255, 255, 255, 0.08);
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  box-shadow:
    0 23px 56px rgba(0, 0, 0, 0.35),
    inset 0 3px 8px rgba(255, 255, 255, 0.86),
    inset 2px 0 6px rgba(255, 255, 255, 0.28),
    inset -3px -4px 12px rgba(109, 0, 26, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.055),
    inset -18px -22px 44px rgba(255, 255, 255, 0.1);
}

.dialogue-panel::before,
.experience[data-step="invitation"] .dialogue-panel::before,
.experience[data-step="champagne"] .dialogue-panel::before {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18) 16%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(315deg, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.25) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 9%, rgba(255, 255, 255, 0) 91%, rgba(0, 0, 0, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 11%, rgba(255, 255, 255, 0) 86%, rgba(0, 0, 0, 0.11)),
    radial-gradient(42% 38% at 88% 12%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 72%);
  opacity: 0.58;
}

.dialogue-panel::after,
.experience[data-step="invitation"] .dialogue-panel::after,
.experience[data-step="champagne"] .dialogue-panel::after {
  box-shadow:
    inset 2px 3px 7px rgba(255, 255, 255, 0.55),
    inset -3px -4px 9px rgba(0, 0, 0, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.055);
  filter: drop-shadow(18px 23px 28px rgba(0, 0, 0, 0.22));
}

/* Stronger edge contrast: deeper side shadows, still transparent in the center. */
.dialogue-panel,
.experience[data-step="invitation"] .dialogue-panel,
.experience[data-step="champagne"] .dialogue-panel,
.contact-ribbon,
.contact-panel:not([hidden]),
.contact-menu-toggle,
.art-modal,
.journal-modal {
  box-shadow:
    0 46px 118px rgba(0, 0, 0, 0.48),
    0 17px 40px rgba(255, 255, 255, 0.07),
    inset 0 3px 8px rgba(255, 255, 255, 0.74),
    inset 3px 0 8px rgba(255, 255, 255, 0.31),
    inset -4px -5px 13px rgba(0, 0, 0, 0.34),
    inset 0 0 0 2px rgba(255, 255, 255, 0.045),
    inset -34px -44px 76px rgba(0, 0, 0, 0.12),
    inset -31px -39px 70px rgba(255, 255, 255, 0.055),
    inset 22px 25px 53px rgba(255, 255, 255, 0.048);
}

.choice-btn,
.modal-nav,
.modal-close,
.journal-button span,
.art-hotspot-label {
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.4),
    inset 0 3px 7px rgba(255, 255, 255, 0.78),
    inset 2px 0 5px rgba(255, 255, 255, 0.32),
    inset -4px -5px 12px rgba(0, 0, 0, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04),
    inset -20px -22px 42px rgba(0, 0, 0, 0.08),
    inset -16px -18px 38px rgba(255, 255, 255, 0.07);
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    inset 0 3px 8px rgba(255, 255, 255, 0.9),
    inset 2px 0 6px rgba(255, 255, 255, 0.3),
    inset -4px -5px 14px rgba(109, 0, 26, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.055),
    inset -21px -26px 50px rgba(0, 0, 0, 0.08),
    inset -18px -22px 44px rgba(255, 255, 255, 0.09);
}

.dialogue-panel::before,
.experience[data-step="invitation"] .dialogue-panel::before,
.experience[data-step="champagne"] .dialogue-panel::before {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.18) 16%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(315deg, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.13) 88%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0) 9%, rgba(255, 255, 255, 0) 90%, rgba(0, 0, 0, 0.17)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0) 11%, rgba(255, 255, 255, 0) 85%, rgba(0, 0, 0, 0.18)),
    radial-gradient(42% 38% at 88% 12%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 72%);
  opacity: 0.64;
}

.dialogue-panel::after,
.experience[data-step="invitation"] .dialogue-panel::after,
.experience[data-step="champagne"] .dialogue-panel::after {
  box-shadow:
    inset 2px 3px 8px rgba(255, 255, 255, 0.58),
    inset -4px -5px 12px rgba(0, 0, 0, 0.31),
    inset 0 0 0 2px rgba(255, 255, 255, 0.055);
  filter: drop-shadow(20px 25px 30px rgba(0, 0, 0, 0.28));
}

/* Glossy finish: sharper polished highlights on top of the liquid glass. */
.dialogue-panel,
.experience[data-step="invitation"] .dialogue-panel,
.experience[data-step="champagne"] .dialogue-panel,
.contact-ribbon,
.contact-panel:not([hidden]),
.contact-menu-toggle,
.art-modal,
.journal-modal {
  background:
    linear-gradient(124deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.06) 10%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(42% 18% at 22% 0%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.12) 36%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(120% 72% at 18% -8%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.078) 30%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(80% 68% at 102% 16%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 56%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.058) 40%, rgba(255, 255, 255, 0.03) 64%, rgba(255, 255, 255, 0.11)),
    rgba(255, 255, 255, 0.034);
}

.choice-btn,
.modal-nav,
.modal-close,
.journal-button span,
.art-hotspot-label {
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.08) 16%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(54% 44% at 24% -10%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.1) 42%, rgba(255, 255, 255, 0) 76%),
    radial-gradient(70% 72% at 98% 12%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045) 55%, rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.034);
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.1) 16%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(58% 46% at 24% -10%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.14) 42%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 244, 220, 0.22) 46%, rgba(255, 255, 255, 0.09)),
    rgba(255, 244, 220, 0.16);
}

.choice-btn::before,
.modal-nav::before,
.modal-close::before {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.18) 18%, rgba(255, 255, 255, 0) 36%);
  opacity: 0.78;
  mix-blend-mode: screen;
}

.dialogue-panel::before,
.experience[data-step="invitation"] .dialogue-panel::before,
.experience[data-step="champagne"] .dialogue-panel::before {
  background:
    linear-gradient(127deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.22) 12%, rgba(255, 255, 255, 0) 29%),
    linear-gradient(315deg, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.12) 88%, rgba(255, 255, 255, 0.24) 100%),
    radial-gradient(52% 18% at 27% 2%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 9%, rgba(255, 255, 255, 0) 90%, rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 11%, rgba(255, 255, 255, 0) 85%, rgba(0, 0, 0, 0.17));
  opacity: 0.72;
}

.dialogue-panel::after,
.experience[data-step="invitation"] .dialogue-panel::after,
.experience[data-step="champagne"] .dialogue-panel::after {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.07) 22%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(88% 80% at 22% 8%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 54%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.046) 68%, rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.032);
}

/* Dialogue tail removed. */
.experience[data-step="invitation"] .dialogue-panel::after,
.experience[data-step="champagne"] .dialogue-panel::after {
  content: none;
  display: none;
}

/* Warm readable accents: remove the burgundy UI color without touching images or logo. */
:root {
  --lux-burgundy: #2a2117;
  --lux-burgundy-deep: #18120d;
  --lux-burgundy-bright: #f2c66d;
  --ui-burgundy: #2a2117;
  --ui-burgundy-soft: #5a4427;
  --ref-burgundy: #2a2117;
  --ref-burgundy-bright: #f2c66d;
  --warm-ink: #221912;
  --warm-ivory: #fff8ea;
  --warm-cream: #f8e7bf;
  --warm-gold: #f2c66d;
  --warm-gold-soft: #d9ad61;
  --warm-copper: #f2c66d;
  --warm-cognac: #050505;
  --warm-glow: rgba(242, 198, 109, 0.46);
}

.dialogue-kicker,
.experience[data-step="invitation"] .dialogue-kicker,
.experience[data-step="champagne"] .dialogue-kicker {
  color: var(--warm-ivory);
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.44),
    0 0 18px rgba(242, 198, 109, 0.16);
}

.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  color: var(--warm-cream);
  text-decoration: none;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.44),
    0 0 20px rgba(242, 198, 109, 0.24);
}

.dialogue-kicker::before {
  color: #6d001a;
  text-shadow:
    0 0 10px rgba(109, 0, 26, 0.36),
    0 1px 8px rgba(0, 0, 0, 0.3);
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary,
.choice-btn.primary span {
  color: #ffffff;
}

.choice-btn.ghost,
.experience[data-step="invitation"] .choice-btn.ghost,
.experience[data-step="champagne"] .choice-btn.ghost,
body > .choice-btn.ghost.is-running {
  opacity: 0.8;
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  background:
    radial-gradient(120% 86% at 18% -16%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.13) 36%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.43), rgba(255, 244, 220, 0.234) 46%, rgba(255, 255, 255, 0.099)),
    rgba(255, 244, 220, 0.2);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(242, 198, 109, 0.12),
    inset 0 3px 8px rgba(255, 255, 255, 0.9),
    inset 2px 0 6px rgba(255, 255, 255, 0.3),
    inset -4px -5px 14px rgba(88, 61, 28, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.055),
    inset -21px -26px 50px rgba(0, 0, 0, 0.08),
    inset -18px -22px 44px rgba(255, 255, 255, 0.09);
}

.choice-btn.primary:hover,
.choice-btn.primary:focus-visible {
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(242, 198, 109, 0.34),
    0 0 26px rgba(242, 198, 109, 0.22),
    inset 0 2px 8px rgba(255, 255, 255, 0.92),
    inset -4px -5px 14px rgba(88, 61, 28, 0.16);
}

.contact-ribbon span::before,
.contact-panel p,
#modalMeta,
.modal-copy h3 {
  color: var(--warm-gold);
}

.contact-ribbon span::before {
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 12px rgba(242, 198, 109, 0.28);
}

.contact-menu-toggle span,
.contact-menu-toggle[aria-expanded="true"] span {
  background: var(--warm-gold);
}

.journal-button span::before,
.art-hotspot-label::before {
  background: var(--warm-copper);
  box-shadow:
    0 0 10px rgba(242, 198, 109, 0.68),
    0 0 18px rgba(255, 248, 232, 0.28);
}

.click-indicator::before {
  border-color: rgba(255, 248, 232, 0.95);
  background:
    radial-gradient(circle at 34% 26%, #fff, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle, var(--warm-ivory) 0 40%, var(--warm-gold) 66%, var(--warm-gold-soft) 100%);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.34),
    0 0 12px rgba(255, 248, 232, 0.9),
    0 0 24px var(--warm-glow);
}

.click-indicator::after {
  border-color: rgba(242, 198, 109, 0.68);
  box-shadow:
    0 0 18px rgba(242, 198, 109, 0.44),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.modal-close {
  color: var(--warm-ink);
}

.newspaper-kicker,
.newspaper-signature {
  color: #6f4f24;
}

.newspaper-page h3,
.newspaper-page h4 {
  color: #221912;
}

/* CTA contrast tuning: softer champagne text, burgundy yes, lighter no. */
:root {
  --soft-champagne: #f3e4c6;
  --cta-burgundy: #6d001a;
}

.dialogue-kicker,
.experience[data-step="invitation"] .dialogue-kicker,
.experience[data-step="champagne"] .dialogue-kicker,
.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  color: var(--soft-champagne);
}

.dialogue-kicker,
.experience[data-step="invitation"] .dialogue-kicker,
.experience[data-step="champagne"] .dialogue-kicker {
  color: #fff7df;
  font-weight: 760;
  text-shadow:
    0 0 6px rgba(255, 248, 225, 0.5),
    0 0 16px rgba(242, 198, 109, 0.34),
    0 1px 3px rgba(0, 0, 0, 0.4),
    0 3px 10px rgba(0, 0, 0, 0.18);
}

.dialogue-kicker::before {
  color: #fff7df;
  text-shadow:
    0 0 7px rgba(255, 248, 225, 0.62),
    0 0 16px rgba(242, 198, 109, 0.4),
    0 1px 4px rgba(0, 0, 0, 0.32);
}

.dialogue-line {
  display: block;
}

.dialogue-line.is-gap-after {
  margin-bottom: 0.36em;
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary,
.choice-btn.primary span {
  color: #050505;
  font-weight: 680;
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary {
  background:
    radial-gradient(120% 86% at 18% -16%, rgba(255, 255, 255, 0.79), rgba(255, 255, 255, 0.19) 36%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 244, 220, 0.36) 46%, rgba(255, 255, 255, 0.144)),
    rgba(255, 244, 220, 0.288);
}

.choice-btn.ghost,
.experience[data-step="invitation"] .choice-btn.ghost,
.experience[data-step="champagne"] .choice-btn.ghost,
body > .choice-btn.ghost.is-running {
  opacity: 1;
  color: rgba(255, 248, 234, 0.82);
  font-weight: 400;
  background:
    radial-gradient(115% 82% at 18% -18%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.053) 36%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(70% 72% at 98% 12%, rgba(255, 255, 255, 0.098), rgba(255, 255, 255, 0) 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.113), rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.022);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.34),
    inset 0 3px 7px rgba(255, 255, 255, 0.55),
    inset 2px 0 5px rgba(255, 255, 255, 0.22),
    inset -4px -5px 12px rgba(0, 0, 0, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04),
    inset -20px -22px 42px rgba(0, 0, 0, 0.08),
    inset -16px -18px 38px rgba(255, 255, 255, 0.049);
}

.choice-btn.ghost::before,
.experience[data-step="invitation"] .choice-btn.ghost::before,
.experience[data-step="champagne"] .choice-btn.ghost::before,
body > .choice-btn.ghost.is-running::before {
  opacity: 0.55;
}

/* Soften the top-left glass highlight for better readability. */
.dialogue-panel,
.experience[data-step="invitation"] .dialogue-panel,
.experience[data-step="champagne"] .dialogue-panel,
.contact-ribbon,
.contact-panel:not([hidden]),
.contact-menu-toggle,
.art-modal,
.journal-modal {
  background:
    linear-gradient(124deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 10%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(42% 18% at 22% 0%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.07) 36%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(120% 72% at 18% -8%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.052) 30%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(80% 68% at 102% 16%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 56%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.052) 40%, rgba(255, 255, 255, 0.028) 64%, rgba(255, 255, 255, 0.11)),
    rgba(255, 255, 255, 0.034);
}

.dialogue-panel::before,
.experience[data-step="invitation"] .dialogue-panel::before,
.experience[data-step="champagne"] .dialogue-panel::before {
  background:
    linear-gradient(127deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.12) 12%, rgba(255, 255, 255, 0) 29%),
    linear-gradient(315deg, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.12) 88%, rgba(255, 255, 255, 0.24) 100%),
    radial-gradient(52% 18% at 27% 2%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.06) 48%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 9%, rgba(255, 255, 255, 0) 90%, rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0) 11%, rgba(255, 255, 255, 0) 85%, rgba(0, 0, 0, 0.17));
  opacity: 0.66;
}

.choice-btn.ghost,
.experience[data-step="invitation"] .choice-btn.ghost,
.experience[data-step="champagne"] .choice-btn.ghost,
body > .choice-btn.ghost.is-running {
  background:
    radial-gradient(115% 82% at 18% -18%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.038) 36%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(70% 72% at 98% 12%, rgba(255, 255, 255, 0.098), rgba(255, 255, 255, 0) 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.022);
}

/* Local display font for the spoken invitation copy. */
@font-face {
  font-family: "Louis George Cafe";
  src: url("./assets/fonts/louis-george-cafe-light.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Louis George Cafe";
  src: url("./assets/fonts/louis-george-cafe-regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Louis George Cafe";
  src: url("./assets/fonts/louis-george-cafe-bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

.dialogue-body,
.experience[data-step="invitation"] .dialogue-body,
.experience[data-step="champagne"] .dialogue-body,
.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  font-family: "Louis George Cafe", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.dialogue-body,
.experience[data-step="invitation"] .dialogue-body,
.experience[data-step="champagne"] .dialogue-body {
  font-weight: 300;
  line-height: 1.1;
}

.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  font-weight: 400;
  line-height: 1.12;
}

/* Font test: MADE Outer Sans on the spoken invitation copy. */
@font-face {
  font-family: "MADE Outer Sans";
  src: url("./assets/fonts/made-outer-sans-light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "MADE Outer Sans";
  src: url("./assets/fonts/made-outer-sans-regular.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "MADE Outer Sans";
  src: url("./assets/fonts/made-outer-sans-medium.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

.dialogue-body,
.experience[data-step="invitation"] .dialogue-body,
.experience[data-step="champagne"] .dialogue-body,
.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  font-family: "MADE Outer Sans", "Louis George Cafe", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dialogue-body,
.experience[data-step="invitation"] .dialogue-body,
.experience[data-step="champagne"] .dialogue-body {
  font-weight: 300;
  line-height: 1.08;
}

.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  font-weight: 400;
  line-height: 1.1;
}

/* Font test: Roboto on the spoken invitation copy. */
@font-face {
  font-family: "Roboto Local";
  src: url("./assets/fonts/roboto-light.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

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

@font-face {
  font-family: "Roboto Local";
  src: url("./assets/fonts/roboto-medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Roboto Local";
  src: url("./assets/fonts/roboto-bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

.dialogue-body,
.experience[data-step="invitation"] .dialogue-body,
.experience[data-step="champagne"] .dialogue-body,
.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dialogue-body,
.experience[data-step="invitation"] .dialogue-body,
.experience[data-step="champagne"] .dialogue-body {
  font-weight: 300;
  line-height: 1.12;
}

.dialogue-question,
.experience[data-step="invitation"] .dialogue-question,
.experience[data-step="champagne"] .dialogue-question {
  font-weight: 400;
  line-height: 1.14;
  margin-top: 0.34em;
}

/* Roboto across the interface, with the immersive kicker kept apart. */
body,
button,
input,
textarea,
select,
.experience,
.experience *:not(.dialogue-kicker),
body > .choice-btn.is-running,
body > .choice-btn.is-running *,
.art-modal,
.art-modal .modal-copy,
.art-modal .modal-copy *,
.art-modal .modal-actions,
.art-modal .modal-actions *,
.journal-modal,
.journal-modal .newspaper-page,
.journal-modal .newspaper-page * {
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dialogue-kicker,
.experience[data-step="invitation"] .dialogue-kicker,
.experience[data-step="champagne"] .dialogue-kicker,
.dialogue-kicker::before {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.choice-btn.primary,
.experience[data-step="invitation"] .choice-btn.primary,
.experience[data-step="champagne"] .choice-btn.primary,
.choice-btn.primary span {
  font-weight: 680;
}

.choice-btn.ghost,
.experience[data-step="invitation"] .choice-btn.ghost,
.experience[data-step="champagne"] .choice-btn.ghost,
body > .choice-btn.ghost.is-running {
  color: #fff;
}

/* First-view background update: realistic immersive modern facade with in-image signage. */
.experience[data-step="invitation"] .intro-photo {
  background-image: url("./assets/exterieur-moderne-immersif-v27-sans-dame-interieur-4k.webp");
  background-position: center 43%;
  filter: none;
}

.experience[data-step="invitation"] .intro-daylight {
  background:
    radial-gradient(
      ellipse at 6% 7%,
      rgba(14, 9, 6, 0.36) 0%,
      rgba(14, 9, 6, 0.22) 20%,
      rgba(14, 9, 6, 0.09) 38%,
      transparent 62%
    );
}

.experience[data-step="invitation"] .intro-depth {
  background: transparent;
}

@media (max-width: 760px) {
  .experience[data-step="invitation"] .intro-photo {
    background-position: 66% center;
  }

  .intro-transition-photo {
    background-position: 66% center;
  }

  .experience[data-step="invitation"] .intro-daylight {
    background: transparent;
  }

  .experience[data-step="invitation"] .intro-depth {
    background: transparent;
  }
}

/* View 3: marketing exhibition hall with aligned interactive objects. */
.gallery-scene {
  overflow: auto;
  scrollbar-width: none;
}

.gallery-scene::-webkit-scrollbar {
  display: none;
}

.gallery-room {
  background-image: url("./assets/vue3-exposition-marketing-telephone-v8-4k.webp");
  background-position: center center;
  background-size: cover;
  filter: saturate(1.02) contrast(0.96) brightness(1.01);
}

.gallery-daylight {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, transparent 64%, rgba(20, 10, 8, 0.08));
}

.gallery-vignette {
  box-shadow:
    inset 0 0 54px rgba(28, 14, 10, 0.12),
    inset 0 -8vh 56px rgba(28, 14, 10, 0.1);
}

.art-button:nth-child(1) {
  left: 0.3%;
  top: 25.8%;
  width: 23.6%;
  height: 53%;
  transform: none;
}

.art-button:nth-child(2) {
  left: 21.6%;
  top: 8.8%;
  width: 14.5%;
  height: 31%;
  transform: none;
}

.art-button:nth-child(3) {
  left: 55.4%;
  top: 24.2%;
  width: 26.8%;
  height: 39.5%;
  transform: none;
}

.art-button:nth-child(4) {
  left: 81.4%;
  top: 22.8%;
  width: 18.2%;
  height: 50.2%;
  transform: none;
}

.art-button:nth-child(5) {
  left: 26.2%;
  top: 48.8%;
  width: 15.2%;
  height: 23.8%;
  transform: none;
}

.art-button:nth-child(6) {
  left: 45.4%;
  top: 52.2%;
  width: 13.6%;
  height: 26.8%;
  transform: none;
}

.art-button:nth-child(7) {
  left: 66.6%;
  top: 53.2%;
  width: 12.6%;
  height: 29.2%;
  transform: none;
}

.journal-button {
  left: 33.2%;
  top: 75.8%;
  width: 33.6%;
  height: 21.5%;
  border-radius: 999px 999px 28px 28px;
  transform: perspective(760px) rotateX(34deg);
}

.journal-click-indicator {
  top: 38%;
}

.modal-art-wrap img.is-context-crop {
  aspect-ratio: 16 / 9;
  max-height: min(62svh, 620px);
  object-fit: cover;
}

.art-modal.is-project-case {
  width: min(1180px, calc(100vw - 28px));
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 35, 18, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 252, 244, 0.98), rgba(247, 236, 218, 0.96));
}

.modal-frame.is-project-case {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(18px, 2vw, 24px);
  min-height: min(720px, calc(100svh - 42px));
  padding: clamp(18px, 2vw, 28px);
}

.modal-frame.is-project-case .modal-art-wrap {
  display: grid;
  align-self: stretch;
  align-content: center;
  gap: 12px;
  padding: 14px;
  border-color: rgba(14, 10, 8, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 10%, rgba(217, 35, 18, 0.18), transparent 34%),
    linear-gradient(145deg, #121212, #050505);
  box-shadow:
    0 22px 46px rgba(24, 10, 7, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.modal-frame.is-project-case #modalImage {
  max-height: min(48svh, 420px);
  border-radius: 18px;
  object-fit: contain;
  background: #111;
}

.modal-frame.is-project-case .modal-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px clamp(10px, 1.6vw, 22px) 0 0;
}

.modal-frame.is-project-case #modalMeta {
  margin-bottom: 8px;
  color: #d92312;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.modal-frame.is-project-case .modal-copy h3 {
  max-width: 12em;
  margin-bottom: 10px;
  color: #17110e;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  font-weight: 820;
  line-height: 0.96;
  letter-spacing: 0;
}

.modal-frame.is-project-case #modalDescription {
  max-width: 46em;
  margin: 0;
  color: rgba(30, 22, 18, 0.76);
  font-size: clamp(0.94rem, 1.12vw, 1.05rem);
  font-weight: 500;
  line-height: 1.42;
}

.modal-frame.is-project-case .modal-actions {
  margin-top: auto;
  padding-top: 14px;
}

.modal-frame.is-project-case .modal-nav {
  min-height: 38px;
  color: rgba(30, 22, 18, 0.82);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .modal-frame.is-project-case {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal-frame.is-project-case .modal-copy {
    padding-right: 0;
  }

  .modal-frame.is-project-case #modalImage {
    max-height: 42svh;
  }
}

.modal-visual-strip {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.modal-visual-strip[hidden] {
  display: none;
}

.modal-visual-strip figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 26, 17, 0.1);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(35, 18, 10, 0.14);
}

.modal-visual-card {
  cursor: pointer;
  outline: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.modal-visual-card:hover,
.modal-visual-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 30px rgba(35, 18, 10, 0.18);
}

.modal-visual-strip img {
  width: 100%;
  max-height: 138px;
  object-fit: cover;
  object-position: center;
}

.modal-visual-strip figcaption {
  padding: 8px 10px 9px;
  color: rgba(255, 248, 238, 0.9);
  font-size: 0.72rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-lightbox {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100svh - 34px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 238, 0.92);
}

.visual-lightbox::backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 34%),
    rgba(10, 8, 7, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.visual-lightbox-frame {
  margin: 0;
  padding: clamp(12px, 1.5vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.36), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(18, 14, 12, 0.42);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -22px 34px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
  backdrop-filter: blur(22px) saturate(1.18);
}

.visual-lightbox-frame img {
  display: block;
  width: 100%;
  max-height: calc(100svh - 132px);
  border-radius: 20px;
  object-fit: contain;
  background: rgba(5, 5, 5, 0.82);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.visual-lightbox-frame figcaption {
  padding: 11px 4px 1px;
  color: rgba(255, 248, 238, 0.88);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.visual-lightbox-close {
  position: fixed;
  top: clamp(24px, 4.2vh, 46px);
  left: clamp(18px, 2.6vw, 42px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  color: #fff;
  cursor: pointer;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.24);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -12px 20px rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  backdrop-filter: blur(22px) saturate(1.22);
}

.visual-lightbox-close:hover,
.visual-lightbox-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 700px) {
  .visual-lightbox {
    width: calc(100vw - 18px);
    max-height: calc(100svh - 28px);
  }

  .visual-lightbox-frame {
    border-radius: 22px;
    padding: 10px;
  }

  .visual-lightbox-frame img {
    max-height: calc(100svh - 108px);
    border-radius: 16px;
  }

  .visual-lightbox-close {
    top: 18px;
    left: 14px;
    width: 36px;
  }
}

.tablet-modal {
  width: min(1080px, calc(100vw - 52px));
  max-height: calc(100svh - 52px);
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #f8efe2;
}

.tablet-modal::backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 246, 226, 0.12), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(182, 83, 32, 0.16), transparent 32%),
    rgba(10, 8, 7, 0.68);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
}

.tablet-device {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: clamp(12px, 1.35vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(30px, 4vw, 54px);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(38, 33, 31, 0.98), rgba(8, 8, 8, 0.98));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    inset 0 2px 2px rgba(255, 255, 255, 0.22),
    inset 0 -24px 38px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tablet-device::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(320deg, transparent 65%, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.tablet-camera {
  position: absolute;
  left: 50%;
  top: clamp(6px, 0.9vw, 11px);
  z-index: 2;
  width: clamp(7px, 0.75vw, 10px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(105, 150, 190, 0.82), rgba(16, 18, 22, 0.88) 42%, #050505 72%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.04),
    inset 0 1px 2px rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.tablet-screen {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(22px, 3vw, 38px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22), transparent 20%),
    radial-gradient(circle at 76% 66%, rgba(36, 91, 158, 0.76), transparent 24%),
    radial-gradient(circle at 58% 96%, rgba(144, 71, 181, 0.68), transparent 24%),
    linear-gradient(135deg, #f07536 0%, #e83945 36%, #174a80 61%, #8b54c4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    inset 0 -20px 36px rgba(25, 18, 38, 0.16),
    0 14px 34px rgba(0, 0, 0, 0.34);
}

.tablet-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.34), transparent 25%),
    linear-gradient(292deg, transparent 58%, rgba(255, 255, 255, 0.2));
  mix-blend-mode: screen;
  opacity: 0.78;
  pointer-events: none;
}

.tablet-home-screen {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(204px, 0.34fr) 1fr;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(12px, 1.7vw, 22px);
  height: 100%;
  padding: clamp(20px, 2.7vw, 34px);
  color: #fff;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
}

.tablet-home-screen[hidden] {
  display: none !important;
}

.tablet-home-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 14px rgba(42, 20, 16, 0.26);
}

.tablet-home-status div {
  display: grid;
  gap: 4px;
}

.tablet-home-status strong {
  font-size: clamp(2rem, 3.6vw, 3.85rem);
  font-weight: 440;
  line-height: 0.92;
  letter-spacing: 0;
}

.tablet-home-status span {
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 520;
}

.tablet-battery {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 6px 18px rgba(35, 18, 12, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tablet-widget-panel {
  display: grid;
  align-content: start;
  gap: clamp(10px, 1.5vw, 16px);
}

.tablet-widget {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42));
  color: #20150f;
  box-shadow:
    0 18px 34px rgba(48, 23, 17, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -16px 26px rgba(62, 34, 20, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
}

.tablet-widget-large {
  min-height: clamp(132px, 15vw, 178px);
  padding: clamp(15px, 2vw, 22px);
}

.tablet-widget-small {
  min-height: clamp(78px, 9vw, 96px);
  padding: 16px 18px;
}

.tablet-widget-date,
.tablet-widget-small span {
  color: rgba(141, 28, 38, 0.76);
  font-size: clamp(0.68rem, 0.86vw, 0.78rem);
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tablet-widget h2 {
  margin: 0;
  color: #20150f;
  font-size: clamp(1.65rem, 3vw, 3.25rem);
  font-weight: 820;
  line-height: 0.95;
  letter-spacing: 0;
}

.tablet-widget p {
  max-width: 16rem;
  margin: 0;
  color: rgba(32, 21, 15, 0.66);
  font-size: clamp(0.82rem, 1.05vw, 0.95rem);
  font-weight: 520;
  line-height: 1.34;
}

.tablet-widget-small strong {
  color: #20150f;
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  font-weight: 780;
}

.tablet-app-grid {
  position: relative;
  z-index: 4;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  display: grid;
  grid-template-columns: repeat(2, minmax(86px, 104px));
  justify-content: start;
  gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(42px, 6vw, 78px);
  padding-left: clamp(26px, 4.8vw, 82px);
}

.tablet-app-icon {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
}

.tablet-app-icon strong {
  font-size: clamp(0.76rem, 1vw, 0.88rem);
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.tablet-app-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(64px, 7vw, 78px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 8%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 244, 248, 0.78));
  box-shadow:
    0 16px 26px rgba(24, 14, 18, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -14px 22px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tablet-app-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 8%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 54%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.tablet-app-logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(20, 18, 18, 0.16));
}

.is-suzuki-app .tablet-app-logo {
  background:
    radial-gradient(circle at 26% 8%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(145deg, rgba(244, 250, 255, 0.96), rgba(213, 231, 255, 0.82));
}

.is-red-app .tablet-app-logo {
  background:
    radial-gradient(circle at 26% 8%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(145deg, rgba(255, 248, 246, 0.96), rgba(255, 219, 216, 0.82));
}

.tablet-app-icon:hover .tablet-app-logo,
.tablet-app-icon:focus-visible .tablet-app-logo,
.tablet-app-icon.is-pressed .tablet-app-logo {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 22px 34px rgba(24, 14, 18, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -15px 24px rgba(0, 0, 0, 0.18);
}

.tablet-home-dots {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: -6px;
}

.tablet-home-dots span {
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

.tablet-home-dots span:first-child {
  background: rgba(255, 255, 255, 0.9);
}

.tablet-dock {
  grid-column: 1 / -1;
  grid-row: 4;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(6, clamp(42px, 5vw, 56px));
  gap: clamp(8px, 1.3vw, 14px);
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 1.1vw, 12px) clamp(12px, 1.7vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: clamp(18px, 2.6vw, 28px);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.16));
  box-shadow:
    0 18px 34px rgba(24, 12, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -12px 20px rgba(22, 24, 42, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

.tablet-dock-app {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
}

.tablet-dock-app[data-tablet-app] {
  cursor: pointer;
}

.tablet-dock-app[data-tablet-app]:hover .tablet-dock-logo,
.tablet-dock-app[data-tablet-app]:focus-visible .tablet-dock-logo,
.tablet-dock-app[data-tablet-app].is-pressed .tablet-dock-logo {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 12px 20px rgba(20, 14, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -8px 12px rgba(0, 0, 0, 0.08);
}

.tablet-dock-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(38px, 4.4vw, 50px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: clamp(10px, 1.4vw, 14px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 8px 16px rgba(20, 14, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -8px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tablet-dock-logo::before,
.tablet-dock-logo::after {
  content: "";
  position: absolute;
}

.is-message-app .tablet-dock-logo {
  background: linear-gradient(145deg, #31e878, #11aa46);
}

.is-message-app .tablet-dock-logo::before {
  width: 56%;
  height: 42%;
  border-radius: 999px;
  background: #fff;
}

.is-message-app .tablet-dock-logo::after {
  left: 36%;
  bottom: 27%;
  width: 15%;
  height: 15%;
  background: #fff;
  transform: rotate(38deg);
}

.is-message-app.has-message-notification::after {
  content: "1";
  position: absolute;
  right: -5px;
  top: -6px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(18px, 1.8vw, 23px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(145deg, #ff4b4f, #e82731);
  color: #fff;
  font-size: clamp(0.66rem, 0.78vw, 0.82rem);
  font-weight: 820;
  line-height: 1;
  box-shadow:
    0 8px 15px rgba(210, 24, 35, 0.28),
    0 0 0 2px rgba(255, 255, 255, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: tabletNotificationPulse 1.65s ease-in-out infinite;
}

@keyframes tabletNotificationPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 8px 15px rgba(210, 24, 35, 0.28),
      0 0 0 2px rgba(255, 255, 255, 0.78),
      0 0 0 0 rgba(232, 39, 49, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }

  45% {
    transform: translateY(-1px) scale(1.08);
    box-shadow:
      0 10px 18px rgba(210, 24, 35, 0.34),
      0 0 0 2px rgba(255, 255, 255, 0.84),
      0 0 0 7px rgba(232, 39, 49, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.52);
  }
}

.is-browser-app .tablet-dock-logo {
  background: linear-gradient(145deg, #f8fbff, #cddff6);
}

.is-browser-app .tablet-dock-logo::before {
  width: 54%;
  aspect-ratio: 1;
  border: 2px solid #1776df;
  border-radius: 50%;
}

.is-browser-app .tablet-dock-logo::after {
  width: 28%;
  height: 2px;
  background: #e53e45;
  transform: rotate(-42deg);
}

.is-mail-app .tablet-dock-logo {
  background: linear-gradient(145deg, #58b7ff, #1775e4);
}

.is-mail-app .tablet-dock-logo::before {
  width: 58%;
  height: 42%;
  border: 2px solid #fff;
  border-radius: 4px;
}

.is-mail-app .tablet-dock-logo::after {
  width: 38%;
  height: 38%;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-8%) rotate(-45deg);
}

.is-files-app .tablet-dock-logo {
  background: linear-gradient(145deg, #ffffff, #dbe8f6);
}

.is-files-app .tablet-dock-logo::before {
  width: 58%;
  height: 42%;
  border-radius: 4px;
  background: #2a8af0;
}

.is-files-app .tablet-dock-logo::after {
  left: 22%;
  top: 26%;
  width: 22%;
  height: 8%;
  border-radius: 3px 3px 0 0;
  background: #73bbff;
}

.is-photo-app .tablet-dock-logo {
  background: #fff;
}

.is-photo-app .tablet-dock-logo::before {
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(#f94343, #ffb031, #58d45f, #29a5ff, #8c5dff, #f94343);
}

.is-photo-app .tablet-dock-logo::after {
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
}

.is-notes-app .tablet-dock-logo {
  background:
    linear-gradient(#ffd83c 0 28%, #fff 28% 100%);
}

.is-notes-app .tablet-dock-logo::before {
  top: 42%;
  width: 54%;
  height: 2px;
  background: rgba(30, 30, 30, 0.22);
  box-shadow:
    0 8px 0 rgba(30, 30, 30, 0.18),
    0 16px 0 rgba(30, 30, 30, 0.14);
}

.tablet-message-screen {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px);
  color: #12141a;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.86), transparent 28%),
    radial-gradient(circle at 96% 4%, rgba(219, 229, 244, 0.82), transparent 34%),
    linear-gradient(145deg, rgba(252, 252, 253, 0.96), rgba(235, 240, 248, 0.86));
  -webkit-backdrop-filter: blur(16px) saturate(1.04);
  backdrop-filter: blur(16px) saturate(1.04);
}

.tablet-message-screen[hidden] {
  display: none !important;
}

.tablet-message-topbar {
  min-height: clamp(48px, 5.4vw, 60px);
}

.tablet-message-title {
  display: grid;
  align-content: center;
}

.tablet-message-title strong {
  color: rgba(18, 20, 26, 0.5);
  font-size: clamp(0.92rem, 1.42vw, 1.12rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tablet-message-back {
  color: #12141a;
}

.tablet-messages-window {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: clamp(18px, 2.2vw, 26px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 42px rgba(16, 24, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.tablet-conversation-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: clamp(12px, 1.7vw, 18px);
  border-right: 1px solid rgba(22, 24, 30, 0.12);
  background:
    linear-gradient(180deg, rgba(244, 245, 248, 0.9), rgba(229, 232, 238, 0.72));
}

.tablet-message-search {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(18, 20, 26, 0.5);
  font-size: 0.82rem;
  font-weight: 520;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.08);
}

.tablet-conversation-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 9px;
  border-radius: 14px;
}

.tablet-message-avatar,
.tablet-conversation-card > span {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #111827, #030712);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tablet-conversation-card div {
  min-width: 0;
}

.tablet-conversation-card strong,
.tablet-conversation-card small,
.tablet-conversation-card p {
  display: block;
  margin: 0;
}

.tablet-conversation-card strong {
  color: #12141a;
  font-size: 0.88rem;
  font-weight: 780;
}

.tablet-conversation-card small {
  color: rgba(18, 20, 26, 0.52);
  font-size: 0.68rem;
  font-weight: 620;
}

.tablet-conversation-card p {
  overflow: hidden;
  color: rgba(18, 20, 26, 0.58);
  font-size: 0.72rem;
  font-weight: 520;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tablet-conversation-card.is-active {
  background: #0a84ff;
  box-shadow: 0 10px 22px rgba(10, 132, 255, 0.24);
}

.tablet-conversation-card.is-active strong,
.tablet-conversation-card.is-active small,
.tablet-conversation-card.is-active p {
  color: #fff;
}

.tablet-conversation-card.is-muted {
  border-top: 1px solid rgba(18, 20, 26, 0.08);
  border-radius: 0;
}

.tablet-conversation-card.is-muted > span {
  background: #cfd2d9;
}

.tablet-conversation-card.is-muted strong,
.tablet-conversation-card.is-muted p {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(190, 194, 204, 0.7), rgba(222, 224, 230, 0.5));
}

.tablet-conversation-card.is-muted p {
  width: 72%;
  margin-top: 8px;
}

.tablet-chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 0;
  background: rgba(255, 255, 255, 0.92);
}

.tablet-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 clamp(16px, 2vw, 24px);
  border-bottom: 1px solid rgba(18, 20, 26, 0.12);
}

.tablet-chat-header div {
  display: grid;
  gap: 2px;
}

.tablet-chat-header strong {
  color: #12141a;
  font-size: clamp(0.96rem, 1.2vw, 1.1rem);
  font-weight: 800;
}

.tablet-chat-header span {
  color: rgba(18, 20, 26, 0.46);
  font-size: 0.72rem;
  font-weight: 640;
}

.tablet-chat-status {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: #0a66d3 !important;
  font-size: 0.66rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tablet-chat-thread {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: clamp(18px, 2.6vw, 32px);
}

.tablet-chat-date {
  margin: 0;
  color: rgba(18, 20, 26, 0.46);
  font-size: 0.72rem;
  font-weight: 650;
  text-align: center;
}

.tablet-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  max-width: min(570px, 92%);
}

.tablet-chat-bubble {
  position: relative;
  margin: 0;
  padding: clamp(12px, 1.5vw, 16px) clamp(14px, 1.8vw, 20px);
  border-radius: 22px 22px 22px 6px;
  background:
    linear-gradient(145deg, rgba(242, 242, 247, 0.98), rgba(224, 225, 232, 0.96));
  color: #17191f;
  font-size: clamp(0.84rem, 1.12vw, 0.98rem);
  font-weight: 400;
  line-height: 1.42;
  box-shadow:
    0 14px 24px rgba(16, 24, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tablet-chat-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 0;
  width: 14px;
  height: 16px;
  border-bottom-right-radius: 14px;
  background: #e0e1e8;
}

.tablet-chat-composer {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px clamp(14px, 1.8vw, 22px);
  border-top: 1px solid rgba(18, 20, 26, 0.12);
}

.tablet-chat-composer span {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(18, 20, 26, 0.12);
  border-radius: 999px;
  color: rgba(18, 20, 26, 0.36);
  font-size: 0.82rem;
  font-weight: 520;
}

.tablet-event-screen {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px);
  color: #061b55;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.68), transparent 28%),
    linear-gradient(145deg, rgba(248, 252, 255, 0.92), rgba(216, 235, 255, 0.74));
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
}

.tablet-event-screen[hidden] {
  display: none !important;
}

.tablet-event-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.tablet-event-back {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 8%, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.24));
  color: #061b55;
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 360;
  line-height: 1;
  box-shadow:
    0 10px 22px rgba(5, 24, 72, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tablet-event-topbar div {
  display: grid;
  gap: 2px;
}

.tablet-event-topbar span {
  color: rgba(6, 27, 85, 0.58);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tablet-event-topbar strong {
  color: #061b55;
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  font-weight: 820;
}

.tablet-event-content {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(188px, 0.52fr);
  grid-template-areas:
    "hero hero"
    "metrics gallery"
    "info gallery";
  gap: clamp(10px, 1.45vw, 16px);
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-top: 8px;
  scrollbar-color: rgba(6, 27, 85, 0.24) rgba(255, 255, 255, 0.18);
  scrollbar-width: thin;
}

.tablet-event-hero {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(286px, 0.92fr) minmax(260px, 1.08fr);
  gap: clamp(12px, 1.6vw, 18px);
  align-items: stretch;
}

.tablet-event-cover {
  position: relative;
  min-height: clamp(192px, 24vw, 270px);
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow:
    0 20px 38px rgba(5, 24, 72, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.tablet-event-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.tablet-event-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(2, 17, 54, 0.58)),
    linear-gradient(122deg, rgba(255, 255, 255, 0.2), transparent 32%);
  pointer-events: none;
}

.tablet-event-cover figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  color: #fff;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.tablet-event-cover figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.58rem, 0.74vw, 0.68rem);
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tablet-event-cover figcaption strong {
  color: #fff;
  font-size: clamp(0.72rem, 0.9vw, 0.84rem);
  font-weight: 800;
  text-align: right;
}

.tablet-event-summary {
  display: grid;
  align-content: start;
  gap: clamp(10px, 1.25vw, 14px);
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 26px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.88), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(0, 86, 183, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(235, 244, 255, 0.44));
  box-shadow:
    0 16px 28px rgba(5, 24, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tablet-event-kicker {
  margin: 0;
  color: #0056b7;
  font-size: clamp(0.62rem, 0.8vw, 0.74rem);
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tablet-event-hero h2 {
  max-width: 8.8em;
  margin: 0;
  color: #061b55;
  font-size: clamp(2rem, 3.6vw, 3.85rem);
  font-weight: 920;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tablet-event-summary > p:not(.tablet-event-kicker) {
  max-width: 26rem;
  margin: 0;
  color: rgba(6, 27, 85, 0.72);
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  font-weight: 520;
  line-height: 1.34;
}

.tablet-event-reel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 9px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(145deg, rgba(0, 86, 183, 0.94), rgba(4, 34, 112, 0.96));
  color: #fff;
  font-size: clamp(0.76rem, 0.95vw, 0.88rem);
  font-weight: 780;
  text-decoration: none;
  box-shadow:
    0 14px 30px rgba(0, 86, 183, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -12px 22px rgba(0, 15, 55, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tablet-event-reel-link span {
  display: grid;
  place-items: center;
  width: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.62rem;
  line-height: 1;
}

.tablet-event-reel-link:hover,
.tablet-event-reel-link:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(0, 86, 183, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 -12px 22px rgba(0, 15, 55, 0.18);
}

.tablet-event-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tablet-event-metrics article,
.tablet-event-info-grid article,
.tablet-event-gallery button {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.8), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(235, 244, 255, 0.38));
  box-shadow:
    0 12px 22px rgba(5, 24, 72, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
}

.tablet-event-metrics article {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 88px;
  padding: 14px;
  border-radius: 20px;
}

.tablet-event-metrics article.is-featured {
  grid-column: span 1;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.86), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(0, 86, 183, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(223, 239, 255, 0.44));
}

.tablet-event-metrics strong {
  color: #0056b7;
  font-size: clamp(1.22rem, 2.15vw, 2.08rem);
  font-weight: 900;
  line-height: 0.96;
  order: 2;
}

.tablet-event-metrics span {
  color: rgba(6, 27, 85, 0.66);
  font-size: clamp(0.66rem, 0.86vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  order: 1;
}

.tablet-event-metrics p {
  order: 3;
  margin: 0;
  color: rgba(6, 27, 85, 0.62);
  font-size: clamp(0.64rem, 0.82vw, 0.74rem);
  font-weight: 540;
  line-height: 1.2;
}

.tablet-event-info-grid {
  grid-area: info;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tablet-event-info-grid article {
  display: grid;
  grid-template-columns: minmax(104px, 0.28fr) minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  min-height: auto;
  padding: 13px 14px;
  border-radius: 20px;
}

.tablet-event-info-grid span {
  color: #0056b7;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tablet-event-info-grid p {
  margin: 0;
  color: rgba(6, 27, 85, 0.72);
  font-size: clamp(0.7rem, 0.88vw, 0.82rem);
  font-weight: 520;
  line-height: 1.3;
}

.tablet-event-gallery {
  grid-area: gallery;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 10px;
}

.tablet-event-gallery button {
  display: grid;
  grid-template-columns: minmax(76px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px;
  border-radius: 18px;
  color: #061b55;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tablet-event-gallery button:hover,
.tablet-event-gallery button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 16px 26px rgba(5, 24, 72, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tablet-event-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 13px;
}

.tablet-event-gallery span {
  padding: 0 2px;
  color: rgba(6, 27, 85, 0.76);
  font-size: clamp(0.68rem, 0.88vw, 0.8rem);
  font-weight: 760;
  line-height: 1.16;
}

.tablet-event-screen {
  color: #101317;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.88));
}

.tablet-event-topbar span {
  color: rgba(16, 19, 23, 0.46);
}

.tablet-event-topbar strong {
  color: #101317;
}

.tablet-event-content {
  display: block;
  padding: clamp(8px, 1vw, 12px) clamp(3px, 0.5vw, 6px) clamp(14px, 2vw, 22px);
  scrollbar-color: rgba(16, 19, 23, 0.24) rgba(16, 19, 23, 0.06);
}

.tablet-event-article {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  min-height: 0;
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid rgba(16, 19, 23, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    0 20px 42px rgba(5, 24, 72, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.tablet-event-article-head {
  display: grid;
  grid-template-columns: minmax(310px, 0.92fr) minmax(260px, 1.08fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
}

.tablet-event-title-block {
  display: grid;
  align-content: start;
  gap: clamp(10px, 1.4vw, 16px);
  padding-top: 2px;
}

.tablet-event-title-block .tablet-event-kicker {
  color: rgba(0, 86, 183, 0.92);
  font-size: clamp(0.62rem, 0.82vw, 0.74rem);
  font-weight: 860;
  letter-spacing: 0.16em;
}

.tablet-event-title-block h2 {
  max-width: 8.2em;
  margin: 0;
  color: #0b0d10;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.2rem, 7.2vw, 7.2rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.tablet-event-title-block > p:not(.tablet-event-kicker) {
  max-width: 31rem;
  margin: 0;
  color: rgba(16, 19, 23, 0.72);
  font-size: clamp(0.8rem, 1.05vw, 0.98rem);
  font-weight: 520;
  line-height: 1.38;
}

.tablet-event-cover {
  min-height: clamp(210px, 29vw, 330px);
  border-radius: 0;
  box-shadow:
    0 18px 34px rgba(5, 24, 72, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tablet-event-cover figcaption {
  left: 12px;
  right: auto;
  bottom: 12px;
  display: grid;
  min-width: min(220px, calc(100% - 24px));
  border-color: rgba(255, 255, 255, 0.42);
  border-radius: 0;
}

.tablet-event-reel-link {
  min-height: 39px;
  border-radius: 0;
  background:
    linear-gradient(145deg, #0b0d10, #061b55);
  box-shadow:
    0 14px 30px rgba(6, 27, 85, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tablet-event-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(16, 19, 23, 0.12);
  border-bottom: 1px solid rgba(16, 19, 23, 0.12);
}

.tablet-event-metrics article,
.tablet-event-metrics article.is-featured {
  min-height: 96px;
  padding: clamp(12px, 1.5vw, 18px) clamp(10px, 1.25vw, 16px);
  border: 0;
  border-right: 1px solid rgba(16, 19, 23, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.tablet-event-metrics article:last-child {
  border-right: 0;
}

.tablet-event-metrics span {
  color: rgba(16, 19, 23, 0.46);
  font-size: clamp(0.56rem, 0.72vw, 0.66rem);
  font-weight: 840;
  letter-spacing: 0.13em;
}

.tablet-event-metrics strong {
  color: #0056b7;
  font-size: clamp(1.52rem, 2.7vw, 2.7rem);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.tablet-event-metrics p {
  color: rgba(16, 19, 23, 0.62);
  font-size: clamp(0.6rem, 0.78vw, 0.72rem);
}

.tablet-event-story {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.55vw, 18px);
}

.tablet-event-story-block,
.tablet-event-photo-card {
  border-top: 1px solid rgba(16, 19, 23, 0.12);
}

.tablet-event-story-block {
  display: grid;
  align-content: start;
  gap: 7px;
  grid-column: span 3;
  min-height: 180px;
  padding-top: clamp(12px, 1.5vw, 18px);
}

.tablet-event-story-block.is-large {
  grid-column: span 4;
}

.tablet-event-story-block span {
  color: rgba(0, 86, 183, 0.88);
  font-size: clamp(0.58rem, 0.74vw, 0.68rem);
  font-weight: 860;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tablet-event-story-block h3 {
  max-width: 18em;
  margin: 0;
  color: #0b0d10;
  font-size: clamp(1rem, 1.8vw, 1.72rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.tablet-event-story-block p {
  max-width: 26rem;
  margin: 0;
  color: rgba(16, 19, 23, 0.68);
  font-size: clamp(0.72rem, 0.92vw, 0.84rem);
  font-weight: 520;
  line-height: 1.34;
}

.tablet-event-photo-card {
  display: grid;
  align-content: start;
  gap: 7px;
  grid-column: span 2;
  padding: clamp(12px, 1.5vw, 18px) 0 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: #0b0d10;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.tablet-event-photo-card:hover,
.tablet-event-photo-card:focus-visible {
  opacity: 0.9;
  transform: translateY(-2px);
}

.tablet-event-photo-card.is-tall {
  grid-column: span 2;
}

.tablet-event-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tablet-event-photo-card.is-tall img {
  aspect-ratio: 4 / 4.6;
}

.tablet-event-photo-card span {
  color: rgba(16, 19, 23, 0.72);
  font-size: clamp(0.62rem, 0.82vw, 0.76rem);
  font-weight: 760;
  line-height: 1.16;
}

.tablet-event-article {
  overflow: hidden;
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  background: #fbfbf8;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.tablet-event-mag-head {
  display: grid;
  gap: clamp(7px, 0.9vw, 11px);
}

.tablet-event-mag-nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(10px, 1.3vw, 18px);
  padding-bottom: clamp(7px, 0.85vw, 10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  color: #0a0a0a;
  font-size: clamp(0.5rem, 0.62vw, 0.58rem);
  font-weight: 850;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.tablet-event-mag-nav span {
  color: rgba(0, 0, 0, 0.42);
}

.tablet-event-mag-nav a {
  color: #0a0a0a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tablet-event-mag-title {
  display: grid;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  container-type: inline-size;
}

.tablet-event-mag-title .tablet-event-kicker {
  color: rgba(0, 86, 183, 0.88);
  font-size: clamp(0.52rem, 0.66vw, 0.64rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tablet-event-mag-title h2 {
  margin: 0;
  color: #050505;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.35rem, 5.45vw, 5.1rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.052em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.tablet-event-mag-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: clamp(6px, 0.8vw, 10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.tablet-event-mag-meta span {
  color: rgba(0, 0, 0, 0.48);
  font-size: clamp(0.55rem, 0.7vw, 0.66rem);
  font-weight: 760;
  letter-spacing: 0.02em;
}

.tablet-event-hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(188px, 0.84fr);
  gap: clamp(10px, 1.25vw, 14px);
  align-items: stretch;
}

.tablet-event-hero-strip .tablet-event-cover {
  min-height: clamp(178px, 22vw, 255px);
  border-radius: 0;
}

.tablet-event-brief {
  display: grid;
  align-content: start;
  gap: clamp(9px, 1.05vw, 13px);
  padding-top: clamp(8px, 1vw, 12px);
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.tablet-event-brief h3 {
  max-width: 14.5em;
  margin: 0;
  color: #050505;
  font-size: clamp(0.96rem, 1.55vw, 1.5rem);
  font-weight: 930;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tablet-event-brief p:not(.tablet-event-kicker) {
  margin: 0;
  color: rgba(0, 0, 0, 0.64);
  font-size: clamp(0.66rem, 0.78vw, 0.76rem);
  font-weight: 520;
  line-height: 1.32;
}

.tablet-event-brief .tablet-event-kicker {
  color: rgba(0, 86, 183, 0.88);
}

.tablet-event-report-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
}

.tablet-event-report {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 128px;
  padding-top: clamp(9px, 1vw, 12px);
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  background: transparent;
  color: #050505;
  font: inherit;
  text-align: left;
}

.tablet-event-report.is-text {
  grid-column: span 6;
}

.tablet-event-report.is-large {
  grid-column: span 7;
}

.tablet-event-report.is-photo {
  grid-column: span 5;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.tablet-event-report.is-photo:hover,
.tablet-event-report.is-photo:focus-visible {
  opacity: 0.9;
  transform: translateY(-2px);
}

.tablet-event-report.is-tall {
  grid-row: auto;
}

.tablet-event-report span {
  color: rgba(0, 86, 183, 0.86);
  font-size: clamp(0.52rem, 0.64vw, 0.6rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tablet-event-report h3 {
  max-width: 18.5em;
  margin: 0;
  color: #050505;
  font-size: clamp(0.92rem, 1.22vw, 1.18rem);
  font-weight: 930;
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.tablet-event-report p {
  max-width: 25rem;
  margin: 0;
  color: rgba(0, 0, 0, 0.64);
  font-size: clamp(0.64rem, 0.76vw, 0.72rem);
  font-weight: 520;
  line-height: 1.3;
}

.tablet-event-report img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tablet-event-report.is-tall img {
  aspect-ratio: 16 / 10;
}

.tablet-event-report.is-photo span {
  color: rgba(0, 0, 0, 0.68);
  font-size: clamp(0.58rem, 0.72vw, 0.68rem);
  line-height: 1.16;
  text-transform: none;
  letter-spacing: 0;
}

#tabletEvent2Screen .tablet-event-cover img {
  object-position: center 72%;
}

#tabletEvent2Screen .tablet-event-report.is-photo img {
  object-position: center 68%;
}

#tabletEvent2Screen [data-tablet-event-visual="2"] img {
  object-position: center 58%;
}

.tablet-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(34px, 3.6vw, 44px);
  padding: 0 clamp(18px, 2.2vw, 30px);
  color: rgba(35, 25, 18, 0.76);
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.76rem, 0.9vw, 0.88rem);
  font-weight: 640;
}

.tablet-app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(158px, 0.23fr) 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  height: calc(100% - clamp(34px, 3.6vw, 44px));
  padding: 0 clamp(14px, 2vw, 26px) clamp(14px, 2vw, 26px);
}

.tablet-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.16)),
    rgba(255, 250, 238, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(65, 38, 21, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.tablet-nav button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: rgba(35, 25, 18, 0.68);
  cursor: pointer;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 680;
  text-align: left;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.tablet-nav button:hover,
.tablet-nav button:focus-visible,
.tablet-nav button.is-active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.58);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.22));
  color: #231a12;
  box-shadow:
    0 12px 24px rgba(65, 38, 21, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tablet-content {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.58), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(182, 83, 32, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18)),
    rgba(255, 250, 238, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -20px 36px rgba(65, 38, 21, 0.06),
    0 16px 36px rgba(65, 38, 21, 0.1);
}

.tablet-view {
  display: none;
  height: 100%;
  min-height: 0;
  padding: clamp(18px, 2.4vw, 34px);
  color: #20150f;
  overflow: auto;
}

.tablet-view.is-active {
  display: grid;
  align-content: start;
  gap: clamp(14px, 1.8vw, 22px);
}

.tablet-kicker {
  margin: 0;
  color: rgba(138, 53, 23, 0.82);
  font-family: "MADE Outer Sans", "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.66rem, 0.86vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tablet-view h2 {
  max-width: 9em;
  margin: 0;
  color: #20150f;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  font-weight: 820;
  line-height: 0.92;
  letter-spacing: 0;
}

.tablet-hero-grid,
.tablet-project-grid,
.tablet-info-list {
  display: grid;
  gap: 12px;
}

.tablet-hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tablet-hero-grid article,
.tablet-project-grid span,
.tablet-info-list p {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18)),
    rgba(255, 250, 238, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 24px rgba(65, 38, 21, 0.08);
}

.tablet-hero-grid article {
  padding: clamp(14px, 1.7vw, 20px);
}

.tablet-hero-grid span {
  display: block;
  margin-bottom: 20px;
  color: rgba(138, 53, 23, 0.56);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.tablet-hero-grid strong {
  display: block;
  color: #20150f;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 760;
}

.tablet-hero-grid p {
  margin: 7px 0 0;
  color: rgba(32, 21, 15, 0.62);
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  font-weight: 520;
  line-height: 1.34;
}

.tablet-project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tablet-project-grid span {
  display: grid;
  place-items: center;
  min-height: 74px;
  color: rgba(32, 21, 15, 0.78);
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  font-weight: 760;
}

.tablet-info-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 clamp(14px, 1.7vw, 20px);
  color: rgba(32, 21, 15, 0.58);
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  font-weight: 620;
}

.tablet-info-list strong {
  color: rgba(32, 21, 15, 0.9);
  font-weight: 760;
}

.tablet-close {
  position: fixed;
  top: clamp(24px, 4.2vh, 46px);
  left: clamp(18px, 2.6vw, 42px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  color: #fff;
  cursor: pointer;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.24);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -12px 20px rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
  backdrop-filter: blur(22px) saturate(1.22);
}

.tablet-close:hover,
.tablet-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.58);
}

.tablet-message-screen .tablet-message-topbar {
  min-height: clamp(48px, 5.4vw, 60px);
}

.tablet-message-screen .tablet-message-title strong {
  color: rgba(18, 20, 26, 0.5);
  font-size: clamp(0.92rem, 1.42vw, 1.12rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tablet-message-screen .tablet-message-back {
  color: #12141a;
}

@media (max-width: 820px) {
  .tablet-modal {
    width: min(470px, calc(100vw - 28px), calc((100svh - 34px) * 0.724));
    max-height: calc(100svh - 34px);
  }

  .tablet-device {
    aspect-ratio: 10 / 13.8;
    padding: 12px;
    border-radius: 32px;
  }

  .tablet-screen {
    border-radius: 24px;
  }

  .tablet-home-screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: clamp(9px, 2.8vw, 14px);
    padding: clamp(13px, 4vw, 18px);
  }

  .tablet-home-status strong {
    font-size: clamp(1.55rem, 8.2vw, 2.8rem);
  }

  .tablet-home-status span {
    font-size: clamp(0.64rem, 2.7vw, 0.72rem);
  }

  .tablet-widget-panel {
    grid-template-columns: 1fr 1fr;
    gap: clamp(7px, 2.4vw, 10px);
  }

  .tablet-widget {
    gap: clamp(5px, 1.8vw, 8px);
    border-radius: clamp(16px, 5vw, 20px);
  }

  .tablet-widget-large,
  .tablet-widget-small {
    min-height: clamp(88px, 26vw, 118px);
    padding: clamp(10px, 3.2vw, 14px);
  }

  .tablet-widget h2 {
    font-size: clamp(1.15rem, 6.8vw, 2.1rem);
  }

  .tablet-widget p {
    font-size: clamp(0.62rem, 2.8vw, 0.74rem);
    line-height: 1.18;
  }

  .tablet-app-grid {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(62px, 1fr));
    gap: clamp(10px, 3.8vw, 18px);
    align-content: start;
    justify-content: stretch;
    padding-top: clamp(2px, 1.8vw, 8px);
    padding-left: 0;
  }

  .tablet-app-icon {
    gap: clamp(5px, 1.8vw, 10px);
  }

  .tablet-app-icon strong {
    font-size: clamp(0.66rem, 2.8vw, 0.76rem);
  }

  .tablet-home-dots {
    display: none;
  }

  .tablet-dock {
    grid-row: 4;
    grid-template-columns: repeat(6, clamp(30px, 9.2vw, 38px));
    max-width: 100%;
    gap: clamp(4px, 1.8vw, 7px);
    padding: clamp(6px, 2vw, 8px) clamp(8px, 3vw, 10px);
    border-radius: clamp(15px, 4.4vw, 18px);
  }

  .tablet-dock-logo {
    width: clamp(28px, 8.2vw, 34px);
    border-radius: clamp(8px, 2.8vw, 10px);
  }

  .tablet-app-logo {
    width: clamp(50px, 15.8vw, 62px);
    border-radius: clamp(14px, 4.6vw, 18px);
  }

  .tablet-app-logo img {
    width: 70%;
    height: 70%;
  }

  .is-message-app.has-message-notification::after {
    right: -3px;
    top: -4px;
    width: clamp(14px, 4.6vw, 18px);
    font-size: clamp(0.52rem, 2.4vw, 0.66rem);
  }

  .tablet-message-screen {
    padding: 14px;
  }

  .tablet-messages-window {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    border-radius: 18px;
  }

  .tablet-conversation-list {
    gap: 0;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(22, 24, 30, 0.12);
  }

  .tablet-message-search,
  .tablet-conversation-card.is-muted {
    display: none;
  }

  .tablet-message-screen .tablet-message-title strong {
    font-size: clamp(0.86rem, 3.7vw, 1.02rem);
  }

  .tablet-conversation-card {
    min-height: 54px;
    grid-template-columns: 32px minmax(0, 1fr);
    border-radius: 13px;
  }

  .tablet-message-avatar,
  .tablet-conversation-card > span {
    width: 32px;
  }

  .tablet-conversation-card strong {
    font-size: 0.82rem;
  }

  .tablet-conversation-card p {
    font-size: 0.68rem;
  }

  .tablet-chat-header {
    min-height: 48px;
    padding: 0 14px;
  }

  .tablet-chat-status {
    display: none;
  }

  .tablet-chat-thread {
    padding: 14px;
  }

  .tablet-chat-row {
    max-width: 100%;
  }

  .tablet-chat-bubble {
    font-size: clamp(0.76rem, 3.18vw, 0.88rem);
    line-height: 1.36;
  }

  .tablet-chat-composer {
    min-height: 46px;
    padding: 7px 12px;
  }

  .tablet-event-screen {
    padding: 14px;
  }

  .tablet-event-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "metrics"
      "info"
      "gallery";
    grid-template-rows: none;
    gap: 10px;
    padding-right: 2px;
  }

  .tablet-event-article {
    gap: 14px;
    padding: 13px;
    border-radius: 18px;
  }

  .tablet-event-article-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tablet-event-title-block h2 {
    max-width: 8.4em;
    font-size: clamp(2.3rem, 14vw, 4.2rem);
  }

  .tablet-event-title-block > p:not(.tablet-event-kicker) {
    font-size: 0.78rem;
  }

  .tablet-event-cover {
    min-height: 150px;
    border-radius: 18px;
  }

  .tablet-event-cover figcaption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 9px 10px;
    border-radius: 14px;
  }

  .tablet-event-summary {
    padding: 14px;
    border-radius: 18px;
  }

  .tablet-event-hero h2 {
    font-size: clamp(1.42rem, 8vw, 2.24rem);
  }

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

  .tablet-event-metrics article.is-featured {
    grid-column: 1 / -1;
  }

  .tablet-event-metrics article {
    min-height: 64px;
    padding: 12px;
    border-radius: 16px;
  }

  .tablet-event-story {
    grid-template-columns: 1fr;
  }

  .tablet-event-story-block,
  .tablet-event-story-block.is-large,
  .tablet-event-photo-card,
  .tablet-event-photo-card.is-tall {
    grid-column: 1;
    min-height: auto;
  }

  .tablet-event-photo-card img,
  .tablet-event-photo-card.is-tall img {
    aspect-ratio: 16 / 10;
  }

  .tablet-app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 10px;
    padding: 0 12px 12px;
  }

  .tablet-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 7px;
    border-radius: 18px;
  }

  .tablet-nav button {
    min-height: 38px;
    text-align: center;
    font-size: 0.78rem;
  }

  .tablet-view {
    padding: 18px;
  }

  .tablet-view h2 {
    font-size: clamp(2.1rem, 13vw, 4rem);
  }

  .tablet-hero-grid,
  .tablet-project-grid {
    grid-template-columns: 1fr;
  }

  .tablet-project-grid span {
    min-height: 52px;
  }

  .tablet-info-list p {
    display: grid;
    justify-content: stretch;
    min-height: 64px;
    padding: 12px 14px;
  }

  .tablet-close {
    top: 18px;
    left: 14px;
    width: 36px;
  }
}

.modal-project-details {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.modal-project-details[hidden] {
  display: none;
}

.project-context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 2px;
}

.project-context-row span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(217, 35, 18, 0.18);
  border-radius: 999px;
  background: rgba(217, 35, 18, 0.08);
  color: rgba(45, 30, 22, 0.88);
  font-size: 0.72rem;
  font-weight: 720;
}

.modal-project-details .project-intro {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid #d92312;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(217, 35, 18, 0.1), rgba(255, 255, 255, 0.55)),
    rgba(255, 250, 236, 0.44);
  color: rgba(30, 22, 18, 0.88);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 560;
  line-height: 1.42;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.project-metric {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 76px;
  padding: 12px 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(35, 26, 17, 0.1);
  border-radius: 15px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32)),
    rgba(255, 250, 236, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -12px 20px rgba(35, 18, 10, 0.04),
    0 12px 24px rgba(35, 18, 10, 0.08);
}

.project-metric::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(300deg, transparent 56%, rgba(255, 255, 255, 0.22));
  pointer-events: none;
}

.project-metric strong,
.project-metric span {
  position: relative;
  z-index: 1;
}

.project-metric strong {
  display: block;
  color: #17110e;
  font-size: clamp(1.28rem, 1.9vw, 1.8rem);
  font-weight: 840;
  line-height: 1;
  letter-spacing: 0;
}

.project-metric span {
  display: block;
  margin-top: 6px;
  color: rgba(35, 26, 17, 0.7);
  font-size: 0.7rem;
  font-weight: 680;
  line-height: 1.08;
  text-transform: uppercase;
}

.project-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-highlights li {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 66px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 15px;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 35, 18, 0.22), transparent 35%),
    linear-gradient(145deg, rgba(30, 22, 18, 0.92), rgba(8, 8, 8, 0.9));
  color: rgba(255, 248, 238, 0.94);
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  font-weight: 720;
  line-height: 1.18;
  box-shadow:
    0 12px 24px rgba(24, 10, 7, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.project-highlights li::before {
  content: "";
  position: absolute;
  right: 11px;
  top: 11px;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ff3217;
  box-shadow: 0 0 14px rgba(255, 50, 23, 0.64);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-detail-block {
  padding: 12px 12px 13px;
  border: 1px solid rgba(35, 26, 17, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.24)),
    rgba(255, 250, 236, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(35, 18, 10, 0.08);
}

.project-detail-block span {
  display: block;
  margin-bottom: 5px;
  color: #d92312;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-detail-block p {
  margin: 0;
  color: rgba(35, 26, 17, 0.76);
  font-size: 0.82rem;
  line-height: 1.35;
}

.project-result-line {
  margin: 0;
  color: rgba(30, 22, 18, 0.72);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-skill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(217, 35, 18, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(35, 26, 17, 0.86);
  font-size: 0.72rem;
  font-weight: 620;
}

@media (max-width: 820px) {
  .project-highlights,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.back-button {
  position: fixed;
  z-index: 74;
  left: clamp(22px, 3vw, 48px);
  top: clamp(38px, 5.4vh, 58px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 3.2vw, 46px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -12px 20px rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: rgba(255, 248, 238, 0.96);
  cursor: pointer;
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.94rem, 1vw, 1.08rem);
  font-weight: 520;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22) contrast(1.04);
  backdrop-filter: blur(22px) saturate(1.22) contrast(1.04);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.back-button[hidden] {
  display: none;
}

.back-button::before {
  content: "";
  position: absolute;
  inset: 2px 7px auto 7px;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.back-button span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  line-height: 1;
}

.back-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -12px 20px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

@media (max-width: 760px) {
  .back-button {
    left: 16px;
    top: 20px;
    width: 36px;
    font-size: 0.92rem;
  }

  .experience[data-step="gallery"] .back-button {
    top: 16px;
  }
}

/* Project case modal: scrollable content and discreet external close control. */
.art-modal.is-project-case {
  max-height: calc(100svh - 56px);
  overflow: visible;
}

.modal-frame.is-project-case {
  max-height: calc(100svh - 56px);
  overflow: visible;
}

.modal-frame.is-project-case .modal-copy {
  max-height: calc(100svh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: clamp(12px, 1.5vw, 20px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.34) rgba(255, 255, 255, 0.08);
}

.modal-frame.is-project-case .modal-copy::-webkit-scrollbar {
  width: 4px;
}

.modal-frame.is-project-case .modal-copy::-webkit-scrollbar-track {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.modal-frame.is-project-case .modal-copy::-webkit-scrollbar-thumb {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.modal-frame.is-project-case > .modal-close {
  position: fixed;
  top: max(12px, calc((100svh - 720px) / 2 + 8px));
  left: max(12px, calc((100vw - 1180px) / 2 + 8px));
  right: auto;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1;
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  backdrop-filter: blur(16px) saturate(1.18);
}

.modal-frame.is-project-case > .modal-close::before {
  opacity: 0.28;
}

.modal-frame.is-project-case > .modal-close:hover,
.modal-frame.is-project-case > .modal-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.48);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

@media (max-width: 900px) {
  .art-modal.is-project-case {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 72px);
    overflow: visible;
  }

  .modal-frame.is-project-case {
    min-height: 0;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.34) rgba(255, 255, 255, 0.08);
  }

  .modal-frame.is-project-case::-webkit-scrollbar {
    width: 4px;
  }

  .modal-frame.is-project-case::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
  }

  .modal-frame.is-project-case::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18)),
      rgba(255, 255, 255, 0.22);
  }

  .modal-frame.is-project-case .modal-copy {
    max-height: none;
    overflow: visible;
  }

  .modal-frame.is-project-case > .modal-close {
    position: fixed;
    top: 42px;
    left: 20px;
  }
}

/* Unified floating close control for every detail sheet. */
.art-modal,
.journal-modal {
  overflow: visible;
}

.art-modal .modal-close,
.journal-modal .modal-close,
.modal-frame.is-project-case > .modal-close {
  position: fixed !important;
  top: clamp(38px, 5.4vh, 58px) !important;
  left: clamp(22px, 3vw, 48px) !important;
  right: auto !important;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(34px, 3vw, 42px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  color: #fff;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    inset 0 -12px 20px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(22px) saturate(1.22) contrast(1.04);
  backdrop-filter: blur(22px) saturate(1.22) contrast(1.04);
}

.art-modal .modal-close::before,
.journal-modal .modal-close::before,
.modal-frame.is-project-case > .modal-close::before {
  opacity: 0.22;
}

.art-modal .modal-close:hover,
.art-modal .modal-close:focus-visible,
.journal-modal .modal-close:hover,
.journal-modal .modal-close:focus-visible,
.modal-frame.is-project-case > .modal-close:hover,
.modal-frame.is-project-case > .modal-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -12px 20px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

@media (max-width: 760px) {
  .art-modal .modal-close,
  .journal-modal .modal-close,
  .modal-frame.is-project-case > .modal-close {
    top: 20px !important;
    left: 16px !important;
    width: 36px;
    font-size: 1.02rem;
  }
}

/* Mustang case: make the poster feel like the hero object, with a sage/cream setting. */
.art-modal.is-project-case.is-mustang-case {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.6), transparent 28%),
    radial-gradient(circle at 86% 100%, rgba(124, 143, 119, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 245, 0.98), rgba(236, 241, 231, 0.96));
}

.modal-frame.is-project-case.is-mustang-case {
  grid-template-columns: minmax(380px, 0.96fr) minmax(0, 1.04fr);
}

.modal-frame.is-project-case.is-mustang-case .modal-art-wrap {
  align-content: stretch;
  justify-items: center;
  padding: clamp(7px, 0.9vw, 11px);
  border-color: rgba(126, 145, 121, 0.34);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(145deg, rgba(250, 250, 242, 0.98), rgba(217, 228, 211, 0.9) 48%, rgba(126, 145, 121, 0.2));
  box-shadow:
    0 22px 48px rgba(51, 64, 47, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -18px 28px rgba(95, 112, 91, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.modal-frame.is-project-case.is-mustang-case #modalImage {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 16px;
  object-fit: contain;
  background: transparent;
  box-shadow:
    0 18px 34px rgba(51, 64, 47, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.modal-frame.is-project-case.is-mustang-case #modalMeta,
.modal-frame.is-project-case.is-mustang-case .project-detail-block span {
  color: #66795f;
}

.modal-frame.is-project-case.is-mustang-case .project-context-row span,
.modal-frame.is-project-case.is-mustang-case .project-skill-list span {
  border-color: rgba(102, 121, 95, 0.24);
  background: rgba(102, 121, 95, 0.09);
}

.modal-frame.is-project-case.is-mustang-case .modal-project-details .project-intro {
  border-left-color: #7e9179;
  background:
    linear-gradient(90deg, rgba(126, 145, 121, 0.14), rgba(255, 255, 255, 0.56)),
    rgba(255, 250, 236, 0.44);
}

.modal-frame.is-project-case.is-mustang-case .project-highlights li {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(104, 123, 98, 0.96), rgba(31, 37, 29, 0.94));
}

.modal-frame.is-project-case.is-mustang-case .project-highlights li::before {
  background: #f7f3e8;
  box-shadow: 0 0 14px rgba(247, 243, 232, 0.6);
}

@media (max-width: 900px) {
  .modal-frame.is-project-case.is-mustang-case {
    grid-template-columns: 1fr;
  }

  .modal-frame.is-project-case.is-mustang-case .modal-art-wrap {
    min-height: min(62svh, 620px);
  }

  .modal-frame.is-project-case.is-mustang-case #modalImage {
    height: auto;
    max-height: min(62svh, 620px);
  }
}

/* Project sheets scroll as one complete surface on desktop too. */
.modal-frame.is-project-case {
  min-height: 0;
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 45, 45, 0.24) rgba(255, 255, 255, 0.1);
}

.modal-frame.is-project-case .modal-copy {
  max-height: none;
  overflow: visible;
}

.modal-frame.is-project-case::-webkit-scrollbar {
  width: 4px;
}

.modal-frame.is-project-case::-webkit-scrollbar-track {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.06);
}

.modal-frame.is-project-case::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(70, 70, 70, 0.28), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 8px rgba(255, 255, 255, 0.08);
}

/* Photo case: editorial photography mood with compact portfolio thumbnails. */
.art-modal.is-project-case.is-photo-case {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.54), transparent 28%),
    radial-gradient(circle at 88% 100%, rgba(80, 92, 104, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(252, 252, 248, 0.98), rgba(232, 235, 237, 0.96));
}

.modal-frame.is-project-case.is-photo-case {
  grid-template-columns: minmax(380px, 1.02fr) minmax(0, 0.98fr);
}

.modal-frame.is-project-case.is-photo-case .modal-art-wrap {
  align-content: start;
  padding: clamp(9px, 1vw, 13px);
  border-color: rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 0.2), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(150, 172, 190, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(26, 28, 31, 0.98), rgba(8, 9, 10, 0.96));
  box-shadow:
    0 24px 54px rgba(11, 14, 17, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -20px 34px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.modal-frame.is-project-case.is-photo-case #modalImage {
  aspect-ratio: 16 / 10;
  width: 100%;
  max-height: none;
  border-radius: 17px;
  object-fit: cover;
  background: #111;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

.modal-frame.is-project-case.is-photo-case .modal-visual-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.modal-frame.is-project-case.is-photo-case .modal-visual-strip figure {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.modal-frame.is-project-case.is-photo-case .modal-visual-strip img {
  aspect-ratio: 4 / 3;
  max-height: none;
  object-fit: cover;
}

.modal-frame.is-project-case.is-photo-case .modal-visual-strip figcaption {
  padding: 7px 8px 8px;
  color: rgba(246, 248, 250, 0.86);
  font-size: 0.66rem;
}

.modal-frame.is-project-case.is-photo-case #modalMeta,
.modal-frame.is-project-case.is-photo-case .project-detail-block span {
  color: #637789;
}

.modal-frame.is-project-case.is-photo-case .project-context-row span,
.modal-frame.is-project-case.is-photo-case .project-skill-list span {
  border-color: rgba(99, 119, 137, 0.24);
  background: rgba(99, 119, 137, 0.09);
}

.modal-frame.is-project-case.is-photo-case .modal-project-details .project-intro {
  border-left-color: #637789;
  background:
    linear-gradient(90deg, rgba(99, 119, 137, 0.14), rgba(255, 255, 255, 0.58)),
    rgba(247, 249, 250, 0.54);
}

.modal-frame.is-project-case.is-photo-case .project-highlights li {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(48, 55, 62, 0.96), rgba(12, 14, 16, 0.94));
}

.modal-frame.is-project-case.is-photo-case .project-highlights li::before {
  background: #d9e2ea;
  box-shadow: 0 0 14px rgba(217, 226, 234, 0.58);
}

@media (max-width: 900px) {
  .modal-frame.is-project-case.is-photo-case {
    grid-template-columns: 1fr;
  }

  .modal-frame.is-project-case.is-photo-case .modal-visual-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* L'Instant case: night blue and champagne identity system. */
.art-modal.is-project-case.is-instant-case {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.48), transparent 28%),
    radial-gradient(circle at 86% 100%, rgba(238, 201, 128, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 244, 0.98), rgba(241, 233, 216, 0.96));
}

.modal-frame.is-project-case.is-instant-case {
  grid-template-columns: minmax(360px, 0.98fr) minmax(0, 1.02fr);
}

.modal-frame.is-project-case.is-instant-case .modal-art-wrap {
  align-content: start;
  padding: clamp(10px, 1.1vw, 14px);
  border-color: rgba(238, 201, 128, 0.28);
  background:
    radial-gradient(circle at 28% 0%, rgba(238, 201, 128, 0.18), transparent 31%),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(3, 18, 54, 0.98), rgba(1, 9, 32, 0.97));
  box-shadow:
    0 24px 54px rgba(3, 13, 38, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -20px 34px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(238, 201, 128, 0.14);
}

.modal-frame.is-project-case.is-instant-case #modalImage {
  aspect-ratio: 5 / 4;
  width: 100%;
  max-height: none;
  border-radius: 18px;
  object-fit: contain;
  background: #06133a;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(238, 201, 128, 0.18);
}

.modal-frame.is-project-case.is-instant-case .modal-visual-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.modal-frame.is-project-case.is-instant-case .modal-visual-strip figure:first-child {
  grid-column: 1 / -1;
}

.modal-frame.is-project-case.is-instant-case .modal-visual-strip figure {
  border-color: rgba(238, 201, 128, 0.22);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

.modal-frame.is-project-case.is-instant-case .modal-visual-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 170px;
  object-fit: contain;
  background: #06133a;
}

.modal-frame.is-project-case.is-instant-case .modal-visual-strip figure:first-child img {
  aspect-ratio: 16 / 8;
  max-height: 220px;
}

.modal-frame.is-project-case.is-instant-case .modal-visual-strip figcaption {
  color: rgba(246, 217, 154, 0.94);
}

.modal-frame.is-project-case.is-instant-case #modalMeta,
.modal-frame.is-project-case.is-instant-case .project-detail-block span {
  color: #0a1b4f;
}

.modal-frame.is-project-case.is-instant-case .project-context-row span,
.modal-frame.is-project-case.is-instant-case .project-skill-list span {
  border-color: rgba(10, 27, 79, 0.22);
  background: rgba(10, 27, 79, 0.08);
}

.modal-frame.is-project-case.is-instant-case .modal-project-details .project-intro {
  border-left-color: #d8b76f;
  background:
    linear-gradient(90deg, rgba(216, 183, 111, 0.18), rgba(255, 255, 255, 0.58)),
    rgba(255, 250, 236, 0.5);
}

.modal-frame.is-project-case.is-instant-case .project-highlights li {
  background:
    radial-gradient(circle at 20% 0%, rgba(238, 201, 128, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(8, 25, 72, 0.98), rgba(1, 8, 31, 0.96));
  color: rgba(255, 248, 232, 0.95);
}

.modal-frame.is-project-case.is-instant-case .project-highlights li::before {
  background: #e6c77d;
  box-shadow: 0 0 14px rgba(230, 199, 125, 0.62);
}

@media (max-width: 900px) {
  .modal-frame.is-project-case.is-instant-case {
    grid-template-columns: 1fr;
  }

  .modal-frame.is-project-case.is-instant-case .modal-visual-strip {
    grid-template-columns: 1fr;
  }

  .modal-frame.is-project-case.is-instant-case #modalImage {
    max-height: min(58svh, 560px);
  }
}

.project-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(35, 26, 17, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.42);
  color: rgba(20, 14, 12, 0.9);
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
  box-shadow:
    0 12px 28px rgba(35, 18, 10, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.modal-title-action {
  display: flex;
  margin: -2px 0 14px;
}

.modal-title-action[hidden] {
  display: none;
}

.project-external-link:hover,
.project-external-link:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(35, 18, 10, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* Supreme case: red, black and white mobile commerce prototype. */
.art-modal.is-project-case.is-supreme-case {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.58), transparent 28%),
    radial-gradient(circle at 88% 100%, rgba(237, 28, 36, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 238, 238, 0.96));
}

.modal-frame.is-project-case.is-supreme-case {
  grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.12fr);
}

.modal-frame.is-project-case.is-supreme-case .modal-art-wrap {
  align-content: start;
  justify-items: center;
  padding: clamp(14px, 1.6vw, 22px);
  border-color: rgba(237, 28, 36, 0.16);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.26), transparent 31%),
    radial-gradient(circle at 84% 12%, rgba(237, 28, 36, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(20, 20, 20, 0.98), rgba(4, 4, 4, 0.96));
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -20px 34px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.modal-frame.is-project-case.is-supreme-case #modalImage {
  width: min(64%, 250px);
  max-height: min(64svh, 660px);
  border-radius: 24px;
  object-fit: contain;
  background: #f7f7f7;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.modal-frame.is-project-case.is-supreme-case .modal-visual-strip {
  width: 100%;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.modal-frame.is-project-case.is-supreme-case .modal-visual-strip figure {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.24);
}

.modal-frame.is-project-case.is-supreme-case .modal-visual-strip img {
  width: min(52%, 210px);
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
  background: #f7f7f7;
}

.modal-frame.is-project-case.is-supreme-case .modal-visual-strip figcaption {
  color: rgba(255, 255, 255, 0.9);
}

.modal-frame.is-project-case.is-supreme-case #modalMeta,
.modal-frame.is-project-case.is-supreme-case .project-detail-block span {
  color: #ed1c24;
}

.modal-frame.is-project-case.is-supreme-case .project-context-row span,
.modal-frame.is-project-case.is-supreme-case .project-skill-list span {
  border-color: rgba(237, 28, 36, 0.24);
  background: rgba(237, 28, 36, 0.08);
}

.modal-frame.is-project-case.is-supreme-case .modal-project-details .project-intro {
  border-left-color: #ed1c24;
  background:
    linear-gradient(90deg, rgba(237, 28, 36, 0.12), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.54);
}

.modal-frame.is-project-case.is-supreme-case .project-highlights li {
  background:
    radial-gradient(circle at 20% 0%, rgba(237, 28, 36, 0.3), transparent 36%),
    linear-gradient(145deg, rgba(26, 26, 26, 0.98), rgba(4, 4, 4, 0.96));
}

.modal-frame.is-project-case.is-supreme-case .project-highlights li::before {
  background: #ed1c24;
  box-shadow: 0 0 14px rgba(237, 28, 36, 0.64);
}

.modal-frame.is-project-case.is-supreme-case .project-external-link {
  border-color: rgba(237, 28, 36, 0.18);
  background:
    linear-gradient(145deg, rgba(237, 28, 36, 0.98), rgba(190, 12, 20, 0.96));
  color: #fff;
  box-shadow:
    0 14px 30px rgba(237, 28, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
  .modal-frame.is-project-case.is-supreme-case {
    grid-template-columns: 1fr;
  }

  .modal-frame.is-project-case.is-supreme-case #modalImage,
  .modal-frame.is-project-case.is-supreme-case .modal-visual-strip img {
    width: min(72%, 260px);
  }
}

/* Phone case: performance marketing campaign with numbers first. */
.art-modal.is-project-case.is-phone-case {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.58), transparent 28%),
    radial-gradient(circle at 86% 100%, rgba(190, 70, 24, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(241, 231, 219, 0.96));
}

.modal-frame.is-project-case.is-phone-case {
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
}

.modal-frame.is-project-case.is-phone-case .modal-art-wrap {
  align-content: start;
  justify-items: center;
  padding: clamp(14px, 1.6vw, 22px);
  border-color: rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.2), transparent 31%),
    radial-gradient(circle at 88% 14%, rgba(207, 89, 31, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(33, 20, 16, 0.98), rgba(6, 6, 6, 0.96));
  box-shadow:
    0 24px 54px rgba(35, 18, 10, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -20px 34px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.modal-frame.is-project-case.is-phone-case #modalImage {
  width: min(58%, 260px);
  max-height: min(66svh, 720px);
  border-radius: 26px;
  cursor: zoom-in;
  object-fit: contain;
  background: #101010;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

.modal-frame.is-project-case.is-phone-case .modal-visual-strip {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.modal-frame.is-project-case.is-phone-case .modal-visual-strip figure {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.24);
}

.modal-frame.is-project-case.is-phone-case .modal-visual-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 190px;
  object-fit: cover;
  background: #101010;
}

.modal-frame.is-project-case.is-phone-case .modal-visual-strip figcaption {
  color: rgba(255, 248, 238, 0.9);
}

.modal-frame.is-project-case.is-phone-case #modalMeta,
.modal-frame.is-project-case.is-phone-case .project-detail-block span {
  color: #b65320;
}

.modal-frame.is-project-case.is-phone-case .project-context-row span,
.modal-frame.is-project-case.is-phone-case .project-skill-list span {
  border-color: rgba(182, 83, 32, 0.22);
  background: rgba(182, 83, 32, 0.08);
}

.modal-frame.is-project-case.is-phone-case .modal-project-details .project-intro {
  border-left-color: #b65320;
  background:
    linear-gradient(90deg, rgba(182, 83, 32, 0.13), rgba(255, 255, 255, 0.58)),
    rgba(255, 250, 236, 0.5);
}

.modal-frame.is-project-case.is-phone-case .project-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.78), transparent 32%),
    radial-gradient(circle at 92% 100%, rgba(182, 83, 32, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.24)),
    rgba(255, 250, 238, 0.48);
  box-shadow:
    0 18px 36px rgba(35, 18, 10, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    inset 0 -18px 28px rgba(65, 35, 19, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.modal-frame.is-project-case.is-phone-case .project-metric {
  min-height: 88px;
  padding: 13px 11px 12px;
  border: 0;
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.modal-frame.is-project-case.is-phone-case .project-metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background:
    linear-gradient(180deg, transparent, rgba(100, 61, 39, 0.18), transparent);
}

.modal-frame.is-project-case.is-phone-case .project-metric:first-child::before {
  display: none;
}

.modal-frame.is-project-case.is-phone-case .project-metric::after {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.44), transparent 32%),
    linear-gradient(335deg, transparent 58%, rgba(255, 255, 255, 0.18));
  opacity: 0.72;
}

.modal-frame.is-project-case.is-phone-case .project-metric strong {
  color: #2a1711;
  font-size: clamp(1.28rem, 2vw, 1.9rem);
  font-weight: 820;
  text-wrap: balance;
}

.modal-frame.is-project-case.is-phone-case .project-metric span {
  color: rgba(42, 23, 17, 0.64);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.modal-frame.is-project-case.is-phone-case .project-metric:nth-child(4) strong,
.modal-frame.is-project-case.is-phone-case .project-metric:nth-child(5) strong {
  color: #8a3517;
}

.modal-frame.is-project-case.is-phone-case .project-highlights li {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(68, 37, 25, 0.98), rgba(15, 12, 10, 0.96));
}

.modal-frame.is-project-case.is-phone-case .project-highlights li::before {
  background: #f2c16f;
  box-shadow: 0 0 14px rgba(242, 193, 111, 0.62);
}

.modal-frame.is-project-case.is-phone-case .project-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .modal-frame.is-project-case.is-phone-case .project-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .modal-frame.is-project-case.is-phone-case .project-metric {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background:
      radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.72), transparent 34%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.22)),
      rgba(255, 250, 238, 0.44);
    box-shadow:
      0 12px 24px rgba(35, 18, 10, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.68);
  }

  .modal-frame.is-project-case.is-phone-case .project-metric::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .modal-frame.is-project-case.is-phone-case {
    grid-template-columns: 1fr;
  }

  .modal-frame.is-project-case.is-phone-case #modalImage {
    width: min(68%, 260px);
    max-height: min(58svh, 620px);
  }

  .modal-frame.is-project-case.is-phone-case .project-detail-grid,
  .modal-frame.is-project-case.is-phone-case .modal-visual-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .modal-frame.is-project-case.is-phone-case .project-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tablet-event-article {
    border-radius: 16px;
  }

  .tablet-event-mag-nav {
    grid-template-columns: 1fr auto;
  }

  .tablet-event-mag-nav span {
    display: none;
  }

  .tablet-event-mag-title h2 {
    font-size: clamp(2.45rem, 12vw, 4.2rem);
    letter-spacing: -0.06em;
  }

  .tablet-event-mag-meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tablet-event-hero-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tablet-event-hero-strip .tablet-event-cover {
    min-height: 164px;
    border-radius: 0;
  }

  .tablet-event-brief h3 {
    max-width: none;
    font-size: clamp(1.12rem, 6vw, 1.7rem);
  }

  .tablet-event-report-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tablet-event-report,
  .tablet-event-report.is-text,
  .tablet-event-report.is-large,
  .tablet-event-report.is-photo,
  .tablet-event-report.is-tall {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
  }

  .tablet-event-report img,
  .tablet-event-report.is-tall img {
    aspect-ratio: 16 / 10;
  }
}

.tablet-event-content {
  min-width: 0;
}

.tablet-event-article {
  container-type: inline-size;
  overflow: visible;
  gap: clamp(11px, 2.1cqw, 18px);
  padding: clamp(12px, 2.25cqw, 20px);
}

.tablet-event-mag-title h2 {
  max-width: 100%;
  font-size: clamp(2rem, 13cqw, 4.05rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-wrap: nowrap;
}

.tablet-event-mag-meta {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.tablet-event-hero-strip {
  grid-template-columns: minmax(0, 1fr) minmax(176px, 0.68fr);
}

.tablet-event-hero-strip .tablet-event-cover {
  min-height: clamp(150px, 28cqw, 238px);
}

.tablet-event-brief h3 {
  font-size: clamp(0.94rem, 2.55cqw, 1.42rem);
  line-height: 1.04;
}

.tablet-event-brief p:not(.tablet-event-kicker) {
  font-size: clamp(0.63rem, 1.45cqw, 0.74rem);
  line-height: 1.28;
}

.tablet-event-reel-link {
  min-height: clamp(32px, 5.1cqw, 38px);
  padding: 0 clamp(10px, 2cqw, 14px);
  font-size: clamp(0.64rem, 1.55cqw, 0.78rem);
}

.tablet-event-metrics {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.tablet-event-metrics article,
.tablet-event-metrics article.is-featured {
  min-height: 74px;
  padding: clamp(9px, 1.65cqw, 14px);
}

.tablet-event-metrics strong {
  font-size: clamp(1.18rem, 4.6cqw, 2.2rem);
}

.tablet-event-report-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.tablet-event-report.is-text {
  grid-column: span 6;
}

.tablet-event-report.is-large {
  grid-column: span 7;
}

.tablet-event-report.is-photo {
  grid-column: span 5;
}

.tablet-event-report h3 {
  font-size: clamp(0.88rem, 2.15cqw, 1.16rem);
}

.tablet-event-report p {
  font-size: clamp(0.62rem, 1.38cqw, 0.72rem);
}

.tablet-event-report img,
.tablet-event-report.is-tall img {
  aspect-ratio: 16 / 9;
}

@container (max-width: 760px) {
  .tablet-event-mag-title h2 {
    font-size: clamp(1.7rem, 12.7cqw, 3.35rem);
    letter-spacing: -0.03em;
  }

  .tablet-event-hero-strip {
    grid-template-columns: 1fr;
  }

  .tablet-event-brief {
    padding-top: 10px;
  }

  .tablet-event-report-grid {
    grid-template-columns: 1fr;
  }

  .tablet-event-report,
  .tablet-event-report.is-text,
  .tablet-event-report.is-large,
  .tablet-event-report.is-photo,
  .tablet-event-report.is-tall {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
  }
}

@container (max-width: 540px) {
  .tablet-event-mag-title h2 {
    font-size: clamp(1.35rem, 12.2cqw, 2.6rem);
    letter-spacing: -0.025em;
  }

  .tablet-event-mag-nav {
    grid-template-columns: 1fr auto;
  }

  .tablet-event-mag-nav span {
    display: none;
  }

  .tablet-event-mag-meta {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

@media (max-width: 820px) {
  .tablet-event-content {
    display: block;
    overflow-x: hidden;
    padding: 8px 2px 16px;
  }

  .tablet-event-article {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: clamp(12px, 3.4vw, 16px);
    overflow: visible;
  }

  .tablet-event-mag-head,
  .tablet-event-hero-strip,
  .tablet-event-metrics,
  .tablet-event-report-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .tablet-event-mag-title {
    width: 100%;
    max-width: 100%;
  }

  .tablet-event-mag-title .tablet-event-kicker {
    font-size: clamp(0.58rem, 2.65vw, 0.72rem);
    letter-spacing: 0.11em;
  }

  .tablet-event-mag-title h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.9rem, 10.2vw, 3.05rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    white-space: nowrap;
  }

  .tablet-event-mag-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tablet-event-mag-meta span {
    font-size: clamp(0.66rem, 2.65vw, 0.78rem);
  }

  .tablet-event-hero-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tablet-event-hero-strip .tablet-event-cover {
    min-height: clamp(178px, 50vw, 260px);
  }

  .tablet-event-cover figcaption {
    right: 8%;
    bottom: 7%;
    left: 8%;
    width: auto;
    min-width: 0;
    padding: 14px 16px;
  }

  .tablet-event-brief {
    padding-top: 12px;
  }

  .tablet-event-brief h3 {
    max-width: none;
    font-size: clamp(1.28rem, 5.7vw, 1.8rem);
    line-height: 1.03;
  }

  .tablet-event-brief p:not(.tablet-event-kicker) {
    font-size: clamp(0.76rem, 3.15vw, 0.9rem);
    line-height: 1.34;
  }

  .tablet-event-reel-link {
    justify-self: start;
    min-height: 40px;
    padding: 0 15px;
    font-size: clamp(0.76rem, 3vw, 0.92rem);
  }

  .tablet-event-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tablet-event-metrics article,
  .tablet-event-metrics article.is-featured {
    min-height: 82px;
    padding: 11px;
  }

  .tablet-event-metrics strong {
    font-size: clamp(1.35rem, 8vw, 2.1rem);
  }

  .tablet-event-report-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tablet-event-report,
  .tablet-event-report.is-text,
  .tablet-event-report.is-large,
  .tablet-event-report.is-photo,
  .tablet-event-report.is-tall {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
  }

  .tablet-event-report h3 {
    font-size: clamp(1rem, 4.35vw, 1.25rem);
  }

  .tablet-event-report p {
    font-size: clamp(0.75rem, 3.1vw, 0.88rem);
  }
}

@media (max-width: 430px) {
  .tablet-event-mag-title h2 {
    font-size: clamp(1.45rem, 9.6vw, 2.22rem);
    letter-spacing: -0.032em;
  }

  .tablet-event-metrics {
    grid-template-columns: 1fr;
  }
}

/* Journal flyer: long editorial infographic for the central newspaper. */
.journal-modal {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  border-radius: 30px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.journal-modal::backdrop {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 26%),
    rgba(10, 7, 8, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.journal-frame {
  max-height: calc(100svh - 28px);
  overflow-y: auto;
  padding: 0;
  border-radius: 30px;
  background: #f4f0ea;
  box-shadow:
    0 30px 110px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.7);
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 18, 16, 0.28) rgba(255, 255, 255, 0.22);
}

.journal-frame::-webkit-scrollbar {
  width: 8px;
}

.journal-frame::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.journal-frame::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.24);
}

.journal-flyer {
  position: relative;
  isolation: isolate;
  min-height: 2120px;
  padding: clamp(34px, 6vw, 74px) clamp(24px, 5vw, 66px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 6%, rgba(142, 125, 184, 0.28), transparent 22%),
    radial-gradient(circle at 13% 34%, rgba(223, 192, 129, 0.24), transparent 23%),
    linear-gradient(180deg, #fffefa 0%, #f5f0e7 48%, #ebe7df 100%);
  color: #121212;
  font-family: Roboto, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.journal-flyer::before {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: -1;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.journal-flyer::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 250px;
  z-index: -1;
  width: 260px;
  height: 820px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 999px;
  transform: rotate(22deg);
  pointer-events: none;
}

.journal-hero {
  display: grid;
  gap: clamp(16px, 2.2vw, 24px);
  min-height: clamp(440px, 56vh, 560px);
  align-content: center;
  border-bottom: 1px solid rgba(18, 18, 18, 0.16);
}

.journal-eyebrow,
.journal-section-head span,
.journal-proof-title span {
  margin: 0;
  color: #2d68c9;
  font-size: clamp(0.78rem, 1.25vw, 0.96rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.journal-hero h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.1rem, 13vw, 8.8rem);
  font-weight: 950;
  line-height: 0.83;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.journal-hero p:last-child {
  max-width: 610px;
  margin: 0;
  color: rgba(18, 18, 18, 0.72);
  font-size: clamp(1.05rem, 2.25vw, 1.55rem);
  font-weight: 700;
  line-height: 1.24;
}

.journal-section {
  padding: clamp(54px, 8vw, 92px) 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.14);
}

.journal-section-head {
  display: grid;
  grid-template-columns: minmax(72px, 0.18fr) 1fr;
  gap: 10px clamp(18px, 4vw, 42px);
  align-items: end;
  margin-bottom: clamp(34px, 5.5vw, 66px);
}

.journal-section-head h4,
.journal-proof-title h4 {
  margin: 0;
  font-size: clamp(2rem, 5.8vw, 4.65rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.journal-section-head p {
  grid-column: 2;
  max-width: 520px;
  margin: 0;
  color: rgba(18, 18, 18, 0.62);
  font-size: clamp(0.96rem, 1.7vw, 1.12rem);
  font-weight: 700;
  line-height: 1.36;
}

.journal-method-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 20px);
}

.journal-method-track::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 34px;
  height: 1px;
  background: linear-gradient(90deg, #e2b2bd, #9b87b3, #7069aa);
}

.journal-method-track article {
  position: relative;
  display: grid;
  gap: 14px;
  padding-top: 86px;
}

.journal-method-track article span {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 68px;
  aspect-ratio: 1;
  border: 8px solid #fffefa;
  border-radius: 50%;
  background: #f1d4ca;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(18, 18, 18, 0.1),
    0 18px 42px rgba(60, 48, 75, 0.14);
  font-size: 1.5rem;
  font-weight: 950;
}

.journal-method-track article:nth-child(2) span {
  background: #deb0bd;
}

.journal-method-track article:nth-child(3) span {
  background: #9e82b2;
}

.journal-method-track article:nth-child(4) span {
  background: #7069aa;
}

.journal-method-track h5,
.journal-expertise-grid h5 {
  margin: 0;
  font-size: clamp(1rem, 2.25vw, 1.28rem);
  font-weight: 950;
  line-height: 1.05;
}

.journal-method-track p {
  margin: 0;
  color: rgba(18, 18, 18, 0.66);
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  font-weight: 600;
  line-height: 1.5;
}

.journal-expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.journal-expertise-grid article {
  position: relative;
  min-height: 285px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    0 18px 52px rgba(36, 28, 23, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.journal-expertise-grid article::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(45, 104, 201, 0.08);
}

.journal-expertise-grid article:nth-child(2)::after {
  background: rgba(140, 22, 34, 0.08);
}

.journal-expertise-grid article:nth-child(3)::after {
  background: rgba(223, 192, 129, 0.18);
}

.journal-expertise-grid article:nth-child(4)::after {
  background: rgba(112, 105, 170, 0.12);
}

.journal-expertise-grid i {
  display: block;
  width: 48px;
  aspect-ratio: 1;
  margin-bottom: 22px;
  border: 2px solid rgba(18, 18, 18, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(45, 104, 201, 0.95) 31% 36%, transparent 37%),
    conic-gradient(from 90deg, #2d68c9 0 25%, transparent 25% 34%, #2d68c9 34% 52%, transparent 52% 65%, #2d68c9 65% 100%);
}

.journal-expertise-grid article:nth-child(2) i {
  background:
    linear-gradient(90deg, transparent 0 38%, #8c1622 38% 44%, transparent 44% 100%),
    linear-gradient(0deg, transparent 0 38%, #8c1622 38% 44%, transparent 44% 100%);
}

.journal-expertise-grid article:nth-child(3) i {
  background:
    radial-gradient(circle at 50% 28%, #dfc081 0 10%, transparent 11%),
    linear-gradient(90deg, transparent 0 28%, #dfc081 28% 34%, transparent 34% 66%, #dfc081 66% 72%, transparent 72%),
    linear-gradient(0deg, transparent 0 28%, #dfc081 28% 34%, transparent 34% 66%, #dfc081 66% 72%, transparent 72%);
}

.journal-expertise-grid article:nth-child(4) i {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 30%, #7069aa 31% 38%, transparent 39%),
    linear-gradient(45deg, transparent 0 48%, #7069aa 48% 54%, transparent 54%);
}

.journal-expertise-grid ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.journal-expertise-grid li {
  position: relative;
  padding-left: 17px;
  color: rgba(18, 18, 18, 0.66);
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  font-weight: 610;
  line-height: 1.36;
}

.journal-expertise-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #2d68c9;
}

.journal-proof {
  padding-bottom: clamp(70px, 10vw, 126px);
}

.journal-proof-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.journal-proof-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  background: rgba(18, 18, 18, 0.14);
}

.journal-proof-grid p {
  min-height: 126px;
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 254, 250, 0.86);
  color: #121212;
  font-size: clamp(1.05rem, 2.3vw, 1.56rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.journal-proof-grid p:nth-child(5) {
  grid-column: 1 / -1;
  min-height: 180px;
  background: #111;
  color: #fffefa;
  font-size: clamp(1.9rem, 5.4vw, 4rem);
  line-height: 0.95;
}

.journal-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(18, 18, 18, 0.16);
}

.journal-footer p {
  max-width: 430px;
  margin: 0;
  color: rgba(18, 18, 18, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.journal-footer strong {
  color: #8c1622;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

@media (max-width: 820px) {
  .journal-modal {
    width: calc(100vw - 18px);
    max-height: calc(100svh - 18px);
    border-radius: 24px;
  }

  .journal-frame {
    max-height: calc(100svh - 18px);
    border-radius: 24px;
  }

  .journal-flyer {
    min-height: 2360px;
    padding: 44px 22px 34px;
  }

  .journal-flyer::before {
    inset: 12px;
    border-radius: 18px;
  }

  .journal-hero {
    min-height: 470px;
  }

  .journal-hero h3 {
    font-size: clamp(3.25rem, 18vw, 5.1rem);
  }

  .journal-section-head {
    grid-template-columns: 1fr;
  }

  .journal-section-head p {
    grid-column: auto;
  }

  .journal-method-track {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .journal-method-track::before {
    left: 33px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: 1px;
    height: auto;
  }

  .journal-method-track article {
    min-height: 112px;
    padding-top: 0;
    padding-left: 92px;
  }

  .journal-method-track article span {
    width: 66px;
  }

  .journal-expertise-grid,
  .journal-proof-grid {
    grid-template-columns: 1fr;
  }

  .journal-expertise-grid article {
    min-height: auto;
  }

  .journal-proof-title {
    display: grid;
  }

  .journal-proof-grid p:nth-child(5) {
    grid-column: auto;
  }

  .journal-footer {
    display: grid;
  }
}

/* Journal newsletter refinement: slimmer editorial infographic. */
.journal-modal {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  border-radius: 26px;
}

.journal-frame {
  max-height: calc(100svh - 24px);
  border-radius: 26px;
  background: #f4f0ea;
  overflow-y: auto;
  overflow-x: hidden;
}

.journal-flyer,
.journal-flyer * {
  box-sizing: border-box;
}

.journal-flyer {
  min-height: 2720px;
  width: 100%;
  padding: clamp(28px, 5.2vw, 48px) clamp(20px, 5.4vw, 42px) clamp(34px, 6vw, 54px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 7%, rgba(140, 120, 182, 0.2), transparent 18%),
    radial-gradient(circle at 9% 30%, rgba(223, 192, 129, 0.18), transparent 21%),
    linear-gradient(180deg, #fffefa 0%, #f6f1e8 47%, #e9e5dc 100%);
  color: #111;
  font-family: Roboto, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.journal-flyer::before {
  inset: 14px;
  border-color: rgba(17, 17, 17, 0.16);
  border-radius: 14px;
}

.journal-flyer::after {
  right: -118px;
  top: 410px;
  width: 170px;
  height: 1180px;
  border-color: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  transform: rotate(8deg);
}

.journal-hero {
  position: relative;
  min-height: clamp(560px, 72svh, 680px);
  padding: 6px 0 34px;
  align-content: start;
  gap: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.2);
}

.journal-eyebrow {
  max-width: calc(100% - 34px);
  color: #111;
  font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  letter-spacing: 0.18em;
}

.journal-hero h3 {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(72px, 13vh, 130px);
  font-size: clamp(2.55rem, 12.2vw, 4.9rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
  overflow-wrap: normal;
  text-wrap: balance;
}

.journal-hero h3 span {
  display: block;
  max-width: 100%;
}

.journal-hero h3 span:nth-child(2) {
  margin: 0.06em 0 0.01em;
  color: #2d68c9;
  font-size: 0.5em;
  letter-spacing: -0.04em;
}

.journal-hero p:last-child {
  max-width: 100%;
  color: rgba(17, 17, 17, 0.7);
  font-size: clamp(0.96rem, 3.1vw, 1.22rem);
  line-height: 1.35;
}

.journal-section {
  padding: clamp(62px, 12vw, 92px) 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.journal-section-head {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px 18px;
  align-items: start;
  margin-bottom: clamp(28px, 7vw, 46px);
}

.journal-section-head span,
.journal-proof-title span {
  color: #2d68c9;
  font-size: clamp(0.7rem, 2.3vw, 0.82rem);
  letter-spacing: 0.2em;
}

.journal-section-head h4,
.journal-proof-title h4 {
  min-width: 0;
  max-width: 100%;
  font-size: clamp(1.9rem, 8.4vw, 3.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
}

.journal-section-head p {
  grid-column: 2;
  max-width: 100%;
  color: rgba(17, 17, 17, 0.62);
  font-size: clamp(0.86rem, 2.65vw, 0.98rem);
  line-height: 1.48;
}

.journal-method-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
}

.journal-method-track::before {
  display: none;
}

.journal-method-track article {
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 6px 18px;
  min-height: 0;
  padding: 25px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}

.journal-method-track article span {
  position: static;
  grid-row: 1 / 3;
  display: block;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #111;
  box-shadow: none;
  font-size: clamp(2.2rem, 10vw, 3.55rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.journal-method-track h5,
.journal-expertise-grid h5 {
  min-width: 0;
  color: #111;
  font-size: clamp(1.08rem, 3.9vw, 1.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.journal-method-track p {
  min-width: 0;
  color: rgba(17, 17, 17, 0.64);
  font-size: clamp(0.86rem, 2.6vw, 0.96rem);
  line-height: 1.48;
}

.journal-expertise-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
}

.journal-expertise-grid article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 6px 18px;
  min-height: 0;
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.journal-expertise-grid article::after {
  display: none;
}

.journal-expertise-grid i {
  grid-row: 1 / 3;
  width: 38px;
  margin: 2px 0 0;
  border-color: rgba(17, 17, 17, 0.18);
}

.journal-expertise-grid ul {
  min-width: 0;
  gap: 8px;
  margin-top: 10px;
}

.journal-expertise-grid li {
  min-width: 0;
  color: rgba(17, 17, 17, 0.66);
  font-size: clamp(0.84rem, 2.55vw, 0.94rem);
  line-height: 1.4;
  overflow-wrap: break-word;
}

.journal-proof {
  padding-bottom: clamp(76px, 14vw, 116px);
}

.journal-proof-title {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(26px, 6.4vw, 42px);
}

.journal-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  border-top: 1px solid rgba(17, 17, 17, 0.2);
}

.journal-proof-grid p {
  min-height: 0;
  padding: 23px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
  background: transparent;
  color: #111;
  font-size: clamp(1.15rem, 4.4vw, 1.75rem);
  line-height: 1.04;
  overflow-wrap: break-word;
}

.journal-proof-grid p:nth-child(5) {
  grid-column: auto;
  min-height: 0;
  margin-top: 24px;
  padding: clamp(26px, 6vw, 34px) clamp(18px, 5vw, 26px);
  border: 0;
  border-radius: 18px;
  background: #111;
  color: #fffefa;
  font-size: clamp(1.7rem, 8vw, 3rem);
  line-height: 0.96;
}

.journal-footer {
  display: grid;
  gap: 18px;
  padding-top: 28px;
}

.journal-footer p {
  max-width: 100%;
  font-size: clamp(0.72rem, 2.25vw, 0.82rem);
  overflow-wrap: break-word;
}

.journal-footer strong {
  justify-self: end;
  color: #8c1622;
  font-size: clamp(1.55rem, 7vw, 2.8rem);
}

@media (max-width: 680px) {
  .journal-modal {
    width: min(420px, calc(100vw - 16px));
    max-height: calc(100svh - 16px);
    border-radius: 22px;
  }

  .journal-frame {
    max-height: calc(100svh - 16px);
    border-radius: 22px;
  }

  .journal-flyer {
    min-height: 2920px;
    padding: 34px 18px 38px;
  }

  .journal-flyer::before {
    inset: 9px;
    border-radius: 16px;
  }

  .journal-hero {
    min-height: 540px;
  }

  .journal-hero h3 {
    margin-top: 96px;
    font-size: clamp(2.25rem, 11.5vw, 3.25rem);
  }

  .journal-section-head {
    grid-template-columns: 1fr;
  }

  .journal-section-head p {
    grid-column: auto;
  }

  .journal-method-track article {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 6px 14px;
  }

  .journal-expertise-grid article {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 6px 14px;
  }

  .journal-expertise-grid i {
    width: 34px;
  }
}

/* Journal editorial direction: magazine-inspired, slim and responsive. */
.journal-modal {
  width: min(560px, calc(100vw - 22px));
  max-height: calc(100svh - 22px);
  border-radius: 18px;
}

.journal-frame {
  max-height: calc(100svh - 22px);
  padding: 12px;
  border-radius: 18px;
  background: #858a78;
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  scrollbar-color: rgba(16, 16, 15, 0.36) rgba(255, 255, 255, 0.22);
}

.journal-flyer {
  --journal-paper: #f5f3ec;
  --journal-ink: #10100f;
  --journal-muted: #787a70;
  --journal-line: rgba(16, 16, 15, 0.18);
  --journal-sage: #858a78;
  --journal-gold: #d8bf83;
  position: relative;
  min-height: 3240px;
  padding: 0;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, #fffdf7 0%, var(--journal-paper) 52%, #ebe8df 100%);
  color: var(--journal-ink);
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow:
    inset 0 0 0 1px rgba(16, 16, 15, 0.12),
    inset 0 20px 80px rgba(255, 255, 255, 0.58);
}

.journal-modal[open] .journal-flyer {
  animation: journalPaperIn 620ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.journal-flyer::before {
  inset: 18px;
  border: 1px solid var(--journal-line);
  border-radius: 0;
}

.journal-flyer::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 58px;
  z-index: 0;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(16, 16, 15, 0.18);
  background:
    linear-gradient(90deg, transparent 47%, rgba(16, 16, 15, 0.16) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(16, 16, 15, 0.16) 48% 52%, transparent 53%);
  pointer-events: none;
  animation: journalMarkDrift 5.5s ease-in-out infinite;
}

.journal-hero,
.journal-section,
.journal-footer {
  position: relative;
  z-index: 1;
}

.journal-hero {
  min-height: 780px;
  padding: clamp(26px, 5vw, 42px);
  border-bottom: 1px solid var(--journal-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 38%),
    linear-gradient(90deg, transparent 0 72%, rgba(133, 138, 120, 0.16) 72% 100%);
}

.journal-masthead {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--journal-line);
  color: var(--journal-ink);
  font-size: clamp(0.56rem, 1.8vw, 0.68rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-eyebrow {
  display: inline-grid;
  margin-top: 34px;
  color: var(--journal-muted);
  font-size: clamp(0.58rem, 1.85vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.journal-hero h3 {
  display: block;
  margin: clamp(18px, 4vw, 28px) 0 0;
  color: var(--journal-ink);
  font-family: "MADE Outer Sans", "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.15rem, 14.6vw, 6.25rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

.journal-hero h3 span:first-child {
  display: block;
  max-width: 100%;
}

.journal-hero h3 span:last-child {
  display: block;
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.28vw, 2px) var(--journal-ink);
  text-stroke: clamp(1px, 0.28vw, 2px) var(--journal-ink);
  font-size: 1.18em;
  letter-spacing: -0.09em;
}

.journal-hero p:last-child {
  max-width: 390px;
  margin-top: 20px;
  color: rgba(16, 16, 15, 0.72);
  font-size: clamp(0.86rem, 2.7vw, 1.04rem);
  font-weight: 700;
  line-height: 1.45;
}

.journal-cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: clamp(38px, 8vw, 58px);
}

.journal-cover-card {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid var(--journal-line);
  background: #111;
  color: #fffdf7;
  filter: saturate(0.78) contrast(1.02);
}

.journal-cover-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.74;
  transform: scale(1.03);
  transition: transform 500ms ease, opacity 500ms ease;
}

.journal-cover-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.journal-cover-card b {
  position: absolute;
  left: 14px;
  bottom: 13px;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journal-cover-card.is-wide {
  grid-column: 1 / -1;
  min-height: 178px;
}

.journal-cover-card.is-wide::before {
  background-image: url("./assets/tablet-event1-reveal.jpg");
}

.journal-cover-card.is-dark {
  background:
    linear-gradient(135deg, #111 0 62%, var(--journal-sage) 62% 100%);
}

.journal-cover-card.is-dark::before {
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(255, 255, 255, 0.18) 45% 47%, transparent 47%),
    repeating-linear-gradient(180deg, transparent 0 14px, rgba(255, 255, 255, 0.08) 14px 15px);
}

.journal-cover-card.is-photo::before {
  background-image: url("./assets/meta-ads-suzuki-landscape.webp");
}

.journal-cover-card:hover::before {
  opacity: 0.9;
  transform: scale(1.08);
}

.journal-section {
  padding: clamp(58px, 11vw, 86px) clamp(26px, 5vw, 42px);
  border-bottom: 1px solid var(--journal-line);
}

.journal-section-head {
  grid-template-columns: 54px minmax(0, 1fr);
  margin-bottom: clamp(28px, 6vw, 44px);
}

.journal-section-head span,
.journal-proof-title span {
  align-self: start;
  color: var(--journal-sage);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.journal-section-head h4,
.journal-proof-title h4 {
  font-family: "MADE Outer Sans", "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.65rem, 7.3vw, 3rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.journal-section-head p {
  grid-column: 2;
  color: rgba(16, 16, 15, 0.62);
  font-size: clamp(0.78rem, 2.35vw, 0.9rem);
  line-height: 1.5;
}

.journal-method-track {
  border-top: 2px solid var(--journal-ink);
}

.journal-method-track article {
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--journal-line);
}

.journal-method-track article:nth-child(even) {
  background:
    linear-gradient(90deg, rgba(133, 138, 120, 0.13), transparent 72%);
  box-shadow:
    -22px 0 0 rgba(133, 138, 120, 0.13),
    22px 0 0 transparent;
}

.journal-method-track article span {
  color: var(--journal-ink);
  font-family: "MADE Outer Sans", "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.05rem, 8.3vw, 3.25rem);
  font-weight: 500;
}

.journal-method-track h5,
.journal-expertise-grid h5 {
  font-family: "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.98rem, 3.4vw, 1.18rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.journal-method-track p {
  color: rgba(16, 16, 15, 0.62);
  font-size: clamp(0.78rem, 2.35vw, 0.9rem);
  line-height: 1.48;
}

.journal-expertise-grid {
  border-top: 2px solid var(--journal-ink);
}

.journal-expertise-grid article {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 7px 15px;
  padding: 24px 0;
  border-bottom: 1px solid var(--journal-line);
}

.journal-expertise-grid article:nth-child(2),
.journal-expertise-grid article:nth-child(4) {
  padding: 26px 18px;
  border: 0;
  margin: 14px 0;
  background: #111;
  color: #fffdf7;
}

.journal-expertise-grid article:nth-child(2) h5,
.journal-expertise-grid article:nth-child(4) h5,
.journal-expertise-grid article:nth-child(2) li,
.journal-expertise-grid article:nth-child(4) li {
  color: #fffdf7;
}

.journal-expertise-grid article:nth-child(2) li::before,
.journal-expertise-grid article:nth-child(4) li::before {
  background: var(--journal-gold);
}

.journal-expertise-grid i {
  width: 34px;
  margin-top: 0;
  border-color: rgba(16, 16, 15, 0.22);
  filter: grayscale(0.15);
}

.journal-expertise-grid article:nth-child(2) i,
.journal-expertise-grid article:nth-child(4) i {
  border-color: rgba(255, 253, 247, 0.36);
  filter: brightness(1.7) saturate(0.75);
}

.journal-expertise-grid ul {
  gap: 7px;
}

.journal-expertise-grid li {
  color: rgba(16, 16, 15, 0.64);
  font-size: clamp(0.77rem, 2.3vw, 0.88rem);
  line-height: 1.38;
}

.journal-proof {
  background:
    linear-gradient(180deg, transparent, rgba(133, 138, 120, 0.12));
}

.journal-proof-title {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(26px, 6vw, 40px);
}

.journal-proof-grid {
  border-top: 2px solid var(--journal-ink);
}

.journal-proof-grid p {
  padding: 21px 0;
  color: var(--journal-ink);
  font-size: clamp(1.03rem, 3.7vw, 1.44rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.journal-proof-grid p:nth-child(5) {
  margin-top: 26px;
  border-radius: 0;
  background:
    linear-gradient(135deg, #111 0 72%, var(--journal-sage) 72% 100%);
  color: #fffdf7;
  font-family: "MADE Outer Sans", "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.58rem, 6.8vw, 2.72rem);
  font-weight: 500;
  letter-spacing: -0.065em;
}

.journal-footer {
  padding: 34px clamp(26px, 5vw, 42px) 40px;
  border-top: 0;
  background: #111;
}

.journal-footer p {
  color: rgba(255, 253, 247, 0.68);
  font-size: clamp(0.58rem, 1.85vw, 0.7rem);
  letter-spacing: 0.16em;
}

.journal-footer strong {
  color: var(--journal-gold);
  font-family: "MADE Outer Sans", "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.06em;
}

@keyframes journalPaperIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes journalMarkDrift {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: rotate(5deg) translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .journal-modal[open] .journal-flyer,
  .journal-flyer::after {
    animation: none;
  }
}

@media (max-width: 680px) {
  .journal-modal {
    width: min(410px, calc(100vw - 14px));
    max-height: calc(100svh - 14px);
  }

  .journal-frame {
    max-height: calc(100svh - 14px);
    padding: 8px;
  }

  .journal-flyer {
    min-height: 3360px;
  }

  .journal-flyer::before {
    inset: 10px;
  }

  .journal-flyer::after {
    right: 18px;
    top: 54px;
    width: 48px;
    height: 48px;
  }

  .journal-hero,
  .journal-section,
  .journal-footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .journal-hero {
    min-height: 700px;
  }

  .journal-hero h3 {
    font-size: clamp(2.55rem, 13.5vw, 4rem);
  }

  .journal-cover-grid {
    gap: 9px;
  }

  .journal-cover-card {
    min-height: 126px;
  }

  .journal-cover-card.is-wide {
    min-height: 156px;
  }

  .journal-section-head,
  .journal-method-track article,
  .journal-expertise-grid article {
    grid-template-columns: 1fr;
  }

  .journal-section-head p {
    grid-column: auto;
  }

  .journal-method-track article span {
    margin-bottom: 2px;
  }

  .journal-expertise-grid i {
    display: none;
  }
}

/* Journal editorial v2: lean art-magazine / long flyer treatment. */
.journal-modal {
  width: min(520px, calc(100vw - 18px));
  border-radius: 14px;
}

.journal-frame {
  padding: 10px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(242, 241, 234, 0.86), rgba(132, 137, 120, 0.82)),
    #858a78;
}

.journal-flyer {
  --journal-paper: #f7f5ef;
  --journal-ink: #090909;
  --journal-soft: #eeece5;
  --journal-sage: #858a78;
  --journal-sage-dark: #68705f;
  --journal-gold: #d8bf83;
  --journal-muted: rgba(9, 9, 9, 0.54);
  --journal-line: rgba(9, 9, 9, 0.17);
  min-height: 3460px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(9, 9, 9, 0.045) 12% calc(12% + 1px), transparent calc(12% + 1px)),
    linear-gradient(90deg, transparent 0 88%, rgba(9, 9, 9, 0.045) 88% calc(88% + 1px), transparent calc(88% + 1px)),
    linear-gradient(180deg, #fffefa 0%, var(--journal-paper) 42%, #ece9df 100%);
  color: var(--journal-ink);
}

.journal-flyer::before {
  inset: 14px;
  border: 1px solid rgba(9, 9, 9, 0.14);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.11), rgba(9, 9, 9, 0.11)) 0 132px / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(9, 9, 9, 0.09), rgba(9, 9, 9, 0.09)) 0 calc(100% - 132px) / 100% 1px no-repeat;
}

.journal-flyer::after {
  right: 28px;
  top: 48px;
  width: 42px;
  height: 42px;
  border: 2px solid var(--journal-ink);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 46%, var(--journal-ink) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--journal-ink) 46% 54%, transparent 54%);
  opacity: 0.9;
  animation: journalMarkDrift 7s ease-in-out infinite;
}

.journal-hero {
  min-height: 865px;
  padding: clamp(26px, 5vw, 38px);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 30%),
    linear-gradient(90deg, transparent 0 66%, rgba(133, 138, 120, 0.22) 66% 100%);
}

.journal-masthead {
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--journal-line);
  font-size: clamp(0.56rem, 1.65vw, 0.66rem);
  letter-spacing: 0.1em;
}

.journal-masthead span:last-child {
  padding: 5px 7px;
  border: 1px solid var(--journal-line);
  border-radius: 999px;
}

.journal-eyebrow {
  margin-top: 30px;
  color: var(--journal-sage-dark);
  font-size: clamp(0.56rem, 1.6vw, 0.68rem);
  letter-spacing: 0.24em;
}

.journal-hero h3 {
  margin-top: clamp(16px, 3.6vw, 26px);
  font-size: clamp(3.9rem, 17.6vw, 6.55rem);
  line-height: 0.78;
  letter-spacing: -0.105em;
}

.journal-hero h3 span:first-child {
  margin-left: -0.05em;
}

.journal-hero h3 span:last-child {
  color: var(--journal-ink);
  -webkit-text-stroke: 0;
  text-stroke: 0;
  font-size: 1.02em;
  letter-spacing: -0.11em;
}

.journal-hero > p:not(.journal-eyebrow) {
  position: relative;
  max-width: 342px;
  margin: 22px 0 0 auto;
  padding-left: 18px;
  border-left: 3px solid var(--journal-ink);
  color: rgba(9, 9, 9, 0.68);
  font-size: clamp(0.86rem, 2.35vw, 0.98rem);
  font-weight: 800;
  line-height: 1.42;
}

.journal-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(34px, 7vw, 50px);
  border-top: 1px solid var(--journal-line);
  border-left: 1px solid var(--journal-line);
}

.journal-hero-meta span {
  min-width: 0;
  padding: 13px 10px;
  border-right: 1px solid var(--journal-line);
  border-bottom: 1px solid var(--journal-line);
  color: rgba(9, 9, 9, 0.58);
  font-size: clamp(0.62rem, 1.95vw, 0.74rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-cover-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: clamp(34px, 7vw, 48px);
}

.journal-cover-card {
  min-height: 142px;
  border-color: rgba(9, 9, 9, 0.22);
  background: #111;
  color: #fffefa;
  isolation: isolate;
}

.journal-cover-card::before {
  opacity: 0.8;
  filter: grayscale(0.22) saturate(0.78);
}

.journal-cover-card::after {
  height: 74%;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent);
}

.journal-cover-card b {
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fffefa;
  font-size: clamp(0.58rem, 1.7vw, 0.68rem);
  line-height: 1.12;
}

.journal-cover-card.is-wide {
  grid-column: 1 / -1;
  min-height: 204px;
}

.journal-cover-card.is-dark {
  min-height: 168px;
  background:
    linear-gradient(180deg, #111, #070707 64%, var(--journal-sage-dark));
}

.journal-cover-card.is-dark::before {
  opacity: 0.22;
  background:
    linear-gradient(90deg, transparent 0 34%, rgba(255, 255, 255, 0.2) 34% 35%, transparent 35%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px);
}

.journal-cover-card.is-photo {
  min-height: 168px;
}

.journal-cover-card.is-note {
  min-height: 168px;
  background: var(--journal-paper);
  color: var(--journal-ink);
}

.journal-cover-card.is-note::before {
  opacity: 1;
  background:
    radial-gradient(circle at 78% 22%, rgba(216, 191, 131, 0.7), transparent 22%),
    linear-gradient(135deg, transparent 0 54%, var(--journal-sage) 54% 100%),
    repeating-linear-gradient(0deg, rgba(9, 9, 9, 0.13) 0 1px, transparent 1px 14px);
}

.journal-cover-card.is-note::after {
  display: none;
}

.journal-cover-card.is-note b {
  color: var(--journal-ink);
}

.journal-section {
  padding: clamp(62px, 12vw, 92px) clamp(26px, 5vw, 38px);
  border-bottom: 0;
}

.journal-section-head {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px 18px;
  margin-bottom: clamp(34px, 7vw, 50px);
  padding-top: 16px;
  border-top: 2px solid var(--journal-ink);
}

.journal-section-head span,
.journal-proof-title span {
  color: var(--journal-sage-dark);
  font-size: clamp(0.62rem, 1.85vw, 0.72rem);
  font-weight: 950;
}

.journal-section-head h4,
.journal-proof-title h4 {
  font-size: clamp(2rem, 8.8vw, 3.24rem);
  line-height: 0.86;
  letter-spacing: -0.078em;
}

.journal-section-head p {
  grid-column: 2;
  max-width: 300px;
  color: var(--journal-muted);
  font-size: clamp(0.78rem, 2.2vw, 0.88rem);
  font-weight: 700;
}

.journal-method-track {
  position: relative;
  border-top: 0;
}

.journal-method-track article {
  grid-template-columns: 70px minmax(0, 1fr);
  min-height: 168px;
  padding: 23px 0;
  border-top: 1px solid var(--journal-line);
  border-bottom: 0;
}

.journal-method-track article:nth-child(even) {
  background: transparent;
  box-shadow: none;
}

.journal-method-track article:nth-child(2),
.journal-method-track article:nth-child(4) {
  margin-inline: -18px;
  padding-inline: 18px;
  background: #111;
  color: #fffefa;
}

.journal-method-track article span {
  align-self: start;
  color: inherit;
  font-size: clamp(2.35rem, 9.6vw, 3.65rem);
  opacity: 0.94;
}

.journal-method-track h5 {
  color: inherit;
  font-size: clamp(1.02rem, 3.2vw, 1.22rem);
  letter-spacing: -0.03em;
}

.journal-method-track p {
  color: color-mix(in srgb, currentColor 67%, transparent);
  font-size: clamp(0.78rem, 2.15vw, 0.9rem);
}

.journal-expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--journal-line);
}

.journal-expertise-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--journal-line);
  overflow: hidden;
}

.journal-expertise-grid article:nth-child(2),
.journal-expertise-grid article:nth-child(4) {
  margin: 0;
  padding: 26px 18px 30px;
  background:
    linear-gradient(135deg, #111 0 70%, var(--journal-sage-dark) 70% 100%);
}

.journal-expertise-grid article:nth-child(3) {
  margin-inline: -18px;
  padding-inline: 18px;
  background: rgba(133, 138, 120, 0.16);
}

.journal-expertise-grid i {
  width: 30px;
  height: 30px;
  border-radius: 0;
  border: 1px solid currentColor;
  color: var(--journal-sage-dark);
  background:
    linear-gradient(45deg, transparent 46%, currentColor 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, currentColor 46% 54%, transparent 54%);
  opacity: 0.82;
}

.journal-expertise-grid i::before,
.journal-expertise-grid i::after {
  display: none;
}

.journal-expertise-grid article:nth-child(2) i,
.journal-expertise-grid article:nth-child(4) i {
  color: var(--journal-gold);
}

.journal-expertise-grid h5 {
  color: inherit;
  font-size: clamp(1rem, 3.15vw, 1.16rem);
}

.journal-expertise-grid ul {
  grid-column: 2;
  margin-top: 12px;
}

.journal-expertise-grid li {
  color: color-mix(in srgb, currentColor 66%, transparent);
  font-size: clamp(0.76rem, 2.12vw, 0.88rem);
}

.journal-proof {
  padding-top: clamp(68px, 13vw, 98px);
  background:
    linear-gradient(180deg, rgba(133, 138, 120, 0.2), rgba(9, 9, 9, 0.04));
}

.journal-proof-title {
  gap: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--journal-ink);
}

.journal-proof-grid {
  border-top: 0;
}

.journal-proof-grid p {
  padding: 19px 0;
  border-bottom: 1px solid var(--journal-line);
  font-size: clamp(1.06rem, 3.85vw, 1.56rem);
  line-height: 1.02;
}

.journal-proof-grid p::before {
  content: "*";
  display: inline-block;
  margin-right: 10px;
  color: var(--journal-sage-dark);
}

.journal-proof-grid p:nth-child(5) {
  margin: 34px -18px 0;
  padding: 30px 18px 34px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, #111 0 72%, var(--journal-sage) 72% 100%);
  color: #fffefa;
  font-size: clamp(1.9rem, 8.4vw, 3.2rem);
}

.journal-proof-grid p:nth-child(5)::before {
  display: none;
}

.journal-footer {
  min-height: 320px;
  padding: 32px clamp(26px, 5vw, 38px) 38px;
  background:
    linear-gradient(180deg, #111, #080808);
  border-top: 0;
}

.journal-footer::before {
  content: "LET'S TALK";
  color: #fffefa;
  font-family: "MADE Outer Sans", "Roboto Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.6rem, 16vw, 6.2rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.12em;
}

.journal-footer p {
  color: rgba(255, 254, 250, 0.64);
  font-size: clamp(0.58rem, 1.68vw, 0.7rem);
  line-height: 1.6;
}

.journal-footer strong {
  justify-self: end;
  color: var(--journal-gold);
  font-size: clamp(1.4rem, 5.8vw, 2.2rem);
}

@media (hover: hover) {
  .journal-method-track article,
  .journal-expertise-grid article,
  .journal-proof-grid p {
    transition: transform 360ms ease, opacity 360ms ease;
  }

  .journal-method-track article:hover,
  .journal-expertise-grid article:hover {
    transform: translateX(4px);
  }
}

@media (max-width: 680px) {
  .journal-modal {
    width: min(388px, calc(100vw - 12px));
  }

  .journal-frame {
    padding: 7px;
  }

  .journal-flyer {
    min-height: 3340px;
  }

  .journal-flyer::before {
    inset: 10px;
  }

  .journal-flyer::after {
    width: 34px;
    height: 34px;
    right: 20px;
    top: 42px;
  }

  .journal-hero {
    min-height: 780px;
    padding: 26px 22px 32px;
  }

  .journal-hero h3 {
    font-size: clamp(3rem, 16vw, 4.15rem);
  }

  .journal-hero > p:not(.journal-eyebrow) {
    max-width: 268px;
    margin-left: 0;
  }

  .journal-hero-meta {
    grid-template-columns: 1fr;
  }

  .journal-cover-grid {
    grid-template-columns: 1fr;
  }

  .journal-cover-card,
  .journal-cover-card.is-wide,
  .journal-cover-card.is-dark,
  .journal-cover-card.is-photo,
  .journal-cover-card.is-note {
    min-height: 134px;
  }

  .journal-section {
    padding: 62px 22px;
  }

  .journal-section-head,
  .journal-method-track article,
  .journal-expertise-grid article {
    grid-template-columns: 1fr;
  }

  .journal-section-head p,
  .journal-expertise-grid ul {
    grid-column: auto;
  }

  .journal-method-track article:nth-child(2),
  .journal-method-track article:nth-child(4),
  .journal-expertise-grid article:nth-child(2),
  .journal-expertise-grid article:nth-child(3),
  .journal-expertise-grid article:nth-child(4),
  .journal-proof-grid p:nth-child(5) {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .journal-expertise-grid i {
    display: block;
  }
}

/* Journal fit pass: keep the long newsletter composition inside its frame. */
.journal-modal,
.journal-frame,
.journal-flyer,
.journal-flyer *,
.journal-flyer *::before,
.journal-flyer *::after {
  box-sizing: border-box;
}

.journal-modal {
  width: min(500px, calc(100vw - 16px));
}

.journal-frame {
  overflow-x: hidden;
}

.journal-flyer {
  min-width: 0;
  overflow-x: clip;
}

.journal-hero,
.journal-section,
.journal-footer,
.journal-masthead,
.journal-hero-meta,
.journal-cover-grid,
.journal-section-head,
.journal-method-track,
.journal-expertise-grid,
.journal-proof-grid {
  max-width: 100%;
  min-width: 0;
}

.journal-hero h3 {
  max-width: 100%;
  font-size: clamp(3.05rem, 11.8vw, 4.85rem);
  letter-spacing: -0.092em;
  overflow-wrap: normal;
}

.journal-hero h3 span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.journal-hero h3 span:first-child {
  font-size: 0.82em;
  letter-spacing: -0.095em;
}

.journal-section-head h4,
.journal-proof-title h4 {
  max-width: 100%;
  font-size: clamp(1.62rem, 6.6vw, 2.55rem);
  line-height: 0.95;
  letter-spacing: -0.052em;
  overflow-wrap: anywhere;
}

.journal-method-track h5,
.journal-expertise-grid h5,
.journal-method-track p,
.journal-expertise-grid li,
.journal-proof-grid p,
.journal-footer p {
  overflow-wrap: anywhere;
}

.journal-method-track article:nth-child(2),
.journal-method-track article:nth-child(4),
.journal-expertise-grid article:nth-child(2),
.journal-expertise-grid article:nth-child(3),
.journal-expertise-grid article:nth-child(4),
.journal-proof-grid p:nth-child(5) {
  margin-inline: 0;
}

.journal-proof-grid p:nth-child(5) {
  padding-inline: 18px;
  font-size: clamp(1.42rem, 6.2vw, 2.25rem);
  line-height: 1;
}

.journal-footer::before {
  display: block;
  max-width: 100%;
  font-size: clamp(2.72rem, 11vw, 4.35rem);
  letter-spacing: -0.1em;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .journal-modal {
    width: min(374px, calc(100vw - 12px));
  }

  .journal-frame {
    padding: 6px;
  }

  .journal-flyer {
    min-height: 3500px;
  }

  .journal-flyer::before {
    inset: 8px;
  }

  .journal-hero {
    min-height: 790px;
    padding: 24px 18px 30px;
  }

  .journal-hero h3 {
    font-size: clamp(2.7rem, 12.6vw, 3.48rem);
    letter-spacing: -0.086em;
  }

  .journal-section-head h4,
  .journal-proof-title h4 {
    font-size: clamp(1.52rem, 8.1vw, 2.12rem);
    letter-spacing: -0.045em;
  }

  .journal-method-track article:nth-child(2),
  .journal-method-track article:nth-child(4),
  .journal-expertise-grid article:nth-child(2),
  .journal-expertise-grid article:nth-child(3),
  .journal-expertise-grid article:nth-child(4),
  .journal-proof-grid p:nth-child(5) {
    margin-inline: 0;
    padding-inline: 12px;
  }

  .journal-cover-card b {
    font-size: 0.62rem;
  }

  .journal-proof-grid p:nth-child(5) {
    font-size: clamp(1.36rem, 8.2vw, 1.92rem);
  }

  .journal-footer::before {
    font-size: clamp(2.5rem, 13vw, 3.45rem);
    letter-spacing: -0.092em;
  }
}

@supports not (overflow: clip) {
  .journal-flyer {
    overflow-x: hidden;
  }
}

/* Journal cleanup: remove the top visual grid and keep the cover rhythm tight. */
.journal-masthead span:first-child {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.journal-hero {
  min-height: 600px;
  padding-bottom: clamp(52px, 10vw, 82px);
}

.journal-hero-meta {
  margin-top: clamp(34px, 7vw, 54px);
}

.journal-flyer {
  min-height: 3180px;
  overflow-y: visible;
}

@media (max-width: 680px) {
  .journal-hero {
    min-height: 560px;
    padding-bottom: 52px;
  }

  .journal-flyer {
    min-height: 3200px;
  }
}

/* Journal expertise polish: lighter editorial cards, cleaner hierarchy. */
.journal-expertise-grid {
  gap: 14px;
  border-top: 0;
}

.journal-expertise-grid article,
.journal-expertise-grid article:nth-child(2),
.journal-expertise-grid article:nth-child(3),
.journal-expertise-grid article:nth-child(4) {
  --expertise-accent: var(--journal-sage-dark);
  --expertise-soft: rgba(133, 138, 120, 0.12);
  position: relative;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 16px;
  margin: 0;
  padding: 22px 18px 24px;
  border: 1px solid rgba(9, 9, 9, 0.12);
  border-bottom: 1px solid rgba(9, 9, 9, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.94), rgba(240, 237, 229, 0.76)),
    linear-gradient(90deg, var(--expertise-soft), transparent 44%);
  color: var(--journal-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 26px rgba(9, 9, 9, 0.045);
}

.journal-expertise-grid article:nth-child(1) {
  --expertise-accent: #2f67c8;
  --expertise-soft: rgba(47, 103, 200, 0.1);
}

.journal-expertise-grid article:nth-child(2) {
  --expertise-accent: #790e22;
  --expertise-soft: rgba(121, 14, 34, 0.1);
}

.journal-expertise-grid article:nth-child(3) {
  --expertise-accent: #858a78;
  --expertise-soft: rgba(133, 138, 120, 0.14);
}

.journal-expertise-grid article:nth-child(4) {
  --expertise-accent: #9b8360;
  --expertise-soft: rgba(223, 192, 129, 0.18);
}

.journal-expertise-grid article::before {
  position: absolute;
  right: 16px;
  top: 14px;
  color: color-mix(in srgb, var(--expertise-accent) 48%, transparent);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.journal-expertise-grid article:nth-child(1)::before {
  content: "01";
}

.journal-expertise-grid article:nth-child(2)::before {
  content: "02";
}

.journal-expertise-grid article:nth-child(3)::before {
  content: "03";
}

.journal-expertise-grid article:nth-child(4)::before {
  content: "04";
}

.journal-expertise-grid i,
.journal-expertise-grid article:nth-child(2) i,
.journal-expertise-grid article:nth-child(4) i {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--expertise-accent) 48%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(135deg, rgba(255, 254, 250, 0.84), var(--expertise-soft));
  color: var(--expertise-accent);
  opacity: 1;
}

.journal-expertise-grid i::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px var(--expertise-soft);
}

.journal-expertise-grid i::after {
  content: "";
  position: absolute;
  inset: 7px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
}

.journal-expertise-grid h5 {
  padding-right: 28px;
  color: var(--journal-ink);
  font-size: clamp(1.02rem, 3.05vw, 1.22rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.journal-expertise-grid ul {
  grid-column: 2;
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.journal-expertise-grid li {
  position: relative;
  padding-left: 16px;
  color: rgba(9, 9, 9, 0.62);
  font-size: clamp(0.76rem, 2.05vw, 0.88rem);
  font-weight: 760;
  line-height: 1.28;
}

.journal-expertise-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--expertise-accent);
  box-shadow: 0 0 0 4px var(--expertise-soft);
}

.journal-expertise-grid article:nth-child(2),
.journal-expertise-grid article:nth-child(4),
.journal-expertise-grid article:nth-child(2) h5,
.journal-expertise-grid article:nth-child(4) h5 {
  color: var(--journal-ink);
}

.journal-expertise-grid article:nth-child(2) li,
.journal-expertise-grid article:nth-child(4) li {
  color: rgba(9, 9, 9, 0.64);
}

.journal-expertise-grid article:nth-child(2)::before,
.journal-expertise-grid article:nth-child(4)::before {
  color: color-mix(in srgb, var(--expertise-accent) 60%, transparent);
}

@media (hover: hover) {
  .journal-expertise-grid article:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 14px 30px rgba(9, 9, 9, 0.07);
  }
}

@media (max-width: 680px) {
  .journal-expertise-grid {
    gap: 12px;
  }

  .journal-expertise-grid article,
  .journal-expertise-grid article:nth-child(2),
  .journal-expertise-grid article:nth-child(3),
  .journal-expertise-grid article:nth-child(4) {
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 12px;
    padding: 18px 14px 20px;
  }

  .journal-expertise-grid i,
  .journal-expertise-grid article:nth-child(2) i,
  .journal-expertise-grid article:nth-child(4) i {
    width: 28px;
    height: 28px;
  }

  .journal-expertise-grid ul {
    grid-column: 1 / -1;
  }
}

/* Journal material pass: make the flyer feel like printed magazine paper. */
.journal-frame {
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 254, 250, 0.66), transparent 34%),
    linear-gradient(135deg, rgba(238, 236, 226, 0.92), rgba(163, 166, 148, 0.78)),
    #858a78;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 22px 70px rgba(9, 9, 9, 0.24);
}

.journal-flyer {
  border: 1px solid rgba(9, 9, 9, 0.16);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.72), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(223, 192, 129, 0.13), transparent 24%),
    radial-gradient(circle at 12% 72%, rgba(133, 138, 120, 0.12), transparent 26%),
    linear-gradient(90deg, transparent 0 12%, rgba(9, 9, 9, 0.052) 12% calc(12% + 1px), transparent calc(12% + 1px)),
    linear-gradient(90deg, transparent 0 88%, rgba(9, 9, 9, 0.05) 88% calc(88% + 1px), transparent calc(88% + 1px)),
    repeating-linear-gradient(0deg, rgba(9, 9, 9, 0.018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.26) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #fffdf7 0%, #f7f3ea 42%, #ece7dc 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 16px 0 30px rgba(255, 255, 255, 0.38),
    inset -16px 0 28px rgba(9, 9, 9, 0.035),
    0 2px 0 rgba(255, 255, 255, 0.58),
    0 20px 48px rgba(9, 9, 9, 0.22);
}

.journal-flyer::before {
  inset: 12px;
  border-color: rgba(9, 9, 9, 0.13);
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.1), rgba(9, 9, 9, 0.1)) 0 132px / 100% 1px no-repeat,
    linear-gradient(90deg, rgba(9, 9, 9, 0.08), rgba(9, 9, 9, 0.08)) 0 calc(100% - 132px) / 100% 1px no-repeat,
    radial-gradient(circle at 20% 18%, rgba(9, 9, 9, 0.036) 0 0.7px, transparent 0.8px) 0 0 / 9px 9px,
    radial-gradient(circle at 74% 36%, rgba(255, 255, 255, 0.42) 0 0.8px, transparent 0.9px) 0 0 / 11px 11px;
  opacity: 0.72;
  mix-blend-mode: multiply;
}

.journal-flyer::after {
  border-color: rgba(9, 9, 9, 0.34);
  background:
    linear-gradient(90deg, transparent 46%, rgba(9, 9, 9, 0.34) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(9, 9, 9, 0.34) 46% 54%, transparent 54%),
    radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 58%);
  opacity: 0.42;
}

.journal-hero,
.journal-section,
.journal-proof,
.journal-footer {
  background-blend-mode: multiply, normal;
}

.journal-section {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(9, 9, 9, 0.035);
}

.journal-expertise-grid article {
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.78), rgba(239, 235, 225, 0.58)),
    repeating-linear-gradient(0deg, rgba(9, 9, 9, 0.012) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, var(--expertise-soft), transparent 44%);
}

@media (max-width: 680px) {
  .journal-flyer::before {
    inset: 8px;
  }
}

/* Mobile gallery navigation: discreet liquid-glass hints for horizontal exploration. */
.gallery-mobile-arrows {
  display: none;
}

@media (max-width: 820px) {
  .gallery-mobile-arrows {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 46;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  .gallery-scroll-arrow {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background:
      radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.5) 34%, rgba(255, 255, 255, 0.28) 100%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.16));
    color: #fff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.84),
      inset 0 -10px 22px rgba(8, 16, 32, 0.08),
      0 14px 34px rgba(4, 7, 12, 0.2),
      0 0 22px rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    cursor: pointer;
    pointer-events: auto;
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      background 180ms ease;
    animation: gallery-arrow-breathe 2.8s ease-in-out infinite;
  }

  .gallery-scroll-arrow-right {
    animation-delay: 0.32s;
  }

  .gallery-scroll-arrow::before {
    content: "";
    position: absolute;
    inset: 5px 7px auto;
    height: 17px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    opacity: 0.58;
    pointer-events: none;
  }

  .gallery-scroll-arrow span {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 1.86rem;
    font-weight: 500;
    line-height: 0.78;
    transform: translateY(-2px);
    text-shadow:
      0 1px 8px rgba(5, 12, 24, 0.34),
      0 0 12px rgba(255, 255, 255, 0.52);
  }

  .gallery-scroll-arrow:active {
    transform: scale(0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      inset 0 8px 18px rgba(8, 16, 32, 0.1),
      0 8px 22px rgba(4, 7, 12, 0.18);
  }

  .gallery-scroll-arrow:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
  }
}

@keyframes gallery-arrow-breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.84),
      inset 0 -10px 22px rgba(8, 16, 32, 0.08),
      0 14px 34px rgba(4, 7, 12, 0.2),
      0 0 22px rgba(255, 255, 255, 0.28);
  }

  50% {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -10px 22px rgba(8, 16, 32, 0.07),
      0 18px 42px rgba(4, 7, 12, 0.23),
      0 0 30px rgba(255, 255, 255, 0.38);
  }
}

/* Mobile contact menu: align with the light champagne dialogue accents. */
.contact-menu-toggle span,
.contact-menu-toggle[aria-expanded="true"] span {
  background: #fff7df;
  box-shadow:
    0 0 8px rgba(255, 247, 223, 0.34),
    0 1px 6px rgba(0, 0, 0, 0.18);
}

.contact-panel p {
  color: #fff7df;
  text-shadow:
    0 0 8px rgba(255, 247, 223, 0.26),
    0 1px 5px rgba(0, 0, 0, 0.18);
}

/* Country contact selector. */
.region-picker {
  position: relative;
  color: #fff7df;
  font-family: Roboto, Inter, ui-sans-serif, system-ui, sans-serif;
}

.region-picker--desktop {
  position: fixed;
  top: clamp(22px, 3.1vh, 38px);
  right: clamp(18px, 3vw, 44px);
  z-index: 86;
}

.region-picker--mobile {
  display: none;
}

.region-picker-toggle,
.region-picker-option {
  position: relative;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.28) 34%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  color: #fff;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -12px 22px rgba(34, 18, 10, 0.13),
    inset 0 0 0 1px rgba(255, 247, 223, 0.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
  backdrop-filter: blur(20px) saturate(1.28);
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease,
    opacity 170ms ease;
}

.region-picker-toggle {
  grid-template-columns: 1fr auto;
  gap: 7px;
  min-width: 88px;
  min-height: 56px;
  padding: 0 14px 0 18px;
  border-radius: 24px;
  font-size: 1.78rem;
}

.region-picker-chevron {
  color: rgba(255, 247, 223, 0.92);
  font-size: 0.84rem;
  line-height: 1;
  transform: translateY(-1px);
}

.region-picker--desktop [data-region-current-flag] {
  display: inline-block;
  line-height: 1;
  transform: scale(1.12);
}

.region-picker-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1)),
    rgba(28, 22, 18, 0.2);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(24px) saturate(1.34);
  backdrop-filter: blur(24px) saturate(1.34);
}

.region-picker-menu[hidden] {
  display: none;
}

.region-picker-option {
  width: 56px;
  height: 50px;
  padding: 0;
  border-radius: 20px;
  font-size: 1.62rem;
}

.region-picker-option.is-active {
  border-color: rgba(255, 247, 223, 0.9);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(255, 247, 223, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -10px 20px rgba(34, 18, 10, 0.1);
}

.region-picker-toggle:hover,
.region-picker-toggle:focus-visible,
.region-picker-option:hover,
.region-picker-option:focus-visible {
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(255, 247, 223, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -12px 22px rgba(34, 18, 10, 0.12);
}

@media (max-width: 820px) {
  .region-picker--desktop {
    display: none;
  }

  .region-picker--mobile {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
      rgba(255, 255, 255, 0.04);
  }

  .region-picker-title {
    color: rgba(255, 247, 223, 0.9);
    font-size: 0.72rem;
    font-weight: 720;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
  }

  .region-picker-segment {
    display: inline-flex;
    gap: 7px;
  }

  .region-picker--mobile .region-picker-option {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }
}

@media (max-width: 820px) {
  .experience[data-step="champagne"] .intro-photo {
    background-image: url("./assets/entree-champagne-mobile-coupe-v2.webp");
    background-position: center top;
  }
}

/* Mobile project sheets: keep the scroll inside the visible card frame. */
@media (max-width: 820px) {
  .art-modal.is-project-case,
  .art-modal.is-project-case.is-dragon-case,
  .art-modal.is-project-case.is-mustang-case,
  .art-modal.is-project-case.is-photo-case,
  .art-modal.is-project-case.is-instant-case,
  .art-modal.is-project-case.is-supreme-case,
  .art-modal.is-project-case.is-phone-case {
    box-sizing: border-box;
    width: calc(100vw - 24px);
    height: min(760px, calc(100dvh - 118px));
    max-height: calc(100dvh - 118px) !important;
    margin: auto;
    overflow: hidden;
  }

  .modal-frame.is-project-case,
  .modal-frame.is-project-case.is-dragon-case,
  .modal-frame.is-project-case.is-mustang-case,
  .modal-frame.is-project-case.is-photo-case,
  .modal-frame.is-project-case.is-instant-case,
  .modal-frame.is-project-case.is-supreme-case,
  .modal-frame.is-project-case.is-phone-case {
    box-sizing: border-box;
    height: 100%;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    padding: 14px 14px max(28px, env(safe-area-inset-bottom));
    border-radius: 18px;
    scrollbar-gutter: stable;
  }

  .modal-frame.is-project-case .modal-art-wrap,
  .modal-frame.is-project-case .modal-copy,
  .modal-frame.is-project-case .modal-project-details,
  .modal-frame.is-project-case .modal-visual-strip {
    min-width: 0;
    max-width: 100%;
  }

  .modal-frame.is-project-case .modal-copy {
    max-height: none;
    overflow: visible;
  }
}

@supports (height: 100svh) {
  @media (max-width: 820px) {
    .art-modal.is-project-case,
    .art-modal.is-project-case.is-dragon-case,
    .art-modal.is-project-case.is-mustang-case,
    .art-modal.is-project-case.is-photo-case,
    .art-modal.is-project-case.is-instant-case,
    .art-modal.is-project-case.is-supreme-case,
    .art-modal.is-project-case.is-phone-case {
      height: min(760px, calc(100svh - 118px));
      max-height: calc(100svh - 118px) !important;
    }

    .modal-frame.is-project-case,
    .modal-frame.is-project-case.is-dragon-case,
    .modal-frame.is-project-case.is-mustang-case,
    .modal-frame.is-project-case.is-photo-case,
    .modal-frame.is-project-case.is-instant-case,
    .modal-frame.is-project-case.is-supreme-case,
    .modal-frame.is-project-case.is-phone-case {
      max-height: 100% !important;
    }
  }
}

@media (max-width: 430px) {
  .art-modal.is-project-case,
  .art-modal.is-project-case.is-dragon-case,
  .art-modal.is-project-case.is-mustang-case,
  .art-modal.is-project-case.is-photo-case,
  .art-modal.is-project-case.is-instant-case,
  .art-modal.is-project-case.is-supreme-case,
  .art-modal.is-project-case.is-phone-case {
    height: calc(100dvh - 126px);
    max-height: calc(100dvh - 126px) !important;
  }

  .modal-frame.is-project-case,
  .modal-frame.is-project-case.is-dragon-case,
  .modal-frame.is-project-case.is-mustang-case,
  .modal-frame.is-project-case.is-photo-case,
  .modal-frame.is-project-case.is-instant-case,
  .modal-frame.is-project-case.is-supreme-case,
  .modal-frame.is-project-case.is-phone-case {
    max-height: 100% !important;
  }
}

@supports (height: 100svh) {
  @media (max-width: 430px) {
    .art-modal.is-project-case,
    .art-modal.is-project-case.is-dragon-case,
    .art-modal.is-project-case.is-mustang-case,
    .art-modal.is-project-case.is-photo-case,
    .art-modal.is-project-case.is-instant-case,
    .art-modal.is-project-case.is-supreme-case,
    .art-modal.is-project-case.is-phone-case {
      height: calc(100svh - 126px);
      max-height: calc(100svh - 126px) !important;
    }

    .modal-frame.is-project-case,
    .modal-frame.is-project-case.is-dragon-case,
    .modal-frame.is-project-case.is-mustang-case,
    .modal-frame.is-project-case.is-photo-case,
    .modal-frame.is-project-case.is-instant-case,
    .modal-frame.is-project-case.is-supreme-case,
    .modal-frame.is-project-case.is-phone-case {
      max-height: 100% !important;
    }
  }
}

/* CV preview opened from the first "Non" CTA. */
.cv-modal {
  width: min(980px, calc(100vw - 28px));
  height: min(860px, calc(100vh - 36px));
  height: min(860px, calc(100svh - 36px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 28px;
  overflow: hidden;
  color: #fff7df;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08) 45%, rgba(24, 18, 15, 0.28)),
    rgba(255, 250, 240, 0.16);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px 1px rgba(255, 255, 255, 0.64),
    inset 0 -28px 60px rgba(18, 13, 10, 0.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
  backdrop-filter: blur(20px) saturate(1.08);
}

.cv-modal::backdrop {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 244, 220, 0.16), transparent 34%),
    rgba(8, 7, 6, 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.cv-modal-frame {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  gap: 14px;
  padding: 18px;
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-left: 48px;
}

.cv-modal-header span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 235, 196, 0.88);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cv-modal-header h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 650;
  line-height: 1.05;
}

.cv-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  color: rgba(22, 18, 15, 0.94);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 239, 213, 0.72)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -10px 18px rgba(122, 93, 58, 0.16);
  font-size: 0.92rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

.cv-download:hover,
.cv-download:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -10px 18px rgba(122, 93, 58, 0.18);
}

.cv-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.38);
  font-family: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.cv-close:hover,
.cv-close:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.cv-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.56),
    0 18px 48px rgba(0, 0, 0, 0.22);
}

.cv-preview p {
  margin: 0;
  padding: 28px;
  color: #191510;
  font-family: Roboto, Arial, sans-serif;
}

.cv-preview a {
  color: #6f1230;
  font-weight: 700;
}

@media (max-width: 700px) {
  .cv-modal {
    width: calc(100vw - 18px);
    height: calc(100vh - 26px);
    height: calc(100svh - 26px);
    border-radius: 22px;
  }

  .cv-modal-frame {
    gap: 12px;
    padding: 12px;
  }

  .cv-modal-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding-left: 44px;
  }

  .cv-download {
    width: 100%;
    min-height: 42px;
  }

  .cv-close {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
  }

  .cv-preview {
    border-radius: 16px;
  }
}
