@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
}

@font-face {
  font-family: 'Noto Sans Lao';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/notosanslao-lao.woff2') format('woff2');
  unicode-range: U+0E81-0EDF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Lao';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/notosanslao-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/spacegrotesk-latin.woff2') format('woff2');
}

:root {
  /* base surfaces */
  --cream: #FAF6F1;   /* warm cream page background */
  --ivory: #FFFDFC;   /* soft ivory surface */
  --paper: #FFFDFC;   /* cards */
  --beige: #E8DED4;   /* soft borders */
  /* text */
  --ink: #232323;      /* rich charcoal */
  --forest: #232323;   /* (legacy name) headings → charcoal */
  --moss: #6D6D6D;     /* (legacy name) secondary → warm gray */
  --warm-gray: #6D6D6D;
  /* accents — coral primary, hot pink secondary */
  --coral: #FF5A76;
  --hot-pink: #FF3E81;
  --orange: #FFA65C;
  --leaf: #FF5A76;     /* (legacy name) accent → coral */
  --lime: #FF3E81;     /* (legacy name) bright accent → hot pink */
  --mint: #FFE7EC;     /* (legacy name) pale tint → pale pink */
  /* motion + elevation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
}

* {
  font-family: 'Space Grotesk', 'Century Gothic', system-ui, sans-serif;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

html[lang="lo"] * {
  font-family: 'Noto Sans Lao', sans-serif;
}


html, body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: var(--cream);
  color: var(--ink);
}

body:has(.template-page) {
  align-items: flex-start;
  overflow: hidden;
}

body:has(.review-page) {
  align-items: flex-start;
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  body { transition: none; opacity: 1; }
}

/* ===== Landing hero ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 24px;
  max-width: 520px;
}

.hero > * {
  animation: rise-in 0.9s var(--ease-out-expo) backwards;
}

.hero > *:nth-child(2) { animation-delay: 0.08s; }
.hero > *:nth-child(3) { animation-delay: 0.16s; }
.hero > *:nth-child(4) { animation-delay: 0.24s; }
.hero > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}

.hero-sub {
  margin: 0 0 26px;
  max-width: 40ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--forest);
  text-wrap: pretty;
}

.center-img {
  display: block;
  max-width: min(57vw, 312px);
  max-height: 49vh;
  margin-bottom: 34px;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  background: linear-gradient(120deg, #FF5A76, #FF3E81 50%, #FFA65C);
  background-size: 220% 100%;
  box-shadow: 0 14px 34px rgba(255, 95, 158, 0.4);
  animation: spotlight-flow 6s ease infinite, spotlight-glow 2.6s ease-in-out infinite;
  transition: transform 0.35s var(--spring), box-shadow 0.35s ease;
}

.cta-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #ffffff;
}

.cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: spotlight-shine 3.2s ease-in-out infinite;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.cta-btn:active {
  transform: translateY(0) scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn { animation: none; }
  .cta-btn::after { display: none; }
}

.hero-hint {
  margin: 18px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--moss);
  opacity: 0.75;
}

/* Drifting ambient blobs */
.hero-blobs {
  display: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.blob-a {
  width: 44vw;
  height: 44vw;
  left: -14vw;
  top: 6vh;
  background: var(--lime);
  animation: drift-a 19s ease-in-out infinite alternate;
}

.blob-b {
  width: 36vw;
  height: 36vw;
  right: -10vw;
  top: 44vh;
  background: var(--mint);
  animation: drift-b 23s ease-in-out infinite alternate;
}

.blob-c {
  width: 30vw;
  height: 30vw;
  left: 24vw;
  bottom: -12vh;
  background: var(--leaf);
  opacity: 0.3;
  animation: drift-a 27s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(9vw, -7vh) scale(1.15); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-8vw, 9vh) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .hero > * { animation: none; }
  .blob { animation: none; }
  .booth-card { transition: none; }
  .cta-btn { transition: none; }
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  border-radius: 17px 0 0 17px;
  overflow: hidden;
}

.sidebar.header-hidden {
  opacity: 0;
  pointer-events: none;
}

.sidebar.open {
  width: 232px;
  align-items: stretch;
  background: linear-gradient(165deg, #4A4340 0%, #2A2320 100%);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.25);
}

.lang-wrap,
.navbar-inner {
  display: none;
}

.sidebar.open .lang-wrap,
.sidebar.open .navbar-inner {
  display: flex;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  align-self: flex-start;
}

.nav-toggle svg { width: 30px; height: 30px; }

.sidebar.open .nav-toggle-icon {
  stroke: #ffffff;
}

.lang-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  width: 40px;
  background: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.18s ease, width 0.28s ease;
}

.sidebar.open .lang-toggle {
  width: 100%;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.lang-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

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

.flag-wrap {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.flag-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  background: linear-gradient(165deg, #4A4340 0%, #2A2320 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

.lang-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.lang-option.active {
  color: #FF5A76;
}

.lang-option .flag-wrap {
  width: 22px;
  height: 22px;
}

.navbar-inner {
  position: relative;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.nav-indicator {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 22px rgba(163, 217, 119, 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.nav-indicator.visible {
  opacity: 1;
}

.navbar-inner a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.1px;
  padding: 9px 10px;
  border-radius: 14px;
  border: none;
  background: transparent;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.28s var(--spring);
}

.navbar-inner a:hover {
  background: rgba(163, 217, 119, 0.14);
  color: #ffffff;
  transform: translateX(3px);
}

.navbar-inner a:hover .icon-chip {
  background: rgba(163, 217, 119, 0.28);
  color: var(--lime);
}

.navbar-inner a.current-page {
  background: transparent;
  color: var(--ink);
  cursor: default;
  pointer-events: none;
}

.navbar-inner a.current-page .icon-chip {
  background: var(--lime);
  color: var(--ink);
}

.navbar-inner a.current-page .nav-icon {
  animation: icon-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-pop {
  0% { transform: scale(0.95); }
  70% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.navbar-inner .divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 8px 4px;
  flex-shrink: 0;
}

.navbar-inner a.cta {
  background: linear-gradient(120deg, var(--lime), var(--leaf));
  color: var(--ink);
  margin-top: 6px;
  box-shadow: 0 8px 20px rgba(255, 90, 118, 0.35);
}

.navbar-inner a.cta .icon-chip {
  background: rgba(0, 0, 0, 0.16);
  color: var(--ink);
}

.navbar-inner a.cta:hover {
  background: linear-gradient(120deg, var(--lime), var(--leaf));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 26px rgba(255, 90, 118, 0.45);
}

.navbar-inner a.cta:hover .icon-chip {
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
}

.icon-chip {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.navbar-inner a:hover .nav-icon {
  animation: icon-shake 0.4s ease-in-out;
}

@keyframes icon-shake {
  0% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(6deg); }
  100% { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-inner a:hover .nav-icon { animation: none; }
  .navbar-inner a.current-page .nav-icon { animation: none; }
  .navbar-inner a:hover { transform: none; }
}

.sidebar-label {
  width: 0;
  overflow: hidden;
}

.sidebar.open .sidebar-label {
  width: auto;
}

.ribbons-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: var(--cream);
  display: none;   /* calm flat cream base — no gradient page background */
}

/* soft fade so scrolling content dissolves under the fixed back button */
body:has(.about-page)::before,
body:has(.policy-page)::before,
body:has(.contact-page)::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  background: linear-gradient(#ffffff 52%, rgba(255, 255, 255, 0));
  z-index: 9;
  pointer-events: none;
}

.back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: #232323;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  z-index: 10;
  transition: transform 0.18s ease;
}

.back-link:hover {
  transform: translateX(-2px);
}

.back-link svg {
  width: 26px;
  height: 26px;
}

.page-content {
  max-width: 560px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  text-align: center;
}

.page-content h1 {
  color: #232323;
  font-size: 2rem;
  margin-bottom: 16px;
}

.page-content p {
  color: #232323;
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== About page ===== */
body:has(.about-page) {
  align-items: flex-start;
  overflow-y: auto;
}

.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 92px 26px 96px;
  text-align: left;
  color: var(--ink);
}

.about-page h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 7vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

.about-lead {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--forest);
  max-width: 56ch;
}

.about-hero-img {
  display: flex;
  justify-content: center;
  margin: 32px 0 30px;
}

.about-hero-img img {
  width: min(60%, 260px);
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

.about-para {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink);
  opacity: 0.9;
  max-width: 64ch;
}

.about-values {
  margin: 30px 0 4px;
  padding: 4px 22px;
  background: var(--mint);
  border-radius: 22px;
}

.about-values .value {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(35, 30, 28, 0.1);
}

.about-values .value:last-child { border-bottom: none; }

.value-ic {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #ffffff;
  color: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.value-ic svg { width: 22px; height: 22px; }

.value div { display: flex; flex-direction: column; gap: 2px; }
.value strong { color: var(--ink); font-size: 1rem; font-weight: 700; }
.value span { color: var(--forest); font-size: 0.92rem; opacity: 0.85; line-height: 1.45; }

.about-cta-wrap {
  margin-top: 44px;
  text-align: center;
}

.about-cta-line {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ===== Privacy / policy page ===== */
body:has(.policy-page) {
  align-items: flex-start;
  overflow-y: auto;
}

.policy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 92px 26px 90px;
  text-align: left;
  color: var(--ink);
}

.policy-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 10px;
}

.policy-page h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 6vw, 2.9rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.policy-updated {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--moss);
  opacity: 0.8;
}

.policy-intro {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.68;
  color: var(--forest);
  max-width: 62ch;
}

.policy-tldr {
  display: flex;
  gap: 14px;
  margin: 24px 0 8px;
  padding: 20px 22px;
  background: var(--mint);
  border-radius: 18px;
}

.policy-tldr svg {
  width: 26px;
  height: 26px;
  color: var(--moss);
  flex-shrink: 0;
  margin-top: 2px;
}

.policy-tldr p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--forest);
}

.policy-section {
  margin-top: 34px;
}

.policy-section h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.18rem;
  color: var(--forest);
}

.policy-section h2 .num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--leaf);
  font-variant-numeric: tabular-nums;
}

.policy-section p {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.9;
  max-width: 66ch;
}

.policy-section ul {
  margin: 6px 0 12px;
  padding-left: 20px;
  max-width: 66ch;
}

.policy-section li {
  margin-bottom: 5px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.9;
}

.policy-section a,
.policy-footer a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-footer {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(35, 30, 28, 0.14);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--moss);
  max-width: 66ch;
}

.faq {
  margin-top: 48px;
  text-align: left;
}

.faq .policy-eyebrow { margin-bottom: 6px; }

.faq-title {
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.faq-item {
  border: 1px solid rgba(35, 30, 28, 0.14);
  border-radius: 14px;
  padding: 15px 18px;
  margin-bottom: 10px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(255, 90, 118, 0.45);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.faq-item summary {
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 10px;
  color: #232323;
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.6;
}

.template-page { max-width: 640px; padding-top: 76px; }
.template-page h1 { color: #232323; }
.template-page p { color: #232323; }

/* ===== Template carousel ===== */
.tpl-carousel {
  position: relative;
  margin-top: 30px;
}

.tpl-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s var(--spring), background 0.2s ease;
}

.tpl-prev { right: 50%; margin-right: 104px; left: auto; }
.tpl-next { left: 50%; margin-left: 104px; right: auto; }

.tpl-arrow svg { width: 24px; height: 24px; }
.tpl-arrow:hover { transform: translateY(-50%) scale(1.08); background: var(--mint); }
.tpl-arrow:active { transform: translateY(-50%) scale(0.94); }

.tpl-viewport {
  width: 100%;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: 60px;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.tpl-viewport.dragging { cursor: grabbing; }
.tpl-viewport.dragging .tpl-track { transition: none; }

.tpl-track {
  display: flex;
  align-items: center;
  transition: transform 0.45s var(--ease-out-expo);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .tpl-track { transition: none; }
}

.tpl-slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 22px 16px;
  cursor: pointer;
  opacity: 0.38;
  transform: scale(0.72);
  filter: blur(3px);
  transition: transform 0.45s var(--ease-out-expo), opacity 0.4s ease, filter 0.4s ease;
}

.tpl-slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .tpl-slide { transition: opacity 0.4s ease; filter: none; }
}

.tpl-frame {
  padding: 0;
  background: none;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s var(--spring), box-shadow 0.3s ease;
}
.tpl-slide.is-active .tpl-frame:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.2);
}

.tpl-frame img {
  display: block;
  height: 37vh;
  max-height: 357px;
  width: auto;
  border-radius: 12px;
  -webkit-user-drag: none;
  user-select: none;
}

.tpl-name {
  margin: 22px 0 0;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tpl-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.tpl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(35, 30, 28, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s var(--spring);
}

.tpl-dot.active {
  background: var(--leaf);
  width: 22px;
  border-radius: 5px;
}

.tpl-select {
  margin-top: 26px;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.page-loader.loader-hidden {
  opacity: 0;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 300;
  pointer-events: none;
}

.camera-flash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}

.camera-flash.flashing {
  animation: camera-flash-anim 0.4s ease-out;
}

@keyframes camera-flash-anim {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .camera-flash.flashing { animation: none; }
}

/* ===== Capture page ===== */
body:has(.capture-page) {
  overflow-y: auto;
  align-items: flex-start;
}

.capture-page {
  max-width: 420px;
  padding-top: 76px;
}

.capture-page h1 {
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.capture-subtitle, #capture-note {
  color: #232323;
  opacity: 0.85;
}

.retake-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  background: none;
  border: none;
  color: #232323;
  font-family: 'Century Gothic', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.retake-btn svg { width: 16px; height: 16px; }

.retake-btn:hover { opacity: 1; }

.retake-btn.visible {
  display: flex;
}

.capture-counter {
  display: inline-block;
  font-family: 'Century Gothic', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--mint);
  border-radius: 999px;
  padding: 8px 22px;
  margin-top: 16px;
}

.capture-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.capture-select {
  appearance: none;
  background: #232323;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 30px 10px 14px;
  font-family: 'Century Gothic', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  max-width: 170px;
  text-overflow: ellipsis;
}

.capture-select option {
  background: #232323;
  color: #ffffff;
}

.capture-upload {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #232323;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Century Gothic', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.capture-upload svg { width: 16px; height: 16px; }

.camera-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-top: 20px;
  border-radius: 26px;
  overflow: hidden;
  background: #0f1a11;
  border: none;
  box-shadow: 0 0 0 4px var(--mint), 0 24px 48px rgba(0, 0, 0, 0.28);
}

#camera-video, .upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#camera-video.mirrored, .upload-preview.mirrored {
  transform: scaleX(-1);
}

.upload-preview {
  display: none;
  position: absolute;
  inset: 0;
}

/* Dog-filter overlay canvas (face-tracked stickers drawn here) */
.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.fx-status {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Century Gothic', system-ui, sans-serif;
  font-weight: 700;
  font-size: 5rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.countdown-overlay.visible {
  opacity: 1;
}

.countdown-overlay.tick {
  animation: count-pop 0.9s var(--ease-out-expo);
}

@keyframes count-pop {
  from { transform: scale(1.7); opacity: 0.2; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-overlay.tick { animation: none; }
}

/* ===== Filter presets ===== */
.filter-presets {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.filter-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.filter-swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  outline: 3px solid transparent;
  outline-offset: 2px;
  transition: transform 0.3s var(--spring), outline-color 0.2s ease;
}

.filter-preset:hover .filter-swatch { transform: translateY(-2px) scale(1.05); }
.filter-preset:active .filter-swatch { transform: scale(0.94); }

.filter-preset.active .filter-swatch {
  outline-color: var(--leaf);
  transform: scale(1.06);
}

.filter-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--forest);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.filter-preset.active .filter-label { opacity: 1; }

.swatch-original { background: linear-gradient(135deg, #f5b7c4, #FF5A76 55%, #6cc4e0); }
.swatch-mono     { background: linear-gradient(135deg, #ffffff, #9aa0a0 55%, #2b2f2f); }
.swatch-retro    { background: linear-gradient(135deg, #f7e0b0, #d9a05b 55%, #8a5a2b); }
.swatch-vivid    { background: linear-gradient(135deg, #ff5f6d, #ffc371 40%, #21d4fd 80%, #b721ff); }
.swatch-cool     { background: linear-gradient(135deg, #cfe9ff, #6ca8e0 55%, #2b4c7e); }
.swatch-dog {
  background: linear-gradient(135deg, #f3ddc2, #e4bd92 55%, #c8925a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.swatch-dog svg { width: 40px; height: 40px; }

@media (prefers-reduced-motion: reduce) {
  .filter-swatch { transition: outline-color 0.2s ease; }
}

.capture-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.mirror-toggle {
  background: #232323;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 12px;
  font-family: 'Century Gothic', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.start-capture-btn {
  width: auto;
  background: #232323;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  font-family: 'Century Gothic', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.2s ease;
}

.start-capture-btn:hover { transform: translateY(-2px); background: #4A4340; }

.start-capture-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.capture-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 40px;
}

.capture-results img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(35, 30, 28, 0.25);
}

/* ===== Review page ===== */
.review-page { max-width: 520px; padding-top: 88px; padding-bottom: 48px; min-height: 115vh; }
.review-page h1 {
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.review-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.strip-card {
  position: relative;
  flex-shrink: 0;
  width: 180px;
  display: block;
  animation: strip-reveal 0.7s var(--ease-out-expo) backwards;
  animation-delay: 0.12s;
}

/* subtle printed film-grain over the finished strip */
.strip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes strip-reveal {
  from { opacity: 0; transform: translateY(28px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .strip-card { animation: none; transform: none; }
}

.review-canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
  transition: transform 0.4s var(--spring), box-shadow 0.35s ease;
}
.strip-card:hover .review-canvas {
  transform: translateY(-6px) rotate(-1.4deg);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.2);
}
@media (prefers-reduced-motion: reduce) {
  .strip-card:hover .review-canvas { transform: none; }
}

.review-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 176px;
  margin: 36px auto 0;
}

/* ===== Sticker picker (review page) ===== */
.sticker-bar {
  margin: 0;
  max-width: 208px;
  flex-shrink: 0;
  text-align: center;
}
.sticker-title {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.sticker-hint {
  color: var(--moss);
  font-size: 0.78rem;
  margin-bottom: 12px;
  opacity: 0.85;
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 7px;
  justify-items: center;
}
.sticker-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 16px;
  border: 1px solid rgba(35, 30, 28, 0.12);
  background: var(--paper);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.28s var(--spring), box-shadow 0.2s ease, border-color 0.2s ease;
}
.sticker-btn:hover { transform: translateY(-3px) scale(1.04); }
.sticker-btn:active { transform: scale(0.94); }
.sticker-btn img,
.sticker-btn svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.sticker-btn.is-active {
  border-color: var(--leaf);
  box-shadow: 0 0 0 2px var(--lime), 0 6px 16px rgba(255, 90, 118, 0.35);
}
.sticker-btn.sticker-none svg { stroke: var(--moss); }

@media (prefers-reduced-motion: reduce) {
  .sticker-btn:hover, .sticker-btn:active { transform: none; }
}

.review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(35, 30, 28, 0.18);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Century Gothic', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--spring), box-shadow 0.2s ease,
              background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

/* Hover slowly fades to grey; holding (press) goes near-black; release returns to white */
.review-btn:hover {
  transform: translateY(-2px);
  background: #4a4a4a;
  border-color: #4a4a4a;
  color: #ffffff;
}
.review-btn:active {
  transform: scale(0.97);
  background: #141414;
  border-color: #141414;
  color: #ffffff;
  transition: transform 0.12s var(--spring), background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.review-btn-primary {
  background: linear-gradient(120deg, var(--lime), var(--leaf));
  border-color: transparent;
  font-size: 0.85rem;
  padding: 13px 16px;
  box-shadow: 0 12px 30px rgba(255, 90, 118, 0.45);
}

.review-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: inherit;
}

/* Rainbow animated "Done" button */
.review-btn-done {
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 13px 16px;
  white-space: nowrap;
  background: linear-gradient(120deg, #FF5A76, #FF3E81 50%, #FFA65C);
  background-size: 220% 100%;
  box-shadow: 0 12px 30px rgba(255, 95, 158, 0.4);
  animation: spotlight-flow 6s ease infinite, spotlight-glow 2.6s ease-in-out infinite;
}

/* keep the gradient (not the grey .review-btn hover) on hover/press */
.review-btn-done:hover,
.review-btn-done:active {
  color: #ffffff;
  background: linear-gradient(120deg, #FF5A76, #FF3E81 50%, #FFA65C);
  background-size: 220% 100%;
  border: none;
}
.review-btn-done:hover { transform: translateY(-2px) scale(1.015); }
.review-btn-done:active { transform: scale(0.97); }
.review-btn-done svg { color: #ffffff; }

.review-btn-done::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: spotlight-shine 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .review-btn-done { animation: none; }
  .review-btn-done::after { display: none; }
}

/* Animated gradient keyframes (used by the home CTA button) */
@keyframes spotlight-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes spotlight-glow {
  0%, 100% { box-shadow: 0 12px 30px rgba(255, 90, 118, 0.35); }
  50% { box-shadow: 0 14px 38px rgba(255, 62, 129, 0.5); }
}
  50% { box-shadow: 0 14px 38px rgba(53, 195, 224, 0.5); }
}

@keyframes spotlight-shine {
  0% { left: -60%; }
  55%, 100% { left: 140%; }
}

/* ===== Pass 2: playful floating hero decorations ===== */
.hero { z-index: 1; }

.floaties {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.floatie {
  position: fixed;
  display: block;
  opacity: 0.92;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08));
  animation: floatie-bob 7s ease-in-out infinite alternate;
}
.floatie svg { display: block; width: 100%; height: 100%; }

@keyframes floatie-bob {
  from { transform: translateY(0) rotate(var(--r, 0deg)); }
  to   { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 5deg)); }
}

.f-sparkle { top: 13vh; left: 7vw;  width: 50px; animation-duration: 6.5s; }
.f-heart   { bottom: 14vh; left: 9vw; width: 42px; animation-duration: 8s;  animation-delay: -1.2s; }
.f-film    { top: 45vh; left: 6vw;  width: 58px; animation-duration: 9s;  animation-delay: -0.6s; }
.f-star    { top: 16vh; right: 9vw; width: 46px; animation-duration: 7.5s; animation-delay: -2s; }
.f-smiley  { top: 53vh; right: 7vw; width: 52px; animation-duration: 6.8s; animation-delay: -0.9s; }
.f-tape    { bottom: 16vh; right: 11vw; width: 78px; animation-duration: 8.5s; animation-delay: -1.6s; }
.f-camera  { top: 70vh; right: 15vw; width: 56px; animation-duration: 7.2s; animation-delay: -2.4s; }

/* faint abstract blobs so the cream never feels blank */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 90, 118, 0.07), transparent 72%) -8% 8% / 46vw 46vw no-repeat,
    radial-gradient(closest-side, rgba(255, 166, 92, 0.06), transparent 72%) 108% 92% / 52vw 52vw no-repeat;
}

@media (max-width: 720px) {
  .floaties { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .floatie { animation: none; }
}

/* ===== Pass 2: glass-cream navigation ===== */
.sidebar.open {
  background: rgba(250, 246, 241, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: -6px 0 34px rgba(0, 0, 0, 0.12);
  border-left: 1px solid rgba(35, 35, 35, 0.06);
}
.sidebar.open .nav-toggle-icon { stroke: var(--ink); }

.lang-menu {
  background: rgba(255, 253, 252, 0.96);
  border: 1px solid var(--beige);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.sidebar.open .lang-toggle { color: var(--ink); background: rgba(35, 35, 35, 0.05); }
.sidebar.open .lang-toggle:hover { background: rgba(35, 35, 35, 0.09); }
.lang-option { color: var(--ink); }
.lang-option:hover { background: rgba(255, 90, 118, 0.12); color: var(--ink); }
.lang-option.active { background: var(--coral); color: #fff; }

.nav-indicator {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(35, 35, 35, 0.05);
}
.navbar-inner a { color: var(--ink); }
.navbar-inner a:hover { background: rgba(255, 90, 118, 0.12); color: var(--coral); }
.navbar-inner a:hover .icon-chip { background: rgba(255, 90, 118, 0.2); color: var(--coral); }
.navbar-inner a.current-page { color: var(--coral); }
.navbar-inner a.current-page .icon-chip { background: var(--coral); color: #fff; }
.navbar-inner .divider { background: rgba(35, 35, 35, 0.1); }
.navbar-inner a.cta { color: #fff; }
.navbar-inner a.cta .icon-chip { background: rgba(255, 255, 255, 0.28); color: #fff; }
.icon-chip { background: rgba(35, 35, 35, 0.06); color: var(--ink); }

/* Pass 2b: keep two tiny floaties in the corners on mobile */
@media (max-width: 720px) {
  .floaties { display: block; }
  .floatie { display: none; }
  .f-sparkle { display: block; top: 10vh; left: 5vw; width: 32px; }
  .f-heart { display: block; bottom: 8vh; right: 6vw; left: auto; width: 28px; }
}

/* ===== Strip-stack hero (layered photobooth strips + coral glow + parallax) ===== */
.center-img { display: none; }

.strip-stack {
  position: relative;
  width: 300px;
  height: 290px;
  margin: 4px auto 40px;
}
.pb-strip {
  position: absolute;
  top: 0;
  left: 50%;
  width: 132px;
  box-sizing: border-box;
  padding: 9px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: translate(var(--px, 0px), var(--py, 0px)) var(--base);
  transition: transform 0.3s ease-out;
}
.pb-cell {
  height: 60px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.pb-foot {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #232323;
  opacity: 0.65;
}
.s-front { --base: translateX(-50%) rotate(-3deg); z-index: 10; box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2); }
.s-b1 { --base: translateX(-76%) rotate(-10deg); z-index: 5; }
.s-b2 { --base: translateX(-24%) rotate(10deg); z-index: 5; }
.s-b3 { --base: translateX(-50%) rotate(5deg); z-index: 3; opacity: 0.95; }
.s-b4 { --base: translateX(6%) rotate(15deg); z-index: 3; opacity: 0.92; }

.pb-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 300px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 90, 118, 0.55), rgba(255, 90, 118, 0) 72%);
  filter: blur(26px);
  z-index: 0;
  animation: glow-pulse 4.5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@media (max-width: 520px) {
  .strip-stack { transform: scale(0.82); margin: 0 auto 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pb-glow { animation: none; }
  .pb-strip { transition: none; }
}

/* ===== Redesign: rotating headline, scrapbook collage, social proof ===== */
.hero-rotator {
  height: 1.5em;
  margin: -4px 0 16px;
  font-size: clamp(1.05rem, 3.2vw, 1.55rem);
  font-weight: 700;
  color: var(--coral);
  letter-spacing: -0.01em;
}
.rot-word {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}

/* scrapbook decorations share the parallax transform composition */
.deco {
  position: absolute;
  transform: translate(var(--px, 0px), var(--py, 0px)) var(--base, rotate(0deg));
  transition: transform 0.3s ease-out;
}
.d-tape {
  top: -7px; left: 50%; width: 76px; height: 22px;
  --base: translateX(-50%) rotate(-7deg); z-index: 12;
  background: rgba(255, 90, 118, 0.34);
}
.d-tape::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,255,255,0.28) 9px 11px);
}
.d-film {
  left: -46px; top: 44px; width: 40px; --base: rotate(-6deg); z-index: 2;
  background: #232323; border-radius: 5px; padding: 8px 5px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.d-film i { display: block; height: 26px; border-radius: 2px; background: linear-gradient(135deg,#5b8fd0,#FF9DB0); }
.d-film i:nth-child(2){ background:linear-gradient(135deg,#FFD24D,#FF7A59);} 
.d-film i:nth-child(3){ background:linear-gradient(135deg,#b18cff,#FF7AA6);} 
.d-film i:nth-child(4){ background:linear-gradient(135deg,#3fb8a0,#a3d977);} 
.d-ticket {
  right: -42px; top: 16px; width: 104px; --base: rotate(9deg); z-index: 4;
  background: var(--ivory); border: 1.6px dashed rgba(255,90,118,0.6); border-radius: 7px;
  padding: 9px 6px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.d-ticket b { display: block; font-size: 12px; letter-spacing: 1.5px; color: var(--ink); }
.d-ticket small { display: block; font-size: 7px; letter-spacing: 0.8px; color: var(--warm-gray); margin-top: 3px; }
.d-polaroid {
  left: -36px; top: 150px; width: 96px; --base: rotate(-9deg); z-index: 5;
  background: #fff; padding: 7px 7px 20px; border-radius: 5px; box-shadow: 0 12px 26px rgba(0,0,0,0.16);
}
.d-polaroid span { display: block; height: 78px; border-radius: 3px; }
.d-note {
  right: -34px; top: 178px; width: 100px; --base: rotate(6deg); z-index: 5;
  background: #FFFDF6; padding: 13px 11px; border-radius: 3px; box-shadow: 0 10px 22px rgba(0,0,0,0.1);
  font-style: italic; font-size: 13px; color: var(--ink); text-align: center;
}
.d-spark { right: 8px; top: -16px; width: 26px; height: 26px; --base: rotate(-6deg); z-index: 13;
  animation: spark-fade 5s ease-in-out infinite; }
.d-heart { left: 22px; top: 226px; width: 22px; height: 22px; --base: rotate(8deg); z-index: 13;
  animation: spark-fade 6s ease-in-out infinite 1s; }
@keyframes spark-fade { 0%,100%{opacity:0.35;} 50%{opacity:1;} }

/* camera viewfinder brackets on the front strip */
.pb-viewfinder { position: absolute; inset: 8px 8px 26px; pointer-events: none; z-index: 3; }
.pb-viewfinder::before, .pb-viewfinder::after {
  content: ""; position: absolute; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.9); border-radius: 2px;
}
.pb-viewfinder::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.pb-viewfinder::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* whole collage floats slowly */
.strip-stack { animation: stack-float 11s ease-in-out infinite; }
@keyframes stack-float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

/* CTA arrow + sparkle burst */
.cta-arrow { width: 20px; height: 20px; margin-left: -2px; transform: translateX(-5px); opacity: 0.85;
  transition: transform 0.3s var(--spring), opacity 0.3s ease; }
.cta-btn:hover .cta-arrow { transform: translateX(4px); opacity: 1; }
.cta-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none; }
.cs1{ top:8px; left:20%; } .cs2{ top:10px; right:22%; } .cs3{ bottom:9px; left:30%; } .cs4{ bottom:7px; right:28%; }
.cta-btn:hover .cta-spark { animation: cta-burst 0.6s ease-out; }
.cta-btn:hover .cs2 { animation-delay: 0.06s; } .cta-btn:hover .cs3 { animation-delay: 0.03s; } .cta-btn:hover .cs4 { animation-delay: 0.09s; }
@keyframes cta-burst { 0%{opacity:0; transform:scale(0);} 40%{opacity:1; transform:scale(1.3) translateY(-7px);} 100%{opacity:0; transform:scale(0.5) translateY(-16px);} }

/* social proof */
.social-proof { margin-top: 16px; text-align: center; }
.stars { color: var(--coral); letter-spacing: 3px; font-size: 0.95rem; }
.proof-line { margin: 6px 0 2px; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.proof-sub { margin: 0; font-size: 0.8rem; color: var(--warm-gray); }

/* faint scattered dot texture over the cream */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: radial-gradient(rgba(35,35,35,1) 1px, transparent 1.4px);
  background-size: 24px 24px;
}

@media (prefers-reduced-motion: reduce) {
  .strip-stack, .d-spark, .d-heart { animation: none; }
  .cta-btn:hover .cta-spark { animation: none; }
}

/* About page: on-theme mini strip fan (replaces the old booth image) */
.about-strips {
  position: relative;
  width: 280px;
  height: 230px;
  margin: 26px auto 10px;
}
.a-s1 { --base: translateX(-88%) rotate(-10deg); z-index: 2; }
.a-s2 { --base: translateX(-12%) rotate(10deg); z-index: 2; }
.a-s3 { --base: translateX(-50%) rotate(-2deg); z-index: 5; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16); }

/* ===== Contact page ===== */
body:has(.contact-page) { align-items: flex-start; overflow-y: auto; }
.contact-page {
  max-width: 620px;
  padding-top: 88px;
  padding-bottom: 60px;
  text-align: center;
}
.contact-page .policy-eyebrow { display: inline-block; }
.contact-page h1 { font-size: clamp(2.1rem, 7vw, 2.9rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.contact-lead { max-width: 46ch; margin: 0 auto 30px; line-height: 1.6; color: var(--warm-gray); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 auto;
  max-width: 520px;
  text-align: left;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--beige);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--spring), box-shadow 0.25s ease;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1); }
.cc-ic {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 90, 118, 0.12);
  color: var(--coral);
}
.cc-ic svg { width: 21px; height: 21px; }
.contact-card strong { display: block; font-size: 0.92rem; color: var(--ink); }
.contact-card span { font-size: 0.84rem; color: var(--warm-gray); }
.contact-follow { margin: 34px 0 14px; font-weight: 700; color: var(--ink); }
.contact-socials { display: flex; justify-content: center; gap: 12px; }
.social-btn {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--beige);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--spring), background 0.25s ease, color 0.25s ease;
}
.social-btn svg { width: 22px; height: 22px; }
.social-btn:hover { transform: translateY(-3px) scale(1.06); background: var(--coral); color: #fff; }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

/* Click Society brand mark (recolored mascot) on the hero */
.brand-mark {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 auto 16px;
  -webkit-user-drag: none;
  user-select: none;
}
@media (max-width: 520px) { .brand-mark { width: 54px; margin-bottom: 10px; } }

/* ===== Mobile portrait: fit each page in one screen (no scroll) ===== */
@media (max-width: 560px) {
  /* --- Home hero --- */
  .hero { padding: 12px 16px; }
  .brand-mark { width: 54px; margin-bottom: 8px; }
  .hero-title { font-size: clamp(1.8rem, 8.4vw, 2.4rem); margin-bottom: 4px; }
  .hero-rotator { font-size: 0.92rem; height: 1.3em; margin: 0 0 8px; }
  .hero-sub { font-size: 0.86rem; line-height: 1.4; margin-bottom: 12px; }
  .strip-stack { width: 230px; height: 186px; margin: 2px auto 4px; }
  .pb-strip { width: 104px; padding: 6px; gap: 5px; }
  .pb-cell { height: 42px; }
  .pb-glow { width: 210px; height: 216px; }
  .cta-btn { padding: 13px 24px; font-size: 1rem; }
  .hero-hint { margin: 10px 0 0; font-size: 0.8rem; }
  .social-proof { margin-top: 8px; }
  .proof-sub { font-size: 0.74rem; }

  /* --- Choose Layout --- */
  .template-page h1 { font-size: clamp(1.6rem, 7vw, 2rem); margin-bottom: 4px; }
  .template-page > p { font-size: 0.85rem; margin-bottom: 6px; }
  .tpl-slide { padding: 12px 10px; }
  .tpl-frame img { height: 34vh; max-height: 289px; }

  /* --- Contact --- */
  .contact-page { padding-top: 72px; padding-bottom: 28px; }
  .contact-page h1 { font-size: clamp(1.8rem, 8vw, 2.3rem); margin-bottom: 8px; }
  .contact-lead { font-size: 0.88rem; margin-bottom: 18px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contact-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .cc-ic { width: 34px; height: 34px; }
  .cc-ic svg { width: 18px; height: 18px; }
  .contact-card strong { font-size: 0.82rem; }
  .contact-card span { font-size: 0.72rem; word-break: break-word; }
  .contact-follow { margin: 20px 0 10px; }
  .contact-socials { gap: 10px; }
  .social-btn { width: 44px; height: 44px; }
}

/* Home: scrollable + centered (safe-center never clips the top), 15% taller via the hero */
body:has(.hero) {
  overflow-y: auto;
  align-items: safe center;
}
.hero {
  min-height: 115vh;
  justify-content: center;
}
