/* Salonix public site. The landing is dark (body.dark); the privacy page stays in the light brand theme.
   A plain page: blocks fade in once and nothing depends on scroll position. Tokens copied from style.css. */
:root {
  --background: #f7f6f3;
  --foreground: #0c0c0b;
  --muted: #efede8;
  --card: #ffffff;
  --border: #e7e4de;
  --border-strong: #d6d2ca;
  --muted-foreground: #6e6a63;
  --text-3: #45423d;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
body.dark {
  --background: #050505;
  --foreground: #f2efe9;
  --muted-foreground: #8f8b84;
  --text-3: #a5a19a;
  --border: rgba(242, 239, 233, .1);
  --border-strong: rgba(242, 239, 233, .24);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: fixed; left: 12px; top: -80px; z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--foreground); color: var(--background); text-decoration: none; font-size: 16px; }
.skip:focus { top: 10px; }

/* Barely visible film grain over the whole dark page. */
body.dark::after {
  content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Loading screen while the 3D model is prepared. Only with JavaScript, so a page without it is never covered. */
.loader { display: none; }
html.js .loader { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #050505; color: #8f8b84; font-size: 14px; transition: opacity .5s, visibility .5s; }
.loader img { width: 160px; height: auto; }
.loader i { position: relative; width: 120px; height: 2px; margin-top: 14px; overflow: hidden; border-radius: 2px; background: rgba(242, 239, 233, .16); }
.loader i::after { content: ''; position: absolute; inset: 0; background: #f2efe9; transform: translateX(-100%); animation: load 1.2s ease-in-out infinite; }
@keyframes load { to { transform: translateX(100%); } }
.loader.done { opacity: 0; visibility: hidden; }

/* ---------- buttons and header ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--foreground); color: var(--background); }
.btn-primary:hover { background: #2b2a27; }
.dark .btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--foreground); }
.btn-text { padding-inline: 14px; }
.btn-text:hover { background: var(--muted); }
.dark .btn-text:hover { background: rgba(242, 239, 233, .08); }
.btn-s { min-height: 40px; padding-inline: 16px; }

.top { height: 72px; }
.top .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.lockup { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; flex: none; }
.lockup img { width: 104px; height: auto; }
.lockup span { font-size: 11px; line-height: 1; color: var(--muted-foreground); }

/* ---------- centred words ---------- */
.dark main { text-align: center; }
.dark h1 { font-size: clamp(34px, 1.6rem + 2.6vw, 56px); line-height: 1.08; letter-spacing: -.032em; font-weight: 500; text-wrap: balance; }
.dark h2 { max-width: 19em; margin-inline: auto; font-size: clamp(26px, 1.1rem + 1.7vw, 38px); line-height: 1.16; letter-spacing: -.026em; font-weight: 500; text-wrap: balance; }
.ln { display: inline-block; }
.lead, .sub { max-width: 30em; margin: 16px auto 0; color: var(--muted-foreground); text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.note { margin-top: 14px; font-size: 16px; color: var(--muted-foreground); }

.first { padding-top: clamp(32px, 6vh, 64px); }
.beat { padding-top: clamp(88px, 10vw, 136px); }
.first + .beat { padding-top: clamp(16px, 3vw, 40px); }
.iceberg { position: relative; width: 100%; max-width: 2000px; height: min(56.25vw, 720px); margin: 20px auto 0; overflow: hidden; }
.iceberg picture, .iceberg img, .iceberg canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.iceberg img { object-fit: cover; mix-blend-mode: lighten; }
.iceberg canvas { opacity: 0; transition: opacity .7s; }
.iceberg.live canvas { opacity: 1; }

/* Without WebGL the steps are ordinary blocks under the poster. */
.ice { padding-top: clamp(88px, 10vw, 136px); }
.ice-step { padding-top: clamp(88px, 10vw, 136px); }
.ice-pin { display: none; }

/* The iceberg scene: the stage is pinned and scrolling moves the camera. */
.ice.scene-on { height: 820vh; height: 820svh; padding-top: 0; }
.scene-on .ice-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene-on .iceberg { position: absolute; inset: 0; max-width: none; height: 100%; margin: 0; }
.scene-on .ice-steps { position: absolute; inset: 0; max-width: none; padding: 0; pointer-events: none; }
.scene-on .ice-step {
  position: absolute; left: max(var(--gutter), calc(50vw - 560px)); top: 50%; width: min(440px, 38vw); padding: 0; text-align: left;
  opacity: 0; transform: translateY(-46%); transition: opacity .3s, transform .5s var(--out);
}
.scene-on .ice-step.on { opacity: 1; transform: translateY(-50%); transition: opacity .45s .12s, transform .6s .12s var(--out); }
.scene-on .ice-step h2, .scene-on .ice-step .sub { margin-inline: 0; }
.scene-on .ice-step .ui { max-width: none; margin: 22px 0 0; }
.scene-on .ice-pin {
  display: inline-flex; align-items: center; gap: 8px; position: absolute; left: 0; top: 0; padding: 5px 12px 5px 10px; border: 1px solid rgba(120, 214, 255, .34); border-radius: 999px;
  background: rgba(5, 5, 5, .72); color: #cfeeff; font-size: 14px; line-height: 20px; white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; will-change: transform;
}
.scene-on .ice-pin::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #78d6ff; }
.scene-on .ice-pin.on { opacity: 1; }

.beat-last { padding-top: 8px; padding-bottom: clamp(88px, 10vw, 136px); }
.have { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-foreground); font-size: 16px; }
.have a { display: inline-flex; align-items: center; min-height: 44px; color: var(--foreground); text-underline-offset: 3px; }

/* ---------- small interface pieces: flat, one per block, static ---------- */
.ui { width: 100%; max-width: 520px; margin: 32px auto 0; text-align: left; font-size: 15px; line-height: 1.35; }
.surface { background: #111110; border: 1px solid var(--border); border-radius: 14px; }
.ui b { font-weight: 500; }
.ui i { font-style: normal; }
.tag { flex: none; padding: 0 9px; border-radius: 999px; background: rgba(242, 239, 233, .08); color: var(--text-3); font-size: 14px; line-height: 24px; white-space: nowrap; }
.tag-visit { background: rgba(132, 160, 232, .14); color: #aebfe8; }
.tag-wait { background: rgba(226, 158, 104, .14); color: #dcb08c; }

.ui-talk { display: flex; flex-direction: column; gap: 8px; }
.bubble { align-self: flex-start; max-width: 84%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: #111110; }
.bubble-bot { align-self: flex-end; border-color: transparent; background: #1e1d1b; }
.bubble-solo { align-self: center; }
.bubble em { display: block; margin-bottom: 2px; font-size: 14px; font-style: normal; color: var(--muted-foreground); }

.deal { padding: 16px 18px; }
.deal-top { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.deal-top b { font-weight: 500; }
.deal-top span { font-weight: 500; white-space: nowrap; }
.deal-car { margin-top: 2px; color: var(--muted-foreground); }
.deal-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--text-3); font-size: 14px; }

.chat-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.chat-row + .chat-row { border-top: 1px solid var(--border); }
.ava { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(242, 239, 233, .08); color: var(--text-3); font-size: 14px; }
.chat-text { flex: 1; min-width: 0; }
.chat-text b { display: block; }
.chat-text span { display: block; overflow: hidden; color: var(--muted-foreground); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }

.stock { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; align-items: end; gap: 12px 16px; padding: 16px 18px; }
.stock-car { grid-column: 1 / -1; font-size: 16px; }
.stock-cell small { display: block; color: var(--muted-foreground); font-size: 14px; }
.delta { color: #d99a90; font-weight: 500; }

.report { padding: 6px 18px 8px; }
.report-head { display: flex; justify-content: space-between; padding-block: 10px; border-bottom: 1px solid var(--border); }
.report-head span { color: var(--muted-foreground); font-size: 14px; }
.report-row { display: flex; justify-content: space-between; padding-block: 8px; color: var(--text-3); }
.report-row b { color: var(--foreground); }

/* ---------- photos rise out of the dark ----------
   The mask dissolves all four edges. "lighten" keeps the page colour wherever the photo is darker,
   so the photo's black can never show up as a rectangle against the slightly lighter page. */
.photo {
  --sides: linear-gradient(to right, transparent var(--edge-a, 0%), #000 var(--edge-b, 14%), #000 calc(100% - var(--edge-c, 14%)), transparent 100%);
  --ends: linear-gradient(to bottom, transparent 0, #000 var(--top, 12%), #000 var(--low, 62%), transparent 100%);
  width: 100%; margin-inline: auto; mix-blend-mode: lighten;
  -webkit-mask-image: var(--sides), var(--ends);
  -webkit-mask-composite: source-in;
  mask-image: var(--sides), var(--ends);
  mask-composite: intersect;
}
.photo img { display: block; width: 100%; height: auto; }
.first .wrap { position: relative; z-index: 1; }
.photo-hero {
  --oval: radial-gradient(ellipse var(--rx, 50%) var(--ry, 54%) at 50% var(--cy, 46%), #000 68%, transparent 100%);
  --edge-b: 6%; --edge-c: 6%;
  max-width: 1640px; margin-top: clamp(-56px, -3vw, 0px);
  -webkit-mask-image: var(--oval), var(--sides);
  mask-image: var(--oval), var(--sides);
}
.photo-detail { max-width: 1400px; margin-top: clamp(40px, 6vw, 88px); --edge-a: 2.5%; --edge-b: 15%; --edge-c: 20%; --top: 22%; --low: 62%; }
.photo-detail img { filter: saturate(.62); }

/* ---------- one-time entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes emerge { from { opacity: 0; } to { opacity: 1; } }
html.js .reveal:not(.in) { opacity: 0; }
.reveal.in { animation: rise .6s var(--out) backwards; animation-delay: var(--d, 0s); }
.photo.reveal.in { animation: emerge 1.4s ease-out backwards; animation-delay: var(--d, 0s); }
.d1 { --d: .08s; }
.d2 { --d: .16s; }
.d3 { --d: .24s; }

/* ---------- footer ---------- */
.foot { padding-block: 18px 28px; font-size: 14.5px; color: var(--muted-foreground); border-top: 1px solid var(--border); }
.dark .foot { font-size: 16px; }
.foot-note { font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 28px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 92px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.foot a:hover { color: var(--foreground); }

/* ---------- privacy (light) ---------- */
.doc { max-width: 800px; padding-block: clamp(32px, 6vw, 64px); font-size: 17px; line-height: 1.5; }
.doc h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.07; letter-spacing: -.034em; font-weight: 600; text-wrap: balance; }
.doc h2 { margin-top: 44px; font-size: clamp(23px, 2.6vw, 28px); line-height: 1.18; letter-spacing: -.022em; font-weight: 600; text-wrap: balance; }
.doc p, .doc ul { margin-top: 14px; color: var(--text-3); }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.ph { padding: 1px 5px; border-radius: 5px; background: var(--muted); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border-strong); font-size: .94em; }
.doc-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15.5px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.doc-table th { font-size: 13.5px; font-weight: 500; color: var(--muted-foreground); background: var(--background); }
.doc-table tr:last-child td { border-bottom: 0; }

@media (max-width: 767.98px) {
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-table tr { padding: 8px 0; border-bottom: 1px solid var(--border-strong); }
  .doc-table tr:last-child { border-bottom: 0; }
  .doc-table td { padding: 5px 14px; border: 0; }
  .doc-table td::before { content: attr(data-th); display: block; font-size: 12.5px; color: var(--muted-foreground); }
}

/* ---------- phones ---------- */
@media (max-width: 639.98px) {
  .photo { --edge-b: 5%; --edge-c: 5%; }
  .photo-hero { margin-top: 10px; --rx: 64%; --ry: 56%; --cy: 44%; --edge-b: 5%; --edge-c: 5%; }
  .photo-detail { --edge-a: 0%; --edge-b: 8%; --edge-c: 10%; }
  .dark .foot .wrap { justify-content: center; text-align: center; }
}
@media (max-width: 859.98px) {
  .scene-on .ice-steps::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(transparent, var(--background) 30%); opacity: 0; transition: opacity .4s; }
  .scene-on .has-step::after { opacity: 1; }
  .scene-on .ice-step { left: var(--gutter); right: var(--gutter); top: auto; bottom: 18px; width: auto; z-index: 1; text-align: center; transform: translateY(10px); }
  .scene-on .ice-step.on { transform: none; }
  .scene-on .ice-step h2, .scene-on .ice-step .sub, .scene-on .ice-step .ui { margin-inline: auto; }
  .scene-on .ice-step .ui { max-width: 520px; margin-top: 16px; text-align: left; }
}
@media (max-width: 639.98px) {
  .iceberg { height: auto; aspect-ratio: 9 / 10; }
  .scene-on .iceberg { height: 100%; aspect-ratio: auto; }
  .iceberg img { object-fit: contain; }
}
@media (max-width: 479.98px) {
  .top { height: 64px; }
  .top .wrap { gap: 4px; }
  .top nav { gap: 2px; }
  .top .btn { min-height: 44px; padding-inline: 14px; }
  .top .btn-text { padding-inline: 8px; }
  .lockup img { width: 76px; }
}
@media (max-width: 374.98px) {
  body:not(.dark) .lockup img { width: 26px; height: 24px; object-fit: cover; object-position: left; }
}
@media (max-width: 359.98px) {
  body:not(.dark) .lockup span { display: none; }
  .top .btn { padding-inline: 12px; }
}

@media (min-width: 960px) {
  body { font-size: 18px; }
}
