/* Hero — image behind, content on top */
.hero.hero-with-image,
.hero.hero-with-video,
.hero-with-photo {
  position: relative; /* important */
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: #000;
}

/* Black curtain — RM-style long hold + slow lift */
.hero-blackout {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 2.8s cubic-bezier(0.33, 0, 0.2, 1);
}

.hero-rm-reveal.is-lit .hero-blackout {
  opacity: 0;
}

/* Soft vignette like product gallery depth */
.hero-rm-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 72% at 50% 48%,
    transparent 35%,
    rgba(0, 0, 0, 0.22) 100%
  );
  opacity: 0;
  transition: opacity 3s cubic-bezier(0.33, 0, 0.2, 1) 0.6s;
}

.hero-rm-reveal.is-lit::after {
  opacity: 1;
}

/* Image layer stays behind */
.hero-photo-bg,
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-photo-bg img,
.hero-photo-bg .hero-main-img,
.hero-photo-bg .hero-bg-video,
.hero.hero-with-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  backface-visibility: hidden;
  pointer-events: none;
}

/*
 * Hero media after black: long, viscous ease
 * start larger + dim + soft blur → crystal, then quiet settle
 */
.hero-main-img,
.hero-bg-video {
  opacity: 0;
  transform: scale(1.12) translate3d(0, 1.5%, 0);
  filter: brightness(0.45) saturate(0.8) blur(6px);
  transition:
    opacity 2.6s cubic-bezier(0.33, 0, 0.2, 1) 0.15s,
    transform 3.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
    filter 3.2s cubic-bezier(0.33, 0, 0.2, 1) 0.2s;
  will-change: opacity, transform, filter;
}

.hero-bg-video {
  object-fit: cover;
  object-position: center 42%;
}

.hero-rm-reveal.is-lit .hero-main-img,
.hero-rm-reveal.is-lit .hero-bg-video {
  opacity: 1;
  transform: scale(1.03) translate3d(0, 0, 0);
  filter: brightness(1) saturate(1) blur(0);
}

/* Continuous quiet luxury drift after video settles */
.hero-rm-reveal.is-settled .hero-main-img,
.hero-rm-reveal.is-settled .hero-bg-video {
  animation: heroRmDrift 22s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

@keyframes heroRmDrift {
  0% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.0) translate3d(0, -1.2%, 0);
  }
}

/* Content — delayed after the picture has presence */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(4px);
  transition:
    opacity 2s cubic-bezier(0.33, 0, 0.2, 1) 1.65s,
    transform 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.65s,
    filter 1.8s cubic-bezier(0.33, 0, 0.2, 1) 1.75s;
}

.hero-rm-reveal.is-lit .hero-content {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger lines like product captions */
.hero-rm-reveal .hero-copy .eyebrow,
.hero-rm-reveal .hero-copy h1 .hero-line,
.hero-rm-reveal .hero-copy .hero-sub,
.hero-rm-reveal .hero-copy .hero-ctas,
.hero-rm-reveal .hero-copy .trust-chips {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 1.4s cubic-bezier(0.33, 0, 0.2, 1),
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-rm-reveal.is-lit .hero-copy .eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 1.9s;
}

.hero-rm-reveal.is-lit .hero-copy h1 .hero-line:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 2.15s;
}

.hero-rm-reveal.is-lit .hero-copy h1 .hero-line:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 2.35s;
}

.hero-rm-reveal.is-lit .hero-copy h1 .hero-line:nth-child(5),
.hero-rm-reveal.is-lit .hero-copy h1 em.hero-line {
  opacity: 1;
  transform: none;
  transition-delay: 2.55s;
}

.hero-rm-reveal.is-lit .hero-copy .hero-sub {
  opacity: 1;
  transform: none;
  transition-delay: 2.8s;
}

.hero-rm-reveal.is-lit .hero-copy .hero-ctas {
  opacity: 1;
  transform: none;
  transition-delay: 3.05s;
}

.hero-rm-reveal.is-lit .hero-copy .trust-chips {
  opacity: 1;
  transform: none;
  transition-delay: 3.25s;
}

.hero-with-photo .container,
.hero-content .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-with-photo .hero-grid {
  width: 100%;
  max-width: 1180px;
  align-items: center;
  justify-content: start;
  transform: none;
}

/* Solo copy hero — no side card, pushed right */
.hero-with-photo .hero-grid-solo,
.hero-content .hero-grid-solo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 42rem;
  margin: 0;
  margin-left: auto;
  margin-right: clamp(1rem, 8vw, 6rem);
  justify-items: end;
}

.hero-with-photo .hero-grid-solo .hero-copy,
.hero-content .hero-grid-solo .hero-copy {
  grid-column: 1;
  max-width: 40rem;
  width: 100%;
  align-self: center;
  justify-self: end;
  text-align: left;
  transform: none;
}

/*
 * Quiet luxury type on light paper hero (fEdfE)
 * Charcoal on white — no black plate
 */
.hero-with-photo .hero-copy,
.hero-content .hero-copy {
  max-width: 36rem;
  min-width: 0;
  width: 100%;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #111;
}

.hero-with-photo .hero-copy .eyebrow,
.hero-content .hero-copy .eyebrow {
  margin-bottom: 1rem;
  color: #6b5b4a;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  text-shadow: none;
}

.hero-with-photo .hero-copy h1,
.hero-content .hero-copy h1 {
  margin-bottom: 1.1rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #111;
  text-wrap: balance;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.85rem);
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.hero-with-photo .hero-copy h1 .hero-line,
.hero-content .hero-copy h1 .hero-line {
  display: inline-block;
}

.hero-with-photo .hero-copy h1 em.hero-line,
.hero-with-photo .hero-copy h1 em,
.hero-content .hero-copy h1 em.hero-line,
.hero-content .hero-copy h1 em {
  color: #8a7048;
  font-style: italic;
  font-weight: 400;
  text-shadow: none;
}

.hero-with-photo .hero-sub,
.hero-content .hero-sub {
  max-width: 28rem;
  margin: 0 0 0.2rem;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(28, 25, 23, 0.72);
  text-shadow: none;
}

.hero-with-photo .hero-ctas {
  margin: 1.6rem 0 1.35rem;
  gap: 0.75rem;
}

.hero-with-photo .hero-ctas .btn {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0;
  box-shadow: none;
}

/* Solid black primary on paper hero */
.hero-with-photo .hero-ctas .btn:not(.btn-ghost) {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111 !important;
}

.hero-with-photo .hero-ctas .btn:not(.btn-ghost):hover {
  background: transparent !important;
  color: #111 !important;
  border-color: #111 !important;
}

/* Outline secondary */
.hero-with-photo .hero-ctas .btn-ghost {
  color: #111 !important;
  border: 1px solid rgba(17, 17, 17, 0.55) !important;
  background: transparent !important;
  backdrop-filter: none;
  text-shadow: none;
}

.hero-with-photo .hero-ctas .btn-ghost:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}

.trust-chips {
  gap: 0.55rem 1.1rem !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-chips li {
  padding: 0 !important;
  border-radius: 0;
  background: none !important;
  border: 0 !important;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 25, 23, 0.72);
  box-shadow: none;
  backdrop-filter: none;
  text-shadow: none;
}

.trust-chips li::before {
  display: none !important;
}

/* —— Side card + image —— */
.hero-side {
  width: 100%;
  max-width: 400px;
  min-width: 0;
}

.hero-side-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(28, 25, 23, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(10px);
}

.hero-media {
  margin: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 200px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8e4df, #d6d0c8);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transform: scale(1.02);
}

.hero-side-body {
  padding: 0.95rem 1.05rem 1.05rem;
}

.hero-side-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.hero-side-label {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 0.18rem;
}

.hero-side-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.hero-side-card .flow-play {
  flex-shrink: 0;
  margin-top: 0.05rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.74rem;
}

.hero-path {
  gap: 0.34rem !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Readable at rest — not washed out */
.hero-path .flow-step {
  padding: 0.5rem 0.68rem !important;
  font-size: 0.84rem !important;
  border-radius: 10px !important;
  opacity: 0.78;
  gap: 0.65rem !important;
  line-height: 1.3;
}

.hero-path .flow-step.active,
.hero-path .flow-step.done {
  opacity: 1;
}

.hero-path .flow-step span:first-child {
  font-size: 0.68rem;
  padding-top: 0.1rem;
  min-width: 1.4rem;
}

.hero-side-card .flow-meter {
  margin-top: 0.7rem;
  height: 3px;
}

@media (max-width: 1100px) {
  .hero-with-photo .hero-grid {
    grid-template-columns:
      minmax(0.25rem, 2vw)
      minmax(0, 30rem)
      minmax(250px, 340px)
      minmax(0, 0.9fr);
    transform: rotate(-0.4deg);
  }

  .hero-with-photo .hero-copy {
    transform: translate3d(0, -0.75rem, 0);
  }

  .hero-with-photo .hero-side {
    transform: translate3d(0, 1.1rem, 0) rotate(0.4deg);
  }

  .hero-with-photo .hero-copy h1 {
    font-size: clamp(2.35rem, 4.2vw, 3.4rem);
  }

  .hero-side {
    max-width: 360px;
  }

  .hero-media {
    max-height: 180px;
  }
}

@media (max-width: 960px) {
  .hero-with-photo,
  .page-compact .hero-compact {
    min-height: 100svh;
    height: auto;
  }

  .hero-with-photo .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    justify-items: start;
    max-width: 480px;
    margin-right: auto;
    transform: none;
  }

  .hero-with-photo .hero-grid-solo,
  .hero-content .hero-grid-solo {
    margin-left: auto;
    margin-right: clamp(0.75rem, 5vw, 2rem);
    max-width: min(36rem, 100%);
  }

  .hero-with-photo .hero-copy {
    grid-column: 1;
    max-width: 36rem;
    justify-self: end;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 760px) {
  .hero-with-photo,
  .page-compact .hero-compact {
    height: auto;
    min-height: 100svh;
    padding: 6.5rem 0 2.75rem;
  }

  .hero-with-photo .hero-grid {
    max-width: none;
    transform: none;
  }

  .hero-with-photo .hero-copy h1 {
    font-size: clamp(2.1rem, 8.5vw, 2.65rem);
    margin-bottom: 0.85rem;
  }

  .hero-with-photo .hero-grid-solo,
  .hero-content .hero-grid-solo {
    margin-left: auto;
    margin-right: 0.75rem;
    max-width: min(34rem, calc(100% - 1rem));
  }

  .hero-with-photo .hero-copy {
    max-width: none;
    justify-self: end;
    transform: none;
  }

  .hero-with-photo .hero-sub {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-with-photo .hero-ctas {
    margin: 1.15rem 0 1rem;
  }

  .hero-with-photo .hero-ctas .btn {
    white-space: normal;
  }

  .hero-side {
    max-width: 100%;
  }

  .hero-side-card {
    border-radius: 18px;
  }

  .hero-media {
    max-height: 168px;
  }

  .hero-side-body {
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .hero-path .flow-step {
    padding: 0.46rem 0.6rem !important;
    font-size: 0.82rem !important;
  }

  .trust-chips {
    gap: 0.35rem !important;
  }

  .hero-photo-bg .hero-bg-video.is-active {
    opacity: 1;
  }

  .hero-content {
    padding: 1.5rem 0;
  }

  .hero-with-photo .hero-copy,
  .hero-content .hero-copy {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .hero-with-photo .hero-copy h1,
  .hero-content .hero-copy h1 {
    font-size: clamp(2.2rem, 8.5vw, 2.85rem);
  }

  .hero-with-photo .hero-ctas .btn {
    border-radius: 0;
  }
}

/* Compact 4-section marketing page */
.page-compact .hero-compact {
  padding: 6.75rem 0 3.5rem;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  box-sizing: border-box;
}

.page-compact .section-compact {
  padding: 3.5rem 0;
}

/* Parallax layers */
[data-parallax] {
  will-change: transform;
  backface-visibility: hidden;
}

.section-parallax {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.section-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  will-change: transform;
}

.section-orb-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, rgba(169, 215, 208, 0.45), transparent 68%);
}

.section-orb-b {
  width: min(40vw, 340px);
  height: min(40vw, 340px);
  bottom: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(179, 229, 252, 0.28), transparent 70%);
}

.section-orb-c {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  top: 18%;
  right: -10%;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.12), transparent 70%);
  opacity: 0.7;
}

#system > .container,
#examples > .examples-container {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax] {
    transform: none !important;
  }
}

/* Section brand colors — calm trust luxury (Thyの仕組み) */
#system {
  position: relative;
  color: rgba(248, 250, 252, 0.92);
  overflow: hidden;
  /* Soft deep navy — polished, not aggressive */
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(208, 232, 242, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 100%, rgba(184, 149, 108, 0.1), transparent 50%),
    linear-gradient(168deg, #0e3a63 0%, #0f4c81 42%, #0d4473 78%, #0b355c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

#system::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(255, 255, 255, 0.06), transparent 65%);
}

#system > .container {
  position: relative;
  z-index: 1;
}

#system .section-parallax {
  z-index: 0;
}

#system .section-orb-a {
  background: radial-gradient(circle, rgba(208, 232, 242, 0.28), transparent 68%);
  opacity: 0.5;
  filter: blur(52px);
}

#system .section-orb-b {
  background: radial-gradient(circle, rgba(184, 149, 108, 0.14), transparent 70%);
  opacity: 0.45;
  filter: blur(56px);
}

#system .section-head .eyebrow {
  color: #d0e8f2;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-shadow: none;
}

#system .section-head h2 {
  color: #ffffff;
  letter-spacing: -0.015em;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.15);
}

#system .section-head .lede {
  color: rgba(232, 240, 248, 0.78);
}

/* Soft glass cards — calm & trustworthy */
#system .pillar {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(248, 250, 252, 0.92);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

#system .pillar h3 {
  color: #ffffff;
  letter-spacing: -0.01em;
}

#system .pillar p {
  color: rgba(226, 236, 246, 0.72);
}

#system .pillar-num {
  color: #c9b896;
  font-family: var(--font-nums);
  letter-spacing: 0.14em;
}

#system .pillar:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 32px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}

/* Active = quiet white card (clinic trust) */
#system .pillar.active {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 #fff;
  color: var(--ink);
  transform: translateY(-4px);
}

#system .pillar.active h3 {
  color: #0a2540;
}

#system .pillar.active p {
  color: #5a6a7a;
}

#system .pillar.active .pillar-num {
  color: #b8956c;
  text-shadow: none;
}

#system .system-stage {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#system .system-stage-track {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  height: 5px;
}

#system .system-stage-fill {
  background: linear-gradient(90deg, #c9b896 0%, #e2d4b8 100%);
  box-shadow: 0 0 10px rgba(201, 184, 150, 0.25);
}

#system .system-stage-label {
  color: #ffffff;
  letter-spacing: 0.02em;
  font-weight: 500;
}

#system .system-dot {
  background: rgba(15, 76, 129, 0.55);
  border-color: rgba(208, 232, 242, 0.65);
  box-shadow: none;
}

#system .system-dot.active {
  background: #c9b896;
  border-color: #e2d4b8;
  box-shadow: 0 0 8px rgba(201, 184, 150, 0.35);
  transform: scale(1.12);
}

/* Demos section — featured-work gallery (calm agency portfolio) */
.page-compact .examples-section.demo-atelier {
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 70% 45% at 10% 0%, rgba(255, 255, 255, 0.9), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(15, 76, 129, 0.05), transparent 55%),
    #f4f7fa;
  color: var(--ink);
}

/* DD.NYC-inspired featured case layout */
.page-compact .examples-section.demo-featured .featured-head .eyebrow {
  color: #0f4c81;
  letter-spacing: 0.18em;
}

.page-compact .examples-section.demo-featured .featured-head h2 {
  color: #0a2540;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  letter-spacing: -0.025em;
}

.page-compact .examples-section.demo-featured .featured-head .lede {
  color: #5a6a7a;
  max-width: 36rem;
}

.page-compact .examples-section.demo-featured .featured-filters {
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 999px;
  padding: 0.3rem;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.06);
  gap: 0.15rem;
  margin-bottom: 1.75rem;
}

.page-compact .examples-section.demo-featured .featured-filters .demo-tab {
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #5a6a7a;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.7rem 1.15rem;
  min-height: 44px;
}

.page-compact .examples-section.demo-featured .featured-filters .demo-tab .demo-tab-index {
  display: none;
}

.page-compact .examples-section.demo-featured .featured-filters .demo-tab:hover {
  color: #0a2540;
  background: rgba(15, 76, 129, 0.05);
}

.page-compact .examples-section.demo-featured .featured-filters .demo-tab.active {
  background: #0a2540;
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.2);
}

.page-compact .examples-section.demo-featured .featured-filters .demo-tab-indicator {
  display: none;
}

.page-compact .examples-section.demo-featured .featured-case {
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.08);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow:
    0 18px 48px rgba(15, 76, 129, 0.08),
    0 2px 6px rgba(15, 76, 129, 0.04);
  gap: 1.25rem;
}

.page-compact .examples-section.demo-featured .featured-case-index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f4c81;
  margin-bottom: 0.45rem;
}

.page-compact .examples-section.demo-featured .featured-case-copy h3 {
  color: #0a2540;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.page-compact .examples-section.demo-featured .featured-case-copy p {
  color: #5a6a7a;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 38rem;
}

.page-compact .examples-section.demo-featured .featured-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
}

.page-compact .examples-section.demo-featured .featured-tags li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #0f4c81;
  background: rgba(15, 76, 129, 0.07);
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
}

.page-compact .examples-section.demo-featured .featured-view-btn {
  background: #0a2540 !important;
  color: #fff !important;
  border: 1px solid #0a2540 !important;
  border-radius: 999px !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  min-height: 46px;
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.18);
}

.page-compact .examples-section.demo-featured .featured-view-btn:hover {
  background: #0f4c81 !important;
  border-color: #0f4c81 !important;
}

.page-compact .examples-section.demo-featured .featured-media-frame {
  position: relative;
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid rgba(15, 76, 129, 0.1);
  box-shadow: 0 16px 40px rgba(15, 76, 129, 0.1);
}

.page-compact .examples-section.demo-featured .featured-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  margin: 0;
  border: 0;
  cursor: pointer;
  background: rgba(10, 37, 64, 0);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease;
  pointer-events: none;
}

.page-compact .examples-section.demo-featured .featured-media-overlay span {
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(8px);
  transform: translateY(8px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-compact .examples-section.demo-featured .featured-media-frame:hover .featured-media-overlay,
.page-compact .examples-section.demo-featured .featured-media-frame:focus-within .featured-media-overlay {
  opacity: 1;
  background: rgba(10, 37, 64, 0.28);
  pointer-events: auto;
}

.page-compact .examples-section.demo-featured .featured-media-frame:hover .featured-media-overlay span,
.page-compact .examples-section.demo-featured .featured-media-frame:focus-within .featured-media-overlay span {
  transform: none;
}

.page-compact .examples-section.demo-featured .demo-caption {
  color: #7a8a9a;
  font-size: 0.8rem;
}

.page-compact .examples-section.demo-featured .featured-footer {
  margin-top: 2.5rem;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 76, 129, 0.06);
}

.page-compact .examples-section.demo-featured .featured-footer .demo-footer-kicker {
  color: #0f4c81 !important;
}

.page-compact .examples-section.demo-featured .featured-footer p {
  color: #0a2540;
}

.page-compact .examples-section.demo-featured .atelier-meta,
.page-compact .examples-section.demo-featured .demo-exhibit-rule,
.page-compact .examples-section.demo-featured .atelier-grid,
.page-compact .examples-section.demo-featured .atelier-vignette,
.page-compact .examples-section.demo-featured .examples-grain {
  display: none !important;
}

@media (max-width: 760px) {
  .page-compact .examples-section.demo-featured .featured-case {
    padding: 1rem 0.85rem 1rem;
    border-radius: 16px;
  }

  .page-compact .examples-section.demo-featured .featured-filters {
    border-radius: 16px;
    overflow-x: auto;
  }

  .page-compact .examples-section.demo-featured .featured-filters .demo-tab {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 0.65rem 0.9rem;
    font-size: 0.75rem;
  }

  .page-compact .examples-section.demo-featured .featured-media-overlay {
    /* touch: show subtle always-available cue without blocking play button */
    opacity: 0;
    pointer-events: none;
  }
}

.page-compact .examples-section.demo-atelier .examples-beam {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55), transparent 68%);
  opacity: 0.75;
}

.page-compact .examples-section.demo-atelier .examples-grain {
  opacity: 0.025;
}

.page-compact .examples-section.demo-atelier .examples-head .eyebrow {
  color: var(--gold);
  letter-spacing: 0.2em;
}

.page-compact .examples-section.demo-atelier .examples-head h2 {
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.page-compact .examples-section.demo-atelier .examples-head .lede,
.page-compact .examples-section.demo-atelier .demo-note,
.page-compact .examples-section.demo-atelier .demo-copy > p,
.page-compact .examples-section.demo-atelier .demo-caption {
  color: var(--muted);
}

.page-compact .examples-section.demo-atelier .demo-copy h3 {
  color: var(--charcoal);
}

.page-compact .examples-section.demo-atelier .demo-kicker {
  color: var(--gold);
}

.page-compact .examples-section.demo-atelier .ba-points-static .ba-point {
  color: rgba(28, 25, 23, 0.72);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(28, 25, 23, 0.08);
}

.page-compact .examples-section.demo-atelier .ba-points-static .ba-point-after {
  color: var(--charcoal);
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(255, 255, 255, 0.78);
}

.page-compact .examples-section.demo-atelier .demo-footer-cta {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 25, 23, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 14px 36px rgba(15, 76, 129, 0.1);
}

.page-compact .examples-section.demo-atelier .demo-footer-cta p {
  color: var(--charcoal);
}

.page-compact .examples-section.demo-atelier .demo-footer-kicker {
  color: var(--gold) !important;
}

.page-compact .examples-section.demo-atelier .demo-footer-btn-ghost {
  color: var(--charcoal) !important;
  border-color: rgba(28, 25, 23, 0.16) !important;
  background: rgba(255, 255, 255, 0.55) !important;
}

.page-compact .examples-section.demo-atelier .demo-footer-btn {
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.12) !important;
}

.page-compact .examples-section.demo-atelier .demo-caption {
  color: rgba(28, 25, 23, 0.5);
}

.page-compact .site-footer-compact {
  padding: 2.25rem 0 5rem;
}

.page-compact .section-head {
  margin-bottom: 1.75rem;
}

.page-compact .demo-copy {
  margin-bottom: 0.5rem;
}

.page-compact .exp-embed-frame {
  min-height: 360px;
}

.page-compact .exp-embed-frame-ig {
  min-height: 420px;
}

:root {
  --ivory: #f7f3ee;
  --cream: #fbf8f4;
  --blush: #e8d5cc;
  --champagne: #c4a484;
  --gold: #b8956c;
  --charcoal: #1c1917;
  --ink: #292524;
  --muted: #78716c;
  --line: rgba(28, 25, 23, 0.08);
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(28, 25, 23, 0.08);
  --radius: 18px;
  /* Premium Clinic Outreach
     EN: Playfair Display (headlines) + Montserrat (body)
     JA: Noto Serif JP (headlines) + Noto Sans JP (body) */
  --font-display: "Playfair Display", "Noto Serif JP", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  --font-serif-jp: "Noto Serif JP", "Playfair Display", serif;
  --font-sans-jp: "Noto Sans JP", "Montserrat", sans-serif;
  /* Sans-serif numerals (lining + tabular where possible) */
  --font-nums: "Montserrat", "Noto Sans JP", system-ui, sans-serif;
}

/* Force 0–9 and common numeric symbols into sans-serif faces */
@font-face {
  font-family: "Thy Numerals";
  src: local("Montserrat Regular"), local("Montserrat"), local("Noto Sans JP");
  unicode-range: U+0030-0039, U+0025, U+002B, U+002C, U+002E, U+002F, U+003A, U+002D, U+0023, U+FF10-FF19;
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Thy Numerals", var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* English default — elegant serif display + clean Montserrat body */
body.lang-en {
  --font-display: "Playfair Display", "Noto Serif JP", Georgia, serif;
  --font-body: "Montserrat", "Noto Sans JP", system-ui, sans-serif;
}

/* Japanese — Noto Serif JP headlines + Noto Sans JP body */
body.lang-ja {
  --font-display: "Noto Serif JP", "Playfair Display", serif;
  --font-body: "Noto Sans JP", "Montserrat", system-ui, sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.85;
}

body.lang-ja h1,
body.lang-ja h2,
body.lang-ja h3,
body.lang-ja h4,
body.lang-ja .logo,
body.lang-ja .flow-label,
body.lang-ja .package-name,
body.lang-ja .process-list strong,
body.lang-ja .demo-copy h3,
body.lang-ja .examples-head h2 {
  font-family: var(--font-serif-jp);
  font-weight: 600;
  letter-spacing: 0.06em;
}

body.lang-ja h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  line-height: 1.45;
  font-weight: 600;
}

body.lang-ja h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.5;
  font-weight: 600;
}

body.lang-ja h3 {
  font-weight: 600;
  line-height: 1.55;
}

body.lang-ja p,
body.lang-ja li,
body.lang-ja label,
body.lang-ja input,
body.lang-ja textarea,
body.lang-ja select,
body.lang-ja button,
body.lang-ja .btn,
body.lang-ja .nav {
  font-family: var(--font-sans-jp);
  letter-spacing: 0.04em;
}

/* English accents stay Montserrat/Playfair even in mixed UI chrome */
.logo {
  font-family: "Playfair Display", var(--font-display);
  font-weight: 500;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

/* Page progress */
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--blush), #a9d7d0);
  transition: width 0.12s linear;
  box-shadow: 0 0 12px rgba(184, 149, 108, 0.35);
}

/* Cursor glow */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 149, 108, 0.12), transparent 65%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.has-pointer .cursor-glow {
  opacity: 1;
}

/* Header — sticky, quiet luxury */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.15rem 0;
  background: transparent;
  transition:
    background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    backdrop-filter 0.45s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(251, 248, 244, 0.82);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 10px 40px rgba(28, 25, 23, 0.06);
  border-bottom-color: rgba(28, 25, 23, 0.06);
  padding: 0.65rem 0;
}

/* Over deep navy system chapter */
.site-header.on-dark {
  background: rgba(15, 76, 129, 0.88);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.site-header.on-dark .logo {
  color: #fff;
}

.site-header.on-dark .nav a:not(.btn) {
  color: rgba(255, 255, 255, 0.72);
}

.site-header.on-dark .nav a:not(.btn):hover,
.site-header.on-dark .nav a:not(.btn).is-active {
  color: #fff;
}

.site-header.on-dark .nav a:not(.btn)::after {
  background: #a9d7d0;
}

.site-header.on-dark .lang-switch {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.on-dark .lang-btn {
  color: rgba(255, 255, 255, 0.7);
}

.site-header.on-dark .lang-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.site-header.on-dark .nav-toggle span {
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.logo {
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease,
    letter-spacing 0.35s ease,
    text-shadow 0.35s ease;
}

/* Over hero / black intro — pure white wordmark */
.site-header:not(.scrolled) .logo {
  color: #fff;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.site-header.scrolled .logo {
  font-size: 1.55rem;
  letter-spacing: 0.16em;
  color: var(--charcoal);
  text-shadow: none;
}

.logo:hover {
  transform: scale(1.03);
  color: #fff;
}

.site-header.scrolled .logo:hover {
  color: var(--gold);
}

.site-header.on-dark .logo {
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

.site-header.on-dark .logo:hover {
  color: #a9d7d0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 0.25s ease;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:not(.btn):hover,
.nav a:not(.btn).is-active {
  color: var(--charcoal);
}

.nav a:not(.btn):hover::after,
.nav a:not(.btn).is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.lang-btn {
  border: 0;
  background: transparent;
  min-width: 2.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover {
  color: var(--charcoal);
}

.lang-btn.active {
  background: var(--charcoal);
  color: var(--cream);
  transform: scale(1.02);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--charcoal);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  background: #0c0a09;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
}

.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-full {
  width: 100%;
}

/* Reveal — Rolex-like enter / soft exit storytelling */
.reveal {
  --reveal-y: 40px;
  --reveal-x: 0px;
  --reveal-scale: 1;
  --reveal-blur: 4px;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(var(--reveal-scale));
  filter: blur(var(--reveal-blur));
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform, filter;
}

.reveal.is-in,
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* Soft exit as section leaves — never abrupt */
.reveal.is-out:not(.is-in) {
  opacity: 0;
  --reveal-y: -18px;
  --reveal-blur: 3px;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(0.99);
  filter: blur(var(--reveal-blur));
  transition-duration: 0.55s, 0.65s, 0.5s;
}

.reveal-up {
  --reveal-y: 48px;
}

.reveal-down {
  --reveal-y: -32px;
}

.reveal-left {
  --reveal-x: -36px;
  --reveal-y: 18px;
}

.reveal-right {
  --reveal-x: 36px;
  --reveal-y: 18px;
}

.reveal-pop {
  --reveal-y: 20px;
  --reveal-scale: 0.94;
  --reveal-blur: 6px;
}

.reveal-fade {
  --reveal-y: 0;
  --reveal-blur: 8px;
}

/* Parallax owns transform — fade/blur only for reveal */
.reveal[data-parallax] {
  transform: none;
  filter: blur(var(--reveal-blur));
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-parallax].is-in,
.reveal[data-parallax].visible {
  transform: none;
  filter: blur(0);
}

.reveal[data-parallax].is-out:not(.is-in) {
  transform: none;
  opacity: 0.2;
  filter: blur(3px);
}

.reveal-delay {
  --reveal-delay: 0.12s;
}

.reveal-delay-2 {
  --reveal-delay: 0.22s;
}

.reveal-delay-3 {
  --reveal-delay: 0.34s;
}

.reveal-delay-4 {
  --reveal-delay: 0.46s;
}

/* Staggered story beats inside a parent */
.reveal-stagger > .reveal-child,
.reveal-stagger > .pillar,
.reveal-stagger > .trust-chips li,
.reveal-stagger > .flow-step {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(3px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s ease;
  transition-delay: calc(var(--i, 0) * 0.08s + 0.05s);
}

.reveal-stagger.is-in > .reveal-child,
.reveal-stagger.is-in > .pillar,
.reveal-stagger.is-in > .trust-chips li,
.reveal-stagger.is-in > .flow-step,
.reveal-stagger.visible > .reveal-child,
.reveal-stagger.visible > .pillar,
.reveal-stagger.visible > .trust-chips li,
.reveal-stagger.visible > .flow-step {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.hero-line {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.85rem, 0);
  filter: blur(2px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s ease;
  transition-delay: calc(var(--i, 0) * 0.1s + 0.06s);
}

.hero-copy.is-in .hero-line,
.hero-copy.visible .hero-line {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* RM hero owns line timing — don't flash text early via .is-in */
.hero-rm-reveal .hero-copy.is-in .hero-line,
.hero-rm-reveal .hero-copy.visible .hero-line {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  filter: none;
}

.hero-rm-reveal.is-lit .hero-copy.is-in .hero-line:nth-child(1),
.hero-rm-reveal.is-lit .hero-copy.visible .hero-line:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 2.15s;
}

.hero-rm-reveal.is-lit .hero-copy.is-in .hero-line:nth-child(3),
.hero-rm-reveal.is-lit .hero-copy.visible .hero-line:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 2.35s;
}

.hero-rm-reveal.is-lit .hero-copy.is-in .hero-line:nth-child(5),
.hero-rm-reveal.is-lit .hero-copy.is-in em.hero-line,
.hero-rm-reveal.is-lit .hero-copy.visible .hero-line:nth-child(5),
.hero-rm-reveal.is-lit .hero-copy.visible em.hero-line {
  opacity: 1;
  transform: none;
  transition-delay: 2.55s;
}

/* Trust chips also wait for RM sequence (not instant reveal-stagger) */
.hero-rm-reveal .reveal-stagger > .trust-chips li {
  opacity: 0 !important;
  transform: translate3d(0, 16px, 0) !important;
  filter: none !important;
  transition:
    opacity 1.4s cubic-bezier(0.33, 0, 0.2, 1) 3.25s,
    transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 3.25s !important;
}

.hero-rm-reveal.is-lit .reveal-stagger > .trust-chips li,
.hero-rm-reveal.is-lit .reveal-stagger.is-in > .trust-chips li {
  opacity: 1 !important;
  transform: none !important;
}

/* Keep hero copy sharp — no exit fade on first screen */
.hero.hero-with-photo .hero-copy.is-out:not(.is-in) {
  opacity: 1;
  filter: none;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-with-photo .hero-grid,
  .hero-with-photo .hero-copy,
  .hero-with-photo .hero-side {
    transform: none !important;
  }
}

.story-chapter {
  position: relative;
}

.story-chapter::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(120px, 30%);
  height: 1px;
  transform: translateX(-50%) scaleX(0);
  background: linear-gradient(90deg, transparent, rgba(184, 149, 108, 0.55), transparent);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  pointer-events: none;
}

.story-chapter.is-in::after {
  transform: translateX(-50%) scaleX(1);
}

/* ========== Thy Services (DD.NYC Creative Services–style scroll stack) ========== */
.services-section {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(15, 76, 129, 0.05), transparent 50%),
    #fafbfc;
  color: #0a2540;
  overflow: clip;
}

.services-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.services-sticky {
  position: sticky;
  top: 6.5rem;
  padding-bottom: 2rem;
}

.services-sticky .eyebrow {
  color: #0f4c81;
  letter-spacing: 0.18em;
  margin-bottom: 0.85rem;
}

.services-sticky-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #0a2540;
  margin-bottom: 0.85rem;
}

.services-sticky .lede {
  color: #5a6a7a;
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 22rem;
}

.services-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-block {
  min-height: min(72vh, 560px);
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(15, 76, 129, 0.1);
  opacity: 0.28;
  filter: saturate(0.85);
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-block:last-child {
  border-bottom: 1px solid rgba(15, 76, 129, 0.1);
}

.service-block.is-active {
  opacity: 1;
  filter: none;
  transform: none;
}

.service-block.is-past {
  opacity: 0.38;
}

.service-block-inner {
  width: 100%;
  max-width: 40rem;
}

.service-index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0f4c81;
  margin-bottom: 0.85rem;
  font-family: var(--font-nums);
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #0a2540;
  margin-bottom: 1.15rem;
}

/* Word-by-word scroll reveal */
.service-title .rw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.service-title .rw-inner {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s ease;
}

.service-block.is-active.words-in .rw-inner,
.service-block.is-active .rw-inner {
  transform: none;
  opacity: 1;
}

.service-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  padding: 0;
}

.service-chips li {
  font-size: 0.74rem;
  font-weight: 500;
  color: #0f4c81;
  background: rgba(15, 76, 129, 0.07);
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-block.is-active .service-chips li {
  opacity: 1;
  transform: none;
}

.service-block.is-active .service-chips li:nth-child(1) { transition-delay: 0.08s; }
.service-block.is-active .service-chips li:nth-child(2) { transition-delay: 0.12s; }
.service-block.is-active .service-chips li:nth-child(3) { transition-delay: 0.16s; }
.service-block.is-active .service-chips li:nth-child(4) { transition-delay: 0.2s; }

.service-body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #5a6a7a;
  max-width: 34rem;
  margin-bottom: 1.35rem;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 0.55s ease 0.12s,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.service-block.is-active .service-body {
  opacity: 1;
  transform: none;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0a2540;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 37, 64, 0.25);
  padding-bottom: 0.15rem;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.45s ease 0.18s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s,
    border-color 0.25s ease,
    color 0.25s ease;
}

.service-block.is-active .service-link {
  opacity: 1;
  transform: none;
}

.service-link::after {
  content: "→";
  transition: transform 0.25s ease;
}

.service-link:hover {
  color: #0f4c81;
  border-color: #0f4c81;
}

.service-link:hover::after {
  transform: translateX(3px);
}

@media (max-width: 960px) {
  .services-shell {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .services-sticky {
    position: relative;
    top: 0;
    padding-bottom: 0.5rem;
  }

  .services-sticky .lede {
    max-width: none;
  }

  .service-block {
    min-height: auto;
    padding: 1.75rem 0;
  }

  .service-title {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
  }

  .service-body {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-block,
  .service-title .rw-inner,
  .service-chips li,
  .service-body,
  .service-link {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Soft bottom chapter rule — calm accent */
#system.story-chapter::after {
  left: 50%;
  right: auto;
  top: auto;
  bottom: 0;
  width: min(100px, 28%);
  height: 1px;
  transform: translateX(-50%) scaleX(0);
  background: linear-gradient(90deg, transparent, rgba(201, 184, 150, 0.55), transparent);
}

#system.story-chapter.is-in::after {
  transform: translateX(-50%) scaleX(1);
}

/* Hero */
.hero {
  position: relative;
  padding: 9.5rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(232, 213, 204, 0.55), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(196, 164, 132, 0.12), transparent 55%),
    var(--cream);
  overflow: hidden;
}

/* Film / image heroes start pure black before reveal */
.hero.hero-with-video,
.hero.hero-with-image {
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .hero-blackout {
    transition: none;
    opacity: 0 !important;
  }

  .hero-rm-reveal::after {
    transition: none !important;
    opacity: 1 !important;
  }

  .hero-main-img,
  .hero-bg-video,
  .hero-rm-reveal .hero-content,
  .hero-rm-reveal .hero-copy .eyebrow,
  .hero-rm-reveal .hero-copy h1 .hero-line,
  .hero-rm-reveal .hero-copy .hero-sub,
  .hero-rm-reveal .hero-copy .hero-ctas,
  .hero-rm-reveal .hero-copy .trust-chips {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite;
}

.hero-orb-1 {
  width: 280px;
  height: 280px;
  top: 12%;
  right: 8%;
  background: rgba(232, 213, 204, 0.45);
}

.hero-orb-2 {
  width: 200px;
  height: 200px;
  bottom: 8%;
  left: 5%;
  background: rgba(184, 149, 108, 0.18);
  animation-delay: -4s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

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

h1,
h2,
h3,
h4 {
  font-family: "Thy Numerals", var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* UI numbers always use sans-serif numerals */
.stat-value,
.stat-value span,
.demo-tab-index,
.demo-step-num,
.pillar-num,
.card-icon,
.phone-time,
.ba-meter-top strong,
.ba-scrub-labels,
.package-badge,
.process-item::before,
.flow-step span:first-child,
.ig-likes,
.ig-likes strong,
[data-count],
.copyright,
.lang-btn {
  font-family: var(--font-nums) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-style: normal;
}

h1 {
  font-size: clamp(2.7rem, 5.8vw, 4.2rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

h2 {
  font-size: clamp(1.95rem, 3.8vw, 2.85rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
  letter-spacing: 0;
}

.hero-sub,
.lede {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 34rem;
  letter-spacing: 0.015em;
  line-height: 1.75;
}

.btn,
.nav,
.lang-btn,
.package-name {
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.lede.light {
  color: rgba(247, 243, 238, 0.82);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 2rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.trust-strip li {
  position: relative;
  padding-left: 0.9rem;
}

.trust-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--champagne);
}

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.flow-card {
  width: min(100%, 400px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.12);
}

.flow-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.flow-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--charcoal);
}

.flow-play {
  border: 1px solid var(--line);
  background: var(--ivory);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--charcoal);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.flow-play:hover {
  background: var(--charcoal);
  color: var(--cream);
  transform: scale(1.03);
}

.flow-steps {
  display: grid;
  gap: 0.7rem;
}

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: var(--ivory);
  font-size: 0.95rem;
  color: var(--ink);
  border: 1px solid transparent;
  opacity: 0.55;
  transform: translateX(0);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.flow-step span:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding-top: 0.15rem;
}

.flow-step.active,
.flow-step.done {
  opacity: 1;
  background: #fff;
  border-color: rgba(184, 149, 108, 0.28);
  box-shadow: 0 8px 20px rgba(184, 149, 108, 0.08);
}

.flow-step.active {
  transform: translateX(4px);
  background: linear-gradient(135deg, #fff, #faf4ee);
}

.flow-meter {
  margin-top: 1rem;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.flow-meter-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--blush));
  transition: width 0.4s ease;
}

/* Stats */
.stats-section {
  padding: 2.5rem 0 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1.4rem 1rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--charcoal);
  line-height: 1.1;
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
}

.section-muted {
  background: var(--ivory);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

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

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

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(184, 149, 108, 0.25);
}

.card-icon {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pillar {
  text-align: left;
  padding: 1.6rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--ivory));
  border: 1px solid var(--line);
  min-height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 149, 108, 0.3);
}

.pillar.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.18);
  transform: translateY(-6px);
}

.pillar.active h3,
.pillar.active .pillar-num {
  color: var(--cream);
}

.pillar.active p {
  color: rgba(247, 243, 238, 0.78);
}

.pillar-num {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.96rem;
}

.system-stage {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.system-stage-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  margin-bottom: 1rem;
}

.system-stage-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--blush));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.system-dots {
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.system-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--champagne);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.system-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}

.system-stage-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--charcoal);
}

/* Services tabs */
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.service-tab {
  border: 0;
  background: transparent;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.service-tab:hover {
  color: var(--charcoal);
}

.service-tab.active {
  background: var(--charcoal);
  color: var(--cream);
  transform: scale(1.02);
}

.service-panels {
  position: relative;
  min-height: 220px;
}

.service-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  animation: panelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.04);
}

.service-panel.active {
  display: block;
}

.service-panel p {
  color: var(--muted);
  max-width: 46rem;
}

.service-panel ul {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.service-panel li {
  position: relative;
  padding-left: 1rem;
}

.service-panel li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold);
}

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

/* Process */
.process-list {
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

.process-item {
  display: grid;
  grid-template-columns: 3rem 12rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-item:hover {
  transform: translateX(6px);
  border-color: rgba(184, 149, 108, 0.3);
  box-shadow: var(--shadow);
}

.process-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.process-list strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.process-list span {
  color: var(--muted);
}

/* Packages */
.package {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
}

.package .btn {
  margin-top: auto;
  align-self: flex-start;
}

.package-name {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.package ul {
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.package li {
  padding-left: 1rem;
  position: relative;
}

.package li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

.package.featured {
  background: var(--charcoal);
  color: var(--cream);
  border-color: transparent;
  transform: translateY(-6px);
}

.package.featured:hover {
  transform: translateY(-10px);
}

.package.featured h3,
.package.featured .package-name {
  color: var(--cream);
}

.package.featured .package-name,
.package.featured li::before {
  color: var(--blush);
}

.package.featured p,
.package.featured ul {
  color: rgba(247, 243, 238, 0.78);
}

.package.featured .btn {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}

.package-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(232, 213, 204, 0.18);
  color: var(--blush);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

/* Who */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.check-list,
.x-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.check-list li,
.x-list li {
  padding-left: 1.4rem;
  position: relative;
  transition: transform 0.25s ease, color 0.25s ease;
}

.check-list li:hover,
.x-list li:hover {
  transform: translateX(4px);
  color: var(--charcoal);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.x-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #a8a29e;
}

.check-list.light li {
  color: rgba(247, 243, 238, 0.85);
}

.check-list.light li:hover {
  color: var(--cream);
}

/* Infinite marquee band (DD.NYC tagline style) */
.marquee-band {
  position: relative;
  overflow: hidden;
  background: #0a2540;
  color: #f8fafc;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.15rem 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  color: rgba(248, 250, 252, 0.92);
}

.marquee-dot {
  color: #c9b896;
  font-size: 0.55rem;
  opacity: 0.85;
}

@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

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

/* Trust case-study section — inspired by bold project pages (NYCFC-style editorial) */
.trust-casestudy {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  color: #f4f7fb;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(56, 120, 200, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 90%, rgba(15, 76, 129, 0.35), transparent 50%),
    linear-gradient(165deg, #050a12 0%, #0a1628 45%, #0c1f3a 100%);
}

.trust-cs-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.trust-cs-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.trust-cs-glow-a {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  top: -8%;
  left: -6%;
  background: rgba(80, 140, 220, 0.25);
}

.trust-cs-glow-b {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  bottom: 5%;
  right: -8%;
  background: rgba(15, 76, 129, 0.35);
}

.trust-cs-keygrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  margin-bottom: 2.75rem;
}

.trust-cs-media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #0b1220;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(56, 130, 210, 0.12);
  /* Case-study clip reveal */
  clip-path: inset(12% 8% 12% 8% round 18px);
  opacity: 0.55;
  transform: scale(0.96);
  transition:
    clip-path 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.9s ease,
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-casestudy.is-in .trust-cs-media-frame,
.trust-casestudy.is-animated .trust-cs-media-frame {
  clip-path: inset(0 0 0 0 round 18px);
  opacity: 1;
  transform: none;
}

.trust-cs-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.12);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
  will-change: transform;
}

.trust-casestudy.is-in .trust-cs-media-frame img,
.trust-casestudy.is-animated .trust-cs-media-frame img {
  transform: scale(1.04);
}

.trust-cs-media-frame:hover img {
  transform: scale(1.08);
}

.trust-cs-media-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(5, 10, 18, 0.75) 100%),
    linear-gradient(90deg, rgba(5, 10, 18, 0.15), transparent 50%);
  pointer-events: none;
}

/* Soft light sweep across media (case-study sheen) */
.trust-cs-media-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  opacity: 0;
}

.trust-casestudy.is-animated .trust-cs-media-shine {
  animation: trustShine 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

@keyframes trustShine {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.trust-cs-glow-a {
  animation: trustOrbA 12s ease-in-out infinite alternate;
}

.trust-cs-glow-b {
  animation: trustOrbB 14s ease-in-out infinite alternate;
}

@keyframes trustOrbA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8%, 6%, 0) scale(1.08); }
}

@keyframes trustOrbB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, -8%, 0) scale(1.1); }
}

/* Intro column cascade */
.trust-cs-intro .trust-cs-eyebrow,
.trust-cs-intro .trust-cs-title,
.trust-cs-intro .trust-cs-lede,
.trust-cs-intro .trust-cs-chips,
.trust-cs-intro .trust-cs-scope,
.trust-cs-intro .trust-cs-live {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-casestudy.is-animated .trust-cs-intro .trust-cs-eyebrow {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.trust-casestudy.is-animated .trust-cs-intro .trust-cs-title {
  opacity: 1;
  transform: none;
  transition-delay: 0.22s;
}

.trust-casestudy.is-animated .trust-cs-intro .trust-cs-lede {
  opacity: 1;
  transform: none;
  transition-delay: 0.32s;
}

.trust-casestudy.is-animated .trust-cs-intro .trust-cs-chips {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

.trust-casestudy.is-animated .trust-cs-intro .trust-cs-scope {
  opacity: 1;
  transform: none;
  transition-delay: 0.5s;
}

.trust-casestudy.is-animated .trust-cs-intro .trust-cs-live {
  opacity: 1;
  transform: none;
  transition-delay: 0.58s;
}

/* Title words (when split) */
.trust-cs-title .rw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.trust-cs-title .rw-inner {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.55s ease;
}

.trust-casestudy.is-animated .trust-cs-title .rw-inner {
  transform: none;
  opacity: 1;
}

/* Chips + scope stagger */
.trust-cs-chips li {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.96);
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.42s + var(--i, 0) * 0.06s);
}

.trust-casestudy.is-animated .trust-cs-chips li {
  opacity: 1;
  transform: none;
}

.trust-cs-scope li {
  opacity: 0;
  transform: translate3d(-8px, 0, 0);
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.52s + var(--i, 0) * 0.07s);
}

.trust-casestudy.is-animated .trust-cs-scope li {
  opacity: 1;
  transform: none;
}

.trust-cs-media-caption {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.85);
}

.trust-cs-eyebrow {
  color: #7dd3fc !important;
  letter-spacing: 0.2em;
  margin-bottom: 0.85rem;
}

.trust-cs-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1rem;
}

.trust-cs-lede {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(226, 236, 248, 0.78);
  margin-bottom: 1.25rem;
  max-width: 34rem;
}

.trust-cs-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
  padding: 0;
}

.trust-cs-chips li {
  font-size: 0.72rem;
  font-weight: 500;
  color: #d0e8f2;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.trust-cs-scope {
  margin-bottom: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-cs-scope-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin: 0 0 0.65rem;
}

.trust-cs-scope ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.trust-cs-scope li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  color: rgba(232, 240, 248, 0.88);
}

.trust-cs-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.5);
}

.trust-cs-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.15rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.trust-cs-live::after {
  content: "→";
  transition: transform 0.25s ease;
}

.trust-cs-live:hover {
  color: #7dd3fc;
  border-color: #7dd3fc;
}

.trust-cs-live:hover::after {
  transform: translateX(3px);
}

.trust-cs-showcases {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.trust-cs-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  min-height: 160px;
  padding: 1.5rem 1.4rem;
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.98);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
  transition-delay: calc(0.08s + var(--i, 0) * 0.1s);
}

.trust-casestudy.is-animated .trust-cs-panel.is-in,
.trust-cs-panel.is-in {
  opacity: 1;
  transform: none;
}

.trust-cs-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.trust-cs-panel.is-in:hover {
  transform: translateY(-4px);
}

.trust-cs-panel-num {
  font-family: var(--font-nums);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #7dd3fc;
  padding-top: 0.2rem;
}

.trust-cs-panel-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.85);
  margin-bottom: 0.4rem;
}

.trust-cs-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.45rem;
}

.trust-cs-panel p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(210, 222, 236, 0.78);
}

@media (max-width: 960px) {
  .trust-cs-keygrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .trust-cs-showcases {
    grid-template-columns: 1fr;
  }

  .trust-cs-media-frame {
    aspect-ratio: 16 / 12;
  }
}

@media (max-width: 760px) {
  .trust-casestudy {
    padding: 3.5rem 0 3rem;
  }

  .trust-cs-panel {
    min-height: 0;
    padding: 1.2rem 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-cs-media-frame,
  .trust-cs-media-frame img,
  .trust-cs-media-shine,
  .trust-cs-glow-a,
  .trust-cs-glow-b,
  .trust-cs-intro .trust-cs-eyebrow,
  .trust-cs-intro .trust-cs-title,
  .trust-cs-intro .trust-cs-lede,
  .trust-cs-intro .trust-cs-chips,
  .trust-cs-intro .trust-cs-scope,
  .trust-cs-intro .trust-cs-live,
  .trust-cs-chips li,
  .trust-cs-scope li,
  .trust-cs-panel,
  .trust-cs-title .rw-inner {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
}

/* FAQ */
.faq-section {
  padding: 4.5rem 0 5rem;
  background: #f7f9fc;
}

.faq-shell {
  max-width: 760px;
}

.faq-shell .section-head .eyebrow {
  color: #0f4c81;
}

.faq-shell .section-head h2 {
  color: #0a2540;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 76, 129, 0.06);
}

.faq-cta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #0a2540;
  letter-spacing: -0.015em;
}

.faq-cta .btn {
  border-radius: 999px;
  background: #0a2540;
  color: #fff;
  border: 1px solid #0a2540;
  padding: 0.75rem 1.25rem;
}

.faq-cta .btn:hover {
  background: #0f4c81;
  border-color: #0f4c81;
}

/* Floating “New project?” CTA (desktop) */
.float-project-cta {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: #0a2540;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(10, 37, 64, 0.28);
  transition: transform 0.25s ease, background 0.25s ease;
}

.float-project-cta:hover {
  background: #0f4c81;
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 760px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .float-project-cta {
    display: none; /* mobile uses bottom bar */
  }

  .marquee-item {
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open],
.faq-item:hover {
  border-color: rgba(184, 149, 108, 0.28);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.04);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--charcoal);
  list-style: none;
  padding: 1rem 1.2rem;
  position: relative;
  padding-right: 2.5rem;
  transition: background 0.2s ease;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-body {
  padding: 0 1.2rem 1.1rem;
}

.faq-body p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* CTA */
.cta-section {
  background:
    linear-gradient(145deg, #1c1917 0%, #292524 55%, #3f342c 100%);
  color: var(--cream);
  overflow: hidden;
}

.cta-section h2 {
  color: var(--cream);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.audit-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(247, 243, 238, 0.12);
  border-radius: 22px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.audit-form:focus-within {
  border-color: rgba(232, 213, 204, 0.35);
  box-shadow: 0 0 0 4px rgba(232, 213, 204, 0.08);
}

.form-row {
  margin-bottom: 0.95rem;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-row label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
  color: rgba(247, 243, 238, 0.72);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(247, 243, 238, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: var(--cream);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(247, 243, 238, 0.35);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--blush);
  background: rgba(0, 0, 0, 0.28);
}

.form-row select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #e8d5cc 50%),
    linear-gradient(135deg, #e8d5cc 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1.1rem), calc(100% - 13px) calc(1.1rem);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: rgba(247, 243, 238, 0.55);
  text-align: center;
}

.form-success {
  margin-top: 0.85rem;
  text-align: center;
  color: var(--blush);
  font-weight: 500;
  animation: panelIn 0.35s ease;
}

.audit-form .btn {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  background: #141210;
  color: rgba(247, 243, 238, 0.7);
  padding: 3rem 0 5.5rem;
}

.site-footer .logo {
  color: var(--cream);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-blurb {
  max-width: 28rem;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cream);
}

.copyright {
  font-size: 0.82rem;
  color: rgba(247, 243, 238, 0.4);
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.mobile-cta:hover {
  transform: translateY(-2px);
}

/* Lang transition flash */
body.lang-switching main {
  animation: langFade 0.35s ease;
}

@keyframes langFade {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .cta-grid,
  .who-grid,
  .card-grid.four,
  .pillars,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .package.featured {
    transform: none;
  }

  .process-item {
    grid-template-columns: 2.5rem 1fr;
  }

  .process-item span {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .cursor-glow {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 64px;
    background: rgba(251, 248, 244, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 99;
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 7.5rem;
  }

  .hero-grid,
  .cta-grid,
  .who-grid,
  .card-grid.two,
  .card-grid.four,
  .pillars,
  .stats-grid,
  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-content: stretch;
  }

  .flow-card {
    width: 100%;
  }

  .services-tabs {
    width: 100%;
    border-radius: 18px;
  }

  .service-tab {
    flex: 1 1 auto;
    text-align: center;
  }

  .mobile-cta {
    display: block;
  }

  .site-footer {
    padding-bottom: 6.5rem;
  }
}

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

  .reveal,
  .reveal-stagger > .pillar,
  .reveal-stagger > .trust-chips li,
  .reveal-stagger > .flow-step,
  .hero-line,
  .hero-orb,
  .service-panel,
  body.lang-switching main,
  [data-parallax] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ========== Interactive demos — premium tech / quiet luxury ========== */
.examples-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(180, 160, 130, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(120, 140, 160, 0.06), transparent 50%),
    linear-gradient(165deg, #0c0c0e 0%, #141418 42%, #0a0a0c 100%);
  color: rgba(245, 242, 236, 0.88);
  padding: 6rem 0;
}

.examples-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.examples-beam {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 55%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212, 196, 168, 0.09), transparent 68%);
  filter: blur(8px);
  animation: beamDrift 12s ease-in-out infinite;
}

.examples-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes beamDrift {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-48%) translateY(12px); }
}

.examples-container {
  position: relative;
  z-index: 1;
}

.examples-head .eyebrow {
  color: #c9b896;
  letter-spacing: 0.22em;
}

.examples-head h2 {
  color: #f5f2ec;
  letter-spacing: -0.02em;
}

.examples-head .lede {
  color: rgba(232, 228, 220, 0.62);
}

.demo-note {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  color: rgba(232, 228, 220, 0.42);
  letter-spacing: 0.02em;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  width: fit-content;
  max-width: 100%;
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.25);
}

.demo-tab {
  border: 0;
  background: transparent;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(232, 228, 220, 0.5);
  cursor: pointer;
  transition:
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: 0.01em;
}

.demo-tab-index {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(201, 184, 150, 0.55);
  font-variant-numeric: tabular-nums;
}

.demo-tab:hover {
  color: rgba(245, 242, 236, 0.9);
  background: rgba(255, 255, 255, 0.04);
}

.demo-tab.active {
  background: linear-gradient(135deg, rgba(245, 242, 236, 0.12), rgba(201, 184, 150, 0.1));
  color: #f5f2ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(201, 184, 150, 0.22),
    0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.demo-tab.active .demo-tab-index {
  color: #c9b896;
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
  animation: luxuryIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes luxuryIn {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.demo-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 184, 150, 0.45), transparent);
  opacity: 0.8;
}

.demo-layout-wide {
  align-items: start;
}

.demo-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  color: #f5f2ec;
  letter-spacing: -0.015em;
}

.demo-copy > p {
  color: rgba(232, 228, 220, 0.55);
  margin-bottom: 1.25rem;
  max-width: 32rem;
}

.demo-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9b896;
  margin-bottom: 0.75rem;
}

.demo-steps {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.demo-step button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  color: inherit;
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease;
}

.demo-step button:hover {
  transform: translateX(4px);
  border-color: rgba(201, 184, 150, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.demo-step.active button {
  border-color: rgba(201, 184, 150, 0.35);
  background:
    linear-gradient(135deg, rgba(201, 184, 150, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(201, 184, 150, 0.08);
}

.demo-step-num {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.04);
  color: #c9b896;
  border: 1px solid rgba(201, 184, 150, 0.25);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-step.active .demo-step-num {
  background: linear-gradient(145deg, #d4c4a8, #a89070);
  color: #141418;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(201, 184, 150, 0.35);
}

.demo-step strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(245, 242, 236, 0.92);
  margin-bottom: 0.15rem;
}

.demo-step em {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(232, 228, 220, 0.45);
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.examples-section .demo-controls .btn {
  background: transparent;
  color: rgba(245, 242, 236, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.examples-section .demo-controls .btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 184, 150, 0.4);
  color: #f5f2ec;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.examples-section .demo-controls .btn:not(.btn-ghost) {
  background: linear-gradient(135deg, #e8e0d4, #c9b896);
  color: #121214;
  border-color: transparent;
  font-weight: 600;
}

.examples-section .demo-controls .btn:not(.btn-ghost):hover {
  background: linear-gradient(135deg, #f0e9df, #d4c4a8);
  color: #0c0c0e;
  filter: none;
}

.demo-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  position: relative;
}

.demo-stage::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 40%;
  bottom: 8%;
  background: radial-gradient(ellipse at center, rgba(201, 184, 150, 0.14), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.demo-stage > * {
  position: relative;
  z-index: 1;
}

.demo-caption {
  font-size: 0.88rem;
  color: rgba(232, 228, 220, 0.5);
  text-align: center;
  min-height: 1.4em;
  letter-spacing: 0.02em;
}

.examples-section .phone-swipe-hint {
  color: rgba(232, 228, 220, 0.38);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Dark-luxury overrides inside examples for BA / meters / browser chrome */
.examples-section .ba-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.examples-section .ba-btn {
  color: rgba(232, 228, 220, 0.5);
}

.examples-section .ba-btn.active {
  background: linear-gradient(135deg, #e8e0d4, #c9b896);
  color: #121214;
}

.examples-section .ba-meter-top {
  color: rgba(232, 228, 220, 0.45);
}

.examples-section .ba-meter-top strong {
  color: #e8e0d4;
}

.examples-section .ba-meter-track {
  background: rgba(255, 255, 255, 0.08);
}

.examples-section .ba-meter-track i {
  background: linear-gradient(90deg, #8a7a62, #d4c4a8, #e8e0d4);
}

.examples-section .ba-point button {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(232, 228, 220, 0.55);
}

.examples-section .ba-point button:hover,
.examples-section .ba-point.active button {
  border-color: rgba(201, 184, 150, 0.35);
  color: #f5f2ec;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.examples-section .browser-frame {
  background: linear-gradient(160deg, #1a1a1e, #0e0e11);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease;
}

.examples-section .browser-frame.is-transforming {
  transform: translateY(-6px) scale(1.012);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 184, 150, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.examples-section .browser-url {
  transition: opacity 0.25s ease;
}

.examples-section .browser-bar {
  background: linear-gradient(180deg, #252528, #1a1a1e);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.examples-section .browser-url {
  background: rgba(0, 0, 0, 0.35);
  color: rgba(232, 228, 220, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.examples-section .g-type-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 242, 236, 0.85);
}

.examples-section .g-type-btn:hover {
  background: rgba(201, 184, 150, 0.12);
  border-color: rgba(201, 184, 150, 0.3);
}

/* Luxury titanium phone */
.phone-device {
  position: relative;
  width: min(100%, 300px);
  margin: 1rem auto 0.25rem;
  user-select: none;
  touch-action: pan-y;
  perspective: 900px;
}

.phone-reflection {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -18px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(201, 184, 150, 0.22), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.phone-shadow {
  position: absolute;
  inset: 10% 4% -8%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 68%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.phone-btn {
  position: absolute;
  z-index: 3;
  border-radius: 1px;
  background:
    linear-gradient(180deg, #d4cfc7 0%, #8a857c 18%, #4a4742 50%, #9a958c 82%, #cfc9bf 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.phone-btn-silent {
  left: -2.5px;
  top: 100px;
  width: 3px;
  height: 24px;
}

.phone-btn-vol-up {
  left: -2.5px;
  top: 142px;
  width: 3px;
  height: 40px;
}

.phone-btn-vol-down {
  left: -2.5px;
  top: 190px;
  width: 3px;
  height: 40px;
}

.phone-btn-power {
  right: -2.5px;
  top: 165px;
  width: 3px;
  height: 58px;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 48px;
  padding: 10px;
  background:
    linear-gradient(145deg,
      #e8e4dc 0%,
      #a8a29a 12%,
      #5c5852 28%,
      #2a2826 48%,
      #1a1918 62%,
      #6b6660 82%,
      #c4bfb6 100%);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 -8px 24px rgba(0, 0, 0, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.phone-bezel-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(115deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.05) 18%,
      transparent 36%,
      transparent 62%,
      rgba(201, 184, 150, 0.08) 78%,
      transparent 100%);
  mix-blend-mode: soft-light;
}

.phone-device:hover .phone-frame {
  transform: translateY(-8px) rotateX(2deg) rotateY(-3deg);
}

.phone-device.is-pressing .phone-frame {
  transform: scale(0.98) translateY(-2px);
}

.phone-glass {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: #050505;
  box-shadow:
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.85),
    inset 0 0 0 2.5px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.phone-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 8;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.phone-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 22%,
    transparent 40%
  );
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: soft-light;
}

.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 22px 0;
  color: #111;
  font-size: 0.74rem;
  font-weight: 600;
  pointer-events: none;
}

.phone-time {
  justify-self: start;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.phone-island {
  width: 108px;
  height: 30px;
  border-radius: 999px;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  gap: 8px;
}

.phone-island-cam {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-island-lens {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, #7dd3fc, #1d4ed8 40%, #0f172a 70%, #020617 100%);
  box-shadow:
    0 0 0 1.5px #111,
    0 0 6px rgba(56, 189, 248, 0.35);
}

.phone-status-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-status-icons .sig {
  width: 14px;
  height: 9px;
  background:
    linear-gradient(to right,
      currentColor 0 2px, transparent 2px 3px,
      currentColor 3px 5px, transparent 5px 6px,
      currentColor 6px 8px, transparent 8px 9px,
      currentColor 9px 14px);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 75% 0, 75% 40%, 50% 40%, 50% 65%, 25% 65%, 25% 80%, 0 80%);
  background: currentColor;
  opacity: 0.9;
  mask: linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) 0 100% / 3px 40%,
    linear-gradient(#000 0 0) 4px 100% / 3px 60%,
    linear-gradient(#000 0 0) 8px 100% / 3px 80%,
    linear-gradient(#000 0 0) 12px 100% / 3px 100%;
  -webkit-mask-repeat: no-repeat;
  width: 15px;
  height: 10px;
}

.phone-status-icons .wifi {
  width: 13px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  opacity: 0.9;
  position: relative;
  transform: rotate(180deg) translateY(-1px);
}

.phone-status-icons .bat {
  width: 18px;
  height: 9px;
  border: 1.4px solid currentColor;
  border-radius: 2.5px;
  position: relative;
  opacity: 0.9;
}

.phone-status-icons .bat::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  right: 30%;
  background: currentColor;
  border-radius: 1px;
}

.phone-status-icons .bat::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
  opacity: 0.7;
}

.phone-load {
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 1.5px;
  z-index: 7;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  border-radius: 999px;
  transition: opacity 0.25s ease;
}

.phone-load.on {
  opacity: 1;
}

.phone-load::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, #d4c4a8, #f5f0e8, transparent);
  animation: phoneLoad 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes phoneLoad {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}

.phone-screen {
  background: linear-gradient(180deg, #fbf8f4 0%, #f3efe9 100%);
  height: 580px;
  position: relative;
  overflow: hidden;
}

.phone-view {
  position: absolute;
  inset: 0;
  padding: 3.15rem 1rem 2.6rem;
  opacity: 0;
  transform: translate3d(40px, 0, 0) scale(0.97);
  filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  scrollbar-width: none;
  will-change: transform, opacity, filter;
}

.phone-view::-webkit-scrollbar {
  display: none;
}

.phone-view.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  z-index: 2;
}

.phone-view.is-exit {
  opacity: 0;
  transform: translate3d(-28px, 0, 0) scale(0.98);
  filter: blur(4px);
  z-index: 1;
}

.phone-view.is-enter-from-left {
  transform: translate3d(-40px, 0, 0) scale(0.97);
}

.phone-pager {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.phone-pager i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.18);
  transition: width 0.25s ease, background 0.25s ease;
}

.phone-pager i.active {
  width: 16px;
  border-radius: 999px;
  background: var(--gold);
}

.phone-home {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.28);
  z-index: 6;
}

.phone-swipe-hint {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  opacity: 0.85;
  margin-top: -0.15rem;
}

/* IG mock inside premium phone */
.ig-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.ig-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff6, transparent 40%),
    linear-gradient(135deg, #f0d5c4, #c4a484 50%, #8b6914);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(184, 149, 108, 0.55);
  flex-shrink: 0;
}

.ig-user {
  flex: 1;
  min-width: 0;
}

.ig-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
}

.ig-meta {
  font-size: 0.68rem;
  color: var(--muted);
}

.ig-follow {
  border: 0;
  background: #0095f6;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.ig-follow:hover {
  transform: scale(1.03);
}

.ig-follow.following {
  background: #efefef;
  color: var(--charcoal);
}

.ig-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 0.55rem;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.45), transparent 32%),
    radial-gradient(circle at 80% 70%, rgba(120, 90, 60, 0.35), transparent 40%),
    linear-gradient(155deg, #f6e8dc 0%, #dcc0a8 35%, #b8926e 68%, #8a6545 100%);
  cursor: pointer;
  box-shadow:
    0 18px 40px rgba(90, 70, 50, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ig-image-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(255, 255, 255, 0.04) 18px, rgba(255, 255, 255, 0.04) 19px);
  pointer-events: none;
  animation: imageSheen 5s ease-in-out infinite;
}

@keyframes imageSheen {
  0%, 100% { transform: translateX(-8%); opacity: 0.12; }
  50% { transform: translateX(8%); opacity: 0.22; }
}

.ig-image-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(255, 255, 255, 0.3), transparent 35%),
    linear-gradient(to top, rgba(20, 16, 12, 0.45), transparent 48%);
  pointer-events: none;
}

.ig-image-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  place-items: end start;
  padding: 1rem;
}

.ig-image-tag {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  max-width: 90%;
}

.ig-heart-burst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  z-index: 3;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.ig-heart-burst.pop {
  animation: heartPop 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heartPop {
  0% { opacity: 0; transform: scale(0.3); }
  25% { opacity: 1; transform: scale(1.15); }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.2); }
}

.ig-tap-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  transition: opacity 0.3s ease;
}

.ig-tap-hint.hide {
  opacity: 0;
  pointer-events: none;
}

.ig-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.25rem;
}

.ig-action {
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  color: #1c1917;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: 34px;
  height: 34px;
}

.ig-action:active {
  transform: scale(0.88);
}

.ig-comment::before,
.ig-share::before,
.ig-save::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.ig-comment::before {
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-12deg);
}

.ig-share::before {
  border-radius: 3px;
  clip-path: polygon(20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%, 0 50%);
  border: 0;
  background: transparent;
  box-shadow:
    inset 0 0 0 1.5px currentColor;
  transform: none;
  width: 14px;
  height: 14px;
  inset: auto;
  top: 10px;
  left: 10px;
}

.ig-share::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 15px;
  width: 1.5px;
  height: 10px;
  background: currentColor;
  transform: rotate(35deg);
  box-shadow: 4px 0 0 currentColor, -4px 2px 0 currentColor;
  opacity: 0.9;
}

.ig-save {
  margin-left: auto;
}

.ig-save::before {
  inset: 8px 10px 7px;
  border-radius: 2px 2px 0 0;
  border-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%);
  background: transparent;
}

.ig-like-icon {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ig-action.liked .ig-like-icon {
  color: #ed4956;
  transform: scale(1.15);
}

.ig-likes {
  font-size: 0.78rem;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
  padding: 0 0.15rem;
}

.ig-caption {
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 0.7rem;
  padding: 0 0.1rem;
}

.ig-caption strong {
  margin-right: 0.35rem;
}

.ig-cta,
.funnel-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(180deg, #292524, #1c1917);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 22px rgba(28, 25, 23, 0.18);
  position: relative;
  overflow: hidden;
}

.ig-cta::after,
.funnel-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.14) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.ig-cta:hover::after,
.funnel-btn:hover::after {
  transform: translateX(120%);
}

.ig-cta:hover,
.funnel-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.ig-cta:active,
.funnel-btn:active {
  transform: scale(0.98);
}

.ig-cta,
.funnel-btn {
  letter-spacing: 0.02em;
}

.examples-section .ig-cta,
.examples-section .funnel-btn {
  background: linear-gradient(180deg, #2a2622, #141210);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Funnel screens */
.funnel-screen {
  padding-top: 0.25rem;
}

.funnel-hero-bar {
  height: 72px;
  border-radius: 14px;
  margin-bottom: 0.9rem;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(135deg, #e8d5cc, #c4a484 55%, #a67c52);
  box-shadow: 0 10px 24px rgba(166, 124, 82, 0.2);
}

.funnel-brand {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
  color: var(--charcoal);
}

.funnel-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184, 149, 108, 0.12);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.funnel-screen h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
  font-weight: 500;
}

.funnel-sub {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.95rem;
}

.funnel-bullets {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.05rem;
  font-size: 0.84rem;
  color: var(--ink);
}

.funnel-bullets li {
  padding: 0.45rem 0.55rem 0.45rem 1.5rem;
  position: relative;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(28, 25, 23, 0.05);
}

.funnel-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0.5rem;
  color: var(--gold);
  font-size: 0.75rem;
}

.funnel-trust {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

.mock-field {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid rgba(28, 25, 23, 0.1);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  min-height: 3.1rem;
}

.mock-field:hover {
  border-color: rgba(184, 149, 108, 0.45);
}

.mock-field:active {
  transform: scale(0.99);
}

.mock-field.filled {
  border-color: rgba(184, 149, 108, 0.55);
  box-shadow: 0 0 0 3px rgba(184, 149, 108, 0.1);
  color: var(--charcoal);
}

.mock-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.mock-value {
  display: block;
  min-height: 1.15em;
  font-weight: 500;
  color: transparent;
}

.mock-field.filled .mock-value {
  color: var(--charcoal);
}

.mock-field.filled .mock-label {
  color: var(--gold);
}

.form-fill-hint {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.success-screen {
  text-align: center;
  padding-top: 1.75rem;
}

.success-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(184, 149, 108, 0.18), transparent 70%);
  animation: popIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.success-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d4af88, #b8956c 45%, #8b6914);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 12px 30px rgba(184, 149, 108, 0.4);
}

@keyframes popIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-card {
  margin: 1.1rem 0;
  padding: 0.9rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.08);
  font-size: 0.86rem;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.06);
}

.success-chip {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184, 149, 108, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

/* Browser frame */
.browser-frame {
  width: min(100%, 520px);
  background: #1c1917;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(28, 25, 23, 0.2);
}

.browser-frame-tall .browser-body {
  min-height: 360px;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #292524;
}

.browser-dots {
  display: flex;
  gap: 0.35rem;
}

.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #57534e;
  display: block;
}

.browser-dots i:nth-child(1) { background: #f87171; }
.browser-dots i:nth-child(2) { background: #fbbf24; }
.browser-dots i:nth-child(3) { background: #34d399; }

.browser-url {
  flex: 1;
  background: #1c1917;
  color: rgba(247, 243, 238, 0.7);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body {
  background: var(--cream);
  min-height: 320px;
  position: relative;
}

.site-mock {
  position: absolute;
  inset: 0;
  padding: 0.9rem;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.site-mock.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  position: relative;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.muted-links {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.68rem;
  max-width: 60%;
  text-align: right;
  opacity: 0.75;
}

.clutter-hero {
  background: #e7e5e4;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.clutter-title {
  font-size: 1.05rem;
  color: #57534e;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.clutter-sub {
  font-size: 0.78rem;
  color: #78716c;
  margin-bottom: 0.7rem;
}

.clutter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.clutter-btns span {
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
  color: #57534e;
  background: #f5f5f4;
}

.clutter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.clutter-grid div {
  height: 52px;
  border-radius: 8px;
  background: #e7e5e4;
}

.clean-cta {
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
}

.clean-hero {
  background: linear-gradient(160deg, #fff 0%, #f7f3ee 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.clean-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.clean-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 0.45rem;
}

.clean-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.clean-primary,
.as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.7rem;
  transition: transform 0.2s ease;
}

.clean-primary:hover,
.as-btn:hover {
  transform: translateY(-1px);
}

.clean-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.clean-trust span {
  position: relative;
  padding-left: 0.7rem;
}

.clean-trust span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.clean-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.clean-services div {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.7rem 0.35rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--charcoal);
}

.ba-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 0.75rem;
}

.ba-btn {
  border: 0;
  background: transparent;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ba-btn.active {
  background: var(--charcoal);
  color: var(--cream);
}

.ba-controls {
  margin-bottom: 1rem;
}

.ba-meters {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ba-meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.ba-meter-top strong {
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

.ba-meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.08);
  overflow: hidden;
}

.ba-meter-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--blush));
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ba-points {
  display: grid;
  gap: 0.55rem;
}

.ba-point button {
  width: 100%;
  text-align: left;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.7rem 0.85rem 0.7rem 1.9rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.ba-point button::before {
  content: "→";
  position: absolute;
  left: 0.75rem;
  color: var(--gold);
}

.ba-point button:hover,
.ba-point.active button {
  border-color: rgba(184, 149, 108, 0.45);
  box-shadow: 0 8px 20px rgba(184, 149, 108, 0.1);
  color: var(--charcoal);
  transform: translateX(3px);
}

/* Embedded immersive experience in demos (website tab) */
.demo-layout-experience {
  align-items: stretch;
}

/* IG / Google product demos — larger stage, tighter copy column */
.page-compact .examples-section.demo-atelier .demo-product-case.demo-layout-experience {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 1.5rem;
}

/* In-page “fullscreen” for IG + Google — no separate page / browser fullscreen */
.page-compact .examples-section.demo-atelier .demo-product-case--inplace {
  grid-template-columns: 1fr;
  gap: 1.15rem;
  padding: 1.35rem 1.35rem 1.25rem;
}

.page-compact .examples-section.demo-atelier .demo-inplace-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: none;
  width: 100%;
}

.page-compact .examples-section.demo-atelier .demo-inplace-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.page-compact .examples-section.demo-atelier .demo-inplace-text h3 {
  margin-bottom: 0.4rem;
}

.page-compact .examples-section.demo-atelier .demo-inplace-text p:last-child {
  margin-bottom: 0;
  max-width: 40rem;
}

.page-compact .examples-section.demo-atelier .demo-inplace-controls {
  flex: 0 0 auto;
  margin: 0;
}

.page-compact .examples-section.demo-atelier .demo-inplace-stage {
  width: 100%;
}

.page-compact .examples-section.demo-atelier .exp-embed-frame-inplace {
  width: 100%;
  max-width: none;
  min-height: min(72vh, 680px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

/* Google stage — landscape browser, not phone proportions */
.page-compact .examples-section.demo-atelier .exp-embed-frame-google {
  aspect-ratio: 16 / 10;
  min-height: min(62vh, 580px);
  background: #eef3f9;
}

/* Website B/A stage — dark flat product frame */
.page-compact .examples-section.demo-atelier .exp-embed-frame-web {
  aspect-ratio: 16 / 10;
  min-height: min(62vh, 580px);
  background: #0b1220;
}

.page-compact .examples-section.demo-atelier .demo-inplace-stage .demo-caption {
  margin-top: 0.65rem;
}

@media (max-width: 960px) {
  .page-compact .examples-section.demo-atelier .demo-product-case.demo-layout-experience {
    grid-template-columns: 1fr;
  }

  .page-compact .examples-section.demo-atelier .exp-embed-frame-inplace {
    height: min(72svh, 600px);
    min-height: min(72svh, 560px);
    aspect-ratio: auto;
  }
}

/* ========== Rolex-style service demonstrations ========== */
.demo-exhibit-head .demo-exhibit-rule {
  display: block;
  width: 72px;
  height: 1px;
  margin: 1rem 0 1.15rem;
  background: linear-gradient(90deg, var(--gold), rgba(184, 149, 108, 0.15));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.demo-exhibit-head.is-in .demo-exhibit-rule,
.examples-section.is-in .demo-exhibit-rule,
.demo-exhibit-head.visible .demo-exhibit-rule {
  transform: scaleX(1);
}

/* Atelier ambient layers — soft on blue field */
.atelier-grid {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(15, 76, 129, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.28) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.atelier-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(15, 76, 129, 0.08) 100%);
  pointer-events: none;
}

.atelier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.atelier-meta-chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f4c81;
  border: 1px solid rgba(15, 76, 129, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.55);
}

.atelier-spec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.55rem;
}

.atelier-spec {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f4c81;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 0.35rem;
  gap: 0.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 76, 129, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 14px 36px rgba(15, 76, 129, 0.1);
  backdrop-filter: blur(14px);
  width: fit-content;
  max-width: 100%;
  margin-bottom: 1.75rem;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-tabs .demo-tab {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  padding: 0.78rem 1.2rem;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: rgba(28, 25, 23, 0.55);
  background: transparent;
  transition:
    color 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-compact .examples-section.demo-atelier .demo-exhibit-tabs .demo-tab-index {
  color: rgba(15, 76, 129, 0.45);
  font-variant-numeric: tabular-nums;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-tabs .demo-tab:hover {
  color: var(--charcoal);
  background: transparent;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-tabs .demo-tab.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-tabs .demo-tab.active .demo-tab-index {
  color: #a9d7d0;
}

.demo-tab-indicator {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  height: calc(100% - 0.7rem);
  border-radius: 14px;
  background: linear-gradient(135deg, #0f4c81, #163a5f);
  box-shadow:
    0 10px 28px rgba(15, 76, 129, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
}

/* Exit / present chapter transitions */
.demo-panel.is-exiting {
  display: block;
  pointer-events: none;
  animation: exhibitExit 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.demo-panel.is-presenting .demo-exhibit-case {
  animation: exhibitCaseIn 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.demo-panel.is-presenting .atelier-spec-row {
  animation: exhibitFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}

.demo-panel.is-presenting .demo-exhibit-copy h3 {
  animation: exhibitTitle 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.demo-panel.is-presenting .demo-exhibit-copy > p {
  animation: exhibitFadeUp 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.demo-panel.is-presenting .demo-exhibit-points .ba-point {
  opacity: 0;
  animation: exhibitPoint 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.45s + var(--i, 0) * 0.11s);
}

.demo-panel.is-presenting .demo-exhibit-controls {
  animation: exhibitFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

.demo-panel.is-presenting .demo-exhibit-product {
  animation: exhibitProduct 1.45s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.demo-panel.is-presenting .demo-exhibit-aura {
  animation: exhibitAura 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both,
    exhibitAuraPulse 6s ease-in-out 1.5s infinite;
}

.demo-panel.is-presenting .demo-exhibit-ring {
  animation: exhibitRing 1.45s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.demo-panel.is-presenting .demo-exhibit-ring-outer {
  animation: exhibitRingOuter 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both,
    exhibitRingSpin 28s linear 1.8s infinite;
}

.demo-panel.is-presenting .demo-exhibit-pedestal {
  animation: exhibitPedestal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.demo-panel.is-presenting .demo-exhibit-scan {
  animation: exhibitScan 2.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

.demo-panel.is-presenting .demo-stage-meta {
  animation: exhibitFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both;
}

.demo-panel.is-presenting .chassis-screw {
  animation: exhibitScrew 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.demo-panel.is-presenting .chassis-screw-tl { animation-delay: 0.15s; }
.demo-panel.is-presenting .chassis-screw-tr { animation-delay: 0.22s; }
.demo-panel.is-presenting .chassis-screw-bl { animation-delay: 0.28s; }
.demo-panel.is-presenting .chassis-screw-br { animation-delay: 0.34s; }

.demo-panel.is-presenting .chassis-bridge {
  animation: exhibitBridge 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes exhibitExit {
  to {
    opacity: 0;
    transform: translateY(-22px) scale(0.98);
    filter: blur(8px);
  }
}

@keyframes exhibitCaseIn {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes exhibitFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes exhibitTitle {
  from {
    opacity: 0;
    transform: translateY(28px);
    letter-spacing: 0.06em;
  }
  to {
    opacity: 1;
    transform: none;
    letter-spacing: -0.02em;
  }
}

@keyframes exhibitPoint {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes exhibitProduct {
  from {
    opacity: 0;
    transform: translate3d(0, 64px, 0) scale(0.88) rotateX(8deg);
    filter: blur(12px);
  }
  55% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
    filter: blur(0);
  }
}

@keyframes exhibitAura {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.65);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes exhibitAuraPulse {
  0%, 100% {
    opacity: 0.45;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes exhibitRing {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.78);
  }
  to {
    opacity: 0.9;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes exhibitRingOuter {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.7) rotate(-12deg);
  }
  to {
    opacity: 0.55;
    transform: translateX(-50%) scale(1) rotate(0deg);
  }
}

@keyframes exhibitRingSpin {
  to {
    transform: translateX(-50%) scale(1) rotate(360deg);
  }
}

@keyframes exhibitPedestal {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.35);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes exhibitScan {
  0% {
    opacity: 0;
    transform: translateY(-40%);
  }
  15% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(120%);
  }
}

@keyframes exhibitScrew {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-90deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes exhibitBridge {
  from {
    opacity: 0;
    transform: scaleX(0.2);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Product case — clean SaaS card on blue field */
.page-compact .examples-section.demo-atelier .demo-exhibit-case,
.page-compact .examples-section.demo-atelier .demo-product-case {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 76, 129, 0.1);
  box-shadow:
    0 18px 40px rgba(15, 76, 129, 0.1),
    0 2px 6px rgba(15, 76, 129, 0.04);
  backdrop-filter: none;
  transform-style: flat;
  color: var(--ink);
}

.page-compact .examples-section.demo-atelier .demo-product-case .chassis-screw,
.page-compact .examples-section.demo-atelier .demo-product-case .chassis-bridge,
.page-compact .examples-section.demo-atelier .demo-product-case .demo-exhibit-aura,
.page-compact .examples-section.demo-atelier .demo-product-case .demo-exhibit-ring,
.page-compact .examples-section.demo-atelier .demo-product-case .demo-exhibit-pedestal,
.page-compact .examples-section.demo-atelier .demo-product-case .demo-exhibit-scan,
.page-compact .examples-section.demo-atelier .demo-product-case .product-bezel {
  display: none !important;
}

.page-compact .examples-section.demo-atelier .demo-product-case .demo-exhibit-product {
  border-radius: 14px;
  border: 1px solid rgba(15, 76, 129, 0.1);
  box-shadow: 0 16px 36px rgba(15, 76, 129, 0.12);
}

.page-compact .examples-section.demo-atelier .demo-exhibit-case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 149, 108, 0.65), transparent);
  opacity: 0.95;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-case::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background:
    radial-gradient(ellipse 70% 90% at 72% 100%, rgba(15, 76, 129, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 100%, rgba(201, 184, 150, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-case > * {
  position: relative;
  z-index: 1;
}

.chassis-screw {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(145deg, #d4c4a8, #8a7350);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.35);
  z-index: 3 !important;
  opacity: 0;
}

.chassis-screw::after {
  content: "";
  position: absolute;
  inset: 35% 18%;
  background: rgba(20, 16, 12, 0.55);
  height: 1.5px;
  top: 50%;
  transform: translateY(-50%);
}

.chassis-screw-tl { top: 14px; left: 14px; }
.chassis-screw-tr { top: 14px; right: 14px; }
.chassis-screw-bl { bottom: 14px; left: 14px; }
.chassis-screw-br { bottom: 14px; right: 14px; }

.chassis-bridge {
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 48%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201, 184, 150, 0.35) 20%,
    rgba(201, 184, 150, 0.12) 50%,
    rgba(201, 184, 150, 0.35) 80%,
    transparent
  );
  transform-origin: center;
  opacity: 0;
  z-index: 0 !important;
  pointer-events: none;
}

.demo-exhibit-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1.5rem 0.5rem 0.5rem;
  perspective: 1000px;
}

.demo-exhibit-aura {
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(96%, 460px);
  height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.22),
    rgba(201, 184, 150, 0.18) 28%,
    rgba(15, 76, 129, 0.12) 52%,
    transparent 72%
  );
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.demo-exhibit-ring {
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(82%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(201, 184, 150, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 50px rgba(201, 184, 150, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.demo-exhibit-ring-outer {
  top: 4%;
  width: min(96%, 460px);
  border-color: rgba(169, 215, 208, 0.12);
  border-style: dashed;
  border-width: 1px;
  box-shadow: none;
}

.demo-exhibit-pedestal {
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: min(74%, 340px);
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201, 184, 150, 0.28), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.demo-exhibit-scan {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(169, 215, 208, 0.65), transparent);
  box-shadow: 0 0 18px rgba(169, 215, 208, 0.45);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-product {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(15, 76, 129, 0.14);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 28px 60px rgba(15, 76, 129, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 30px rgba(179, 229, 252, 0.25);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.6s ease;
}

.product-bezel {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px rgba(15, 76, 129, 0.1),
    inset 0 0 24px rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 28%,
    transparent 72%,
    rgba(15, 76, 129, 0.06) 100%
  );
}

.demo-stage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.1rem;
  margin-top: 0.85rem;
  width: 100%;
}

.demo-calibre {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 76, 129, 0.55);
}

.page-compact .examples-section.demo-atelier .demo-exhibit-play {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  font-weight: 600;
  padding: 0.8rem 1.35rem !important;
  background: linear-gradient(135deg, #0f4c81, #163a5f) !important;
  color: #f7f3ee !important;
  border: 0 !important;
  box-shadow:
    0 12px 28px rgba(15, 76, 129, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-compact .examples-section.demo-atelier .demo-exhibit-play:hover::after {
  transform: translateX(120%);
}

.page-compact .examples-section.demo-atelier .demo-controls .btn-ghost {
  color: var(--charcoal) !important;
  border-color: rgba(28, 25, 23, 0.16) !important;
  background: rgba(255, 255, 255, 0.55) !important;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-copy .demo-kicker {
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  margin: 0;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-copy h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.page-compact .examples-section.demo-atelier .demo-exhibit-points .ba-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding-left: 0.85rem !important;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-points .ba-point::before {
  display: none;
}

.page-compact .examples-section.demo-atelier .point-index {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-points .ba-point:hover {
  transform: translateX(5px);
  border-color: rgba(15, 76, 129, 0.2);
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.page-compact .examples-section.demo-atelier .ba-point-after .point-index {
  color: #0f766e;
}

.demo-exhibit-rule {
  width: 96px !important;
  height: 1px !important;
  background: linear-gradient(90deg, var(--gold), rgba(184, 149, 108, 0.12)) !important;
}

.page-compact .examples-section.demo-atelier .demo-exhibit-aura {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.7),
    rgba(179, 229, 252, 0.35) 40%,
    transparent 72%
  );
}

.page-compact .examples-section.demo-atelier .demo-exhibit-ring {
  border-color: rgba(15, 76, 129, 0.2);
  box-shadow: 0 0 40px rgba(15, 76, 129, 0.08);
}

.page-compact .examples-section.demo-atelier .demo-exhibit-ring-outer {
  border-color: rgba(15, 76, 129, 0.12);
}

.page-compact .examples-section.demo-atelier .demo-exhibit-pedestal {
  background: radial-gradient(ellipse at center, rgba(15, 76, 129, 0.16), transparent 70%);
}

.page-compact .examples-section.demo-atelier .demo-exhibit-scan {
  background: linear-gradient(90deg, transparent, rgba(15, 76, 129, 0.45), transparent);
  box-shadow: 0 0 18px rgba(15, 76, 129, 0.25);
}

.page-compact .examples-section.demo-atelier .chassis-bridge {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(15, 76, 129, 0.22) 20%,
    rgba(15, 76, 129, 0.08) 50%,
    rgba(15, 76, 129, 0.22) 80%,
    transparent
  );
}

@media (max-width: 960px) {
  .chassis-bridge {
    display: none;
  }

  .page-compact .examples-section.demo-atelier .demo-exhibit-case {
    padding: 1.4rem 1.2rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-panel.is-presenting .demo-exhibit-case,
  .demo-panel.is-presenting .atelier-spec-row,
  .demo-panel.is-presenting .demo-exhibit-copy h3,
  .demo-panel.is-presenting .demo-exhibit-copy > p,
  .demo-panel.is-presenting .demo-exhibit-points .ba-point,
  .demo-panel.is-presenting .demo-exhibit-controls,
  .demo-panel.is-presenting .demo-exhibit-product,
  .demo-panel.is-presenting .demo-exhibit-aura,
  .demo-panel.is-presenting .demo-exhibit-ring,
  .demo-panel.is-presenting .demo-exhibit-pedestal,
  .demo-panel.is-presenting .demo-exhibit-scan,
  .demo-panel.is-presenting .demo-stage-meta,
  .demo-panel.is-presenting .chassis-screw,
  .demo-panel.is-presenting .chassis-bridge,
  .demo-panel.is-exiting,
  .demo-tab-indicator {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.ba-points-static {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
}

.ba-points-static .ba-point {
  font-size: 0.88rem;
  color: rgba(232, 228, 220, 0.55);
  padding: 0.65rem 0.85rem 0.65rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.ba-points-static .ba-point::before {
  content: "–";
  position: absolute;
  left: 0.55rem;
  color: #c9b896;
}

.ba-points-static .ba-point-after {
  border-color: rgba(16, 185, 129, 0.2);
  color: rgba(232, 228, 220, 0.72);
}

.ba-points-static .ba-point-after::before {
  content: "✓";
  color: #10b981;
  font-size: 0.75rem;
}

.exp-embed-stage {
  width: 100%;
  min-width: 0;
}

.exp-embed-frame {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: #050a14;
  aspect-ratio: 16 / 11;
  min-height: 420px;
}

.exp-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #050a14;
}

.exp-embed-frame-ig {
  aspect-ratio: 9 / 16;
  min-height: 460px;
  max-width: 340px;
  margin-inline: auto;
}

.exp-embed-frame-ig-line {
  /* Wide stage so left steps + full product UI fit without clipping */
  aspect-ratio: 16 / 10;
  min-height: 560px;
  max-width: none;
  width: 100%;
  margin-inline: 0;
  background: #f6f9fc;
  overflow: hidden;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Soft parent cue while demo soft-refreshes (no hard reload flash) */
.exp-embed-frame.is-demo-refreshing {
  opacity: 0.92;
  transform: scale(0.995);
}

.page-compact .exp-embed-frame-ig-line {
  min-height: 540px;
  background: #f6f9fc;
}

.page-compact .examples-section.demo-atelier .exp-embed-frame-ig-line {
  border: 1px solid rgba(15, 76, 129, 0.1);
  box-shadow: 0 16px 40px rgba(15, 76, 129, 0.12);
}

@media (max-width: 960px) {
  .exp-embed-frame {
    min-height: min(52svh, 380px);
    height: min(52svh, 400px);
    aspect-ratio: auto;
  }

  .exp-embed-frame-ig-line {
    min-height: min(72svh, 600px);
    height: min(72svh, 600px);
    aspect-ratio: auto;
  }

  .exp-embed-frame-ig {
    min-height: 440px;
    max-width: 100%;
    aspect-ratio: 9 / 14;
  }
}

/* Before/after — Arc-like fluid browser morph (legacy styles kept for other use) */
.ba-arc-stage {
  position: relative;
  width: 100%;
  padding: 1.25rem 0.5rem 0.5rem;
  isolation: isolate;
}

.ba-arc-ambient {
  position: absolute;
  inset: -8% -4% 10%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ba-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: blobFloat 9s ease-in-out infinite;
}

.ba-blob-a {
  width: 180px;
  height: 180px;
  top: 8%;
  left: 6%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.55), transparent 70%);
}

.ba-blob-b {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 0%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.4), transparent 70%);
  animation-delay: -3s;
}

.ba-blob-c {
  width: 160px;
  height: 160px;
  bottom: 18%;
  left: 35%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.08); }
}

.ba-arc-browser {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  border-radius: 22px !important;
  background: linear-gradient(165deg, #2a2a32 0%, #14141a 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset !important;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
  transition: box-shadow 0.4s ease;
}

.ba-arc-bar {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem !important;
  background: linear-gradient(180deg, #32323c, #23232c) !important;
}

.ba-arc-bar .browser-url {
  flex: 1;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  font-size: 0.78rem !important;
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ba-arc-pill {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(167, 139, 250, 0.35);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease;
}

.ba-arc-browser[data-progress-high="true"] .ba-arc-pill {
  background: linear-gradient(135deg, #38bdf8, #a78bfa);
}

.ba-browser .browser-body,
.ba-arc-compare {
  min-height: 360px;
}

.ba-compare {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #f4f2ef;
  perspective: 900px;
}

.ba-layer {
  position: absolute !important;
  inset: 0;
  padding: 0.95rem;
  margin: 0;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.94) rotateX(4deg);
  filter: blur(10px);
  pointer-events: none;
  will-change: opacity, transform, filter;
  z-index: 1;
  border-radius: 0;
  /* Arc-like springy CSS transitions when classes flip */
  transition:
    opacity 0.7s cubic-bezier(0.34, 1.4, 0.64, 1),
    transform 0.85s cubic-bezier(0.34, 1.45, 0.64, 1),
    filter 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.ba-before {
  background: #f0eeeb;
  z-index: 2;
}

.ba-after {
  background: #fbfaf8;
  z-index: 1;
}

.ba-layer.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
  filter: blur(0);
  pointer-events: auto;
  z-index: 3;
}

.ba-layer.is-exiting {
  opacity: 0;
  transform: translate3d(0, -22px, 0) scale(1.04) rotateX(-3deg);
  filter: blur(12px);
  z-index: 2;
  pointer-events: none;
}

.ba-layer.is-entering {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
  filter: blur(0);
  z-index: 3;
  pointer-events: auto;
}

.ba-reveal-item {
  opacity: 1;
  transform: none;
}

.ba-compare[data-state="after"] .ba-after.is-visible .ba-reveal-item,
.ba-compare.is-settling .ba-after .ba-reveal-item {
  animation: arcItemIn 0.65s cubic-bezier(0.34, 1.5, 0.64, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes arcItemIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ba-success {
  animation: arcPop 0.55s cubic-bezier(0.34, 1.6, 0.64, 1) both;
}

@keyframes arcPop {
  from { opacity: 0; transform: scale(0.88) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Arc scrub under the browser */
.ba-arc-scrub {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  margin: 1.15rem auto 0.35rem;
  cursor: pointer;
  touch-action: none;
  padding: 0.35rem 0.25rem;
}

.ba-scrub-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: visible;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ba-scrub-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a78bfa, #f472b6 55%, #38bdf8);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.45);
  transition: width 0.05s linear;
}

.ba-scrub-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow:
    0 0 0 4px rgba(167, 139, 250, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.35);
  transition: left 0.05s linear, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.ba-arc-scrub:hover .ba-scrub-knob,
.ba-arc-scrub.is-dragging .ba-scrub-knob {
  transform: scale(1.12);
  box-shadow:
    0 0 0 6px rgba(244, 114, 182, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.4);
}

.ba-scrub-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.45);
}

.ba-meter-track i {
  transition: width 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
}

.ba-browser.is-morphing {
  animation: arcBrowserMorph 0.9s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes arcBrowserMorph {
  0% { transform: translateY(0) scale(1) rotate(-0.2deg); }
  35% { transform: translateY(-14px) scale(1.03) rotate(0.6deg); }
  70% { transform: translateY(-6px) scale(1.015) rotate(-0.3deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

.ba-layer [data-spot].spot-on {
  outline: 2px solid rgba(167, 139, 250, 0.7);
  outline-offset: 4px;
  border-radius: 12px;
  box-shadow: 0 0 0 8px rgba(167, 139, 250, 0.12);
  transition: outline 0.3s ease, box-shadow 0.35s ease;
}

.ba-hotspot {
  display: none;
}

.ba-hotspot:hover,
.ba-hotspot.active {
  background: linear-gradient(145deg, #d4c4a8, #a89070);
  color: #121214;
  transform: scale(1.12);
  animation: none;
}

@keyframes hotspotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 184, 150, 0.4), 0 8px 18px rgba(0, 0, 0, 0.25); }
  50% { box-shadow: 0 0 0 12px rgba(201, 184, 150, 0), 0 8px 18px rgba(0, 0, 0, 0.25); }
}

.ba-success {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(184, 149, 108, 0.12);
  border: 1px solid rgba(184, 149, 108, 0.28);
  color: var(--charcoal);
  font-size: 0.86rem;
  font-weight: 500;
  animation: panelIn 0.35s ease;
}

.ba-success span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  font-size: 0.8rem;
}

.clean-services button {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.7rem 0.35rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--charcoal);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.clean-services button:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 149, 108, 0.4);
  box-shadow: 0 8px 16px rgba(28, 25, 23, 0.06);
}

.clean-cta {
  border: 0;
  cursor: pointer;
}

/* Website service mini try card */
.service-try {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
  max-width: 420px;
}

.service-try-card {
  position: relative;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.service-try-before,
.service-try-after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.service-try-before {
  background: #e7e5e4;
  color: #57534e;
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.service-try-after {
  background: linear-gradient(135deg, #1c1917, #3f342c);
  color: #f7f3ee;
  z-index: 0;
}

.service-try-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.service-try-handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #1c1917;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  letter-spacing: -1px;
}

/* Google demo */
.g-view {
  display: none;
  padding: 1rem;
  opacity: 0;
}

.g-view.active {
  display: block;
  animation: luxuryPageIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes luxuryPageIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.g-view .g-landing > * {
  opacity: 0;
  transform: translateY(10px);
  animation: staggerIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.g-view.active .g-landing > *:nth-child(1) { animation-delay: 0.05s; }
.g-view.active .g-landing > *:nth-child(2) { animation-delay: 0.12s; }
.g-view.active .g-landing > *:nth-child(3) { animation-delay: 0.2s; }
.g-view.active .g-landing > *:nth-child(4) { animation-delay: 0.28s; }
.g-view.active .g-landing > *:nth-child(5) { animation-delay: 0.36s; }
.g-view.active .g-landing > *:nth-child(6) { animation-delay: 0.44s; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.g-results .g-result {
  opacity: 0;
  transform: translateY(12px);
}

.g-results.is-shown .g-result {
  animation: staggerIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.g-results.is-shown .g-result:nth-child(1) { animation-delay: 0.05s; }
.g-results.is-shown .g-result:nth-child(2) { animation-delay: 0.18s; }

.g-search-box.is-typing {
  box-shadow:
    0 0 0 1px rgba(201, 184, 150, 0.35),
    0 0 24px rgba(201, 184, 150, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(201, 184, 150, 0.4);
}

.browser-frame-tall {
  position: relative;
  overflow: hidden;
}

.browser-frame-tall .browser-body {
  transition: background 0.4s ease;
}

.g-view.success-lite,
.g-landing.success-lite {
  min-height: 240px;
  display: grid;
  place-content: center;
  text-align: center;
}

.g-landing.success-lite .success-check {
  animation: successBloom 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes successBloom {
  0% { transform: scale(0.5); opacity: 0; filter: blur(8px); }
  60% { transform: scale(1.08); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); }
}

.g-search {
  margin-bottom: 1rem;
  display: grid;
  gap: 0.65rem;
}

.g-search-box {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  color: var(--charcoal);
  box-shadow: 0 4px 16px rgba(28, 25, 23, 0.05);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.7rem;
}

.g-search-icon {
  color: var(--muted);
  font-size: 0.95rem;
}

.g-caret {
  color: var(--gold);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.g-type-btn {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s ease, transform 0.15s ease;
}

.g-type-btn:hover {
  background: var(--ivory);
  transform: translateY(-1px);
}

.g-results {
  animation: panelIn 0.35s ease;
}

.g-result {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 0.75rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.g-result:hover:not(.ghost) {
  background: rgba(184, 149, 108, 0.08);
  border-color: rgba(184, 149, 108, 0.25);
  transform: translateY(-1px);
}

.g-result.ghost {
  opacity: 0.55;
  cursor: default;
}

.g-result-badge {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.g-match-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #166534;
  background: rgba(22, 101, 52, 0.1);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.g-result-url {
  font-size: 0.72rem;
  color: #166534;
  margin-bottom: 0.2rem;
}

.g-result-title {
  font-size: 1rem;
  color: #1d4ed8;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.g-result-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

.g-landing {
  padding: 0.5rem 0.25rem;
}

.success-lite {
  text-align: center;
  padding-top: 2rem;
}

.demo-footer-cta {
  margin-top: 2.5rem;
  padding: 1.6rem 1.75rem;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(201, 184, 150, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 50px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.demo-footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: footerSheen 6s ease-in-out infinite;
}

@keyframes footerSheen {
  0%, 70%, 100% { transform: translateX(-100%); }
  85% { transform: translateX(100%); }
}

.demo-footer-kicker {
  font-size: 0.7rem !important;
  font-family: var(--font-body) !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9b896 !important;
  margin-bottom: 0.35rem;
}

.demo-footer-cta p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #f5f2ec;
  position: relative;
}

.demo-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  position: relative;
}

.demo-footer-btn {
  background: linear-gradient(135deg, #e8e0d4, #c9b896) !important;
  color: #121214 !important;
  border-color: transparent !important;
  font-weight: 600;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

.demo-footer-btn-ghost {
  background: transparent !important;
  color: #f5f2ec !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
}

.demo-footer-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

/* Premium tech interactions on demo stage devices */
.examples-section .phone-device {
  filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.55));
}

@media (max-width: 960px) {
  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-stage {
    order: -1;
  }

  .phone-device {
    width: min(100%, 290px);
  }

  .phone-screen {
    height: 520px;
  }

  .browser-frame {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .demo-tabs {
    width: 100%;
    border-radius: 18px;
  }

  .demo-tab {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.65rem 0.55rem;
  }

  .demo-footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Mobile polish only — desktop rules above are unchanged
   ========================================================================== */
@media (max-width: 760px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 1.5rem, 1120px);
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  /* Header safe area + touch */
  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lang-btn {
    min-height: 36px;
    padding-inline: 0.7rem;
  }

  /* Hero: readable, full-bleed video, stacked CTAs */
  .hero.hero-with-photo,
  .page-compact .hero-compact {
    min-height: 100svh;
    min-height: 100dvh;
    padding:
      max(5.5rem, calc(env(safe-area-inset-top) + 4.75rem))
      0
      max(2rem, env(safe-area-inset-bottom));
  }

  .hero-photo-bg .hero-bg-video,
  .hero-photo-bg .hero-main-img {
    object-fit: cover;
    object-position: center 38%;
  }

  .hero-with-photo .hero-grid-solo,
  .hero-content .hero-grid-solo {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    width: 100%;
    justify-items: stretch;
  }

  .hero-with-photo .hero-grid-solo .hero-copy,
  .hero-content .hero-grid-solo .hero-copy,
  .hero-with-photo .hero-copy {
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }

  .hero-with-photo .hero-copy h1,
  .hero-content .hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
  }

  .hero-with-photo .hero-sub,
  .hero-content .hero-sub {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-with-photo .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
    margin: 1.1rem 0 1rem;
  }

  .hero-with-photo .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 48px;
    white-space: normal;
    padding: 0.9rem 1.1rem;
    font-size: 0.76rem;
  }

  .trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem !important;
  }

  .trust-chips li {
    font-size: 0.68rem !important;
    letter-spacing: 0.08em;
  }

  /* Lighter hero motion on phones (perf + less jank) */
  .hero-main-img,
  .hero-bg-video {
    filter: brightness(0.55) saturate(0.85) blur(3px);
    transform: scale(1.06);
    transition:
      opacity 1.8s cubic-bezier(0.33, 0, 0.2, 1) 0.1s,
      transform 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
      filter 2s cubic-bezier(0.33, 0, 0.2, 1) 0.12s;
  }

  .hero-rm-reveal.is-lit .hero-main-img,
  .hero-rm-reveal.is-lit .hero-bg-video {
    transform: scale(1.02);
  }

  .hero-rm-reveal.is-settled .hero-main-img,
  .hero-rm-reveal.is-settled .hero-bg-video {
    animation-duration: 28s;
  }

  /* Sections */
  .page-compact .section-compact {
    padding: 2.75rem 0;
  }

  .page-compact .examples-section.demo-atelier {
    padding-bottom: max(2.75rem, env(safe-area-inset-bottom));
  }

  /* Demo tabs — swipe-friendly */
  .demo-tabs,
  .demo-exhibit-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
    max-width: 100%;
  }

  .demo-tabs::-webkit-scrollbar,
  .demo-exhibit-tabs::-webkit-scrollbar {
    display: none;
  }

  .demo-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    font-size: 0.72rem;
    padding: 0.55rem 0.4rem;
    line-height: 1.25;
  }

  .demo-tab-index {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.65rem;
  }

  .demo-tab-label {
    display: block;
  }

  /* In-page demos (IG / Google) — taller stage so full UI is visible */
  .page-compact .examples-section.demo-atelier .demo-product-case--inplace {
    padding: 0.85rem 0.7rem 0.9rem;
    gap: 0.7rem;
    border-radius: 14px;
  }

  .page-compact .examples-section.demo-atelier .demo-inplace-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .page-compact .examples-section.demo-atelier .demo-inplace-text h3 {
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
    margin-bottom: 0.25rem;
  }

  /* Shorter blurb so more of the viewport goes to the demo */
  .page-compact .examples-section.demo-atelier .demo-inplace-text p:last-child {
    font-size: 0.86rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-compact .examples-section.demo-atelier .demo-inplace-controls {
    width: 100%;
  }

  .page-compact .examples-section.demo-atelier .demo-exhibit-play,
  .page-compact .examples-section.demo-atelier .demo-inplace-controls .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /*
   * Stage heights by demo type — IG phone tall, Google/Web landscape readable
   */
  .page-compact .examples-section.demo-atelier .exp-embed-frame-inplace.exp-embed-frame-ig-line,
  .exp-embed-frame-ig-line:not(.exp-embed-frame-google):not(.exp-embed-frame-web) {
    width: 100%;
    height: min(78svh, 640px);
    min-height: min(78svh, 640px);
    max-height: none;
    aspect-ratio: auto;
    border-radius: 12px;
  }

  .page-compact .examples-section.demo-atelier .exp-embed-frame-google,
  .exp-embed-frame-google {
    width: 100%;
    height: min(62svh, 480px);
    min-height: 380px;
    aspect-ratio: auto;
    border-radius: 12px;
    background: #eef3f9;
  }

  .page-compact .examples-section.demo-atelier .exp-embed-frame-web,
  .exp-embed-frame-web {
    width: 100%;
    height: min(62svh, 480px);
    min-height: 380px;
    aspect-ratio: auto;
    border-radius: 12px;
    background: #0b1220;
  }

  .exp-embed-frame {
    height: min(54svh, 400px);
    min-height: min(50svh, 380px);
    aspect-ratio: auto;
    border-radius: 14px;
  }

  .demo-caption {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 0.5rem;
  }

  /* Website demo panel (02) */
  .page-compact .examples-section.demo-atelier .demo-product-case:not(.demo-product-case--inplace) {
    padding: 0.85rem 0.7rem 0.9rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .page-compact .examples-section.demo-atelier .demo-product-case:not(.demo-product-case--inplace) .demo-exhibit-points {
    display: none; /* free space for the embed on small screens */
  }

  .page-compact .examples-section.demo-atelier .demo-exhibit-copy h3 {
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
  }

  .page-compact .examples-section.demo-atelier .demo-product-case:not(.demo-product-case--inplace) .demo-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .page-compact .examples-section.demo-atelier .demo-product-case:not(.demo-product-case--inplace) .demo-controls .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .ba-points-static .ba-point {
    font-size: 0.84rem;
    padding: 0.55rem 0.7rem 0.55rem 1rem;
  }

  /* System section cards */
  .page-compact .section-compact .system-grid,
  .page-compact .section-compact .pillar-grid {
    gap: 0.85rem;
  }

  /* Audit / form */
  .cta-section {
    padding-left: 0;
    padding-right: 0;
  }

  .audit-form {
    gap: 0.75rem;
  }

  .audit-form input,
  .audit-form select,
  .audit-form textarea {
    min-height: 48px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .audit-form .btn,
  .cta-section .btn {
    width: 100%;
    min-height: 48px;
  }

  .demo-footer-cta {
    padding: 1.15rem 1.1rem;
    border-radius: 16px;
    gap: 0.85rem;
  }

  .demo-footer-cta p {
    font-size: 1.15rem;
  }

  .demo-footer-actions {
    width: 100%;
    flex-direction: column;
  }

  .demo-footer-actions .btn,
  .demo-footer-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /* Footer safe area */
  .site-footer,
  footer {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .hero-with-photo .hero-copy h1,
  .hero-content .hero-copy h1 {
    font-size: clamp(1.85rem, 9.2vw, 2.2rem);
  }

  .hero-with-photo .hero-copy .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }

  .page-compact .examples-section.demo-atelier .exp-embed-frame-inplace.exp-embed-frame-ig-line {
    height: min(74svh, 580px);
    min-height: min(74svh, 580px);
    aspect-ratio: auto;
  }

  .page-compact .examples-section.demo-atelier .exp-embed-frame-google {
    height: min(58svh, 440px);
    min-height: 360px;
  }

  .page-compact .examples-section.demo-atelier .exp-embed-frame-web {
    height: min(58svh, 440px);
    min-height: 360px;
  }

  .exp-embed-frame {
    height: min(50svh, 360px);
    min-height: min(48svh, 340px);
  }

  .demo-tab {
    font-size: 0.68rem;
    padding: 0.5rem 0.3rem;
  }

  .demo-tab-index {
    font-size: 0.6rem;
  }
}

/* Short phones / landscape: still keep demos fully usable */
@media (max-width: 900px) and (max-height: 520px) {
  .page-compact .examples-section.demo-atelier .exp-embed-frame-inplace,
  .exp-embed-frame-ig-line,
  .page-compact .exp-embed-frame-ig-line {
    height: min(88svh, 420px);
    min-height: 280px;
  }
}

/* Prefer reduced data/motion on small screens if user asks */
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .hero-main-img,
  .hero-bg-video,
  .hero-rm-reveal .hero-content,
  .hero-rm-reveal .hero-copy .eyebrow,
  .hero-rm-reveal .hero-copy h1 .hero-line,
  .hero-rm-reveal .hero-copy .hero-sub,
  .hero-rm-reveal .hero-copy .hero-ctas,
  .hero-rm-reveal .hero-copy .trust-chips {
    transition: none !important;
    animation: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-blackout {
    opacity: 0 !important;
  }
}
