/* Jilluxury Hair — site styles.
   Tokens are sampled from Jil's own materials (appointment card gold/black, rules-card champagne),
   not invented: gold #CDAD73 / hi #F4E0B3 / lo #957848, card black, champagne #EDE2DA, taupe #C1A78E. */

:root {
  --ink: #0e0d0c;
  --ink-2: #151311;
  --ink-3: #1d1a17;
  --line: rgba(205, 173, 115, 0.22);
  --line-strong: rgba(205, 173, 115, 0.45);
  --gold: #cdad73;
  --gold-hi: #f4e0b3;
  --gold-lo: #957848;
  --gold-deep: #7a5a22;
  --champagne: #ede2da;
  --taupe: #c1a78e;
  --text: #f3ece2;
  --text-2: #bdb3a6;
  --foil: linear-gradient(100deg, #957848 0%, #f4e0b3 34%, #cdad73 52%, #8a6a2f 76%, #e8cb86 100%);

  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-lyric: "Cormorant Garamond", Georgia, serif;
  --f-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px; --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --radius: 2px;
  --maxw: 1180px;
  --bar-h: 0px; /* mobile action bar height, set below */

  /* z scale */
  --z-canvas: 0; --z-veil: 1; --z-content: 2; --z-nav: 40; --z-bar: 50; --z-fab: 60; --z-panel: 70; --z-skip: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1rem/1.7 var(--f-body); letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: var(--z-skip); background: var(--gold); color: var(--ink);
  padding: 10px 16px; font-weight: 500; text-decoration: none; transition: transform .2s var(--ease-out); }
.skip:focus { transform: translateY(76px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3D stage ---------- */
#stage { position: fixed; inset: 0; z-index: var(--z-canvas); pointer-events: none; }
#stage canvas { width: 100% !important; height: 100% !important; display: block; }
.grain { position: fixed; inset: -50%; z-index: var(--z-veil); pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vignette { position: fixed; inset: 0; z-index: var(--z-veil); pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%),
    linear-gradient(to bottom, rgba(14,13,12,.55) 0%, transparent 18%, transparent 78%, rgba(14,13,12,.7) 100%); }
main, header, footer { position: relative; z-index: var(--z-content); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 14px clamp(16px, 4vw, 40px); transition: background .3s var(--ease-out), border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(14, 13, 12, .92); border-bottom-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.nav__brand img { width: 30px; height: auto; }
.nav__brand span { font: 500 .82rem/1 var(--f-display); letter-spacing: .28em; }
.nav__links { display: none; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--text-2); text-decoration: none; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 12px 2px; position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--gold-hi); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__toggle { width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; color: var(--gold-hi);
  display: grid; place-items: center; cursor: pointer; border-radius: var(--radius); }
.nav__toggle:active { transform: scale(.96); }
.drawer { position: fixed; inset: 0; z-index: calc(var(--z-nav) + 1); background: var(--ink); display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: var(--s-4); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out); }
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer a { font: 400 1.5rem/1.2 var(--f-display); letter-spacing: .14em; color: var(--text); text-decoration: none; padding: 10px 16px; }
.drawer a:hover, .drawer a:focus-visible { color: var(--gold-hi); }
.drawer__close { position: absolute; top: 14px; right: clamp(16px, 4vw, 40px); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------- Buttons ---------- */
.btn { --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h);
  padding: 0 26px; border-radius: var(--radius); font: 500 .78rem/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease-spring), box-shadow .3s var(--ease-out), color .2s, border-color .2s;
  touch-action: manipulation; }
.btn--gold { background: var(--foil); color: #17130d;
  box-shadow: 0 1px 0 rgba(255,240,200,.45) inset, 0 10px 30px -12px rgba(205,173,115,.55), 0 2px 6px rgba(0,0,0,.4); }
.btn--gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255,250,235,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn--gold:hover::after, .btn--gold:focus-visible::after { transform: translateX(120%); }
.btn--line { background: rgba(14,13,12,.35); color: var(--gold-hi); border-color: var(--line-strong); }
.btn--line:hover, .btn--line:focus-visible { border-color: var(--gold); color: #fff; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: .72rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Type ---------- */
.eyebrow { font: 500 .72rem/1.4 var(--f-body); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s-3); }
.h-display { font: 400 clamp(2rem, 6.2vw, 4.6rem)/1.05 var(--f-display); letter-spacing: .06em; margin: 0; }
.h2 { font: 400 clamp(1.7rem, 4.4vw, 3.1rem)/1.12 var(--f-display); letter-spacing: .05em; margin: 0 0 var(--s-4); }
.lyric { font: italic 400 clamp(1.5rem, 4vw, 2.6rem)/1.25 var(--f-lyric); color: var(--champagne); margin: 0; }
.foil { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 58ch; margin: 0 0 var(--s-5); }
.rule { width: 72px; height: 1px; background: var(--gold); border: 0; margin: var(--s-4) 0; }
.wrap { width: min(var(--maxw), 100% - 2 * clamp(16px, 5vw, 48px)); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: end; padding: 110px 0 calc(64px + var(--bar-h)); }
.hero__inner { display: grid; gap: var(--s-4); justify-items: center; text-align: center; }
.hero__logo { width: min(320px, 64vw); filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.hero .lyric { font-size: clamp(1.7rem, 5vw, 3rem); }
.hero__sub { color: var(--text); opacity: .86; max-width: 46ch; margin: 0; font-weight: 300; font-size: clamp(1rem, 1.7vw, 1.15rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--s-2); }
.hero__meta { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); }
.hero__cue { display: grid; justify-items: center; gap: 10px; margin-top: var(--s-4); color: var(--text-2); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; }
.hero__cue i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1 } 70% { transform: scaleY(1); opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }
.hero__skip { color: var(--text-2); font-size: .74rem; letter-spacing: .12em; }
.hero__skip:hover { color: var(--gold-hi); }
/* static hero frame (no-3D fallback): arched mirror with the reveal loop */
.arch { display: none; width: min(300px, 64vw); aspect-ratio: 4 / 5.4; border-radius: 999px 999px 4px 4px; overflow: hidden; margin-inline: auto;
  border: 1px solid var(--gold); box-shadow: 0 0 0 6px rgba(205,173,115,.12), 0 30px 80px -20px rgba(205,173,115,.35); }
.arch video, .arch img { width: 100%; height: 100%; object-fit: cover; }
.no3d .arch { display: block; }

/* ---------- Journey (the walk down the salon) ---------- */
.journey { position: relative; overflow-x: clip; }
.beat { min-height: 110svh; display: grid; align-items: center; padding: 0 0 var(--bar-h); }
.beat__card { max-width: 560px; padding: var(--s-5) 0; }
.beat:nth-child(even) .beat__card { margin-left: auto; text-align: right; }
.beat__card .lyric { font-size: clamp(1.9rem, 5.6vw, 3.6rem); text-shadow: 0 4px 30px rgba(0,0,0,.85); }
.beat__card p.attrib { margin: var(--s-3) 0 0; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.beat__card .beat__body { color: var(--text); opacity: .9; margin: var(--s-3) 0 0; text-shadow: 0 2px 16px rgba(0,0,0,.9); }
.beat--end { text-align: center; }
.beat--end .beat__card { margin-inline: auto; text-align: center; }
.no3d .beat { min-height: auto; padding: var(--s-8) 0; }
.no3d .beat__card { max-width: none; display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: center; text-align: left !important; }
.beat__photo { display: none; }
.no3d .beat__photo { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); }
@media (min-width: 760px) { .no3d .beat__card { grid-template-columns: 1fr 1fr; } }

/* ---------- Panels (solid sections after the 3D) ---------- */
.panel { background: linear-gradient(to bottom, rgba(14,13,12,.9), rgba(14,13,12,.97) 14%); padding: var(--s-9) 0; border-top: 1px solid var(--line); }
.panel--alt { background: var(--ink-2); }
@media (max-width: 700px) { .panel { padding: var(--s-8) 0; } }

/* ---------- The Work ---------- */
.work-stage { min-height: 260svh; display: grid; align-content: start; padding-top: 30svh; text-align: center; }
.work-stage .h2 { text-shadow: 0 4px 30px rgba(0,0,0,.9); }
.no3d .work-stage { min-height: auto; padding: var(--s-8) 0 var(--s-5); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 var(--s-5); }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); cursor: pointer;
  border-radius: 999px; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--gold-hi); border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.chip:active { transform: scale(.97); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity .4s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), transparent 45%); opacity: .8; transition: opacity .3s; }
.tile span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-size: .72rem; letter-spacing: .08em; color: var(--text); line-height: 1.35;
  transform: translateY(6px); opacity: 0; transition: transform .35s var(--ease-out), opacity .35s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover span, .tile:focus-visible span { transform: none; opacity: 1; }
@media (hover: none) { .tile span { opacity: 1; transform: none; } }
.tile[hidden] { display: none; }
.work-foot { text-align: center; margin-top: var(--s-5); color: var(--text-2); font-size: .9rem; }

/* ---------- Menu ---------- */
.menu-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
@media (min-width: 900px) { .menu-head { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s-4); }
.tab { min-height: 44px; padding: 0 16px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text-2); cursor: pointer;
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; transition: color .2s, border-color .2s; }
.tab[aria-selected="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); }
.tab:hover { color: var(--gold-hi); }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s-4); padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc h3 { margin: 0; font: 400 1.05rem/1.3 var(--f-display); letter-spacing: .08em; }
.svc p { margin: 0; color: var(--text-2); font-size: .92rem; grid-column: 1; }
.svc .price { font: 400 1.25rem/1.2 var(--f-lyric); color: var(--gold-hi); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svc .dur { color: var(--text-2); font-size: .78rem; letter-spacing: .1em; text-align: right; grid-column: 2; }
.menu-note { color: var(--text-2); font-size: .86rem; margin-top: var(--s-4); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- The Hair ---------- */
.hair { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .hair { grid-template-columns: .9fr 1.1fr; } }
.hair__media { position: relative; }
.hair__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); }
.hair__media figcaption { position: absolute; left: -1px; bottom: 18px; background: var(--ink); color: var(--gold-hi); padding: 10px 16px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; border: 1px solid var(--line-strong); border-left: 0; }
.hair__media .float { position: absolute; width: 42%; right: -6%; top: -8%; border: 1px solid var(--gold); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
@media (max-width: 959px) { .hair__media .float { right: -2%; } }
blockquote.pull { margin: 0 0 var(--s-4); padding-left: var(--s-4); border-left: 1px solid var(--gold); font: italic 400 clamp(1.3rem, 3vw, 1.8rem)/1.35 var(--f-lyric); color: var(--champagne); }
blockquote.pull cite { display: block; margin-top: var(--s-2); font: 500 .7rem/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.form { display: grid; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-5); background: var(--ink-3); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(205,173,115,.05) inset; }
.form__row { display: grid; gap: var(--s-3); }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.field input, .field select { min-height: 48px; padding: 0 14px; background: var(--ink); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--radius); font: 400 1rem var(--f-body); }
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(205,173,115,.25); }
.field .err { color: #f0a58a; font-size: .8rem; min-height: 1em; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.form__ok { display: none; padding: var(--s-4); border: 1px solid var(--gold); color: var(--champagne); }
.form.is-done > :not(.form__ok) { display: none; }
.form.is-done .form__ok { display: block; }
.or-text { margin-top: var(--s-3); font-size: .9rem; color: var(--text-2); }

/* ---------- Experience ---------- */
.spa { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--s-5); }
@media (min-width: 700px) { .spa { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .spa { grid-template-columns: repeat(4, 1fr); } }
.spa > div { background: var(--ink-2); padding: var(--s-5) var(--s-4); transition: background .3s; }
.spa > div:hover { background: var(--ink-3); }
.spa svg { width: 28px; height: 28px; color: var(--gold); margin-bottom: var(--s-3); }
.spa h3 { margin: 0 0 var(--s-2); font: 400 1rem/1.3 var(--f-display); letter-spacing: .12em; }
.spa p { margin: 0; color: var(--text-2); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; } }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 16px 0; font: 400 1rem/1.4 var(--f-display); letter-spacing: .06em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 300 1.5rem/1 var(--f-body); color: var(--gold); transition: transform .3s var(--ease-out); flex: none; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--gold-hi); }
.qa p { margin: 0 0 var(--s-4); color: var(--text-2); max-width: 62ch; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review { margin: 0; padding: var(--s-5); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(205,173,115,.07), transparent 40%); }
.review p { margin: 0 0 var(--s-3); font: italic 400 1.3rem/1.45 var(--f-lyric); color: var(--champagne); }
.review footer { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.stars { color: var(--gold); letter-spacing: .2em; font-size: .85rem; margin-bottom: var(--s-2); }

/* ---------- Visit ---------- */
.visit { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; color: var(--text-2); }
.addr { font-style: normal; font-size: 1.05rem; line-height: 1.8; margin-bottom: var(--s-4); }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: var(--z-content); background: #0a0908; border-top: 1px solid var(--line); padding: var(--s-8) 0 calc(var(--s-6) + var(--bar-h)); text-align: center; }
.foot img { width: 180px; margin: 0 auto var(--s-4); }
.foot .lyric { font-size: 1.4rem; margin-bottom: var(--s-4); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: var(--s-4); }
.foot nav a { color: var(--text-2); text-decoration: none; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; padding: 10px 0; display: inline-block; }
.foot nav a:hover { color: var(--gold-hi); }
.foot small { color: #8a8175; font-size: .74rem; letter-spacing: .06em; }
.foot small a { color: #a89d8f; }

/* ---------- Mobile action bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(12, 11, 10, .96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .4s var(--ease-out); }
.bar.is-on { transform: none; }
.bar .btn { --h: 48px; padding: 0 12px; }
@media (max-width: 899px) { :root { --bar-h: 72px; } }
@media (min-width: 900px) { .bar { display: none; } }

/* ---------- Concierge ---------- */
.cg-fab { transition: transform .25s var(--ease-spring), bottom .35s var(--ease-out); position: fixed; right: 16px; bottom: calc(16px + var(--fab-lift, 0px) + env(safe-area-inset-bottom)); z-index: var(--z-fab);
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 8px; border-radius: 999px; cursor: pointer;
  background: #14120f; color: var(--gold-hi); border: 1px solid var(--gold); box-shadow: 0 16px 40px -12px rgba(0,0,0,.8), 0 0 24px -6px rgba(205,173,115,.35);
  font: 500 .72rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; transition: transform .25s var(--ease-spring); }
.cg-fab img { width: 36px; height: 36px; border-radius: 50%; background: #0b0a09; padding: 5px; border: 1px solid var(--line-strong); }
.cg-fab:hover { transform: translateY(-2px); }
.cg-fab:active { transform: scale(.97); }
.cg { position: fixed; right: 16px; bottom: calc(80px + var(--fab-lift, 0px) + env(safe-area-inset-bottom)); z-index: var(--z-panel);
  width: min(390px, calc(100vw - 32px)); height: min(560px, calc(100svh - 150px - var(--bar-h))); display: flex; flex-direction: column;
  background: #12100e; border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -30px rgba(0,0,0,.95);
  opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right; pointer-events: none; transition: opacity .25s var(--ease-out), transform .3s var(--ease-out); }
.cg.is-open { opacity: 1; transform: none; pointer-events: auto; }
.cg__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.cg__head img { width: 30px; }
.cg__head div { flex: 1; }
.cg__head strong { display: block; font: 400 .9rem/1.2 var(--f-display); letter-spacing: .14em; }
.cg__head small { color: var(--text-2); font-size: .72rem; }
.cg__x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; font-size: 1.4rem; }
.cg__x:hover { color: var(--gold-hi); }
.cg__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; font-size: .94rem; line-height: 1.55; white-space: pre-wrap; }
.msg--bot { align-self: flex-start; background: var(--ink-3); border: 1px solid var(--line); color: var(--text); }
.msg--me { align-self: flex-end; background: var(--gold); color: #17130d; }
.msg a { color: var(--gold-hi); }
.msg--me a { color: #17130d; }
.cg__chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.cg__chips button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--gold-hi); border-radius: 999px; cursor: pointer; font-size: .78rem; }
.cg__chips button:hover { border-color: var(--gold); }
.cg__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.cg__form input { flex: 1; min-height: 46px; padding: 0 12px; background: var(--ink); color: var(--text); border: 1px solid var(--line-strong); font: 400 1rem var(--f-body); border-radius: var(--radius); }
.cg__form input:focus { outline: none; border-color: var(--gold); }
.cg__form button { min-width: 46px; min-height: 46px; background: var(--gold); color: #17130d; border: 0; cursor: pointer; border-radius: var(--radius); display: grid; place-items: center; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .3; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s } .typing i:nth-child(3) { animation-delay: .3s }
@keyframes dot { 50% { opacity: 1; transform: translateY(-2px); } }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion (OS setting or the a11y widget) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
html.a11yMotion *, html.a11yMotion *::before, html.a11yMotion *::after { animation: none !important; transition: none !important; }
html.a11yMotion .rv { opacity: 1; transform: none; }
html.a11yContrast { --text-2: #e6ddd2; --line: rgba(244,224,179,.5); }

/* ---------- 3D hero compositions ----------
   Phone: brand on top, Jil's mirror (3D) in the middle band, message + actions at the bottom.
   Desktop: editorial split, words on the left, the mirror on the right (camera offsets in scene.js). */
.hero__top, .hero__bottom { display: grid; gap: var(--s-3); justify-items: inherit; }
.hide-sm { display: inline; }
.has3d .hero { padding: 0; }
.has3d .hero__inner { min-height: 100svh; align-content: space-between; padding: 92px 0 calc(28px + var(--bar-h)); position: relative; }
.has3d .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,10,9,.95) 0%, rgba(11,10,9,.8) 22%, rgba(11,10,9,0) 40%),
              linear-gradient(to bottom, rgba(11,10,9,.75) 0%, rgba(11,10,9,0) 30%); }
.has3d .hero { position: relative; }
@media (max-width: 899px) {
  .has3d .hero__logo { width: min(190px, 50vw); }
  .has3d .hero__meta { font-size: .64rem; }
  .has3d .hero__sub { display: none; }
  .has3d .hero .lyric { font-size: clamp(1.6rem, 7.4vw, 2.2rem); }
  .has3d .hero__ctas { flex-wrap: nowrap; width: 100%; }
  .has3d .hero__ctas .btn { flex: 1; padding: 0 12px; }
  .hide-sm { display: none; }
  .has3d .hero__skip { font-size: .7rem; }
}
@media (min-width: 900px) {
  .has3d .hero::before { background: linear-gradient(to right, rgba(11,10,9,.94) 0%, rgba(11,10,9,.78) 34%, rgba(11,10,9,0) 56%),
                                      linear-gradient(to top, rgba(11,10,9,.7) 0%, rgba(11,10,9,0) 25%); }
  .has3d .hero__inner { justify-items: start; text-align: left; align-content: center; gap: var(--s-5); }
  .has3d .hero__top, .has3d .hero__bottom { justify-items: start; max-width: 560px; }
  .has3d .hero__logo { width: 300px; margin-left: -8px; }
  .has3d .hero__ctas { justify-content: flex-start; }
}

/* journey beats sit in the dark center of the corridor, with a soft pool of shade behind the words */
.has3d .beat .beat__card { margin-inline: auto; text-align: center; max-width: 640px; position: relative; }
.has3d .beat .beat__card::before { content: ""; position: absolute; inset: -18% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(8,7,6,.78), rgba(8,7,6,.45) 55%, transparent); }
.has3d .beat--end { align-items: end; padding-bottom: calc(10svh + var(--bar-h)); }

@media (max-width: 899px) {
  .cg-fab { padding: 0 14px 0 6px; min-height: 48px; font-size: .66rem; }
  .cg-fab img { width: 34px; height: 34px; }
}
.hair { align-items: start; }

/* corner buttons ride above the phone action bar only while it is showing */
body.bar-on { --fab-lift: var(--bar-h); }
@media (max-width: 899px) { .has3d .hero__inner { padding-bottom: 84px; } }
