/* =========================================================
   Front page sections. Shared pieces (pills, rows, cards, chips,
   tags, ticks, badges) come from components.css; this file holds
   each section's layout and the start states the GSAP
   choreography (assets/js/front-page.js) animates from.
   ========================================================= */

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--ink); color: var(--cream);
}
.loader__mark { width: 96px; height: auto; }
.loader__word { font-family: var(--script); font-size: 34px; color: var(--gold-l); }
.loader__count {
  position: absolute; right: var(--gutter); bottom: 18px;
  font-family: var(--serif); font-weight: var(--fw-display); font-size: clamp(64px, 10vw, 140px); line-height: 1; color: rgba(250,244,232,.18);
}

/* =========================================================
   1. HERO
   ========================================================= */
.hero { position: relative; }
.hero__stage {
  position: relative; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--ink); color: var(--cream);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.8) contrast(1.05); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(20,16,11,.15), rgba(20,16,11,.7)),
    /* top band holds ≥ .7 behind the header and meta labels, so cream text stays 4.5:1 even on a bright photo */
    linear-gradient(180deg, rgba(20,16,11,.82) 0%, rgba(20,16,11,.72) 26%, rgba(20,16,11,.2) 50%, rgba(20,16,11,.75) 100%);
}
.hero__lineart, .hero__sprig { position: absolute; fill: none; stroke: var(--gold-l); stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.hero__lineart { width: min(88vw, 980px); aspect-ratio: 4 / 3; left: 50%; top: 4%; transform: translateX(-50%); stroke-width: .55; opacity: .55; }
.hero__sprig { width: clamp(160px, 22vw, 340px); aspect-ratio: 1; stroke-width: .8; opacity: .5; }
.hero__sprig--l { left: -2%; bottom: 8%; transform: rotate(-12deg); }
.hero__sprig--r { right: -1%; top: 14%; transform: scaleX(-1) rotate(-30deg); }

.hero__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(84px + 8vh);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px;
  padding-top: 16px; border-top: 1px solid rgba(250, 244, 232, .25);
  font-size: 12px; font-weight: var(--fw-label); letter-spacing: .14em; text-transform: uppercase; line-height: 1.7;
}
.hero__meta p:nth-child(2) { text-align: center; }
.hero__meta p:nth-child(3) { text-align: right; }

.hero__title-wrap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero__title {
  font-family: var(--serif); font-weight: var(--fw-display); font-size: 26vw; line-height: .78;
  letter-spacing: -.01em; white-space: nowrap; color: var(--cream);
  will-change: transform;
}
.hero__word { display: inline-flex; overflow: hidden; padding: .06em .02em .02em; }
.hero__word > span { display: inline-block; }
.hero__sub {
  display: flex; align-items: center; gap: 18px; margin-top: 2vh;
  font-weight: var(--fw-label); font-size: clamp(12px, 1.35vw, 19px); letter-spacing: .55em; text-transform: uppercase;
}
.hero__sub span { margin-right: -.55em; }
.hero__sub .rule { display: block; width: clamp(36px, 9vw, 150px); height: 1px; background: var(--gold); }

/* the arch that rises to fill the screen */
.arch { position: absolute; inset: 0; z-index: 4; color: var(--cream); }
.arch__media { position: absolute; inset: 0; overflow: hidden; background: var(--ink-2); }
.arch__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.arch__media::after {
  content: ""; position: absolute; inset: 0;
  /* combined tint is ≥ .65 across the centred copy, enough for cream text on any photo */
  background: radial-gradient(70% 60% at 50% 55%, rgba(20,16,11,.65), rgba(20,16,11,.4) 75%), linear-gradient(180deg, rgba(20,16,11,.4), rgba(20,16,11,.5));
}
.arch__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 90px var(--gutter) 40px;
}
.arch__content .eyebrow { color: var(--cream); }  /* small text over a photo: cream, not gold, for contrast */
.arch__content .script { margin-bottom: -.25em; }
.arch__big { font-family: var(--serif); font-weight: var(--fw-display); font-size: clamp(96px, 17vw, 270px); line-height: .8; letter-spacing: -.01em; }
.arch__line { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; margin: 10px 0 18px; }

/* =========================================================
   2. MENU
   ========================================================= */
.menu { position: relative; z-index: 2; background: var(--cream); padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(90px, 14vh, 160px); }
.menu__head { text-align: center; }
.menu__head .lead { margin: 36px auto 0; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 32px); margin: clamp(90px, 14vh, 170px) auto 0; max-width: 1400px; }
.trio__frame {
  position: relative; aspect-ratio: 3 / 4.3; overflow: hidden;
  border: 1px solid var(--line-gold); border-radius: 999px 999px 0 0;
}
.trio__art { position: absolute; width: 64%; aspect-ratio: 1; left: 18%; top: 16%; fill: none; stroke: var(--gold-d); stroke-width: 1.1; stroke-linecap: round; }
.trio__img { position: absolute; inset: 0; }
.trio__img img { width: 100%; height: 100%; object-fit: cover; }
.trio__num { font-family: var(--serif); font-style: italic; color: var(--gold-d); font-size: 20px; margin-top: 22px; }
.trio__item h3 { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
/* the price: a black plaque fixed under the arch, linking to the full menu */
.trio__plaque {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 16px 18px 16px 22px; background: var(--ink); color: var(--cream);
  transition: background-color var(--dur-2) var(--ease);
}
.trio__plaque:hover { background: var(--ink-2); }
.trio__plaque-main { display: flex; flex-direction: column; gap: 4px; }
.trio__plaque-from { font-size: 10px; font-weight: var(--fw-label); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-l); }
.trio__plaque-num { font-family: var(--serif); font-weight: var(--fw-display); font-size: clamp(28px, 2.4vw, 36px); line-height: 1; color: var(--gold-l); font-variant-numeric: lining-nums; }
.trio__plaque-to { align-self: end; padding-bottom: 3px; font-size: 13px; color: var(--text-dark-2); }
.trio__plaque-go {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-gold-l); color: var(--gold-l);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.trio__plaque-go .i-arrow { width: 22px; height: 11px; }
.trio__plaque:hover .trio__plaque-go { background: var(--gold-l); color: var(--ink); }
.trio__frame:has(+ .trio__plaque) { border-bottom: 0; }

.pricelist { max-width: 1120px; margin: clamp(110px, 16vh, 190px) auto 0; }

.pricelist .rows { margin-top: 44px; }

/* =========================================================
   3. CONSULTATION
   ========================================================= */
/* the copy sits on the sand circle, so muted and gold text go one step darker here to keep 4.5:1 */
.consult { position: relative; z-index: 2; background: var(--cream); --muted: #5E5345; --gold-d: #7A4E04; }
.consult__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.consult__circle {
  position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
  border-radius: 50%; background: radial-gradient(circle, #F4E7CF 0%, var(--sand) 70%);
  transform: scale(.32);
}
/* resting place is left of the copy (never on top of it); the scroll animation starts the cards centred and slides them here */
.consult__cards { position: absolute; left: 26%; top: 50%; width: clamp(220px, 21vw, 310px); aspect-ratio: 3 / 4.2; transform: translate(-50%, -50%); }
.consult .card--photo { transform: translateX(26%) rotate(8deg); }
.consult .card--blueprint { transform: rotate(-6deg); }

.consult__text { position: absolute; top: 50%; right: max(var(--gutter), 6vw); width: min(460px, 40vw); transform: translateY(-50%); }
.consult__text .display-sm { margin: 16px 0 18px; }
.consult__price { font-family: var(--serif); font-size: 34px; line-height: 1; margin-bottom: 18px; }
.consult__price span { font-family: var(--sans); font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.consult__text .ticks { margin-bottom: 18px; }
.consult__text .small { margin-bottom: 26px; }

/* =========================================================
   4. STATEMENT — a note from Bloom
   ========================================================= */
.statement { position: relative; z-index: 2; overflow: hidden; background: linear-gradient(180deg, var(--cream), var(--ivory)); padding: var(--space-7) var(--gutter); }
.note { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; max-width: 1180px; margin: 0 auto; }
.note__portrait {
  position: relative; z-index: 2; margin: 0; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: var(--radius-arch); background: var(--sand);
  box-shadow: 0 0 0 10px var(--cream), 0 0 0 11px rgba(140, 90, 5, .3);
}
.note__portrait img { width: 100%; height: 115%; object-fit: cover; }
.note__card {
  position: relative; margin: 0 0 0 -8%;
  padding: clamp(40px, 5vw, 76px) clamp(28px, 5vw, 76px) clamp(36px, 4.5vw, 64px) calc(8% + clamp(28px, 5vw, 76px));
  background: var(--paper); border-radius: var(--radius-card);
  box-shadow: 0 50px 90px -50px rgba(20, 16, 11, .45), inset 0 0 0 1px rgba(140, 90, 5, .18);
}
.note__card::before {
  content: "\201C"; position: absolute; right: 6%; top: -.16em;
  font-family: var(--serif); font-size: clamp(160px, 16vw, 260px); line-height: 1; color: var(--gold-l); opacity: .6;
}
.note__mark { width: 46px; height: auto; margin-bottom: 20px; }
.note__text { font-family: var(--serif); font-weight: var(--fw-quote); font-size: clamp(28px, 2.8vw, 44px); line-height: 1.16; margin-top: 18px; }
.note__promise { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); color: var(--gold-d); margin-top: 20px; }
.note__sign { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.note__sign .script { font-size: clamp(34px, 3.2vw, 48px); color: var(--gold-d); }
.note__sign small { font-size: 11px; font-weight: var(--fw-label); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   5. FIVE PILLARS
   ========================================================= */
.pillars { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--cream); }
.pillars__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0 var(--gutter) 0 max(var(--gutter), 6vw); align-self: start; }
.pillars__inner { width: 100%; max-width: 540px; }
.pillars__count { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-l); }
/* all five texts share one grid cell, so the box is as tall as the longest pillar and nothing spills onto the bar */
.pillars__texts { display: grid; margin-top: 26px; }
.ptext { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.ptext.is-active { opacity: 1; visibility: visible; }
.ptext h3 { font-family: var(--serif); font-weight: var(--fw-display); font-size: clamp(54px, 6.2vw, 100px); line-height: .9; margin-bottom: 22px; }
.ptext__promise { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.25; margin-bottom: 14px; }
.ptext__promise em { color: var(--gold-l); }
.ptext > p:not(.ptext__promise) { color: rgba(250, 244, 232, .72); font-size: 16px; }
.ptext--long h3 { font-size: clamp(42px, 4.8vw, 72px); white-space: nowrap; }  /* a two-word name on one line, so every pillar is the same height */
.ptext .tags { margin: 22px 0 26px; gap: 6px; }
.ptext .tags li { padding-inline: 12px; letter-spacing: .1em; }  /* tighter, so three brands fit on one row */
.ptext .link { color: var(--gold-l); }
.pillars__bar { height: 1px; background: rgba(250, 244, 232, .18); margin-top: 30px; }
.pillars__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

.pillars__media { padding-right: var(--gutter); }
.pmedia { position: relative; height: 100vh; height: 100svh; margin: 0; padding: 12vh 0 8vh; }
.pmedia img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.pmedia::after {
  content: attr(data-label); position: absolute; left: 0; bottom: calc(8vh - 32px);
  font-size: 11px; font-weight: var(--fw-label); letter-spacing: .24em; text-transform: uppercase; color: rgba(250, 244, 232, .55);
}

/* =========================================================
   6. CARE
   ========================================================= */
.care {
  position: relative; z-index: 2; overflow: hidden; background: var(--ivory);
  min-height: 100vh; padding: 16vh var(--gutter) 14vh;
  display: grid; place-items: center;
}
/* --pw = portrait width. The ring is centred on the portrait and sized from it:
   its inner edge (74% of its width) clears the portrait height (1.433 × pw) plus 60px,
   and the copy starts below the ring's outer edge, so ring text never crosses the copy. */
.care__center { --pw: clamp(220px, 26vw, 360px); position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.care__visual { position: relative; display: grid; place-items: center; }
.care__ring { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * 1.9365 + 81px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.care__ring svg { width: 100%; height: 100%; overflow: visible; }
.care__ring text { font-family: var(--serif); font-style: italic; font-weight: var(--fw-quote); font-size: 76px; fill: var(--ink); }
.care__portrait { position: relative; width: var(--pw); aspect-ratio: 3 / 4.3; border-radius: 999px; overflow: hidden; box-shadow: 0 0 0 1px rgba(140, 90, 5, .3), 0 0 0 14px var(--ivory), 0 0 0 15px rgba(140, 90, 5, .25); background: var(--sand); }
.care__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.care__portrait img.is-active { opacity: 1; transform: none; }
/* the body starts below the ring's outer edge (measured: glyphs reach 50.6% of the ring width,
   i.e. 0.2634 × pw + 41px past the portrait's bottom) plus 30px breathing room */
.care__body { display: flex; flex-direction: column; align-items: center; width: min(560px, 92vw); margin-top: calc(var(--pw) * .2634 + 71px); }
.care__hint { margin-bottom: 14px; text-wrap: balance; font-size: 12px; font-weight: var(--fw-label); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d); }
/* the tabs: a white bar of face + name buttons; the chosen one turns black */
.care__tabs {
  display: inline-flex; gap: 6px; padding: 6px; margin-bottom: 30px; border-radius: var(--radius-pill);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 16px 32px -20px rgba(20, 16, 11, .45);
}
.care__tab {
  display: flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: var(--fw-label); letter-spacing: .04em; color: var(--ink);
  transition: background-color var(--dur-1), color var(--dur-1);
}
.care__tab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; transition: box-shadow var(--dur-1); }
.care__tab:hover { background: var(--ivory); }
.care__tab.is-active { background: var(--ink); color: var(--cream); }
.care__tab.is-active img { box-shadow: 0 0 0 2px var(--gold-l); }
/* the three profiles share one grid cell, so the box keeps the height of the longest */
.care__panels { display: grid; width: 100%; }
.care__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s; }
.care__panel.is-active { visibility: visible; opacity: 1; transform: none; }
.care__panel h3 { font-family: var(--serif); font-weight: var(--fw-display); font-size: clamp(40px, 4vw, 58px); line-height: 1; margin-bottom: 10px; }
.care__panel p { color: var(--muted); margin-bottom: 20px; }
.care__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; }
.care__price {
  padding: 10px 18px; border-radius: var(--radius-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-gold);
  font-size: 12px; font-weight: var(--fw-label); letter-spacing: .16em; text-transform: uppercase;
}

/* =========================================================
   7. BAND (Bloom Beauty + Circle)
   ========================================================= */
.band { position: relative; z-index: 2; overflow: hidden; background: var(--ink); color: var(--cream); padding: 18vh 0 6vh; }
.band__stage { position: relative; }
.band__row { white-space: nowrap; font-family: var(--serif); font-weight: var(--fw-display); font-size: clamp(64px, 11vw, 184px); line-height: 1.05; color: rgba(250, 244, 232, .82); }
.band__row span { display: inline-block; }
.band__row--b { font-style: italic; color: var(--gold-l); }
.band__row i { font-style: normal; font-size: .32em; vertical-align: middle; color: var(--gold); margin: 0 .5em; }
.band__rule { display: block; height: 1px; background: rgba(250, 244, 232, .22); margin: 3vh var(--gutter); }
.band__cards { position: absolute; z-index: 2; left: 50%; top: 50%; width: clamp(200px, 19vw, 290px); aspect-ratio: 3 / 4.2; transform: translate(-50%, -50%); }
.band .card--photo { transform: translateX(34%) rotate(9deg); }
.band .card--member { transform: rotate(-7deg); }
.band__copy { position: relative; z-index: 3; max-width: 600px; margin: 13vh auto 0; padding: 0 var(--gutter); text-align: center; color: rgba(250, 244, 232, .8); }
.band__ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }

/* =========================================================
   8. BOOK
   ========================================================= */
.book { position: relative; z-index: 2; background: var(--ink); color: var(--cream); padding: 10vh var(--gutter) 16vh; text-align: center; }
.book__tilt { display: inline-block; transform: rotate(-9deg); font-size: 12px; font-weight: var(--fw-label); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); border-bottom: 1px solid; padding-bottom: 3px; margin-bottom: 8vh; }
.book__pill {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 3vw;
  border: 1px solid rgba(250, 244, 232, .4); border-radius: 999px;
  padding: clamp(30px, 5vw, 72px) 4vw;
  transition: color .6s var(--ease), border-color .6s;
}
.book__fill { position: absolute; inset: 0; z-index: -1; background: var(--gold-grad); transform: translateY(101%); border-radius: 50% 50% 0 0 / 60% 60% 0 0; transition: transform .8s var(--ease), border-radius .8s var(--ease); }
.book__pill:hover .book__fill { transform: translateY(0); border-radius: 0; }
.book__pill:hover { color: var(--ink); border-color: transparent; }
.book__label { font-family: var(--serif); font-weight: var(--fw-display); font-size: clamp(52px, 9.5vw, 156px); line-height: .9; text-transform: uppercase; letter-spacing: -.005em; }
.book__pill .i-arrow { width: clamp(44px, 6.5vw, 100px); height: auto; aspect-ratio: 2 / 1; transition: transform .6s var(--ease); }
.book__pill:hover .i-arrow { transform: translateX(12px); }


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 899px) {
  .hero__meta { grid-template-columns: 1fr 1fr; font-size: 11px; }
  .hero__meta p:nth-child(2) { display: none; }
  .hero__sub { letter-spacing: .4em; gap: 12px; }

  .trio { grid-template-columns: 1fr; max-width: 420px; gap: 64px; }

  /* consultation stacks on small screens */
  .consult__stage { height: auto; padding: 16vh var(--gutter) 12vh; display: flex; flex-direction: column; align-items: center; }
  .consult__circle { top: 26vh; }
  .consult__cards { position: relative; left: auto; top: auto; transform: none; width: min(62vw, 260px); margin-right: 18vw; }
  .consult__text { position: relative; top: auto; right: auto; transform: none; width: 100%; max-width: 520px; margin-top: 14vh; }

  .note { grid-template-columns: 1fr; justify-items: center; }
  .note__portrait { width: min(66vw, 300px); }
  .note__card { margin: -70px 0 0; padding: 100px 26px 40px; }

  /* pillars: text stays pinned on top while photos scroll underneath */
  .pillars { grid-template-columns: 1fr; }
  .pillars__sticky, .pillars__media { grid-area: 1 / 1; }
  /* the copy fills the lower two thirds over the photo: tint reaches .8 where the copy starts (~30%), so it reads on any image */
  .pillars__sticky { z-index: 2; align-items: flex-end; padding: 0 var(--gutter) 9vh; background: linear-gradient(180deg, rgba(20,16,11,0) 0%, rgba(20,16,11,.6) 16%, rgba(20,16,11,.82) 30%, rgba(20,16,11,.92) 60%); }
  .ptext h3 { font-size: 52px; margin-bottom: 12px; }
  .ptext--long h3 { font-size: 46px; }
  .ptext > p:not(.ptext__promise) { font-size: 15px; color: var(--cream); }
  .tags { margin: 14px 0 18px; }
  .pillars__media { padding: 0 var(--gutter); }
  .pmedia { padding: 12vh 0 32vh; }
  .pmedia::after { display: none; }

  .care { padding: 18vh var(--gutter) 12vh; place-items: start center; }

  .band { padding-top: 14vh; }
  .band__cards { width: min(48vw, 220px); }
  .band__copy { margin-top: 16vh; }

  .book__label { font-size: clamp(40px, 12vw, 80px); }
}

@media (max-width: 599px) {
  /* care tabs stretch the full width, face above name */
  .care__tabs { display: flex; width: 100%; border-radius: 28px; }
  .care__tab { flex: 1; flex-direction: column; gap: 6px; padding: 8px 6px 10px; border-radius: 22px; font-size: 13px; }
}
