/* ==========================================================================
   Home: your brand, everywhere (partials/home-branding.html)
   A sample portal, listing website and client update, drawn in four looks.
   Every class starts with hb-. home-branding.js swaps data-hb-theme on .hb-stage.
   ========================================================================== */

/* ---------- the four looks, as values ---------- */
.hb-stage {
  /* Liquid Glass is the default */
  --hb-bg: #05060C;
  --hb-art: radial-gradient(120% 80% at 50% 120%, #0A0F24 0%, #05060C 60%);
  --hb-surface: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .03));
  --hb-surface-2: rgba(255, 255, 255, .075);
  --hb-solid: rgba(16, 19, 34, .94);
  --hb-side: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  --hb-border: rgba(255, 255, 255, .12);
  --hb-hair: rgba(255, 255, 255, .07);
  --hb-text: #F6F7FB;
  --hb-text-2: rgba(236, 240, 255, .72);
  --hb-text-3: rgba(236, 240, 255, .5);
  --hb-accent: #8AB4FF;
  --hb-accent-2: #D1A6FF;
  --hb-on-accent: #070A18;
  --hb-success: #5FE3B0;
  --hb-warning: #FFD27A;
  --hb-font: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --hb-display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --hb-brand-font: var(--hb-display);
  --hb-d-weight: 600;
  --hb-d-track: -.035em;
  --hb-r: 22px;
  --hb-r-sm: 14px;
  --hb-r-btn: 999px;
  --hb-r-nav: 12px;
  --hb-r-photo: 14px;
  --hb-r-logo: 11px;
  --hb-r-badge: 999px;
  --hb-blur: blur(26px) saturate(180%);
  --hb-rim: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .03);
  --hb-shadow: 0 30px 70px -24px rgba(0, 0, 0, .75);
  --hb-btn-bg: linear-gradient(135deg, var(--hb-accent), var(--hb-accent-2));
  --hb-btn-ink: var(--hb-on-accent);
  --hb-logo-bg: linear-gradient(135deg, var(--hb-accent), var(--hb-accent-2));
  --hb-logo-ink: var(--hb-on-accent);
  --hb-nav-on: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  --hb-nav-on-ink: var(--hb-text);
  --hb-nav-on-icon: var(--hb-accent);
  --hb-eyebrow: var(--hb-text-3);
  --hb-eb-track: .16em;
  --hb-case: none;           /* nav, buttons and badges */
  --hb-case-track: 0;
  --hb-chip-bg: rgba(5, 6, 12, .6);
  --hb-type-name: "Geist";
}

.hb-stage[data-hb-theme="atelier"] {
  --hb-bg: #F7F5F0;
  --hb-art: radial-gradient(900px 500px at 100% -10%, rgba(168, 138, 92, .1), transparent 60%);
  --hb-surface: #FFFFFF;
  --hb-surface-2: #F4F1EB;
  --hb-solid: #FFFFFF;
  --hb-side: #FFFFFF;
  --hb-border: rgba(32, 28, 22, .09);
  --hb-hair: rgba(32, 28, 22, .07);
  --hb-text: #1D1B18;
  --hb-text-2: rgba(29, 27, 24, .66);
  --hb-text-3: rgba(29, 27, 24, .5);
  --hb-accent: #1F3A5F;
  --hb-accent-2: #A88A5C;
  --hb-on-accent: #FFFFFF;
  --hb-success: #2F8A61;
  --hb-warning: #B67A1E;
  --hb-font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --hb-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --hb-d-weight: 600;
  --hb-d-track: -.01em;
  --hb-r: 14px;
  --hb-r-sm: 10px;
  --hb-r-btn: 8px;
  --hb-r-nav: 8px;
  --hb-r-photo: 0;
  --hb-r-logo: 50%;
  --hb-r-badge: 999px;
  --hb-blur: none;
  --hb-rim: none;
  --hb-shadow: 0 2px 4px rgba(32, 28, 22, .04), 0 22px 44px -22px rgba(32, 28, 22, .22);
  --hb-btn-bg: var(--hb-accent);
  --hb-logo-bg: var(--hb-accent);
  --hb-nav-on: #F4F1EB;
  --hb-nav-on-icon: var(--hb-accent-2);
  --hb-eyebrow: var(--hb-accent-2);
  --hb-eb-track: .2em;
  --hb-chip-bg: rgba(255, 255, 255, .88);
  --hb-type-name: "Cormorant \00b7  DM Sans";
}

.hb-stage[data-hb-theme="classic"] {
  --hb-bg: #121413;
  --hb-art: linear-gradient(180deg, rgba(12, 12, 11, .82), rgba(12, 12, 11, .7) 32%, rgba(12, 12, 11, .5) 60%, rgba(12, 12, 11, .8)), url(/assets/img/interior-night.jpg) center / cover no-repeat;
  --hb-surface: linear-gradient(160deg, rgba(20, 18, 16, .95), rgba(15, 13, 12, .95));
  --hb-surface-2: rgba(40, 34, 30, .9);
  --hb-solid: linear-gradient(160deg, rgba(20, 18, 16, .97), rgba(15, 13, 12, .97));
  --hb-side: linear-gradient(155deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)), rgba(15, 17, 16, .955);
  --hb-border: rgba(255, 255, 255, .1);
  --hb-hair: rgba(255, 255, 255, .09);
  --hb-text: rgba(244, 240, 237, .97);
  --hb-text-2: rgba(234, 230, 225, .68);
  --hb-text-3: rgba(173, 162, 153, .85);
  --hb-accent: #70B944;
  --hb-accent-2: #9DB3A2;
  --hb-on-accent: #191919;
  --hb-success: #8FC46A;
  --hb-warning: #C9A75F;
  --hb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hb-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --hb-brand-font: 'Playfair Display', Georgia, serif;
  --hb-d-weight: 700;
  --hb-d-track: -.02em;
  --hb-r: 18px;
  --hb-r-sm: 10px;
  --hb-r-btn: 10px;
  --hb-r-nav: 9px;
  --hb-r-photo: 0;
  --hb-r-logo: 10px;
  --hb-r-badge: 999px;
  --hb-blur: none;
  --hb-rim: 0 1px 0 rgba(255, 255, 255, .22) inset, 1px 0 0 rgba(255, 255, 255, .08) inset;
  --hb-shadow: 0 24px 54px -18px rgba(0, 0, 0, .7);
  --hb-btn-bg: #F4F0ED;
  --hb-btn-ink: #191919;
  --hb-logo-bg: #F4F0ED;
  --hb-logo-ink: #191919;
  --hb-nav-on: linear-gradient(90deg, rgba(112, 185, 68, .17), rgba(112, 185, 68, .03));
  --hb-nav-on-ink: #FFFFFF;
  --hb-nav-on-icon: #A9D58F;
  --hb-eyebrow: #7F9C84;
  --hb-eb-track: .22em;
  --hb-chip-bg: rgba(15, 13, 12, .7);
  --hb-type-name: "Inter \00b7  Playfair";
}

.hb-stage[data-hb-theme="club"] {
  --hb-bg: #0A100D;
  --hb-art: radial-gradient(1200px 700px at 85% -15%, rgba(198, 161, 91, .12), transparent 60%), radial-gradient(900px 600px at -5% 110%, rgba(46, 84, 64, .45), transparent 60%);
  --hb-surface: rgba(16, 25, 20, .82);
  --hb-surface-2: rgba(198, 161, 91, .06);
  --hb-solid: #0F1813;
  --hb-side: #0C1410;
  --hb-border: rgba(198, 161, 91, .2);
  --hb-hair: rgba(236, 227, 208, .08);
  --hb-text: #EDE4D1;
  --hb-text-2: rgba(237, 228, 209, .7);
  --hb-text-3: rgba(237, 228, 209, .5);
  --hb-accent: #C6A15B;
  --hb-accent-2: #E8D3A2;
  --hb-on-accent: #15110A;
  --hb-success: #8DBB9C;
  --hb-warning: #D9B46A;
  --hb-font: 'Jost', 'Futura', ui-sans-serif, system-ui, sans-serif;
  --hb-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --hb-d-weight: 400;
  --hb-d-track: .01em;
  --hb-r: 2px;
  --hb-r-sm: 2px;
  --hb-r-btn: 0;
  --hb-r-nav: 0;
  --hb-r-photo: 0;
  --hb-r-logo: 50%;
  --hb-r-badge: 2px;
  --hb-blur: none;
  --hb-rim: none;
  --hb-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --hb-btn-bg: var(--hb-accent);
  --hb-logo-bg: transparent;
  --hb-logo-ink: var(--hb-accent);
  --hb-nav-on: linear-gradient(90deg, rgba(198, 161, 91, .14), transparent 85%);
  --hb-nav-on-ink: var(--hb-accent);
  --hb-nav-on-icon: var(--hb-accent);
  --hb-eyebrow: var(--hb-accent);
  --hb-eb-track: .32em;
  --hb-case: uppercase;
  --hb-case-track: .18em;
  --hb-chip-bg: rgba(10, 16, 13, .75);
  --hb-type-name: "Bodoni \00b7  Jost";
}

/* ---------- the switcher ---------- */
.hb-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hb-switch-label {
  margin: 0;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hb-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 14px 34px -18px rgba(0, 0, 0, .75);
}
.hb-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--text-2);
  font: 500 .9rem/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.hb-tab:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.hb-tab[aria-selected="true"] {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -10px rgba(0, 0, 0, .7);
}
.hb-tab:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
/* each dot is a tiny swatch of its look */
.hb-tab-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.hb-tab--glass .hb-tab-dot { background: linear-gradient(135deg, #8AB4FF, #D1A6FF); }
.hb-tab--atelier .hb-tab-dot { background: radial-gradient(circle, #1F3A5F 0 38%, #F7F5F0 40%); }
.hb-tab--classic .hb-tab-dot { background: radial-gradient(circle, #70B944 0 38%, #2A2622 40%); }
.hb-tab--club .hb-tab-dot { background: radial-gradient(circle, #C6A15B 0 38%, #0F1813 40%); border-radius: 0; }

@media (max-width: 599px) {
  .hb-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 26px; }
  .hb-tab { padding: 0 12px; font-size: .85rem; }
}

/* ---------- the stage ---------- */
.hb-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(16px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  background: var(--hb-art), var(--hb-bg);
  color: var(--hb-text);
  font-family: var(--hb-font);
  box-shadow: var(--lg-shadow);
  view-transition-name: hb-stage;
  transition: border-radius .5s var(--ease-out);
}
.hb-stage[data-hb-theme="club"] { border-radius: 4px; border-color: rgba(198, 161, 91, .28); }
.hb-stage :is(p, h3, figure, ul) { margin: 0; }
.hb-stage ul { padding: 0; list-style: none; }
.hb-stage img { display: block; max-width: 100%; }
.hb-stage .icon { width: 1em; height: 1em; }

::view-transition-group(hb-stage) { animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(hb-stage) { animation: hb-out .28s ease both; }
::view-transition-new(hb-stage) { animation: hb-in .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hb-out { to { opacity: 0; filter: blur(8px); } }
@keyframes hb-in { from { opacity: 0; filter: blur(8px); } }

/* Liquid Glass: soft colour drifting behind the cards */
.hb-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none; }
.hb-stage[data-hb-theme="glass"] .hb-aura { display: block; }
.hb-aura i { position: absolute; border-radius: 50%; filter: blur(70px); }
.hb-aura i:nth-child(1) { width: 46%; aspect-ratio: 1; left: -10%; top: -18%; background: #8AB4FF; opacity: .38; }
.hb-aura i:nth-child(2) { width: 40%; aspect-ratio: 1; right: -8%; top: 10%; background: #D1A6FF; opacity: .32; }
.hb-aura i:nth-child(3) { width: 36%; aspect-ratio: 1; left: 30%; bottom: -30%; background: #38E1C6; opacity: .2; }
@media (prefers-reduced-motion: no-preference) {
  .hb-aura i:nth-child(1) { animation: hb-drift-a 22s ease-in-out infinite alternate; }
  .hb-aura i:nth-child(2) { animation: hb-drift-b 26s ease-in-out infinite alternate; }
  .hb-aura i:nth-child(3) { animation: hb-drift-c 30s ease-in-out infinite alternate; }
}
@keyframes hb-drift-a { to { transform: translate(30%, 20%) scale(1.12); } }
@keyframes hb-drift-b { to { transform: translate(-25%, 30%) scale(.9); } }
@keyframes hb-drift-c { to { transform: translate(-20%, -25%) scale(1.15); } }

/* the line that names the look */
.hb-looks { margin-bottom: clamp(18px, 2.4vw, 28px); }
.hb-look {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-family: var(--hb-display);
  font-weight: var(--hb-d-weight);
  letter-spacing: var(--hb-d-track);
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  line-height: 1.15;
}
.hb-look span {
  font-family: var(--hb-font);
  font-weight: 400;
  letter-spacing: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--hb-text-2);
}
.hb-look[hidden] { display: none; }
.hb-stage[data-hb-theme="club"] .hb-look { text-transform: uppercase; letter-spacing: .12em; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); }
.hb-stage[data-hb-theme="club"] .hb-look span { text-transform: none; letter-spacing: .02em; }

/* ---------- layout of the three pieces ---------- */
.hb-grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 700px) {
  .hb-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hb-item--portal { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .hb-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr); }
  .hb-item--portal { grid-column: auto; }
}
.hb-item { min-width: 0; }

.hb-cap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  margin-bottom: 12px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--hb-text);
}
.hb-cap .icon { width: 15px; height: 15px; color: var(--hb-accent); }
.hb-cap span { grid-column: 2; font-size: .75rem; color: var(--hb-text-3); font-weight: 400; }
.hb-stage[data-hb-theme="club"] .hb-cap { text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; }
.hb-stage[data-hb-theme="club"] .hb-cap span { font-size: .62rem; }

/* shared bits */
.hb-portal, .hb-site, .hb-update {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-r);
  box-shadow: var(--hb-rim), var(--hb-shadow);
  -webkit-backdrop-filter: var(--hb-blur);
  backdrop-filter: var(--hb-blur);
  font-size: 12px;
  line-height: 1.4;
}
/* Members' Club: a framed inset on every card */
.hb-stage[data-hb-theme="club"] :is(.hb-portal, .hb-site, .hb-update)::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(198, 161, 91, .12);
  pointer-events: none;
}
/* Classic: the light catching the glass edge */
.hb-stage[data-hb-theme="classic"] :is(.hb-portal, .hb-site, .hb-update)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 34%);
  pointer-events: none;
}

.hb-logo {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--hb-r-logo);
  background: var(--hb-logo-bg);
  color: var(--hb-logo-ink);
  font: 600 11px/1 var(--hb-brand-font);
  letter-spacing: .02em;
}
.hb-logo--sm { width: 26px; height: 26px; font-size: 9px; }
.hb-logo--xs { width: 20px; height: 20px; font-size: 7.5px; }
.hb-stage[data-hb-theme="club"] .hb-logo--xs { font-size: 6px; letter-spacing: 0; }
.hb-stage[data-hb-theme="club"] .hb-logo { border: 1px solid var(--hb-accent); font-weight: 400; }
.hb-stage[data-hb-theme="club"] .hb-logo:not(.hb-logo--sm):not(.hb-logo--xs) { box-shadow: 0 0 0 3px var(--hb-side), 0 0 0 4px rgba(198, 161, 91, .35); }
.hb-stage[data-hb-theme="atelier"] .hb-logo, .hb-stage[data-hb-theme="club"] .hb-logo { font-family: var(--hb-display); }

.hb-eyebrow {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: var(--hb-eb-track);
  text-transform: uppercase;
  color: var(--hb-eyebrow);
}

.hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--hb-r-badge);
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
  text-transform: var(--hb-case);
  letter-spacing: calc(var(--hb-case-track) * .7);
}
.hb-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hb-stage[data-hb-theme="club"] .hb-badge::before { display: none; }
.hb-badge--active { color: var(--hb-success); background: color-mix(in srgb, var(--hb-success) 15%, transparent); }
.hb-badge--soon { color: var(--hb-warning); background: color-mix(in srgb, var(--hb-warning) 15%, transparent); }
.hb-stage[data-hb-theme="club"] .hb-badge { padding: 3px 6px; font-size: 8px; letter-spacing: .1em; background: transparent; border: 1px solid currentColor; }

.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: var(--hb-r-btn);
  background: var(--hb-btn-bg);
  color: var(--hb-btn-ink);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: var(--hb-case);
  letter-spacing: var(--hb-case-track);
}
.hb-stage[data-hb-theme="glass"] .hb-btn { box-shadow: 0 10px 24px -8px rgba(138, 180, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.hb-stage[data-hb-theme="club"] .hb-btn { font-size: 9.5px; font-weight: 500; min-height: 34px; }

.hb-av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hb-surface-2);
  border: 1px solid var(--hb-border);
  color: var(--hb-text);
  font-size: 10px;
  font-weight: 600;
}
.hb-av--sm { width: 26px; height: 26px; font-size: 9px; }
.hb-stage[data-hb-theme="club"] .hb-av { color: var(--hb-accent); font-weight: 500; }

/* ---------- the portal ---------- */
.hb-portal {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  background: var(--hb-solid);
}
.hb-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 10px;
  border-right: 1px solid var(--hb-hair);
  background: var(--hb-side);
}
.hb-brand { display: flex; align-items: center; gap: 9px; padding: 0 4px; }
.hb-brand-name {
  font: var(--hb-d-weight) 13px/1.15 var(--hb-brand-font);
  letter-spacing: var(--hb-d-track);
  min-width: 0;
}
.hb-brand-name small {
  display: block;
  margin-top: 3px;
  font: 400 9px/1.2 var(--hb-font);
  letter-spacing: .08em;
  color: var(--hb-text-3);
}
.hb-stage[data-hb-theme="atelier"] .hb-brand-name { font-size: 15px; }
.hb-stage[data-hb-theme="classic"] .hb-brand-name { font-weight: 400; font-size: 14px; letter-spacing: .01em; }
.hb-stage[data-hb-theme="classic"] .hb-brand-name small { letter-spacing: .2em; text-transform: uppercase; font-size: 7.5px; }
.hb-stage[data-hb-theme="club"] .hb-brand-name { font-weight: 500; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-family: var(--hb-font); }
.hb-stage[data-hb-theme="club"] .hb-brand-name small { letter-spacing: .26em; font-size: 7.5px; text-transform: uppercase; margin-top: 5px; }
/* Classic and Members' Club centre the brand above the menu */
.hb-stage:is([data-hb-theme="classic"], [data-hb-theme="club"]) .hb-brand { flex-direction: column; text-align: center; gap: 10px; padding: 6px 0 4px; }

.hb-nav { display: grid; gap: 2px; }
.hb-nav li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: var(--hb-r-nav);
  color: var(--hb-text-2);
  font-size: 11.5px;
  text-transform: var(--hb-case);
  letter-spacing: calc(var(--hb-case-track) * .6);
}
.hb-nav .icon { width: 14px; height: 14px; color: var(--hb-text-3); }
.hb-nav span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-nav b { margin-left: auto; font-size: 9.5px; font-weight: 500; color: var(--hb-text-3); }
.hb-nav li.is-on { background: var(--hb-nav-on); color: var(--hb-nav-on-ink); }
.hb-nav li.is-on .icon { color: var(--hb-nav-on-icon); }
.hb-stage[data-hb-theme="glass"] .hb-nav li.is-on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 22px -12px rgba(0, 0, 0, .6); }
.hb-stage[data-hb-theme="classic"] .hb-nav li.is-on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--hb-accent); box-shadow: 0 0 10px var(--hb-accent); }
.hb-stage[data-hb-theme="club"] .hb-nav li { font-size: 9px; padding: 8px 9px; }

.hb-main { display: flex; flex-direction: column; gap: 12px; padding: 18px; min-width: 0; }
.hb-top { display: none; }
.hb-title {
  margin-top: -6px !important;
  font: var(--hb-d-weight) 21px/1.1 var(--hb-display);
  letter-spacing: var(--hb-d-track);
}
.hb-stage[data-hb-theme="atelier"] .hb-title { font-size: 25px; font-weight: 500; }
.hb-stage[data-hb-theme="club"] .hb-title { font-size: 23px; }
.hb-stage[data-hb-theme="classic"] .hb-title { font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }

.hb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hb-kpi {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid var(--hb-hair);
  border-radius: var(--hb-r-sm);
  background: var(--hb-surface-2);
}
.hb-kpi b { font: var(--hb-d-weight) 22px/1 var(--hb-display); letter-spacing: var(--hb-d-track); }
.hb-kpi span { font-size: 10px; color: var(--hb-text-3); text-transform: var(--hb-case); letter-spacing: calc(var(--hb-case-track) * .6); }
.hb-stage[data-hb-theme="atelier"] .hb-kpi { background: #FFFFFF; box-shadow: 0 1px 2px rgba(32, 28, 22, .04), 0 6px 20px -12px rgba(32, 28, 22, .12); }
.hb-stage[data-hb-theme="atelier"] .hb-kpi b { font-size: 28px; }
.hb-stage[data-hb-theme="club"] .hb-kpi { text-align: center; }
.hb-stage[data-hb-theme="club"] .hb-kpi span { font-size: 8.5px; }

.hb-rows { display: grid; gap: 8px; }
.hb-rows li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--hb-hair);
  border-radius: var(--hb-r-sm);
}
.hb-rows img { width: 46px; height: 36px; object-fit: cover; border-radius: calc(var(--hb-r-photo) * .5); }
.hb-row-text { min-width: 0; }
.hb-row-text b, .hb-row-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-row-text b { font-weight: 600; font-size: 12px; }
.hb-row-text small { font-size: 10px; color: var(--hb-text-3); }
.hb-stage[data-hb-theme="club"] .hb-row-text b { font-weight: 500; }
.hb-main > .hb-btn { align-self: flex-start; }

/* ---------- the listing website ---------- */
.hb-site { background: var(--hb-solid); }
.hb-site-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--hb-hair);
  background: var(--hb-surface-2);
}
.hb-dots { display: inline-flex; gap: 4px; flex: none; }
.hb-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hb-border); }
.hb-url {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 10px;
  color: var(--hb-text-3);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hb-url .icon { width: 10px; height: 10px; flex: none; }
.hb-site-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.hb-site-brand { font: var(--hb-d-weight) 13px/1 var(--hb-brand-font); letter-spacing: var(--hb-d-track); }
.hb-stage[data-hb-theme="atelier"] .hb-site-brand { font-size: 16px; }
.hb-stage[data-hb-theme="classic"] .hb-site-brand { font-weight: 400; font-size: 14px; letter-spacing: .01em; }
.hb-stage[data-hb-theme="club"] .hb-site-head { justify-content: center; }
.hb-stage[data-hb-theme="club"] .hb-site-brand { font: 500 10px/1 var(--hb-font); letter-spacing: .26em; text-transform: uppercase; }

.hb-site-hero { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hb-stage[data-hb-theme="glass"] .hb-site-hero { margin: 0 8px; border-radius: var(--hb-r-photo); }
.hb-site-hero img, .hb-up-hero img { width: 100%; height: 100%; object-fit: cover; }
.hb-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: var(--hb-r-badge);
  background: var(--hb-chip-bg);
  color: var(--hb-text);
  font-size: 9.5px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hb-site-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.hb-price { font: var(--hb-d-weight) 26px/1.05 var(--hb-display); letter-spacing: var(--hb-d-track); }
.hb-stage[data-hb-theme="atelier"] .hb-price { font-size: 32px; }
.hb-addr { font-size: 13px; font-weight: 500; }
.hb-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10.5px; color: var(--hb-text-2); text-transform: var(--hb-case); letter-spacing: calc(var(--hb-case-track) * .6); }
.hb-facts span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--hb-text-3); }
.hb-desc { margin-top: 6px !important; font-size: 11px; line-height: 1.55; color: var(--hb-text-2); }
.hb-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--hb-hair);
}
.hb-agent b, .hb-mail b { display: block; font-size: 11.5px; font-weight: 600; }
.hb-agent small, .hb-mail small { display: block; font-size: 10px; color: var(--hb-text-3); }
.hb-stage[data-hb-theme="club"] .hb-site-body { text-align: center; }
.hb-stage[data-hb-theme="club"] .hb-facts { justify-content: center; font-size: 9px; }
.hb-stage[data-hb-theme="club"] .hb-agent { justify-content: center; text-align: left; }
.hb-stage[data-hb-theme="club"] .hb-price { font-size: 28px; }

/* ---------- the client update ---------- */
.hb-update { background: var(--hb-solid); }
.hb-stage[data-hb-theme="glass"] .hb-update { border-radius: 26px; }
.hb-mail {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hb-hair);
  background: var(--hb-surface-2);
}
.hb-mail > span:last-child { min-width: 0; }
.hb-mail small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb-up-hero { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hb-up-hero::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .62));
}
.hb-up-for {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  z-index: 1;
  color: #FFFFFF;
  font: var(--hb-d-weight) 16px/1.15 var(--hb-display);
  letter-spacing: var(--hb-d-track);
}
.hb-up-for small {
  display: block;
  margin-bottom: 3px;
  font: 500 8.5px/1 var(--hb-font);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
}
.hb-stage[data-hb-theme="atelier"] .hb-up-for { font-size: 19px; }
.hb-stage[data-hb-theme="club"] .hb-up-for { text-align: center; font-size: 17px; }
.hb-up-body { display: grid; gap: 8px; padding: 13px 13px 14px; }
.hb-up-title { margin-top: -4px !important; font: var(--hb-d-weight) 15px/1.15 var(--hb-display); letter-spacing: var(--hb-d-track); }
.hb-stage[data-hb-theme="atelier"] .hb-up-title { font-size: 18px; }
.hb-stage[data-hb-theme="club"] .hb-up-title { font-size: 16px; }
.hb-up-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hb-up-stats > div {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 8px 7px;
  border: 1px solid var(--hb-hair);
  border-radius: var(--hb-r-sm);
  background: var(--hb-surface-2);
  min-width: 0;
}
.hb-up-stats b { font: var(--hb-d-weight) 17px/1 var(--hb-display); letter-spacing: var(--hb-d-track); }
.hb-stage[data-hb-theme="atelier"] .hb-up-stats b { font-size: 21px; }
.hb-up-stats span { font-size: 9px; line-height: 1.25; color: var(--hb-text-3); }
.hb-up-note { font-size: 9px; color: var(--hb-text-3); }
.hb-up-plan {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: var(--hb-r-sm);
  border: 1px solid var(--hb-hair);
  font-size: 10.5px;
  color: var(--hb-text-2);
}
.hb-up-tick { display: inline-grid; place-items: center; flex: none; color: var(--hb-accent); }
.hb-up-tick .icon { width: 14px; height: 14px; }
.hb-up-sign {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--hb-hair);
  font: var(--hb-d-weight) 11px/1 var(--hb-brand-font);
  color: var(--hb-text-2);
}
.hb-stage[data-hb-theme="classic"] .hb-up-sign { font-weight: 400; }
.hb-stage[data-hb-theme="club"] .hb-up-sign { justify-content: center; font: 500 8.5px/1 var(--hb-font); letter-spacing: .24em; text-transform: uppercase; }
.hb-stage[data-hb-theme="club"] .hb-up-body { text-align: center; }
.hb-stage[data-hb-theme="club"] .hb-up-plan { justify-content: center; }


/* ---------- the brand kit under the portal ---------- */
.hb-kit {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-r);
  background: var(--hb-solid);
  box-shadow: var(--hb-rim), var(--hb-shadow);
  -webkit-backdrop-filter: var(--hb-blur);
  backdrop-filter: var(--hb-blur);
  font-size: 12px;
}
.hb-stage[data-hb-theme="club"] .hb-kit::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(198, 161, 91, .12); pointer-events: none; }
.hb-kit-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; }
.hb-kit-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hb-kit-k { font-size: 10.5px; color: var(--hb-text-2); white-space: nowrap; text-transform: var(--hb-case); letter-spacing: calc(var(--hb-case-track) * .6); }
.hb-kit-font::after { content: var(--hb-type-name); }
.hb-stage[data-hb-theme="club"] .hb-kit-k { font-size: 8.5px; }
.hb-swatches { display: inline-flex; }
.hb-swatches i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hb-side); }
.hb-swatches i + i { margin-left: -6px; }
.hb-swatches i:nth-child(1) { background: var(--hb-accent); }
.hb-swatches i:nth-child(2) { background: var(--hb-accent-2); }
.hb-swatches i:nth-child(3) { background: var(--hb-text); }
.hb-swatches i:nth-child(4) { background: var(--hb-bg); box-shadow: inset 0 0 0 1px var(--hb-border); }
.hb-stage[data-hb-theme="club"] .hb-swatches i { border-radius: 0; }
.hb-type { font: var(--hb-d-weight) 22px/1 var(--hb-display); letter-spacing: var(--hb-d-track); }
.hb-stage[data-hb-theme="atelier"] .hb-type { font-size: 26px; }
@media (max-width: 420px) {
  .hb-kit-row { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 22px; }
}

/* ---------- phones: the portal drops its sidebar for a top bar ---------- */
@media (max-width: 559px) {
  .hb-portal { grid-template-columns: minmax(0, 1fr); }
  .hb-side { display: none; }
  .hb-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -18px -18px 4px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--hb-hair);
    background: var(--hb-side);
  }
  .hb-top-name { font: var(--hb-d-weight) 13px/1 var(--hb-brand-font); letter-spacing: var(--hb-d-track); }
  .hb-stage[data-hb-theme="classic"] .hb-top-name { font-weight: 400; }
  .hb-stage[data-hb-theme="club"] .hb-top-name { font: 500 10px/1 var(--hb-font); letter-spacing: .24em; text-transform: uppercase; }
  .hb-main { padding: 18px 14px 16px; }
  .hb-top { margin-inline: -14px; }
  .hb-kpi { padding: 9px; }
}

/* ---------- what follows your brand ---------- */
.hb-points {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 860px) { .hb-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hb-points li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
}
.hb-point-icon {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 34px -18px rgba(0, 0, 0, .75);
  color: var(--amber-2);
}
.hb-points h3 { margin: 2px 0 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.hb-points p { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .hb-stage, .hb-tab { transition: none; }
}
