:root {
  --ink: #040810;
  --cyan: #00c2ff;
  --cyan-hi: #28d6ff;
  --text: #eaf2f8;
  --muted: #b4c4d6;
  --u: min(calc(100vw / 1672), calc(100svh / 941)); /* 1 design px at the 1672x941 reference */
  --ease: cubic-bezier(.65, 0, .25, 1);
  --dur: 850ms;
  --cw: calc(350 * var(--u));
  --font-h: "Poppins", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-b: "Inter", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font-b); overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan-hi); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 12px; top: 12px; transform: translateY(-200px); z-index: 50; padding: 12px 18px; background: var(--cyan); color: #04121f; font-weight: 600; border-radius: 8px; }
.skip:focus { transform: none; }
.ico { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.18em; }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; height: calc(100 * var(--u)); }
.logo { position: absolute; left: calc(61 * var(--u)); top: calc(22 * var(--u)); width: calc(219 * var(--u)); height: calc(120 * var(--u)); }
.logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 0 10px rgba(0, 194, 255, .32)); }
.nav { position: absolute; left: calc(518 * var(--u)); top: calc(26 * var(--u)); display: flex; gap: calc(42 * var(--u)); font-size: calc(16.500 * var(--u)); }
.nav a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; color: var(--text); opacity: .95; }
.nav a:hover { color: var(--cyan-hi); }
.menu-btn { display: none; }
.pill { position: absolute; right: calc(45 * var(--u)); top: calc(25 * var(--u)); min-height: 44px; height: calc(54 * var(--u)); padding: 0 calc(28 * var(--u)); display: inline-flex; align-items: center; gap: .5em; border-radius: 999px; font: 600 calc(17 * var(--u))/1 var(--font-b); color: #031321; background: linear-gradient(90deg, #12d4ff, #0aa5ff); box-shadow: 0 0 calc(26 * var(--u)) rgba(0, 190, 255, .45); white-space: nowrap; }

/* ---------- hero shell ---------- */
.hero { position: relative; height: max(100svh, calc(941 * var(--u))); min-height: 560px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 45% 55% at 18% 18%, rgba(0, 70, 140, .38), transparent 70%),
    radial-gradient(ellipse 55% 45% at 82% 105%, rgba(0, 110, 255, .38), transparent 70%),
    radial-gradient(ellipse 40% 50% at 70% 45%, rgba(0, 60, 130, .22), transparent 70%),
    linear-gradient(180deg, #050b18, #030710 70%); }
.ghost:not(.mb) { position: absolute; z-index: -1; left: calc(292 * var(--u)); top: calc(-78 * var(--u)); font: 800 calc(800 * var(--u))/1 var(--font-h); letter-spacing: -.03em; color: rgba(10, 96, 178, .3); user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 80%); mask-image: linear-gradient(180deg, #000 45%, transparent 80%); }
.floor { position: absolute; z-index: 0; left: 0; right: 0; top: calc(806 * var(--u)); bottom: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 60% at 73% 0, rgba(0, 170, 255, .85), transparent 72%),
    radial-gradient(ellipse 25% 40% at 38% 100%, rgba(0, 110, 255, .22), transparent 75%),
    linear-gradient(180deg, rgba(10, 70, 140, .38), rgba(3, 10, 24, .96) 55%, #02050c); }
.floor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent 38%, rgba(0, 200, 255, .7) 72%, transparent); opacity: .7; }

/* ---------- copy ---------- */
.copy { position: absolute; z-index: 2; left: calc(61 * var(--u)); top: calc(222 * var(--u)); width: calc(700 * var(--u)); bottom: 0; }
.eyebrow { margin: 0; font: 500 calc(17 * var(--u))/1 var(--font-h); letter-spacing: .3em; color: var(--cyan); text-transform: uppercase; }
h1 { margin: calc(24 * var(--u)) 0 0; font: 800 calc(58 * var(--u))/1.12 var(--font-h); letter-spacing: -.012em; color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, .55); }
h1 span { display: block; white-space: nowrap; }
h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 28px rgba(0, 194, 255, .35); }
.lede { margin: calc(30 * var(--u)) 0 0; max-width: calc(560 * var(--u)); font: 300 calc(21.500 * var(--u))/1.5 var(--font-b); color: #e6eef7; }
.actions { margin-top: calc(40 * var(--u)); display: flex; gap: calc(16 * var(--u)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 44px; height: calc(62 * var(--u)); padding: 0 calc(34 * var(--u)); border-radius: 999px; font: 600 calc(17 * var(--u))/1 var(--font-h); letter-spacing: .06em; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.btn-fill { color: #031321; background: linear-gradient(90deg, #2ee0ff, #0aa8ff); box-shadow: 0 0 calc(30 * var(--u)) rgba(0, 190, 255, .5); }
.btn-line { color: #fff; border: 2px solid var(--cyan); background: rgba(0, 20, 40, .35); box-shadow: inset 0 0 18px rgba(0, 194, 255, .12); }
.btn:hover { transform: translateY(-2px); }
.feats { position: absolute; left: 0; top: calc(541 * var(--u)); margin: 0; padding: 0; list-style: none; display: flex; align-items: flex-start; }
.feats li { display: grid; justify-items: center; gap: calc(10 * var(--u)); padding: 0 calc(22 * var(--u)); font: 400 calc(17 * var(--u))/1.2 var(--font-b); color: #f1f6fb; white-space: nowrap; }
.feats li:first-child { padding-left: 0; }
.feats li + li { border-left: 1px solid rgba(160, 200, 240, .28); }
.feats li { position: relative; }
.feats svg { width: calc(42 * var(--u)); height: calc(42 * var(--u)); color: #5cc8ff; filter: drop-shadow(0 0 8px rgba(0, 170, 255, .45)); }
.feats li { border-left-width: 0; }
.feats li + li::before { content: ""; position: absolute; left: 0; top: calc(2 * var(--u)); height: calc(46 * var(--u)); width: 1px; background: rgba(160, 200, 240, .3); }

/* ---------- showcase ---------- */
.showcase { position: absolute; z-index: 3; left: calc(760 * var(--u)); width: calc(900 * var(--u)); top: 0; bottom: 0; }
.pick { position: absolute; left: 0; right: 0; top: calc(180 * var(--u)); margin: 0; display: flex; align-items: center; justify-content: center; gap: calc(26 * var(--u)); font: 500 calc(14 * var(--u))/1 var(--font-h); letter-spacing: .26em; text-transform: uppercase; color: #ffffff; }
.pick::before, .pick::after { content: ""; width: calc(86 * var(--u)); height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 190, 255, .55)); }
.pick::after { transform: scaleX(-1); }

.stage { position: absolute; left: 0; right: 0; top: calc(270 * var(--u)); height: calc(var(--cw) * 1.47); perspective: calc(1500 * var(--u)); perspective-origin: 50% 40%; }
.stage::before { content: ""; position: absolute; left: 50%; bottom: calc(-34 * var(--u)); width: 112%; height: calc(120 * var(--u)); transform: translateX(-50%); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 170, 255, .6), rgba(0, 90, 220, .22) 55%, transparent 75%); pointer-events: none; }
.card { position: absolute; left: 50%; top: 0; width: var(--cw); aspect-ratio: 100 / 147; will-change: transform, opacity; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  -webkit-box-reflect: below calc(4 * var(--u)) linear-gradient(transparent 80%, rgba(255, 255, 255, .13)); }
.card[data-pos="0"] { z-index: 3; opacity: 1; transform: translate3d(-50%, 0, 0) rotateY(0) scale(1); }
.card[data-pos="1"] { z-index: 2; opacity: .9; transform: translate3d(calc(-50% + var(--cw) * .8), calc(14 * var(--u)), calc(-150 * var(--u))) rotateY(-15deg) scale(.88); }
.card[data-pos="2"] { z-index: 1; opacity: .9; transform: translate3d(calc(-50% - var(--cw) * .8), calc(14 * var(--u)), calc(-150 * var(--u))) rotateY(15deg) scale(.88); }

.card-in { position: relative; height: 100%; container-type: inline-size; border-radius: calc(var(--cw) * .06); overflow: hidden; background: #050a14; border: 1.500px solid rgba(40, 200, 255, .75);
  box-shadow: 0 0 calc(40 * var(--u)) rgba(0, 170, 255, .62), 0 0 calc(8 * var(--u)) rgba(40, 210, 255, .5), inset 0 0 calc(22 * var(--u)) rgba(0, 140, 255, .2); }
.card-in::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: rgba(3, 7, 16, .52); opacity: 0; transition: opacity var(--dur) var(--ease); }
.card:not([data-pos="0"]) .card-in::after { opacity: 1; }
.card-in::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .13), transparent 28%, transparent 70%, rgba(120, 200, 255, .08)); }
.hit { position: absolute; z-index: 4; left: 0; right: 0; top: 0; bottom: 24cqw; border: 0; background: transparent; border-radius: 0; }
.hit:focus-visible { outline: 3px solid var(--cyan-hi); outline-offset: -3px; border-radius: 4cqw; }
.card:not([data-pos="0"]) .hit { cursor: pointer; }
.card[data-pos="0"] .hit { cursor: default; }

.foot { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 24cqw; display: flex; align-items: center; gap: 3.500cqw; padding: 0 4.500cqw; background: linear-gradient(180deg, #0a1426, #060c1a); border-top: 1px solid rgba(60, 170, 255, .25); }
.badge { flex: none; width: 13.500cqw; height: 13.500cqw; border-radius: 50%; display: grid; place-items: center; border: .6cqw solid var(--bc, #ff3b30); color: var(--bc, #ff3b30); background: rgba(255, 255, 255, .03); box-shadow: 0 0 3cqw color-mix(in srgb, var(--bc, #ff3b30) 55%, transparent); }
.badge svg { width: 7.500cqw; height: 7.500cqw; }
[data-theme="salon"] { --bc: #e0c081; }
[data-theme="detail"] { --bc: #8b5cf6; }
.meta { flex: 1; min-width: 0; }
.meta h3 { margin: 0; font: 600 4.800cqw/1.2 var(--font-h); color: #fff; white-space: nowrap; }
.meta p { margin: 1.200cqw 0 0; font: 500 2.500cqw/1 var(--font-b); letter-spacing: .24em; color: #8da4c0; }
.go { position: relative; flex: none; min-width: 9cqw; height: 9cqw; padding: 0 3.2cqw; border-radius: 999px; display: grid; place-items: center; font-family: inherit; font-weight: 600; font-size: 3.1cqw; line-height: 1; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1px solid rgba(180, 205, 235, .4); background: rgba(255, 255, 255, .06); color: #e8f1fa; }
.go::after { content: ""; position: absolute; inset: -13px; }
.go:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 2px; border-radius: 999px; }

.dots { position: absolute; left: 0; right: 0; top: calc(var(--cw) * 1.47 + 372 * var(--u)); display: flex; justify-content: center; }
.dot { width: 44px; height: 44px; padding: 0; border: 0; background: none; position: relative; }
.dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(190, 215, 240, .35); transition: background .3s, width .3s, margin .3s, box-shadow .3s; }
.dot[aria-current="true"]::before { width: 26px; margin-left: -13px; border-radius: 6px; background: var(--cyan); box-shadow: 0 0 14px rgba(0, 194, 255, .8); }

/* ---------- mini sites (cqw units, all decorative) ---------- */
.screen { position: absolute; inset: 0 0 24cqw 0; overflow: hidden; font-family: var(--font-b); color: #fff; }
.sea-v1-nav {
  background: rgba(13, 5, 4, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.s-sea-v1 .brand {
  color: #fff;
}
.s-sea-v1 .mcta {
  background: #e0261b;
  color: #fff;
}
.s-sea-v1 .sea-v1-hero {
  left: 0;
  right: 0;
  top: 17.5cqw;
  height: 47cqw;
  overflow: hidden;
  background: #120605;
}
.s-sea-v1 .sea-v1-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.s-sea-v1 .sea-v1-trust {
  left: 0;
  right: 0;
  top: 64.5cqw;
  height: 13cqw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(18, 6, 5, .98);
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  z-index: 2;
}
.s-sea-v1 .sea-v1-trust div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 1cqw;
  padding: 0 2cqw;
  border-right: 1px solid rgba(255, 255, 255, .10);
}
.s-sea-v1 .sea-v1-trust div:last-child {
  border-right: 0;
}
.s-sea-v1 .sea-v1-trust span {
  color: #ff3b30;
  font-size: 2.8cqw;
  line-height: 1;
}
.s-sea-v1 .sea-v1-trust b {
  color: #f7eee9;
  font: 600 1.55cqw/1.15 var(--font-b);
}
.s-sea-v1 .sea-v1-copy {
  left: 4.5cqw;
  right: 4.5cqw;
  top: 82cqw;
  z-index: 2;
}
.s-sea-v1 .sea-v1-copy small {
  color: #ff6a5c;
  font: 700 1.55cqw/1 var(--font-b);
  letter-spacing: .14em;
}
.s-sea-v1 .sea-v1-copy strong {
  display: block;
  max-width: 80cqw;
  margin-top: 2cqw;
  color: #fff;
  font: 800 5.8cqw/.95 var(--font-h);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.s-sea-v1 .sea-v1-copy strong em {
  color: #ff3b30;
  font-style: italic;
}
.s-sea-v1 .sea-v1-copy p {
  max-width: 70cqw;
  margin: 2cqw 0 2.5cqw;
  color: #e7d7d2;
  font-size: 2.25cqw;
  line-height: 1.4;
}
.s-sea-v1 .sea-v1-copy .mbtns {
  display: flex;
  gap: 1.5cqw;
}
.s-sea-v1 .sea-v1-copy .mb {
  padding: 1.65cqw 2.4cqw;
  border-radius: .8cqw;
  font-size: 1.9cqw;
  line-height: 1;
}
.s-sea-v1 .sea-v1-copy .mb.red {
  background: #e0261b;
  color: #fff;
}
.s-sea-v1 .sea-v1-copy .mb.ghost {
  border: 1px solid rgba(255, 255, 255, .28);
  background: #17100f;
  color: #fff;
}
.screen > * { position: absolute; }
.bar { left: 0; right: 0; top: 0; height: 6.500cqw; display: flex !important; align-items: center; gap: 1.500cqw; padding-left: 3.500cqw; background: rgba(0, 0, 0, .45); z-index: 3; }
.bar i { width: 1.700cqw; height: 1.700cqw; border-radius: 50%; background: #ff5f57; }
.bar i:nth-child(2) { background: #febc2e; }
.bar i:nth-child(3) { background: #28c840; }
.mnav { left: 0; right: 0; top: 6.500cqw; height: 11cqw; display: flex !important; align-items: center; justify-content: space-between; padding: 0 4cqw; z-index: 3; }
.brand { display: flex; align-items: center; gap: 1.200cqw; font: 600 3.700cqw/1.05 var(--font-h); }
.brand svg { width: 5cqw; height: 5cqw; color: #ff3b30; }
.links { display: flex; gap: 2cqw; font-size: 1.900cqw; opacity: .85; }
.links u { text-decoration: none; }
.mcta { font: 600 1.900cqw/1 var(--font-b); padding: 1.300cqw 2cqw; border-radius: 1cqw; white-space: nowrap; }
.photo { object-fit: cover; z-index: 0; }
.mcopy { left: 4cqw; top: 21cqw; width: 64cqw; z-index: 2; }
.mcopy small { display: block; font: 600 2.200cqw/1 var(--font-b); letter-spacing: .18em; margin-bottom: 2cqw; }
.mcopy strong { display: block; font: 700 10.500cqw/1.03 var(--font-h); }
.mcopy p { margin: 2.400cqw 0 3.600cqw; font-size: 3.300cqw; line-height: 1.4; color: #e6e6e6; max-width: 48cqw; }
.mbtns { display: flex; gap: 2cqw; }
.mb { font: 600 2.900cqw/1 var(--font-b); padding: 2.600cqw 4cqw; border-radius: 1.100cqw; white-space: nowrap; }
.mb.ghost { border: 1px solid rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .25); }
.thumbs { left: 4cqw; right: 4cqw; bottom: 3cqw; display: grid; gap: 2cqw; z-index: 2; }
.thumbs img, .tile { width: 100%; height: 100%; object-fit: cover; border-radius: 1.500cqw; border: 1px solid rgba(255, 255, 255, .22); }
.t4 { grid-template-columns: repeat(4, 1fr); height: 21cqw; }
.t3 { grid-template-columns: repeat(3, 1fr); height: 25cqw; }
.t3 figure { margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 1.200cqw; min-height: 0; text-align: center; }
.t3 figcaption { font: 600 1.800cqw/1 var(--font-b); letter-spacing: .12em; color: #c9c9d6; white-space: nowrap; }
.tile { display: grid; place-items: center; }
.tile svg { width: 9cqw; height: 9cqw; }

/* seafood */
.s-sea { background: radial-gradient(ellipse 80% 60% at 70% 45%, #5a1208, #170605 70%), #0c0504; }
.s-sea .mcta { background: #e0261b; }
.s-sea .photo { right: 0; top: 17cqw; width: 80cqw; height: 88cqw; -webkit-mask-image: linear-gradient(90deg, transparent, #000 48%), linear-gradient(180deg, #000 62%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 48%), linear-gradient(180deg, #000 62%, transparent); mask-composite: intersect; }
.s-sea small { color: #ff6a5c; }
.s-sea .mcopy em { display: block; margin-top: .4cqw; font: italic 800 9.800cqw/1.05 var(--font-h); white-space: nowrap; color: #ff2f1f; text-shadow: 0 0 3cqw rgba(255, 40, 20, .5); }
.s-sea .mb.red { background: #e0261b; }
.s-sea .t4 img { border-color: rgba(255, 255, 255, .3); }
.s-sea .mcopy p { margin-top: 1.600cqw; }

/* salon */
.s-sal { background: radial-gradient(ellipse 70% 55% at 75% 40%, #3a2a17, #0b0806 70%), #090705; }
.s-sal .brand { font: italic 500 4.800cqw/.95 "Playfair Display", Georgia, serif; color: #e8cf9a; }
.s-sal .mcta { background: #efe0c4; color: #1a1209; }
.s-sal .photo { right: 0; top: 17cqw; width: 62cqw; height: 88cqw; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 62%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 62%, transparent); mask-composite: intersect; filter: saturate(.9) contrast(1.05); }
.s-sal small { color: #c9a45c; font-size: 1.800cqw; }
.s-sal .mcopy strong { font: 500 8.600cqw/1.06 "Playfair Display", Georgia, serif; color: #f4ead8; }
.s-sal .tag { margin: 2.200cqw 0 3.200cqw !important; font: 500 2cqw/1 var(--font-b) !important; letter-spacing: .14em; color: #c9a45c !important; }
.s-sal .mb.gold { background: #e7d3ab; color: #1a1209; }
.s-sal .tile { background: linear-gradient(160deg, #241a0e, #0d0905); border-color: rgba(201, 164, 92, .5); color: #e0c081; }
.s-sal .thumbs img { border-color: rgba(201, 164, 92, .5); }
.s-sal .t3 figcaption { color: #b79d6c; }

/* detailing */
.s-det { background: radial-gradient(ellipse 80% 60% at 72% 42%, #3b1c7a, #0d0619 72%), #0a0514; }
.s-det .brand { font: italic 700 3.800cqw/1 var(--font-h); }
.s-det .mcta { background: #6d3df2; }
.s-det .car { right: -16cqw; top: 48cqw; width: 96cqw; z-index: 1; filter: drop-shadow(0 0 3cqw rgba(139, 92, 246, .6)); opacity: .95; }
.s-det small { color: #cbb8ff; font-size: 1.900cqw; }
.s-det .mcopy strong { font: italic 800 8.600cqw/1.02 var(--font-h); }
.s-det .mcopy em { font-style: italic; color: #8b5cf6; text-shadow: 0 0 3cqw rgba(139, 92, 246, .8); }
.s-det .mcopy p { font-size: 2.700cqw; max-width: 44cqw; margin: 2cqw 0 2.600cqw; }
.s-det .mb.violet { background: #6d3df2; }
.s-det .tile { background: linear-gradient(160deg, #1d0f3d, #0b0618); border-color: rgba(139, 92, 246, .6); color: #b79cff; }
.s-det .t3 figcaption { color: #bfb4de; font-size: 1.500cqw; letter-spacing: .06em; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card, .card-in::after, .btn, .chip, .dot::before { transition: none !important; }
}

/* ---------- tablet and mobile: stacked, text first ---------- */
@media (max-width: 1000px) {
  :root { --u: 1px; --cw: min(74vw, 330px); }
  .site-header { position: relative; height: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; }
  .logo, .pill { position: static; }
  .logo { width: 156px; height: 85.5px; flex: none; }
  .pill { height: 44px; padding: 0 16px; font-size: 14px; margin-left: auto; }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px; background: rgba(5, 14, 30, .7); }
  .nav { display: none; position: absolute; z-index: 20; left: 16px; right: 16px; top: 80px; flex-direction: column; gap: 0; padding: 8px 18px; font-size: 17px; border: 1px solid rgba(0, 194, 255, .35); border-radius: 16px; background: rgba(4, 10, 22, .96); }
  .nav.open { display: flex; }
  .hero { height: auto; min-height: 0; padding-bottom: 40px; }
  .ghost:not(.mb) { left: 4vw; top: 40px; font-size: 74vw; }
  .floor { top: auto; height: 220px; }
  .copy, .showcase { position: relative; left: auto; width: auto; top: auto; bottom: auto; }
  .copy { padding: 36px 16px 0; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: clamp(27px, 7.400vw, 58px); margin-top: 16px; }
  .lede { font-size: 17px; margin-top: 18px; max-width: 560px; }
  .actions { flex-wrap: wrap; margin-top: 24px; gap: 12px; }
  .btn { height: 52px; padding: 0 26px; font-size: 15px; }
  .feats { position: static; flex-wrap: wrap; row-gap: 14px; margin-top: 30px; }
  .feats li { padding: 0 14px; font-size: 13px; gap: 8px; }
  .feats li:first-child { padding-left: 0; }
  .feats svg { width: 32px; height: 32px; }
  .feats li + li::before { display: none; }
  .showcase { padding: 44px 16px 0; }
  .pick, .chips, .stage, .dots { position: relative; left: auto; right: auto; top: auto; }
  .pick { font-size: 12px; gap: 12px; letter-spacing: .24em; line-height: 1.7; text-align: center; padding: 0 16px; }
  .pick span { line-height: 1.7; text-align: center; }
  .pick::before, .pick::after { width: 30px; }
  .stage { height: calc(var(--cw) * 1.47 + 36px); margin: 26px auto 0; perspective: 1100px; }
  .card[data-pos="1"] { transform: translate3d(calc(-50% + var(--cw) * .5), 10px, -90px) rotateY(-9deg) scale(.86); }
  .card[data-pos="2"] { transform: translate3d(calc(-50% - var(--cw) * .5), 10px, -90px) rotateY(9deg) scale(.86); }
  .card { -webkit-box-reflect: none; }
  .dots { margin-top: 0; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  :root { --cw: min(44vw, 360px); }
  .site-header { padding: 18px 32px; }
  .nav { position: static; display: flex; flex-direction: row; gap: 22px; padding: 0; border: 0; background: none; margin: 0 auto; font-size: 16px; }
  .menu-btn { display: none; }
  .pill { margin-left: 0; }
  .copy { padding: 44px 32px 0; }
  .showcase { padding: 60px 32px 0; }
  .card[data-pos="1"] { transform: translate3d(calc(-50% + var(--cw) * .66), 12px, -120px) rotateY(-12deg) scale(.86); }
  .card[data-pos="2"] { transform: translate3d(calc(-50% - var(--cw) * .66), 12px, -120px) rotateY(12deg) scale(.86); }
}
@media (max-width: 700px) {
  .site-header > .pill { display: none; }
  .feats { flex-wrap: nowrap; width: 100%; justify-content: space-between; row-gap: 0; }
  .feats li { min-width: 0; padding: 0 3px; gap: 4px; font-size: clamp(9px, 2.6vw, 11px); }
  .feats li:first-child { padding-left: 0; }
  .feats li:last-child { padding-right: 0; }
  .feats svg { width: 22px; height: 22px; }
}

/* ---------- phone only: tighter showcase ---------- */
@media (max-width: 600px) {
  :root { --cw: min(60vw, 250px); }
  .hero { padding-bottom: 20px; }
  .showcase { padding: 24px 12px 0; }
  .stage { height: calc(var(--cw) * 1.47 + 12px); margin-top: 16px; }
  .card[data-pos="1"] { transform: translate3d(calc(-50% + var(--cw) * .36), 6px, -70px) rotateY(-6deg) scale(.88); }
  .card[data-pos="2"] { transform: translate3d(calc(-50% - var(--cw) * .36), 6px, -70px) rotateY(6deg) scale(.88); }
  .dots { margin-top: -6px; }
  .feats li { flex: 1 1 20%; padding: 0; font-size: clamp(8px, 2.3vw, 10px); }
  .feats svg { width: 20px; height: 20px; }
}

@media (max-width: 380px) {
  .feats li { padding: 0 2px; font-size: 9px; }
  .pill { padding: 0 12px; font-size: 13px; }
}


/* salon v2 showcase treatment */
.s-sal-v2 {
  background:
    radial-gradient(circle at 78% 30%, rgba(181, 139, 61, .20), transparent 34%),
    linear-gradient(180deg, #080705 0%, #0b0906 55%, #050403 100%);
}
.s-sal-v2 .mnav {
  background: linear-gradient(180deg, rgba(5,4,3,.92), rgba(5,4,3,.22));
}
.s-sal-v2 .brand {
  color: #e8cf9a;
  font: italic 500 4.5cqw/.95 "Playfair Display", Georgia, serif;
}
.s-sal-v2 .mcta {
  background: #d9b56e;
  color: #130e07;
}
.s-sal-v2 .salon-v2-photo {
  right: -8cqw;
  top: 17cqw;
  width: 92cqw;
  height: 102cqw;
  object-fit: cover;
  object-position: 68% center;
  filter: saturate(.88) contrast(1.08) brightness(.82);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 28%, #000 58%), linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 28%, #000 58%), linear-gradient(180deg, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.s-sal-v2 .salon-v2-shade {
  inset: 17cqw 0 0 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7,5,3,.98) 0%, rgba(7,5,3,.86) 34%, rgba(7,5,3,.20) 67%, rgba(7,5,3,.02) 100%);
}
.s-sal-v2 .salon-v2-copy {
  left: 5cqw;
  top: 48cqw;
  width: 50cqw;
  z-index: 3;
}
.s-sal-v2 .salon-v2-copy small {
  color: #d4b06a;
  font-size: 1.75cqw;
  letter-spacing: .22em;
}
.s-sal-v2 .salon-v2-copy strong {
  color: #f6efe1;
  font: 500 9.2cqw/.94 "Playfair Display", Georgia, serif;
  letter-spacing: -.02em;
}
.s-sal-v2 .salon-v2-copy strong em {
  display: block;
  margin-top: .6cqw;
  color: #d4b06a;
  font-style: italic;
}
.s-sal-v2 .salon-v2-copy p {
  max-width: 43cqw;
  margin: 2cqw 0 2.4cqw;
  color: #e7dcc8;
  font-size: 2.4cqw;
  line-height: 1.42;
}
.s-sal-v2 .mb.gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 1.5cqw 2.3cqw;
  background: #d8b36c;
  color: #130e07;
  font-size: 2.15cqw;
  line-height: 1.08;
  text-align: center;
  border-radius: .9cqw;
}
.s-sal-v2 .salon-v2-note {
  left: 5cqw;
  bottom: 5cqw;
  z-index: 3;
  color: rgba(231, 205, 154, .72);
  font: 500 1.55cqw/1 var(--font-b);
  letter-spacing: .16em;
}


/* auto detailing v1 showcase treatment */
.s-det-v1 {
  background:
    radial-gradient(circle at 78% 32%, rgba(140, 49, 255, .15), transparent 35%),
    #060608;
}
.s-det-v1 .det-v1-nav {
  background: rgba(5, 5, 8, .95);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.s-det-v1 .brand {
  color: #fff;
  font: italic 700 3.7cqw/.98 var(--font-h);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.s-det-v1 .mcta {
  background: #9a35ff;
  color: #fff;
}
.s-det-v1 .det-v1-hero {
  left: 0;
  right: 0;
  top: 17.5cqw;
  height: 47cqw;
  overflow: hidden;
  background: #050507;
}
.s-det-v1 .det-v1-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.s-det-v1 .det-v1-trust {
  left: 0;
  right: 0;
  top: 64.5cqw;
  height: 13cqw;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  background: rgba(3,3,5,.97);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.10);
  z-index: 2;
}
.s-det-v1 .det-v1-trust div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 1.1cqw;
  padding: 0 2.2cqw;
  border-right: 1px solid rgba(255,255,255,.10);
}
.s-det-v1 .det-v1-trust div:last-child { border-right: 0; }
.s-det-v1 .det-v1-trust span {
  color: #c847ff;
  font-size: 2.9cqw;
  line-height: 1;
}
.s-det-v1 .det-v1-trust b {
  color: #eeeaf3;
  font: 600 1.65cqw/1.15 var(--font-b);
}
.s-det-v1 .det-v1-copy {
  left: 4.5cqw;
  right: 4.5cqw;
  top: 82cqw;
  z-index: 2;
}
.s-det-v1 .det-v1-copy small {
  color: #c23eff;
  font: 700 1.55cqw/1 var(--font-b);
  letter-spacing: .14em;
}
.s-det-v1 .det-v1-copy strong {
  display: block;
  max-width: 78cqw;
  margin-top: 2cqw;
  color: #fff;
  font: italic 800 5.8cqw/.95 var(--font-h);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.s-det-v1 .det-v1-copy strong em {
  color: #c23eff;
  font-style: italic;
}
.s-det-v1 .det-v1-copy p {
  max-width: 70cqw;
  margin: 2cqw 0 2.5cqw;
  color: #cbc5d0;
  font-size: 2.25cqw;
  line-height: 1.4;
}
.s-det-v1 .det-v1-copy .mbtns {
  display: flex;
  gap: 1.5cqw;
}
.s-det-v1 .det-v1-copy .mb {
  padding: 1.65cqw 2.4cqw;
  border-radius: .8cqw;
  font-size: 1.9cqw;
  line-height: 1;
}
.s-det-v1 .det-v1-copy .mb.violet {
  background: linear-gradient(90deg,#a93cff,#7c24ff);
  color: #fff;
}
.s-det-v1 .det-v1-copy .mb.ghost {
  border: 1px solid rgba(255,255,255,.28);
  background: #101015;
  color: #fff;
}


/* ---------- business engine ---------- */
.engine-section {
  --engine-cyan: #16d4ff;
  --engine-blue: #087cff;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(88px, 9vw, 150px) 0 clamp(80px, 8vw, 130px);
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 152, 255, .17), transparent 27%),
    radial-gradient(circle at 18% 72%, rgba(0, 91, 255, .13), transparent 30%),
    linear-gradient(180deg, #030711 0%, #06101e 44%, #02060e 100%);
  border-top: 1px solid rgba(79, 193, 255, .18);
}
.engine-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .23;
  background-image:
    linear-gradient(rgba(75, 177, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 177, 255, .12) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.2), #000 34%, #000 78%, transparent);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.2), #000 34%, #000 78%, transparent);
}
.engine-orbit {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(28, 188, 255, .13);
  border-radius: 50%;
  pointer-events: none;
}
.engine-orbit::before,
.engine-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27d8ff;
  box-shadow: 0 0 22px 7px rgba(0, 194, 255, .4);
}
.engine-orbit-a { width: min(62vw, 980px); aspect-ratio: 1; right: -24vw; top: -28vw; }
.engine-orbit-a::before { left: 16%; bottom: 12%; }
.engine-orbit-a::after { left: 1%; top: 48%; }
.engine-orbit-b { width: min(38vw, 580px); aspect-ratio: 1; left: -19vw; bottom: -18vw; }
.engine-orbit-b::before { right: 9%; top: 19%; }
.engine-orbit-b::after { right: 1%; bottom: 38%; }

.engine-shell { width: min(1520px, calc(100% - 72px)); margin: 0 auto; }
.engine-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  column-gap: clamp(50px, 7vw, 120px);
  align-items: end;
}
.engine-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #77dfff;
  font: 600 13px/1 var(--font-h);
  letter-spacing: .26em;
}
.engine-kicker span {
  width: 38px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--engine-cyan));
  box-shadow: 0 0 10px rgba(0,194,255,.75);
}
.engine-intro h2 {
  margin: 0;
  max-width: 950px;
  color: #f8fbff;
  font: 800 clamp(46px, 5.2vw, 86px)/.92 var(--font-h);
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.engine-intro h2 em {
  display: inline-block;
  color: var(--engine-cyan);
  font-style: normal;
  text-shadow: 0 0 30px rgba(0,194,255,.26);
}
.engine-intro-copy {
  align-self: end;
  padding-bottom: 3px;
}
.engine-intro-copy p {
  margin: 0;
  color: #d5e2ef;
  font: 300 clamp(17px, 1.25vw, 21px)/1.62 var(--font-b);
}
.engine-intro-copy .engine-sub {
  margin-top: 18px;
  color: #90a9bf;
  font-size: clamp(15px, 1.05vw, 18px);
}
.engine-sub strong { color: #fff; font-weight: 500; }

.engine-live {
  position: relative;
  margin-top: clamp(66px, 7vw, 110px);
  border: 1px solid rgba(70, 190, 255, .23);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 26, 48, .78), rgba(3, 9, 19, .93)), rgba(4, 11, 23, .94);
  box-shadow: 0 40px 100px rgba(0,0,0,.42), 0 0 80px rgba(0, 119, 255, .08), inset 0 1px rgba(255,255,255,.04);
}
.engine-live::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.04), transparent 22%, transparent 75%, rgba(0,194,255,.035));
}
.engine-live-top {
  height: 64px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(102, 190, 255, .15);
  background: rgba(3, 10, 20, .72);
  font: 600 12px/1 var(--font-h);
  letter-spacing: .15em;
  color: #d5e8fa;
}
.engine-live-top > div { display: flex; align-items: center; gap: 11px; }
.engine-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #31e7ff;
  box-shadow: 0 0 16px #00c2ff;
  animation: engineBlink 1.55s ease-in-out infinite;
}
.engine-live-status {
  padding: 7px 10px;
  border: 1px solid rgba(51, 231, 255, .45);
  border-radius: 999px;
  color: #78efff;
  background: rgba(0, 194, 255, .07);
  letter-spacing: .18em;
}
.engine-journey {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 42px 32px 36px;
}
.engine-track {
  position: absolute;
  z-index: -1;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  top: 91px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,194,255,.15), rgba(0,194,255,.72) 50%, rgba(0,194,255,.15));
  box-shadow: 0 0 14px rgba(0,194,255,.25);
}
.engine-signal {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  opacity: 0;
  background: #e8fbff;
  box-shadow: 0 0 7px 3px #0fd7ff, 0 0 25px 7px rgba(0,194,255,.55);
}
.engine-section.is-live .engine-signal { animation: engineSignal 4.8s linear infinite; }
.engine-section.is-live .signal-b { animation-delay: 1.6s; }
.engine-section.is-live .signal-c { animation-delay: 3.2s; }

.engine-node {
  position: relative;
  min-height: 238px;
  padding: 27px 24px 22px;
  border: 1px solid rgba(120, 186, 236, .13);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 34, 57, .7), rgba(6, 16, 30, .83));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.engine-node::before {
  content: attr(data-step);
  position: absolute;
  top: 14px; right: 16px;
  color: rgba(115, 189, 239, .22);
  font: 700 36px/1 var(--font-h);
}
.engine-node:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 206, 255, .44);
  background: linear-gradient(180deg, rgba(18, 43, 70, .78), rgba(6, 18, 34, .92));
}
.engine-node-icon {
  width: 56px; height: 56px;
  margin-bottom: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(27, 211, 255, .46);
  border-radius: 16px;
  color: #65e8ff;
  background: rgba(0, 194, 255, .07);
  box-shadow: 0 0 24px rgba(0,194,255,.1);
}
.engine-node-icon svg { width: 28px; height: 28px; }
.engine-node-copy > span {
  display: block;
  color: #5dd8f9;
  font: 600 10px/1 var(--font-h);
  letter-spacing: .22em;
}
.engine-node h3 { margin: 8px 0 9px; color: #fff; font: 600 clamp(20px, 1.55vw, 27px)/1.05 var(--font-h); }
.engine-node p { margin: 0; max-width: 27ch; color: #8fa7bd; font: 400 14px/1.55 var(--font-b); }
.engine-node-state {
  position: absolute;
  right: 20px; bottom: 17px;
  color: #5eeeff;
  font: 600 9px/1 var(--font-h);
  letter-spacing: .17em;
}
.engine-node-state::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 7px;
  vertical-align: 1px;
  border-radius: 50%;
  background: #5eeeff;
  box-shadow: 0 0 8px #00c2ff;
}

.engine-console {
  margin: 0 32px 32px;
  overflow: hidden;
  border: 1px solid rgba(93, 176, 235, .14);
  border-radius: 15px;
  background: rgba(2, 7, 14, .74);
}
.console-head,
.console-row {
  display: grid;
  grid-template-columns: 105px 28px minmax(185px, 1fr) minmax(230px, 1.15fr) 70px;
  align-items: center;
}
.console-head {
  grid-template-columns: 1fr auto;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(118, 186, 234, .12);
  color: #66839d;
  font: 600 9px/1 var(--font-h);
  letter-spacing: .2em;
}
.console-head span:last-child { color: #45d8ef; }
.console-row {
  min-height: 49px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(118, 186, 234, .08);
  color: #dce9f5;
  font-size: 12px;
}
.console-row:last-child { border-bottom: 0; }
.console-row time { color: #4e6579; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.console-icon { color: #27dfff; font-size: 9px; text-shadow: 0 0 9px #00c2ff; }
.console-row b { font-weight: 500; }
.console-row small { color: #668097; font-size: 11px; }
.console-row i {
  justify-self: end;
  color: #57e7fa;
  font: 600 9px/1 var(--font-h);
  letter-spacing: .12em;
  font-style: normal;
}
.engine-close { max-width: 980px; margin: clamp(54px, 6vw, 88px) auto 0; text-align: center; }
.engine-close p { margin: 0 auto 30px; color: #8aa2b8; font: 300 clamp(18px, 1.55vw, 24px)/1.5 var(--font-b); }
.engine-close p span { color: #e5f2fd; }
.engine-close p strong { color: #fff; font-weight: 500; }
.engine-cta {
  min-height: 58px;
  appearance: none;
  cursor: pointer;
  padding: 0 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #15ceff;
  border-radius: 999px;
  color: #04101b;
  background: linear-gradient(90deg, #3ce7ff, #0baeff);
  box-shadow: 0 0 34px rgba(0,194,255,.27);
  font: 700 14px/1 var(--font-h);
  letter-spacing: .08em;
  transition: transform .22s ease, box-shadow .22s ease;
}
.engine-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 38px rgba(0,194,255,.34); }

@keyframes engineSignal {
  0% { left: 0; opacity: 0; }
  7% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}
@keyframes engineBlink {
  0%,100% { opacity: .38; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 1000px) {
  .engine-shell { width: min(100% - 32px, 760px); }
  .engine-intro { grid-template-columns: 1fr; gap: 24px; }
  .engine-intro h2 { font-size: clamp(40px, 8vw, 68px); }
  .engine-intro-copy {
    max-width: 680px;
    padding-bottom: 0;
  }
  .engine-journey { grid-template-columns: 1fr 1fr; }
  .engine-track { display: none; }
  .engine-node { min-height: 220px; }
  .console-head, .console-row { grid-template-columns: 92px 22px 1fr 62px; }
  .console-row small { display: none; }
}
@media (max-width: 620px) {
  .engine-section { padding: 76px 0 82px; }
  .engine-shell { width: calc(100% - 28px); }
  .engine-kicker { font-size: 10px; letter-spacing: .22em; }
  .engine-intro h2 { font-size: clamp(38px, 12vw, 55px); }
  .engine-live { margin-top: 50px; border-radius: 20px; }
  .engine-live-top { height: 56px; padding: 0 16px; }
  .engine-journey { grid-template-columns: 1fr; padding: 20px 14px; gap: 12px; }
  .engine-node { min-height: 198px; padding: 23px 20px 20px; }
  .engine-node-icon { margin-bottom: 24px; }
  .engine-console { margin: 0 14px 14px; }
  .console-head { padding: 0 12px; }
  .console-row { grid-template-columns: 22px 1fr 52px; padding: 0 12px; min-height: 48px; }
  .console-row time, .console-row small { display: none; }
  .engine-close { margin-top: 54px; }
  .engine-cta { width: 100%; min-height: 56px; padding: 0 20px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .engine-live-dot, .engine-signal { animation: none !important; }
  .engine-node, .engine-cta { transition: none !important; }
}


/* ---------- demo browser ---------- */
.demo-browser {
  margin-top: clamp(72px, 7vw, 110px);
}
.demo-industry-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.demo-industry-title span {
  width: clamp(72px, 10vw, 170px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, .85));
}
.demo-industry-title span:last-child { transform: scaleX(-1); }
.demo-industry-title h3 {
  margin: 0;
  color: #eaf3ff;
  font: 500 clamp(14px, 1.25vw, 20px)/1 var(--font-h);
  letter-spacing: .34em;
  white-space: nowrap;
}
.demo-industry-tabs {
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
}
.demo-industry-tab {
  min-height: 64px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1.5px solid rgba(190, 210, 230, .42);
  border-radius: 999px;
  background: rgba(4, 13, 28, .56);
  color: #f4f8fc;
  font: 400 clamp(15px, 1.15vw, 19px)/1 var(--font-b);
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.demo-industry-tab svg {
  width: 28px;
  height: 28px;
}
.demo-industry-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(44, 218, 255, .75);
}
.demo-industry-tab.is-active {
  border-color: #12d7ff;
  background: linear-gradient(180deg, rgba(0, 139, 212, .26), rgba(0, 61, 110, .20));
  box-shadow: 0 0 28px rgba(0, 194, 255, .32), inset 0 0 22px rgba(0, 194, 255, .08);
  color: #fff;
}
.demo-industry-tab.is-active svg { color: #31e7ff; }
.demo-cupcake {
  font-size: 24px;
  line-height: 1;
  transform: rotate(180deg);
}

.demo-gallery-head {
  margin-top: clamp(68px, 6vw, 92px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.demo-gallery-label {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #fff;
  font: 600 13px/1 var(--font-h);
  letter-spacing: .28em;
}
.demo-gallery-label i {
  display: block;
  width: clamp(80px, 9vw, 150px);
  height: 1px;
  background: linear-gradient(90deg, #00cfff, transparent);
}
.demo-gallery-head p {
  margin: 0;
  color: #73c7e7;
  font: 500 10px/1 var(--font-h);
  letter-spacing: .24em;
}

.demo-gallery {
  margin-top: 19px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.demo-tile {
  min-width: 0;
  padding: 11px 11px 12px;
  border: 1px solid rgba(46, 133, 191, .30);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(9, 28, 49, .82), rgba(4, 16, 30, .94)),
    #06101d;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, opacity .24s ease;
}
.demo-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(24, 205, 255, .55);
  box-shadow: 0 18px 38px rgba(0,0,0,.24), 0 0 30px rgba(0, 175, 255, .07);
}
.demo-shot {
  position: relative;
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  border: 1px solid rgba(111, 194, 240, .25);
  border-radius: 10px;
  background: #03070e;
}
.demo-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.demo-tile-meta {
  padding: 13px 3px 1px;
}
.demo-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.demo-title-row h4 {
  margin: 0;
  min-width: 0;
  color: #fff;
  font: 600 clamp(16px, 1.15vw, 20px)/1.1 var(--font-h);
}
.demo-title-row span {
  flex: none;
  padding: 6px 10px;
  border: 1px solid #10cfff;
  border-radius: 999px;
  color: #45dfff;
  font: 600 8px/1 var(--font-h);
  letter-spacing: .16em;
}
.demo-tile[data-demo-kind="salon"] .demo-title-row span {
  border-color: #a461ff;
  color: #c49bff;
  background: rgba(130, 60, 220, .12);
}
.demo-tile[data-demo-kind="dessert"] .demo-title-row span {
  border-color: #ff4e9b;
  color: #ff87bb;
  background: rgba(220, 55, 120, .10);
}
.demo-tile-meta > p {
  min-height: 43px;
  margin: 9px 0 13px;
  color: #91abc1;
  font: 400 12px/1.45 var(--font-b);
}
.demo-view {
  width: 100%;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #12cefa;
  border-radius: 999px;
  background: rgba(0, 91, 132, .08);
  color: #f8fcff;
  font: 600 12px/1 var(--font-h);
  letter-spacing: .04em;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.demo-view:hover {
  transform: translateY(-1px);
  background: rgba(0, 194, 255, .12);
  box-shadow: 0 0 19px rgba(0,194,255,.16);
}

/* Business flow now follows the demo gallery. */
.demo-browser + .engine-live {
  margin-top: clamp(76px, 7vw, 112px);
}

@media (max-width: 1120px) {
  .demo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .demo-industry-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }
  .demo-tile-meta > p { min-height: 0; }
}
@media (max-width: 620px) {
  .demo-browser { margin-top: 54px; }
  .demo-industry-title { gap: 11px; }
  .demo-industry-title span { width: 32px; }
  .demo-industry-title h3 {
    font-size: 11px;
    letter-spacing: .24em;
  }
  .demo-industry-tabs {
    margin-top: 22px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .demo-industry-tab {
    min-height: 54px;
    justify-content: flex-start;
    padding: 0 22px;
  }
  .demo-gallery-head {
    margin-top: 48px;
    align-items: center;
  }
  .demo-gallery-head p { display: none; }
  .demo-gallery-label { font-size: 11px; gap: 12px; }
  .demo-gallery-label i { width: 50px; }
  .demo-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .demo-tile { padding: 10px; }
  .demo-title-row h4 { font-size: 18px; }
}

/* Mobile polish for the new demo browser section. */
@media (max-width: 620px) {
  .engine-intro,
  .engine-intro-copy,
  .engine-intro h2 { min-width: 0; max-width: 100%; }
  .engine-intro h2 {
    font-size: clamp(34px, 10.2vw, 42px);
    line-height: .96;
    letter-spacing: -.04em;
  }
}


.demo-tile.is-hidden { display: none; }

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

.demo-coming {
  min-height: 390px;
  display: grid;
  place-items: center;
  border-style: dashed;
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 194, 255, .08), transparent 38%),
    linear-gradient(180deg, rgba(8, 24, 43, .7), rgba(4, 14, 27, .9));
}
.demo-coming.is-hidden { display: none; }
.demo-gallery.is-orbit .demo-tile.demo-coming { display: none; }
.demo-coming-inner {
  max-width: 360px;
  padding: 36px 24px;
  text-align: center;
}
.demo-coming-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 216, 255, .45);
  border-radius: 18px;
  color: #50e4ff;
  background: rgba(0, 194, 255, .07);
  box-shadow: 0 0 28px rgba(0, 194, 255, .09);
}
.demo-coming-icon svg { width: 30px; height: 30px; }
.demo-coming-inner > span {
  color: #59dff8;
  font: 600 9px/1 var(--font-h);
  letter-spacing: .19em;
}
.demo-coming-inner h4 {
  margin: 13px 0 11px;
  color: #fff;
  font: 600 25px/1.1 var(--font-h);
}
.demo-coming-inner p {
  margin: 0;
  color: #8da8be;
  font: 400 14px/1.55 var(--font-b);
}

@media (max-width: 1120px) {
  .demo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .demo-gallery { grid-template-columns: 1fr; }
}


@media (min-width: 1121px) {
  .demo-industry-tabs { width: min(1260px, 100%); }
  .demo-industry-tab { padding: 0 18px; font-size: clamp(14px, 1vw, 17px); gap: 11px; }
  .demo-industry-tab svg { width: 24px; height: 24px; }
}

/* Final mobile polish for the business-engine heading. */
@media (max-width: 620px) {
  .engine-intro h2 {
    font-size: clamp(32px, 9.4vw, 37px);
    line-height: .98;
    overflow-wrap: normal;
  }
}

/* ---------- Food & Beverage circular orbit ---------- */
.demo-cylinder-hint {
  display: none;
  margin: 18px 0 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #63849d;
  font: 600 9px/1 var(--font-h);
  letter-spacing: .18em;
  user-select: none;
}
.demo-cylinder-hint span {
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(54, 213, 255, .55));
}
.demo-cylinder-hint span:last-child { transform: scaleX(-1); }

/* True 3D ring: the gallery is the perspective stage, each tile carries its own
   rotateY(angle) translateZ(radius) transform from js/main.js. Sizes come from
   --ring-w / --ring-h / --ring-p, set by JS from the stage width. */
.demo-gallery.is-orbit {
  position: relative;
  display: block;
  height: var(--ring-h, 620px);
  margin-top: 4px;
  overflow: hidden;
  perspective: var(--ring-p, 1600px);
  perspective-origin: 50% 30%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.demo-gallery.is-orbit:active { cursor: grabbing; }
.demo-gallery.is-orbit:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(41, 218, 255, .55);
  border-radius: 18px;
}
/* Soft floor cue under the ring: a diffuse glow, no edge, no platform. */
.demo-gallery.is-orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--ring-ch, 470px) + 6px);
  width: min(100%, calc(var(--ring-w, 430px) * 3));
  height: calc(var(--ring-w, 430px) * .5);
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 170, 255, .20), rgba(0, 120, 220, .07) 45%, transparent 70%);
  pointer-events: none;
}

.demo-gallery.is-orbit .demo-tile {
  position: absolute;
  left: 50%;
  top: 14px;
  width: var(--ring-w, 430px);
  height: var(--ring-ch, 470px);
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border-color: rgba(60, 160, 220, .38);
  background:
    linear-gradient(180deg, rgba(10, 30, 54, .96), rgba(4, 15, 29, .98)),
    #06101d;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .04);
  will-change: transform, opacity;
  transform-origin: center center;
  backface-visibility: visible;
  -webkit-user-drag: none;
  transition: border-color 260ms ease, box-shadow 260ms ease;
}
.demo-gallery.is-orbit .demo-tile:hover { transform: none; }
.demo-gallery.is-orbit .demo-tile.is-hidden { display: none; }
/* Angle-driven darkening plus a faint glass sheen. A real element (js/main.js adds it) so the per-frame opacity change stays on the compositor. */
.demo-shade { display: none; }
.demo-gallery.is-orbit .demo-shade {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .10), transparent 28%, transparent 70%, rgba(120, 200, 255, .06)),
    #020611;
  background-size: 100% 100%, 100% 100%;
  opacity: 0;
  will-change: opacity;
}
.demo-gallery.is-orbit .demo-tile.is-front {
  border-color: rgba(41, 218, 255, .78);
  box-shadow:
    0 34px 78px rgba(0, 0, 0, .5),
    0 0 40px rgba(0, 194, 255, .17),
    inset 0 1px rgba(255, 255, 255, .05);
}
.demo-gallery.is-orbit .demo-tile img { -webkit-user-drag: none; pointer-events: none; }
.demo-gallery.is-orbit .demo-shot { flex: none; aspect-ratio: 16 / 10; }
.demo-gallery.is-orbit .demo-tile-meta { flex: 1; display: flex; flex-direction: column; }
.demo-gallery.is-orbit .demo-tile-meta > p { flex: 1; min-height: 0; margin-bottom: 10px; }
.demo-gallery.is-orbit .demo-view { flex: none; min-height: 44px; }
.demo-gallery.is-orbit .demo-tile:not(.is-front) .demo-view { pointer-events: none; }
.demo-gallery.is-orbit .demo-tile:not(.is-front) { cursor: pointer; }

@media (max-width: 620px) {
  .engine-intro h2 {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.035em;
  }
  .demo-cylinder-hint {
    margin-top: 13px;
    font-size: 8px;
    letter-spacing: .11em;
  }
  .demo-gallery.is-orbit { margin-left: -14px; margin-right: -14px; }
  .demo-gallery.is-orbit .demo-tile { padding: 8px; border-radius: 14px; }
  .demo-gallery.is-orbit .demo-tile-meta > p { font-size: 11.5px; line-height: 1.4; margin: 7px 0 8px; }
  .demo-gallery.is-orbit .demo-title-row { flex-wrap: wrap; row-gap: 5px; }
  .demo-gallery.is-orbit .demo-title-row h4 { font-size: 15px; }
  .demo-gallery.is-orbit .demo-title-row span { padding: 5px 8px; font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-gallery.is-orbit .demo-tile { transition: none; }
}

html, body { overflow-x: hidden; }

/* Captain phone-only hero correction: preserve desktop/tablet. */
@media (max-width: 600px) {
  :root { --cw: min(54vw, 220px); }

  .showcase {
    padding-left: 10px;
    padding-right: 10px;
    overflow: visible;
  }

  .stage {
    height: calc(var(--cw) * 1.47 + 10px);
    margin-top: 14px;
  }

  .screen.seafood-preview {
    object-fit: contain;
    object-position: center top;
    background: #120605;
  }

  .card[data-pos="1"] {
    opacity: .50;
    transform: translate3d(calc(-50% + var(--cw) * .48), 10px, -110px) rotateY(-7deg) scale(.76);
  }

  .card[data-pos="2"] {
    opacity: .50;
    transform: translate3d(calc(-50% - var(--cw) * .48), 10px, -110px) rotateY(7deg) scale(.76);
  }

  .dots { margin-top: -4px; }
}

/* referral rewards: a lit stage in a dark room. one spotlight, a filled platform, wall planes that frame it */
/* BIY Referral Rewards / Premium Gallery v5
   Self-contained redesign; existing program, buttons and flip logic remain intact. */
.ref-rewards {
  --rr-cyan: #00c2ff;
  --rr-ice: #5fd4ff;
  --rr-text: #eaf2f8;
  position: relative;
  margin-top: clamp(70px, 7vw, 118px);
  color: var(--rr-text);
}
.demo-browser + .ref-rewards + .engine-live { margin-top: clamp(72px, 7vw, 110px); }
.ref-rewards :focus-visible { outline: 2px solid #8ee7ff; outline-offset: 4px; }
.ref-rewards, .ref-rewards * { box-sizing: border-box; }

/* Editorial glass panel instead of the faux auditorium. */
.ref-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(34px, 4.5vw, 78px);
  border: 1px solid rgba(112, 200, 249, .22);
  border-radius: clamp(22px, 2.5vw, 34px);
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(0, 194, 255, .13), transparent 80%),
    radial-gradient(ellipse 55% 65% at 0% 100%, rgba(36, 85, 157, .22), transparent 80%),
    linear-gradient(142deg, #0d1d33 0%, #091524 48%, #08111e 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .065);
}
.ref-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(84, 169, 231, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 169, 231, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 86%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 86%);
}
.ref-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -270px;
  right: -160px;
  width: min(780px, 80%);
  aspect-ratio: 1;
  border: 1px solid rgba(79, 205, 255, .12);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 88px rgba(0, 194, 255, .018), 0 0 0 180px rgba(0, 194, 255, .012);
}
/* Retire the old side walls, stacked panels and circular platform. */
.ref-scene, .ref-wall, .ref-panel, .ref-floor { display: none !important; }

/* Strong, readable section hierarchy. */
.ref-head { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; text-align: center; }
.ref-eyebrow {
  margin: 0;
  color: var(--rr-ice);
  font: 750 clamp(11px, .88vw, 13px)/1.4 var(--font-h);
  letter-spacing: .26em;
  text-transform: uppercase;
}
.ref-head h3 {
  margin: 18px 0 0;
  color: #fff;
  font: 850 clamp(32px, 4.2vw, 64px)/1.06 var(--font-h);
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: balance;
}
.ref-head h3 em { color: var(--rr-cyan); font-style: normal; }
.ref-tagline {
  margin: 22px 0 0;
  color: #eaf2f8;
  font: 750 clamp(14px, 1.18vw, 18px)/1.45 var(--font-h);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ref-sub {
  margin: 12px auto 0;
  max-width: 650px;
  color: #b6cee1;
  font: 450 clamp(16px, 1.16vw, 19px)/1.65 var(--font-b);
  text-wrap: balance;
}

/* The action is a featured full-width banner; the three rewards line up BELOW it. */
.ref-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(14px, 1.7vw, 26px);
  row-gap: clamp(19px, 2vw, 30px);
  list-style: none;
  padding: 0;
  margin: clamp(36px, 4vw, 56px) 0 0;
}
.ref-item {
  position: relative;
  min-width: 0;
  display: grid;
  perspective: 1300px;
}
.ref-item--1 { grid-column: 1 / -1; }
.ref-item::before, .ref-item::after { content: none; }

/* Featured referral action: three readable columns, not a giant overlapping card. */
.ref-share {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 245px) minmax(0, 1fr) minmax(160px, 215px);
  align-items: center;
  column-gap: clamp(20px, 2.7vw, 40px);
  row-gap: 14px;
  width: 100%;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid rgba(126, 213, 255, .28);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 65% 120% at 0% 50%, rgba(0, 194, 255, .12), transparent 82%),
    linear-gradient(110deg, #193350, #11243d 57%, #11253c 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 18px 40px rgba(0, 0, 0, .16);
}
.ref-share::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--rr-ice), var(--rr-cyan));
  box-shadow: 0 0 24px rgba(0, 194, 255, .5);
}
.ref-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ref-titles { display: flex; flex-direction: column; gap: 7px; }
.ref-ico {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(95, 212, 255, .27);
  border-radius: 13px;
  color: var(--rr-ice);
  background: rgba(0, 194, 255, .085);
}
.ref-ico svg { width: 23px; height: 23px; }
.ref-label { color: var(--rr-ice); font: 750 12px/1.3 var(--font-h); letter-spacing: .17em; text-transform: uppercase; }
.ref-share h4 { margin: 0; color: #fff; font: 800 clamp(20px, 1.8vw, 26px)/1.1 var(--font-h); letter-spacing: -.025em; }
.ref-message { margin: 0; color: #d6e7f4; font: 450 clamp(15px, 1vw, 17px)/1.65 var(--font-b); overflow-wrap: anywhere; }
.ref-message a { color: #6bddff; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.ref-copy {
  position: relative;
  min-height: 54px;
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 14px 18px;
  color: #061422;
  background: linear-gradient(110deg, #5fe0ff, #00c2ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 28px rgba(0, 194, 255, .14);
  font: 800 15px/1.25 var(--font-b);
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.ref-copy:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 32px rgba(0, 194, 255, .22); }
.ref-status { grid-column: 1 / -1; margin: 0; color: #85e6ff; font: 600 14px/1.4 var(--font-b); }
.ref-status:empty { display: none; }

/* Card flips preserve the existing a11y controls and JS without overlay/clipping. */
.ref-flip {
  display: grid;
  min-width: 0;
  min-height: 410px;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.75,.16,1);
}
.ref-flip.is-flipped { transform: rotateY(180deg); }
.ref-face {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(93, 187, 243, .27);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 95% 56% at 100% 0%, rgba(0, 194, 255, .15), transparent 79%),
    linear-gradient(152deg, #17304c 0%, #101f35 44%, #0b1729 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 14px 38px rgba(0, 0, 0, .19);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.ref-front {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: clamp(24px, 2.4vw, 34px);
  color: #eaf2f8;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, filter .2s;
}
.ref-front::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 3px;
  top: 0;
  left: 32px;
  border-radius: 0 0 4px 4px;
  background: var(--rr-cyan);
  box-shadow: 0 0 22px rgba(0, 194, 255, .35);
}
.ref-front:hover {
  border-color: rgba(121, 221, 255, .62);
  box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 21px 45px rgba(0, 0, 0, .22), 0 0 28px rgba(0, 194, 255, .055);
}
.ref-amount {
  margin: 32px 0 0;
  color: #fff;
  font: 850 clamp(54px, 5vw, 76px)/.96 var(--font-h);
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.ref-unit { margin: 13px 0 0; color: var(--rr-ice); font: 750 clamp(18px, 1.5vw, 22px)/1.2 var(--font-h); }
.ref-detail {
  align-self: stretch;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(95, 212, 255, .19);
  color: #bcd4e6;
  font: 450 clamp(15px, 1.1vw, 17px)/1.6 var(--font-b);
}
.ref-hint {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 38px;
  margin-top: auto;
  padding-top: 20px;
  color: #6bddff;
  font: 700 14px/1.3 var(--font-b);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.ref-back {
  display: flex;
  flex-direction: column;
  transform: rotateY(180deg);
  padding: clamp(22px, 2vw, 30px);
}
.ref-back h4 { margin: 0; color: #fff; font: 800 18px/1.3 var(--font-h); }
.ref-back ul { margin: 15px 0 0; padding-left: 20px; color: #d0e2ef; font: 450 14px/1.48 var(--font-b); }
.ref-back li + li { margin-top: 8px; }
.ref-back strong { color: #fff; font-weight: 700; }
.ref-proposed { margin: 13px 0 0; color: #a4bbcc; font: 450 12.5px/1.45 var(--font-b); }
.ref-close {
  margin: auto 0 0;
  min-height: 44px;
  padding: 10px 20px;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(95, 212, 255, .56);
  border-radius: 12px;
  background: rgba(0, 194, 255, .09);
  color: #eaf2f8;
  font: 700 14px/1.4 var(--font-b);
  cursor: pointer;
}
.ref-close:hover { background: rgba(95, 212, 255, .2); }

/* Single shared terms panel underneath all three tier cards, inside the gallery. */
.ref-terms-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(165px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: 16px clamp(20px, 3vw, 42px);
  margin-top: clamp(20px, 2.4vw, 30px);
  padding: clamp(21px, 2.1vw, 30px) clamp(23px, 2.8vw, 37px);
  border: 1px solid rgba(95, 212, 255, .29);
  border-radius: 18px;
  background: linear-gradient(112deg, rgba(25, 50, 77, .84), rgba(10, 26, 44, .9));
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 12px 30px rgba(0,0,0,.1);
}
.ref-terms-panel-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ref-terms-panel-rule { width: 42px; height: 3px; border-radius: 4px; background: #00c2ff; box-shadow: 0 0 16px rgba(0,194,255,.4); }
.ref-terms-panel-title { color: #85ddfa; font: 750 clamp(12px, 1vw, 14px)/1.45 var(--font-h); text-transform: uppercase; letter-spacing: .15em; }
.ref-terms-panel-copy { display: grid; gap: 8px; min-width: 0; }
.ref-terms-panel-copy p { margin: 0; color: #c3d9e9; font: 450 clamp(13.5px, 1vw, 15.5px)/1.55 var(--font-b); }
.ref-terms-panel-copy strong { color: #eef8ff; font-weight: 700; }
@media (max-width: 720px) {
  .ref-terms-panel { grid-template-columns: minmax(0,1fr); gap: 13px; padding: 21px 20px; border-radius: 16px; }
  .ref-terms-panel-heading { flex-direction: row; align-items: center; gap: 13px; }
  .ref-terms-panel-rule { flex: none; }
  .ref-terms-panel-copy { gap: 10px; }
}
@media (max-width: 1100px) {
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-item--4 { grid-column: 1 / -1; width: min(100%, 460px); justify-self: center; }
  .ref-share { grid-template-columns: minmax(0, 1fr) auto; }
  .ref-message { grid-column: 1; }
  .ref-copy { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 178px; }
  .ref-flip { min-height: 425px; }
}
@media (max-width: 720px) {
  .ref-rewards { margin-top: 56px; }
  .ref-stage { padding: 34px clamp(18px, 5vw, 32px); border-radius: 23px; }
  .ref-grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; gap: 18px; }
  .ref-item--1, .ref-item--4 { grid-column: 1; width: 100%; }
  .ref-share { grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 23px 20px; }
  .ref-message, .ref-copy { grid-column: 1; grid-row: auto; width: 100%; }
  .ref-head h3 { margin-top: 15px; }
  .ref-tagline { margin-top: 19px; }
  .ref-flip { min-height: 420px; }
  .ref-front { padding: 27px; }
  .ref-back { padding: 23px; }
  .ref-amount { font-size: clamp(58px, 14vw, 76px); }
}
@media (max-width: 360px) {
  .ref-stage { padding: 25px 15px; }
  .ref-head h3 { font-size: 31px; }
  .ref-flip { min-height: 465px; }
  .ref-front, .ref-back { padding: 21px; }
  .ref-back ul { font-size: 13.2px; line-height: 1.45; }
  .ref-back li + li { margin-top: 6px; }
  .ref-amount { font-size: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .ref-flip, .ref-copy { transition: none; }
}

/* qa phone actions */
@media (max-width: 560px) { .actions .btn { width: min(100%, 270px); } }
