/* ============================================================
   JUNISH Cosmetic Clinic — design system
   Porcelain / bone / champagne / umber · Fraunces + Manrope
   ============================================================ */

:root {
  --porcelain: #F7F3EB;
  --bone: #EFE7D9;
  --bone-deep: #E7DCC9;
  --ink: #2E2418;
  --ink-soft: #6E5E4A;
  --umber: #33281C;
  --umber-deep: #241B11;
  --gold: #AE8C5B;
  --gold-soft: #CBB289;
  --gold-pale: #E4D5B8;
  --line: rgba(70, 54, 34, 0.16);
  --line-dark: rgba(228, 213, 184, 0.18);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --serif-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Proxima Nova", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.15, 1);

  --pad-section: clamp(5.5rem, 11vw, 10.5rem);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.65;
  overflow-x: hidden;
  animation: pageIn 0.65s ease both;
}

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold-pale); color: var(--umber-deep); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- layout primitives ---------- */

.container { width: min(1360px, 90vw); margin-inline: auto; }

.section { padding-block: var(--pad-section); }

.section-alt { background: var(--bone); }

/* ---------- typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.eyebrow-bare::before { display: none; }

.h-display {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.h-display em {
  font-style: italic;
  font-weight: 320;
  letter-spacing: -0.01em;
}

.h1 { font-size: clamp(2.9rem, 7.4vw, 6.6rem); }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }

.lede {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 34em;
}

.body-copy { color: var(--ink-soft); max-width: 36em; }
.body-copy + .body-copy { margin-top: 1.1em; }

/* ---------- buttons & links ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  overflow: hidden;
  transition: color 0.45s var(--ease-luxe), border-color 0.45s var(--ease-luxe);
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--umber);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-luxe);
  z-index: -1;
}

.btn:hover { color: var(--gold-pale); border-color: var(--umber); }
.btn:hover::before { transform: scaleY(1); }

.btn-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--umber-deep);
}

.btn-gold::before { background: var(--gold-pale); }
.btn-gold:hover { color: var(--umber-deep); border-color: var(--gold-pale); }

.btn-ghost-light {
  border-color: rgba(228, 213, 184, 0.5);
  color: var(--gold-pale);
}

.btn-ghost-light::before { background: var(--gold-pale); }
.btn-ghost-light:hover { color: var(--umber-deep); border-color: var(--gold-pale); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.link-arrow svg { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(6px); }

.link-arrow::after {
  display: none;
}

/* ---------- preloader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  background: var(--umber-deep);
  transition: transform 1s var(--ease-luxe);
}

.loader.lift { transform: translateY(-101%); }
.loader.gone { display: none; }

/* soft gold aura breathing behind the lockup */
.loader::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62vmin;
  height: 62vmin;
  margin: -31vmin 0 0 -31vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(174, 140, 91, 0.20), transparent 68%);
  opacity: 0;
  pointer-events: none;
}

.loader.play::before { animation: auraIn 2.4s var(--ease-out) forwards; }

@keyframes auraIn {
  0% { opacity: 0; transform: scale(0.7); }
  55% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.55; transform: scale(1.06); }
}

.loader-logo {
  position: relative;
  width: clamp(186px, 26vw, 258px);
  line-height: 0;
}

.loader-lockup {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.94);
  filter: blur(7px);
}

/* lockup resolves into focus — quiet, luxe */
.loader.play .loader-lockup { animation: focusIn 1.5s 0.15s var(--ease-luxe) forwards; }

@keyframes focusIn {
  0%   { opacity: 0; transform: scale(0.94); filter: blur(7px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* gold shimmer, masked to the logo's own silhouette */
.loader-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 42%,
    rgba(240, 226, 196, 0.9) 50%,
    transparent 58%);
  background-size: 260% 100%;
  background-position: 170% 0;
  -webkit-mask-image: url("../assets/img/junish-lockup-cream.png");
  mask-image: url("../assets/img/junish-lockup-cream.png");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0;
}

.loader.play .loader-shine { animation: shine 1.5s 1s ease-in-out forwards; }

@keyframes shine {
  0%   { background-position: 170% 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { background-position: -70% 0; opacity: 0; }
}

/* ripple ring blooming out from the mark */
.loader-ripple {
  position: absolute;
  left: 50%;
  top: 13%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  opacity: 0;
  pointer-events: none;
}

.loader.play .loader-ripple { animation: ripple 1.8s 0.85s var(--ease-out) forwards; }

@keyframes ripple {
  0% { opacity: 0.6; transform: scale(0); }
  100% { opacity: 0; transform: scale(16); }
}

/* ---------- page veil (transitions) ---------- */

.veil {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--umber-deep);
  transform: translateY(101%);
  pointer-events: none;
}

.veil.in {
  transform: translateY(0);
  transition: transform 0.6s var(--ease-luxe);
}

.veil.out {
  transform: translateY(-101%);
  transition: transform 0.7s 0.05s var(--ease-luxe);
}

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  transition: padding 0.5s var(--ease-out);
}

.nav.scrolled {
  background: rgba(247, 243, 235, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav.scrolled .nav-inner { padding-block: 0.9rem; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-logo .logo-lockup {
  display: block;
  height: 54px;
  width: auto;
  transition: height 0.5s var(--ease-out);
}

.nav.scrolled .nav-logo .logo-lockup { height: 44px; }

/* cream lockup only surfaces over the dark mobile menu overlay */
.nav-logo .logo-cream { display: none; }
body.menu-open .nav-logo .logo-ink { display: none; }
body.menu-open .nav-logo .logo-cream { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-block: 0.3rem;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-luxe);
}

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

.nav .btn { padding: 0.8rem 1.7rem; font-size: 0.68rem; }

/* burger */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.45s var(--ease-luxe), top 0.45s var(--ease-luxe), background 0.3s;
}

.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }

body.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
body.menu-open .menu-toggle span { background: var(--gold-pale); }

/* mobile overlay menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  background: var(--umber-deep);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-luxe);
}

body.menu-open .menu-overlay { clip-path: inset(0 0 0% 0); }

.menu-overlay ul { list-style: none; display: grid; gap: 0.4rem; }

.menu-overlay a {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  color: var(--gold-pale);
  padding-block: 0.35rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

body.menu-open .menu-overlay a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.25s + var(--i) * 80ms);
}

.menu-overlay .menu-meta {
  margin-top: 3rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(203, 178, 137, 0.7);
  opacity: 0;
  transition: opacity 0.6s 0.6s ease;
}

body.menu-open .menu-overlay .menu-meta { opacity: 1; }
body.menu-open { overflow: hidden; }

/* keep the nav (logo + close toggle) above the open overlay */
body.menu-open .nav {
  z-index: 130;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--umber-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  animation: heroDrift 9s var(--ease-out) forwards;
}

@keyframes heroDrift { to { transform: scale(1.02); } }

/* Mediterranean daylight: warm sun resting in the top-left, soft shade falling away */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 58% at 4% 0%, rgba(255, 246, 226, 0.42) 0%, rgba(255, 246, 226, 0) 60%),
    linear-gradient(148deg, rgba(255, 250, 238, 0.32) 0%, rgba(255, 250, 238, 0) 40%),
    linear-gradient(148deg, rgba(120, 96, 66, 0) 58%, rgba(120, 96, 66, 0.10) 100%);
}

.hero-inner {
  position: relative;
  padding-top: 9rem;
  padding-bottom: clamp(2.5rem, 5vh, 4.5rem);
}

.hero .eyebrow { color: var(--umber); }
.hero .eyebrow::before { background: var(--umber); }

.hero-title {
  margin-top: 1.6rem;
  max-width: 11em;
}

.hero-lede {
  margin-top: 2rem;
  color: rgba(46, 36, 24, 0.78);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 6vh, 5rem);
  border-top: 1px solid rgba(46, 36, 24, 0.22);
}

.hero-meta li {
  list-style: none;
  padding: 1.3rem 1.4rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(46, 36, 24, 0.62);
}

.hero-meta li + li { border-left: 1px solid rgba(46, 36, 24, 0.16); padding-left: 1.4rem; }

/* masked line reveal */
.mask-lines .line { display: block; overflow: hidden; }

.mask-lines .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease-luxe);
}

.mask-lines.in .line > span { transform: translateY(0); }
.mask-lines .line:nth-child(2) > span { transition-delay: 0.12s; }
.mask-lines .line:nth-child(3) > span { transition-delay: 0.24s; }

/* ---------- reveal on scroll ---------- */

[data-rv] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

[data-rv].in { opacity: 1; transform: translateY(0); }

[data-rv="fade"] { transform: none; }

[data-rv="img"] { transform: none; }

[data-rv="img"] .frame-img,
[data-rv="img"] img { transition: transform 1.4s var(--ease-luxe), opacity 0.9s ease; }

/* image frames */
.frame {
  position: relative;
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.6s var(--ease-luxe);
}

[data-rv].in .frame img,
.frame.in img { transform: scale(1); }

/* parallax images are driven per-frame by JS — no transition */
.frame img[data-plx],
.band-bg img[data-plx] {
  transition: none;
  transform: scale(1.12);
}

.frame-hairline {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(228, 213, 184, 0.55);
  pointer-events: none;
}

/* ---------- manifesto ---------- */

.manifesto { text-align: left; }

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: end;
}

.manifesto .h2 { max-width: 13em; }

.manifesto-side { display: grid; gap: 1.8rem; justify-items: start; }

/* word-stagger */
.words .w {
  display: inline-block;
  opacity: 0.12;
  transition: opacity 0.5s ease;
  transition-delay: calc(var(--i) * 28ms);
}

.words.in .w { opacity: 1; }

/* ---------- treatment index (home) ---------- */

.tx-index { position: relative; }

.tx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.tx-list { list-style: none; border-top: 1px solid var(--line); }

.tx-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.2fr) minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 1.5rem;
  padding: 2.1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, padding 0.5s var(--ease-luxe);
}

.tx-row:hover { background: rgba(231, 220, 201, 0.45); padding-left: 1.4rem; }

.tx-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.tx-name {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  transition: transform 0.5s var(--ease-luxe);
}

.tx-row:hover .tx-name { transform: translateX(8px); }

.tx-essence {
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 30em;
}

.tx-arrow {
  justify-self: end;
  opacity: 0.35;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-luxe);
}

.tx-row:hover .tx-arrow { opacity: 1; transform: translateX(4px); }

.tx-float {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 380px;
  height: 228px;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.tx-float.show { opacity: 1; transform: scale(1); }

.tx-float img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.tx-float img.on { opacity: 1; }

/* ---------- dark band ---------- */

.band-dark {
  background: var(--umber);
  color: var(--gold-pale);
}

.band-dark .eyebrow { color: var(--gold-soft); }
.band-dark .eyebrow::before { background: var(--gold-soft); }
.band-dark .h-display { color: var(--bone); }
.band-dark .body-copy { color: rgba(231, 220, 201, 0.66); }

.pillars-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.pillars { list-style: none; margin-top: 3rem; display: grid; }

.pillar {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.4rem;
  padding-block: 1.9rem;
  border-top: 1px solid var(--line-dark);
}

.pillar:last-child { border-bottom: 1px solid var(--line-dark); }

.pillar-icon { width: 20px; height: 27px; margin-top: 0.35rem; }
.pillar-icon path { fill: none; stroke: var(--gold-soft); stroke-width: 1.3; }

.pillar h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 1.35rem;
  color: var(--bone);
  margin-bottom: 0.5rem;
}

.pillar p { font-size: 0.92rem; color: rgba(231, 220, 201, 0.62); max-width: 34em; }

.pillars-figure { position: relative; }

.pillars-figure .frame { aspect-ratio: 4 / 5.1; }

/* ---------- founder ---------- */

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: center;
}

.founder-figure { position: relative; max-width: 340px; }

.founder-figure .frame-main { aspect-ratio: 4 / 4.7; }

.founder-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
  border-left: 1px solid var(--gold);
  padding-left: 1.6rem;
  margin-block: 2.2rem;
}

.founder-sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
}

.cred-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.4rem;
}

.chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
}

/* ---------- journey ---------- */

.journey-head { max-width: 40em; margin-bottom: clamp(3rem, 6vw, 5rem); }

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.journey-step {
  border-top: 1px solid var(--ink);
  padding-top: 1.6rem;
}

.journey-step .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.journey-step h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 1.4rem;
  margin-block: 0.9rem 0.7rem;
}

.journey-step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- real results ---------- */

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* continuous auto-sliding carousel — track holds the set twice, animates
   exactly -50% so the loop point is seamless */
.results-carousel {
  overflow: hidden;
  margin: 0 calc(-1 * clamp(1.5rem, 3vw, 2.5rem) / 2);
}

.results-track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: max-content;
  animation: resultsScroll 66s linear infinite;
}

.results-carousel:hover .results-track { animation-play-state: paused; }

@keyframes resultsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - (clamp(1.5rem, 3vw, 2.5rem) / 2))); }
}

.results-track .result-card {
  flex: 0 0 clamp(280px, 32vw, 400px);
}

.result-card {
  position: relative;
  overflow: hidden;
  background: var(--bone);
  transition: transform 0.5s var(--ease-luxe), box-shadow 0.5s var(--ease-luxe);
}

.result-card:hover { box-shadow: 0 28px 56px rgba(46, 36, 24, 0.12); }

.result-card .frame { aspect-ratio: 4 / 4.7; }

.result-card figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-top: 0;
}

.result-card .result-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
}

.result-card .result-detail {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.results-fine {
  margin-top: 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ---------- quote band ---------- */

.quote-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(7rem, 15vw, 13rem);
  text-align: center;
  color: var(--umber-deep);
}

.quote-band .band-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.quote-band .band-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.quote-band .band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 243, 235, 0.4);
}

.quote-band blockquote {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(1.9rem, 4.4vw, 3.8rem);
  line-height: 1.2;
  max-width: 18em;
  margin-inline: auto;
}

.quote-band cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(46, 36, 24, 0.6);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--umber-deep);
  color: var(--bone);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(174, 140, 91, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.cta-band .h2 { color: var(--bone); max-width: 14em; margin-inline: auto; }

.cta-band .lede { margin: 1.8rem auto 0; color: rgba(231, 220, 201, 0.6); }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.8rem;
}

.cta-alt {
  margin-top: 2.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(231, 220, 201, 0.55);
}

.cta-alt a { color: var(--gold-soft); border-bottom: 1px solid rgba(203, 178, 137, 0.4); padding-bottom: 1px; }

/* ---------- footer ---------- */

.footer {
  background: var(--umber-deep);
  color: rgba(231, 220, 201, 0.62);
  border-top: 1px solid var(--line-dark);
  padding: clamp(4rem, 8vw, 6.5rem) 0 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
}

.footer-brand { display: flex; justify-content: center; }

.footer-brand .footer-lockup {
  display: block;
  width: clamp(150px, 15vw, 196px);
  height: auto;
}

@media (max-width: 640px) { .footer-brand { justify-content: flex-start; } }

.footer h4 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.3rem;
}

.footer ul { list-style: none; display: grid; gap: 0.65rem; font-size: 0.9rem; }

.footer a { transition: color 0.3s ease; }
.footer a:hover { color: var(--gold-pale); }

.footer-link-u {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(203, 178, 137, 0.5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(231, 220, 201, 0.38);
}

/* ---------- inner page hero ---------- */

.page-hero {
  padding-top: clamp(10rem, 20vh, 14rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.page-hero .h1 { max-width: 10em; margin-top: 1.5rem; }
.page-hero .lede { margin-top: 2rem; }

/* ---------- treatments page ---------- */

.tx-cat { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); }

.tx-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tx-cat-head .h3 { font-weight: 360; }

.tx-cat-count {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}

.tx-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.tx-feature.flip .tx-feature-figure { order: 2; }

.tx-feature-figure .frame { aspect-ratio: 4 / 4.6; }

.tx-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
}

.tx-feature h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  margin-block: 0.8rem 1.2rem;
}

.tx-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.tx-feature .link-arrow, .tx-card .link-arrow { margin-top: 1.8rem; }

.tx-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}


.tx-card {
  background: var(--porcelain);
  border: 1px solid var(--line);
  padding: 2.2rem 2rem 2.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-luxe), box-shadow 0.5s var(--ease-luxe);
}

.tx-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(46, 36, 24, 0.1);
}

.tx-card .frame { aspect-ratio: 16 / 10; margin: -2.2rem -2rem 1.8rem; }

.tx-card h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}

.tx-card p { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }

.tx-note {
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line);
  background: var(--bone);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.tx-note svg { width: 20px; height: 27px; margin-top: 0.2rem; }
.tx-note svg path { fill: none; stroke: var(--gold); stroke-width: 1.3; }

.tx-note h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-bottom: 0.5rem; }
.tx-note p { font-size: 0.92rem; color: var(--ink-soft); max-width: 52em; }

/* ---------- about page ---------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.story-figure .frame { aspect-ratio: 4 / 4.8; }

.values-list { list-style: none; border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); }

.value-row {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: 2rem;
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--line);
}

.value-row h3 {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.value-row p { color: var(--ink-soft); max-width: 40em; }

.creds-band { background: var(--umber); color: var(--bone); }

/* dark surfaces: display type must flip to bone, never ink */
.creds-band .h-display,
.booking-card .h-display { color: var(--bone); }
.creds-band .body-copy { color: rgba(231, 220, 201, 0.66); }

.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.cred {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
}

.cred .big {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--gold-soft);
  display: block;
  margin-bottom: 0.5rem;
}

.cred p { font-size: 0.82rem; color: rgba(231, 220, 201, 0.6); }

/* ---------- contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-list { list-style: none; border-top: 1px solid var(--line); }

.contact-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-list .label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-list .value {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.35;
}

.contact-list .value a { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact-list .value a:hover { border-color: var(--gold); }

.contact-list .sub { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.3rem; }

.booking-card {
  background: var(--umber);
  color: var(--bone);
  padding: clamp(2.2rem, 4vw, 3.2rem);
  position: sticky;
  top: 7rem;
}

.booking-card h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.booking-card p { margin-top: 1.2rem; font-size: 0.92rem; color: rgba(231, 220, 201, 0.65); }

.booking-card .btn { margin-top: 2rem; width: 100%; }

.booking-card .fine {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  color: rgba(231, 220, 201, 0.45);
}

.map-wrap {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  border: 1px solid var(--line);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 45vw, 480px);
  border: 0;
  filter: sepia(0.32) saturate(0.72) contrast(0.98);
}

/* FAQ */
.faq { max-width: 860px; }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  text-align: left;
  padding: 1.7rem 0.2rem;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--ink);
}

.faq-q .faq-x {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.faq-q .faq-x::before, .faq-q .faq-x::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.45s var(--ease-luxe);
}

.faq-q .faq-x::before { left: 0; top: 6.25px; width: 14px; height: 1.5px; }
.faq-q .faq-x::after { left: 6.25px; top: 0; width: 1.5px; height: 14px; }

.faq-item.open .faq-x::after { transform: scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease-luxe);
}

.faq-a p {
  padding: 0 0.2rem 1.8rem;
  color: var(--ink-soft);
  max-width: 46em;
}

/* ---------- cursor dot + ring ---------- */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.3s ease;
}

body.cursor-on .cursor-dot { opacity: 0.85; }
.cursor-dot.grow { transform: scale(3.2); opacity: 0.35 !important; }

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 299;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(174, 140, 91, 0.55);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out);
}

body.cursor-on .cursor-ring { opacity: 1; }

.cursor-ring.grow {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: rgba(174, 140, 91, 0.85);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- micro-interactions ---------- */

.tx-card .frame img { transition: transform 1s var(--ease-luxe); }
.tx-card:hover .frame img { transform: scale(1.06); }

.result-card .frame img { transition: transform 1.2s var(--ease-luxe); }
.result-card:hover .frame img { transform: scale(1.04); }

/* hero: plaster texture only — no moving light sweep (client's call) */

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }

  .pillars-grid, .founder-grid, .story-grid { grid-template-columns: 1fr; }
  .pillars-figure { order: -1; }
  .founder-figure { max-width: 320px; margin-inline: auto; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .tx-cards { grid-template-columns: repeat(2, 1fr); }
  .tx-feature { grid-template-columns: 1fr; }
  .tx-feature.flip .tx-feature-figure { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .manifesto-grid { grid-template-columns: 1fr; align-items: start; }
  .tx-float { display: none; }
}

@media (max-width: 640px) {
  .nav-logo .logo-lockup { height: 42px; }
  .nav.scrolled .nav-logo .logo-lockup { height: 36px; }

  .hero-meta { grid-template-columns: 1fr 1fr; border-top: 0; }
  .hero-meta li { border-top: 1px solid rgba(46, 36, 24, 0.16); }
  .hero-meta li + li { border-left: 0; padding-left: 0; }
  .hero-meta li:nth-child(even) { padding-left: 1.2rem; border-left: 1px solid rgba(46, 36, 24, 0.16); }

  .tx-row { grid-template-columns: 2.6rem 1fr; row-gap: 0.5rem; padding-block: 1.6rem; }
  .tx-essence { grid-column: 2; }
  .tx-arrow { display: none; }

  .journey-grid { grid-template-columns: 1fr; }
  .tx-cards { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.4rem; }
  .founder-figure { max-width: 280px; margin-inline: auto; }
  .tx-note { grid-template-columns: 1fr; }
}

/* card-count modifiers (kept after media queries so they win, then re-collapse) */
.tx-cards.tx-cards-2 { grid-template-columns: repeat(2, 1fr); }
.tx-cards.tx-cards-1 { grid-template-columns: 1fr; }

@media (max-width: 640px) {
  .tx-cards.tx-cards-2 { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }

  [data-rv], .mask-lines .line > span, .words .w { opacity: 1 !important; transform: none !important; }
  .hero-bg img { transform: scale(1.02); }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Sparks — the JUNISH chat widget
   ============================================================ */

.jc-widget { position: fixed; right: clamp(1.2rem, 3vw, 2.2rem); bottom: clamp(1.2rem, 3vw, 2.2rem); z-index: 300; }

.jc-bubble {
  position: relative;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--umber-deep);
  border: 1px solid var(--line-dark);
  box-shadow: 0 16px 40px rgba(36, 27, 17, 0.28);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.jc-bubble:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 22px 50px rgba(36, 27, 17, 0.34); }

/* her droplet logo, on its own */
.jc-bubble-mark {
  display: block;
  height: 30px; width: auto;
  opacity: 0.94;
  transition: opacity 0.25s ease;
}
.jc-bubble:hover .jc-bubble-mark { opacity: 1; }

/* ---- "Can I help you?" greeting ---- */
.jc-greet {
  position: absolute;
  right: 74px;
  bottom: 14px;
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
  padding: 0.6rem 0.7rem 0.6rem 0.95rem;
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(36, 27, 17, 0.18);
  cursor: pointer;
  opacity: 0; transform: translateX(10px) scale(0.96);
  transform-origin: right center;
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out);
}
.jc-widget.jc-greeting .jc-greet { opacity: 1; transform: translateX(0) scale(1); }

/* little tail pointing at the bubble */
.jc-greet::after {
  content: "";
  position: absolute;
  right: -6px; bottom: 16px;
  width: 10px; height: 10px;
  background: var(--porcelain);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(-45deg);
}

.jc-greet-text {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1;
}

.jc-greet-x {
  width: 20px; height: 20px; flex: none;
  border: none; background: transparent;
  color: var(--ink-soft); font-size: 1.05rem; line-height: 1;
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.55; transition: opacity 0.2s ease, background 0.2s ease;
}
.jc-greet-x:hover { opacity: 1; background: var(--bone); }

.jc-widget.jc-open .jc-greet { opacity: 0 !important; pointer-events: none; }

.jc-bubble-dot {
  position: absolute; top: 3px; right: 3px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--porcelain);
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.jc-widget.jc-invite .jc-bubble-dot { opacity: 1; transform: scale(1); }
.jc-widget.jc-invite .jc-bubble { animation: jcPulse 1.8s ease-in-out 2; }
@keyframes jcPulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(36, 27, 17, 0.28), 0 0 0 0 rgba(174, 140, 91, 0.35); }
  50% { box-shadow: 0 16px 40px rgba(36, 27, 17, 0.28), 0 0 0 12px rgba(174, 140, 91, 0); }
}
.jc-widget.jc-open .jc-bubble-dot { opacity: 0; }

.jc-panel {
  position: absolute;
  right: 0; bottom: 78px;
  width: min(392px, calc(100vw - 2.4rem));
  height: min(608px, calc(100vh - 8rem));
  background: var(--porcelain);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(36, 27, 17, 0.28);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out), visibility 0s linear 0.32s;
}
.jc-widget.jc-open .jc-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0) scale(1);
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out), visibility 0s linear 0s;
}

.jc-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1.1rem 1.2rem;
  background: var(--umber-deep);
  color: var(--porcelain);
  flex: none;
}
.jc-head-mark { width: 26px; height: auto; flex: none; }
.jc-head-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.2; }
.jc-head-sub { font-size: 0.72rem; color: rgba(239, 235, 227, 0.6); margin-top: 0.15rem; }
.jc-close {
  margin-left: auto; width: 28px; height: 28px; flex: none;
  border-radius: 50%; border: none; background: transparent;
  color: var(--porcelain); font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.7; transition: opacity 0.2s ease, background 0.2s ease;
}
.jc-close:hover { opacity: 1; background: rgba(247, 243, 235, 0.1); }

.jc-body {
  flex: 1; overflow-y: auto;
  padding: 1.1rem 1.1rem 0.4rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}

.jc-msg {
  max-width: 86%;
  font-size: 0.87rem; line-height: 1.55;
  padding: 0.7rem 0.9rem;
  border-radius: 2px;
}
.jc-msg p { margin: 0 0 0.5rem; }
.jc-msg p:last-child { margin-bottom: 0; }
.jc-msg-bot {
  align-self: flex-start;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--line);
}
.jc-msg-user {
  align-self: flex-end;
  background: var(--umber-deep);
  color: var(--porcelain);
}

.jc-typing { display: flex; align-items: center; gap: 4px; padding: 0.85rem 1rem; }
.jc-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft);
  opacity: 0.5; animation: jcTyping 1.1s ease-in-out infinite;
}
.jc-typing span:nth-child(2) { animation-delay: 0.15s; }
.jc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes jcTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-3px); opacity: 1; } }

.jc-note { color: var(--ink-soft); font-style: italic; }

.jc-price-table { margin: 0.55rem 0 0.75rem; border-top: 1px solid var(--line); }
.jc-price-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.5rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.jc-price-row span { flex: 1 1 auto; min-width: 60%; }
.jc-price-row b { color: var(--gold); font-family: var(--serif); font-size: 0.98rem; }
.jc-price-row small { flex-basis: 100%; color: var(--ink-soft); font-size: 0.72rem; }

.jc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.jc-btn {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--umber-deep); color: var(--umber-deep);
  background: transparent; text-decoration: none; white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.jc-btn:hover { background: var(--umber-deep); color: var(--porcelain); }
.jc-btn-gold { background: var(--umber-deep); color: var(--porcelain); border-color: var(--umber-deep); }
.jc-btn-gold:hover { background: var(--gold); border-color: var(--gold); color: var(--umber-deep); }

.jc-starters {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  flex: none;
}
.jc-chip {
  font-size: 0.72rem; font-weight: 500;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line); background: var(--porcelain); color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.jc-chip:hover { background: var(--bone); border-color: var(--gold-soft); }
.jc-chiprow { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }

.jc-input-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--porcelain);
  flex: none;
}
.jc-input-row input {
  flex: 1; border: none; background: transparent;
  font-family: var(--sans); font-size: 0.86rem; color: var(--ink);
  padding: 0.4rem 0;
}
.jc-input-row input:focus { outline: none; }
.jc-input-row input::placeholder { color: var(--ink-soft); }
.jc-input-row button {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%; border: none; background: var(--umber-deep); color: var(--porcelain);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s ease;
}
.jc-input-row button:hover { background: var(--gold); color: var(--umber-deep); }
.jc-input-row button svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .jc-panel { width: calc(100vw - 1.6rem); height: calc(100vh - 7rem); right: -0.4rem; }
  .jc-bubble { width: 56px; height: 56px; }
  .jc-bubble-mark { height: 27px; }
  .jc-greet { right: 66px; bottom: 11px; padding: 0.5rem 0.6rem 0.5rem 0.8rem; }
  .jc-greet-text { font-size: 0.94rem; }
}

/* very narrow phones — sit the greeting above the bubble so it never runs off-screen */
@media (max-width: 400px) {
  .jc-greet { right: 0; bottom: 68px; transform-origin: bottom right; transform: translateY(8px) scale(0.96); }
  .jc-widget.jc-greeting .jc-greet { transform: translateY(0) scale(1); }
  .jc-greet::after { right: 20px; bottom: -6px; }
}
