/*
Theme Name: Hibaat
Theme URI: https://hibaat.com.pk/
Author: Hibaat
Author URI: https://hibaat.com.pk/
Description: Hibaat — Fine Gold Jewellery. A bespoke, motion-refined home theme in 21 & 22 carat spirit. Ivory, espresso and gold with a signature diamond-lattice motif. Built for chat-driven editing via the WordPress Theme File Editor.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hibaat
*/

/* ============================================================
   HIBAAT — DESIGN TOKENS
   Change a value here and it updates everywhere.
   ============================================================ */
:root{
  --ivory:#FBFAF7;      /* page background */
  --espresso:#241E16;   /* ink / dark panels */
  --gold:#B08D57;       /* accent gold */
  --cream:#F3ECDF;      /* warm cream / light on dark */
  --muted:#7A6F60;      /* muted taupe text */
  --gold-rgb:176,141,87;

  --serif:'Marcellus', serif;             /* headings & wordmark */
  --ital:'Cormorant Garamond', serif;     /* italic sublines */
  --sans:'Jost', sans-serif;              /* body & labels */

  --maxw:1400px;
  --ease:cubic-bezier(0.22,1,0.36,1);     /* ease-out-quint feel */
  --lattice-repeat:46px;                  /* diamond lace period */
}

/* ============================================================
   BASE
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--ivory); color:var(--espresso); -webkit-font-smoothing:antialiased; }
body{ font-family:var(--sans); overflow-x:hidden; }
a{ color:var(--espresso); text-decoration:none; transition:color .25s ease, background .25s ease, border-color .25s ease; }
a:hover{ color:var(--gold); }
img{ display:block; max-width:100%; }
::selection{ background:var(--gold); color:var(--ivory); }
input::placeholder{ color:rgba(243,236,223,0.4); letter-spacing:0.08em; }
input:focus{ outline:none; }

.hb-container{ max-width:var(--maxw); margin:0 auto; }

/* ============================================================
   REUSABLE MOTIFS
   ============================================================ */
/* Diamond lattice — one geometry, opacity set per instance via --lat */
.hb-lattice{
  background-image:
    repeating-linear-gradient(45deg,  rgba(var(--gold-rgb),var(--lat,0.14)) 0px, rgba(var(--gold-rgb),var(--lat,0.14)) 1px, transparent 1px, transparent var(--lattice-repeat)),
    repeating-linear-gradient(-45deg, rgba(var(--gold-rgb),var(--lat,0.14)) 0px, rgba(var(--gold-rgb),var(--lat,0.14)) 1px, transparent 1px, transparent var(--lattice-repeat));
}

/* Diamond mark — size via --dsz, inner inset via --dins */
.hb-diamond{
  position:relative; display:inline-block; flex-shrink:0;
  width:var(--dsz,13px); height:var(--dsz,13px);
  transform:rotate(45deg); border:1px solid var(--gold);
}
.hb-diamond > i{ position:absolute; inset:var(--dins,4px); background:var(--gold); display:block; }

/* Arch-topped image frame */
.hb-arch{ position:relative; border-radius:999px 999px 0 0; overflow:hidden; background:var(--cream); }
.hb-arch img{ width:100%; height:100%; object-fit:cover; }

/* Growing hairline underline (nav & footer links) */
.hb-underline{ position:relative; }
.hb-underline::after{
  content:""; position:absolute; left:0; bottom:-3px; height:1px; width:100%;
  background:currentColor; transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.hb-underline:hover::after{ transform:scaleX(1); }

/* Buttons — fill sweeps in from left */
.hb-btn{
  display:inline-block; position:relative; overflow:hidden; z-index:0;
  border:1px solid var(--espresso); padding:17px 36px;
  font-size:11.5px; font-weight:500; letter-spacing:0.24em; color:var(--espresso);
  --fill:var(--espresso); --ink-hover:var(--ivory);
  transition:color .45s var(--ease), letter-spacing .45s var(--ease), border-color .45s var(--ease);
}
.hb-btn::before{
  content:""; position:absolute; inset:0; background:var(--fill);
  transform:scaleX(0); transform-origin:left; z-index:-1;
  transition:transform .45s var(--ease);
}
.hb-btn:hover{ color:var(--ink-hover); letter-spacing:0.26em; }
.hb-btn:hover::before{ transform:scaleX(1); }
.hb-btn--solid{ border:none; background:var(--espresso); color:var(--cream); padding:18px 40px; --fill:var(--gold); --ink-hover:var(--espresso); }

.hb-textcta{
  font-size:11.5px; font-weight:500; letter-spacing:0.24em; color:var(--espresso);
  border-bottom:1px solid var(--gold); padding:6px 2px; white-space:nowrap;
  transition:color .3s ease, letter-spacing .3s var(--ease);
}
.hb-textcta:hover{ letter-spacing:0.26em; }

/* Section eyebrow label */
.hb-label{ font-size:11px; letter-spacing:0.26em; color:var(--gold); }

/* Shared heading */
.hb-h2{ font-family:var(--serif); font-weight:400; line-height:1.1; margin:0; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.hb-announce{
  background:var(--espresso); color:var(--cream); text-align:center;
  padding:11px 24px; font-size:10.5px; font-weight:400; letter-spacing:0.24em; text-transform:uppercase;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.hb-nav{
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px;
  padding:24px clamp(24px,6vw,88px);
  border-bottom:1px solid rgba(36,30,22,0.1); background:var(--ivory);
  position:relative; z-index:60;
  transition:transform .4s var(--ease), padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.hb-nav__group{ display:flex; gap:clamp(18px,3vw,40px); }
.hb-nav__group--right{ justify-content:flex-end; }
.hb-nav__link{ font-size:11.5px; letter-spacing:0.2em; font-weight:400; }
.hb-wordmark{ display:flex; align-items:center; gap:15px; color:var(--espresso); }
.hb-wordmark:hover{ color:var(--espresso); }
.hb-wordmark__text{ font-family:var(--serif); font-size:25px; letter-spacing:0.34em; margin-right:-0.34em; }

/* Sticky state (JS-toggled) */
.hb-nav.is-fixed{
  position:fixed; top:0; left:0; right:0;
  padding-top:14px; padding-bottom:14px;
  background:rgba(251,250,247,0.85);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  box-shadow:0 1px 0 rgba(36,30,22,0.08);
}
.hb-nav.is-hidden{ transform:translateY(-102%); }
.hb-nav-spacer{ display:none; }
.hb-nav-spacer.is-on{ display:block; }

/* ============================================================
   HERO
   ============================================================ */
.hb-hero{
  position:relative; background:var(--ivory);
  padding:clamp(56px,6.5vw,100px) clamp(24px,6vw,88px) clamp(64px,7vw,110px);
}
.hb-hero__wash{ position:absolute; inset:0; pointer-events:none; --lat:0.14; }
.hb-hero__inner{
  position:relative; max-width:var(--maxw); margin:0 auto;
  display:grid; grid-template-columns:minmax(380px,7fr) minmax(340px,5fr);
  gap:clamp(48px,6vw,110px); align-items:center;
}
.hb-eyebrow{ display:flex; align-items:center; gap:14px; margin-bottom:34px; }
.hb-eyebrow__text{ font-size:11px; letter-spacing:0.26em; color:var(--muted); font-weight:400; }
.hb-hero__title{
  font-family:var(--serif); font-weight:400; font-size:clamp(52px,6.2vw,92px);
  line-height:1.04; margin:0 0 30px; letter-spacing:0.005em;
}
.hb-hero__sub{
  font-family:var(--ital); font-style:italic; font-size:clamp(20px,1.9vw,27px);
  line-height:1.5; color:var(--muted); margin:0 0 46px; max-width:30ch;
}
.hb-hero__cta{ display:flex; align-items:center; gap:36px; flex-wrap:wrap; }

.hb-hero__figure{ position:relative; margin:0; padding:26px 0 0 0; }
.hb-hero__panel{
  position:absolute; top:0; right:-28px; width:72%; height:84%;
  border:1px solid rgba(var(--gold-rgb),0.35); --lat:0.42;
}
.hb-hero__arch{ position:relative; width:88%; aspect-ratio:4 / 5.1; }
.hb-solitaire{
  position:absolute; left:-30px; bottom:64px; width:178px;
  background:var(--ivory); border:1px solid rgba(var(--gold-rgb),0.45); padding:9px 9px 13px;
}
.hb-solitaire__img{ width:100%; aspect-ratio:1 / 1; overflow:hidden; background:var(--cream); }
.hb-solitaire__img img{ width:100%; height:100%; object-fit:cover; }
.hb-solitaire__name{ font-family:var(--serif); font-size:14px; margin-top:11px; }
.hb-solitaire__meta{ font-size:9.5px; letter-spacing:0.18em; color:var(--muted); margin-top:3px; }
.hb-hero__caption{
  display:flex; justify-content:space-between; gap:16px; width:88%; margin-top:16px;
  font-size:10px; letter-spacing:0.2em; color:var(--muted);
}

/* ============================================================
   LATTICE DIVIDER BAND
   ============================================================ */
.hb-band{
  height:64px; --lat:0.32;
  border-top:1px solid rgba(var(--gold-rgb),0.28);
  border-bottom:1px solid rgba(var(--gold-rgb),0.28);
}

/* ============================================================
   COLLECTIONS
   ============================================================ */
.hb-collections{ padding:clamp(80px,9vw,136px) clamp(24px,6vw,88px); background:var(--ivory); }
.hb-sec-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:32px; flex-wrap:wrap;
  margin-bottom:clamp(44px,5vw,72px);
}
.hb-sec-head .hb-label{ margin-bottom:18px; }
.hb-collections .hb-h2{ font-size:clamp(38px,3.8vw,56px); }
.hb-sec-aside{ font-family:var(--ital); font-style:italic; font-size:20px; color:var(--muted); margin:0; }

.hb-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,2.4vw,32px); }
.hb-grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(20px,2.4vw,32px); margin-top:clamp(36px,4vw,56px); }

.hb-card{ display:block; color:var(--espresso); }
.hb-card__arch{ position:relative; border-radius:999px 999px 0 0; overflow:hidden; background:var(--cream); }
.hb-card--lg .hb-card__arch{ aspect-ratio:4 / 4.7; }
.hb-card--sm .hb-card__arch{ aspect-ratio:4 / 4.4; }
.hb-card__arch img{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s var(--ease); }
.hb-card__lace{ position:absolute; inset:0; pointer-events:none; opacity:0; --lat:0.18; transition:opacity .5s ease; }
.hb-card__arch::after{
  content:""; position:absolute; top:0; left:-70%; width:45%; height:100%;
  background:linear-gradient(105deg, transparent 0%, rgba(255,247,231,0.38) 50%, transparent 100%);
  transform:skewX(-14deg); opacity:0; pointer-events:none;
}
.hb-card__row{ display:flex; justify-content:space-between; align-items:baseline; }
.hb-card--lg .hb-card__row{ margin-top:20px; }
.hb-card--sm .hb-card__row{ margin-top:18px; }
.hb-card__name{ font-family:var(--serif); transition:color .4s ease; }
.hb-card--lg .hb-card__name{ font-size:22px; }
.hb-card--sm .hb-card__name{ font-size:19px; }
.hb-card__arrow{ font-size:12px; color:var(--gold); display:inline-block; transition:transform .5s var(--ease); }
.hb-card__desc{ font-family:var(--ital); font-style:italic; color:var(--muted); }
.hb-card--lg .hb-card__desc{ font-size:16px; margin-top:5px; }
.hb-card--sm .hb-card__desc{ font-size:15px; margin-top:4px; }

.hb-card:hover .hb-card__arch img{ transform:scale(1.05); }
.hb-card:hover .hb-card__lace{ opacity:1; }
.hb-card:hover .hb-card__name{ color:var(--gold); }
.hb-card:hover .hb-card__arrow{ transform:translateX(6px); }
.hb-card:hover .hb-card__arch::after{ animation:hb-shimmer .9s linear; }
@keyframes hb-shimmer{ 0%{ left:-70%; opacity:0; } 12%{ opacity:1; } 100%{ left:125%; opacity:0; } }

/* Elegant placeholder for slots awaiting real photography */
.hb-slot{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:var(--cream); color:var(--muted); text-align:center;
}
.hb-slot__in{ display:flex; flex-direction:column; align-items:center; gap:12px; padding:20px; }
.hb-slot__txt{ font-size:10px; letter-spacing:0.22em; text-transform:uppercase; }

/* ============================================================
   QUOTE BAND
   ============================================================ */
.hb-quote{
  position:relative; background:var(--espresso); overflow:hidden;
  display:grid; grid-template-columns:minmax(340px,1.1fr) minmax(300px,1fr); min-height:520px;
}
.hb-quote__lace{ position:absolute; inset:0; pointer-events:none; --lat:0.13; }
.hb-quote__body{
  position:relative; padding:clamp(64px,8vw,120px) clamp(32px,6vw,110px);
  display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
}
.hb-quote__mark{ margin-bottom:42px; }
.hb-quote__text{
  font-family:var(--ital); font-style:italic; font-weight:400; font-size:clamp(28px,2.8vw,40px);
  line-height:1.45; color:var(--cream); margin:0 0 36px; max-width:22ch;
}
.hb-quote__by{ font-size:10.5px; letter-spacing:0.24em; color:var(--gold); }
.hb-quote__figure{ position:relative; margin:0; min-height:380px; }
.hb-quote__figure img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hb-quote__cap{
  position:absolute; right:0; bottom:0; background:rgba(36,30,22,0.62); color:rgba(243,236,223,0.85);
  font-size:9.5px; letter-spacing:0.2em; padding:10px 16px;
}

/* ============================================================
   OUR GOLD
   ============================================================ */
.hb-gold{ position:relative; background:var(--cream); padding:clamp(80px,9vw,140px) clamp(24px,6vw,88px); overflow:hidden; }
.hb-gold__lace{
  position:absolute; top:-40px; left:-40px; width:46%; height:78%; pointer-events:none; --lat:0.22;
  -webkit-mask-image:linear-gradient(135deg,#000 0%,transparent 72%);
  mask-image:linear-gradient(135deg,#000 0%,transparent 72%);
}
.hb-gold__inner{
  position:relative; max-width:var(--maxw); margin:0 auto;
  display:grid; grid-template-columns:minmax(380px,7fr) minmax(300px,5fr);
  gap:clamp(48px,6vw,110px); align-items:center;
}
.hb-gold__num{ font-family:var(--serif); font-size:clamp(84px,9vw,148px); line-height:0.95; letter-spacing:0.01em; }
.hb-gold__sub{ font-family:var(--ital); font-style:italic; font-size:clamp(24px,2.2vw,32px); color:var(--gold); margin:14px 0 34px; }
.hb-gold__p{ font-size:15px; font-weight:300; line-height:1.9; color:rgba(36,30,22,0.78); margin:0 0 44px; max-width:52ch; }
.hb-specs{ border-top:1px solid rgba(36,30,22,0.16); }
.hb-spec{
  position:relative; display:grid; grid-template-columns:150px 1fr; gap:20px; padding:15px 0;
  border-bottom:1px solid rgba(36,30,22,0.16); align-items:baseline;
}
.hb-spec__k{ font-size:10.5px; letter-spacing:0.22em; color:var(--muted); }
.hb-spec__v{ font-family:var(--serif); font-size:16px; }
.hb-gold__figure{ margin:0; }
.hb-gold__figure .hb-arch{ aspect-ratio:4 / 5.2; background:var(--ivory); }
.hb-gold__cap{ display:flex; justify-content:space-between; gap:16px; margin-top:16px; font-size:10px; letter-spacing:0.2em; color:var(--muted); }

/* ============================================================
   BESPOKE
   ============================================================ */
.hb-bespoke{ position:relative; overflow:hidden; background:var(--ivory); padding:clamp(80px,9vw,140px) clamp(24px,6vw,88px); }
.hb-bespoke__lace{
  position:absolute; top:-40px; right:-40px; width:42%; height:70%; pointer-events:none; --lat:0.18;
  -webkit-mask-image:linear-gradient(225deg,#000 0%,transparent 70%);
  mask-image:linear-gradient(225deg,#000 0%,transparent 70%);
}
.hb-bespoke__wrap{ position:relative; max-width:var(--maxw); margin:0 auto; }
.hb-bespoke__head{ text-align:center; max-width:760px; margin:0 auto clamp(56px,6vw,88px); }
.hb-bespoke__head .hb-label{ margin-bottom:20px; display:block; }
.hb-bespoke__head .hb-h2{ font-size:clamp(38px,4.2vw,60px); line-height:1.12; margin:0 0 22px; }
.hb-bespoke__sub{ font-family:var(--ital); font-style:italic; font-size:clamp(18px,1.7vw,23px); line-height:1.55; color:var(--muted); margin:0; }
.hb-bespoke__grid{ display:grid; grid-template-columns:minmax(380px,6fr) minmax(340px,6fr); gap:clamp(48px,6vw,100px); align-items:center; }

.hb-steps{ border-top:1px solid rgba(36,30,22,0.14); }
.hb-step{ display:grid; grid-template-columns:68px 1fr; gap:18px; padding:26px 0; border-bottom:1px solid rgba(36,30,22,0.14); }
.hb-step__n{ font-family:var(--serif); font-size:19px; color:var(--gold); }
.hb-step__t{ font-family:var(--serif); font-size:21px; }
.hb-step__p{ font-size:14.5px; font-weight:300; line-height:1.75; color:rgba(36,30,22,0.72); margin:9px 0 0; }
.hb-bespoke__cta{ margin-top:40px; }

.hb-bespoke__vis{ position:relative; }
.hb-bespoke__figlace{
  position:absolute; inset:-28px -18px 34px; pointer-events:none; --lat:0.2;
  -webkit-mask-image:radial-gradient(120% 100% at 50% 42%, #000 40%, transparent 78%);
  mask-image:radial-gradient(120% 100% at 50% 42%, #000 40%, transparent 78%);
}
.hb-figs{ position:relative; display:grid; grid-template-columns:1fr auto 1fr; gap:18px; align-items:center; }
.hb-fig{ margin:0; }
.hb-fig__box{ position:relative; aspect-ratio:4 / 5; overflow:hidden; background:var(--cream); }
.hb-fig__box img{ width:100%; height:100%; object-fit:cover; }
.hb-fig__cap{ font-size:9.5px; letter-spacing:0.2em; color:var(--muted); margin-top:13px; text-align:center; }
.hb-bespoke__note{ font-family:var(--ital); font-style:italic; font-size:17px; color:var(--muted); text-align:center; margin:26px auto 0; max-width:40ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.hb-footer{ background:var(--espresso); color:var(--cream); }
.hb-footer__band{ height:64px; --lat:0.34; border-bottom:1px solid rgba(var(--gold-rgb),0.3); }
.hb-footer__top{
  max-width:var(--maxw); margin:0 auto;
  padding:clamp(64px,7vw,100px) clamp(24px,6vw,88px) clamp(48px,5vw,72px);
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1.4fr; gap:clamp(32px,4vw,64px);
}
.hb-footer__word{ font-family:var(--serif); font-size:23px; letter-spacing:0.32em; }
.hb-footer__tag{ font-family:var(--ital); font-style:italic; font-size:17px; color:var(--gold); margin-top:8px; }
.hb-footer__blurb{ font-size:13px; font-weight:300; line-height:1.85; color:rgba(243,236,223,0.55); margin:22px 0 0; max-width:30ch; }
.hb-footer__h{ font-size:10.5px; letter-spacing:0.24em; color:var(--gold); margin-bottom:22px; }
.hb-footer__links{ display:flex; flex-direction:column; gap:12px; }
.hb-footer__links a{ font-size:13.5px; font-weight:300; color:rgba(243,236,223,0.78); }
.hb-footer__links a:hover{ color:var(--gold); }
.hb-news__p{ font-size:13px; font-weight:300; line-height:1.8; color:rgba(243,236,223,0.55); margin:0 0 18px; }
.hb-news__row{ display:flex; gap:14px; align-items:center; border-bottom:1px solid rgba(243,236,223,0.3); padding-bottom:10px; }
.hb-news__input{ flex:1; background:transparent; border:none; color:var(--cream); font-family:var(--sans); font-size:13px; font-weight:300; padding:4px 0; }
.hb-news__sub{ font-size:10.5px; letter-spacing:0.22em; color:var(--gold); }
.hb-footer__bar{ border-top:1px solid rgba(243,236,223,0.12); }
.hb-footer__barin{
  max-width:var(--maxw); margin:0 auto; padding:22px clamp(24px,6vw,88px);
  display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap;
  font-size:10px; letter-spacing:0.18em; color:rgba(243,236,223,0.45);
}
.hb-footer__social{ display:flex; gap:20px; }
.hb-footer__social a{ color:rgba(243,236,223,0.45); letter-spacing:0.18em; }
.hb-footer__social a:hover{ color:var(--gold); }

/* ============================================================
   MOTION — INITIAL STATES
   Applied ONLY when JS is present and motion is allowed, so that
   no-JS and reduced-motion visitors always see the finished page.
   ============================================================ */
.hb-js:not(.hb-reduced) .hb-anim{ opacity:0; }
.hb-js:not(.hb-reduced) .hb-fade{ opacity:0; transform:translateY(24px); }
.hb-js:not(.hb-reduced) .hb-fade-lg{ opacity:0; transform:translateY(32px); }
.hb-line-mask{ display:block; }
.hb-line{ display:block; }
.hb-js:not(.hb-reduced) .hb-line-mask{ overflow:hidden; padding-bottom:0.16em; margin-bottom:-0.16em; }
/* Masked line reveal — driven by .hb-lines-in (added by an IntersectionObserver).
   Pure CSS transition so it always lands at the final position. */
.hb-js:not(.hb-reduced) .hb-line{ transform:translateY(120%); transition:transform 1.05s var(--ease); }
.hb-js:not(.hb-reduced) .hb-lines-in .hb-line{ transform:translateY(0); }
.hb-js:not(.hb-reduced) .hb-lines-in .hb-line-mask:nth-child(2) .hb-line{ transition-delay:0.13s; }
.hb-js:not(.hb-reduced) .hb-lines-in .hb-line-mask:nth-child(3) .hb-line{ transition-delay:0.26s; }
.hb-js:not(.hb-reduced) .hb-clip{ clip-path:inset(100% 0 0 0); }
.hb-js:not(.hb-reduced) .hb-clip > img,
.hb-js:not(.hb-reduced) .hb-clip > .hb-slot{ transform:scale(1.08); }
.hb-js:not(.hb-reduced) .hb-panel-in{ opacity:0; transform:translate(-20px,20px); }
.hb-js:not(.hb-reduced) .hb-word{ opacity:0.15; }
.hb-js:not(.hb-reduced) .hb-rot45{ transform:rotate(0deg); }

/* will-change only while animating (added/removed by JS) */
.hb-animating{ will-change:transform,opacity,clip-path; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1040px){
  .hb-hero__inner{ grid-template-columns:1fr; gap:56px; }
  .hb-hero__figure{ max-width:520px; }
  .hb-gold__inner{ grid-template-columns:1fr; gap:56px; }
  .hb-bespoke__grid{ grid-template-columns:1fr; gap:64px; }
  .hb-quote{ grid-template-columns:1fr; }
  .hb-quote__figure{ min-height:420px; }
  .hb-footer__top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:820px){
  .hb-nav__group{ display:none; }         /* desktop links hidden; drawer takes over */
  .hb-grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:680px){
  .hb-grid-3{ grid-template-columns:1fr 1fr; }
  .hb-grid-4{ grid-template-columns:1fr 1fr; }
  .hb-sec-head{ flex-direction:column; gap:10px; }
  .hb-footer__top{ grid-template-columns:1fr; gap:40px; }
  .hb-hero__cta{ gap:22px; }
  .hb-solitaire{ width:132px; left:-14px; bottom:40px; }
}
@media (max-width:440px){
  .hb-grid-3{ grid-template-columns:1fr; }
  .hb-grid-4{ grid-template-columns:1fr; }
}

/* ============================================================
   REDUCED MOTION — belt & braces
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
  .hb-anim,.hb-fade,.hb-fade-lg,.hb-line,.hb-panel-in{ opacity:1 !important; transform:none !important; }
  .hb-clip{ clip-path:none !important; }
  .hb-clip > img,.hb-clip > .hb-slot{ transform:none !important; }
  .hb-word{ opacity:1 !important; }
}

/* ============================================================
   MOTION — DRIFT, DRAWN RULES, CORNERS, PARALLAX HEADROOM
   ============================================================ */
/* Slow diagonal lattice drift (hero panel & footer band) */
.hb-drift{ animation:hb-drift 20s ease-in-out infinite alternate; }
@keyframes hb-drift{
  from{ background-position:0 0, 0 0; }
  to{ background-position:40px 28px, 40px 28px; }
}

/* Spec rows: drawn rule lines. Static borders remain without JS / under reduced motion. */
.hb-specs{ position:relative; }
.hb-rule{ display:none; }
.hb-js:not(.hb-reduced) .hb-specs{ border-top-color:transparent; }
.hb-js:not(.hb-reduced) .hb-spec{ border-bottom-color:transparent; }
.hb-js:not(.hb-reduced) .hb-rule{
  display:block; position:absolute; left:0; bottom:0; height:1px; width:100%;
  background:rgba(36,30,22,0.16); transform:scaleX(0); transform-origin:left;
}
.hb-js:not(.hb-reduced) .hb-rule--top{ top:0; bottom:auto; }

/* Corner watermarks: fade + translate in (JS sets the translate) */
.hb-js:not(.hb-reduced) .hb-corner{ opacity:0; }

/* Nav pieces fade in during the load choreography */
.hb-js:not(.hb-reduced) .hb-nav__group,
.hb-js:not(.hb-reduced) .hb-wordmark{ opacity:0; }

/* Spec-row text fades in after its rule is drawn */
.hb-js:not(.hb-reduced) .hb-spec__k,
.hb-js:not(.hb-reduced) .hb-spec__v{ opacity:0; }

/* Hero caption fades in last */
.hb-js:not(.hb-reduced) .hb-hero__caption{ opacity:0; }

/* Full-bleed quote image gets extra height so parallax never gaps */
.hb-quote__figure img.hb-parallax{ height:115%; top:-7.5%; }

@media (prefers-reduced-motion:reduce){
  .hb-drift{ animation:none !important; }
  .hb-corner{ opacity:1 !important; }
  .hb-quote__figure img.hb-parallax{ height:100%; top:0; }
}

/* ============================================================
   FAILSAFE REVEAL
   Added by the header watchdog only if motion.js never boots
   (JS blocked, or a slow/blocked CDN). Forces the finished page.
   ============================================================ */
.hb-ready .hb-anim,
.hb-ready .hb-fade,
.hb-ready .hb-fade-lg,
.hb-ready .hb-line,
.hb-ready .hb-panel-in,
.hb-ready .hb-wordmark,
.hb-ready .hb-nav__group,
.hb-ready .hb-corner,
.hb-ready .hb-spec__k,
.hb-ready .hb-spec__v,
.hb-ready .hb-quote__by,
.hb-ready .hb-word{ opacity:1 !important; transform:none !important; }
.hb-ready .hb-line{ transform:translateY(0) !important; }
.hb-ready .hb-clip{ clip-path:none !important; }
.hb-ready .hb-clip > img,
.hb-ready .hb-clip > .hb-slot{ transform:none !important; }
.hb-ready .hb-rule{ transform:scaleX(1) !important; }

/* ============================================================
   MOBILE MENU — burger + left slide-out drawer
   ============================================================ */
.hb-nav__left{ display:flex; align-items:center; gap:22px; }

/* Burger — two hairlines that morph to an X */
.hb-burger{
  display:none; align-items:center; justify-content:center;
  -webkit-appearance:none; appearance:none; background:none; border:none; cursor:pointer;
  padding:10px; margin:-10px 0 -10px -10px; color:var(--espresso);
}
.hb-burger__box{ position:relative; display:block; width:26px; height:13px; }
.hb-burger__line{
  position:absolute; left:0; height:1.5px; background:currentColor; display:block;
  transition:transform .5s var(--ease), width .4s var(--ease), background .3s ease, top .5s var(--ease), bottom .5s var(--ease);
}
.hb-burger__line:nth-child(1){ top:0; width:100%; }
.hb-burger__line:nth-child(2){ bottom:0; width:64%; }
.hb-burger:hover .hb-burger__line{ background:var(--gold); }
.hb-burger:hover .hb-burger__line:nth-child(2){ width:100%; }
.hb-burger.is-open .hb-burger__line:nth-child(1){ top:6px; transform:rotate(45deg); width:100%; }
.hb-burger.is-open .hb-burger__line:nth-child(2){ bottom:5px; transform:rotate(-45deg); width:100%; }

/* Scrim */
.hb-drawer-overlay{
  position:fixed; inset:0; z-index:190; background:rgba(36,30,22,0.46);
  opacity:0; transition:opacity .5s ease; -webkit-backdrop-filter:blur(1px); backdrop-filter:blur(1px);
}
.hb-drawer-overlay.is-open{ opacity:1; }

/* Drawer panel */
.hb-drawer{
  position:fixed; top:0; left:0; bottom:0; z-index:200;
  width:min(87vw, 412px); max-width:100%;
  background:var(--ivory); color:var(--espresso);
  display:flex; overflow:hidden; visibility:hidden;
  transform:translateX(-101%);
  border-right:1px solid rgba(var(--gold-rgb),0.28);
  transition:transform .62s var(--ease), box-shadow .62s var(--ease), visibility 0s linear .62s;
}
.hb-drawer.is-open{
  transform:translateX(0); visibility:visible;
  box-shadow:34px 0 90px -26px rgba(36,30,22,0.34);
  transition:transform .62s var(--ease), box-shadow .62s var(--ease), visibility 0s;
}
/* the living diamond lace */
.hb-drawer__lace{ position:absolute; inset:-32% -32% -32% -32%; --lat:0.5; opacity:0.5; pointer-events:none; }
/* a slow gold sheen that crosses the lace */
.hb-drawer__sheen{
  position:absolute; top:-20%; bottom:-20%; left:-40%; width:45%; pointer-events:none; opacity:0.55;
  background:linear-gradient(105deg, transparent, rgba(var(--gold-rgb),0.10) 45%, rgba(255,247,231,0.16) 50%, rgba(var(--gold-rgb),0.10) 55%, transparent);
  transform:skewX(-12deg);
}
.hb-drawer.is-open .hb-drawer__sheen{ animation:hb-sheen 4.6s var(--ease) 0.5s infinite; }
@keyframes hb-sheen{ 0%{ left:-45%; } 55%,100%{ left:135%; } }

.hb-drawer__inner{
  position:relative; z-index:1; display:flex; flex-direction:column; width:100%; height:100%;
  padding:clamp(26px,7vw,40px) clamp(24px,7vw,40px) clamp(30px,6vw,42px);
}
.hb-drawer__head{ display:flex; align-items:center; justify-content:space-between; }
.hb-drawer__mark .hb-wordmark__text{ font-size:20px; letter-spacing:0.3em; margin-right:-0.3em; }
.hb-drawer__mark:hover{ color:var(--espresso); }
.hb-drawer__close{
  position:relative; -webkit-appearance:none; appearance:none; background:none; cursor:pointer;
  width:40px; height:40px; border:1px solid rgba(36,30,22,0.16); border-radius:50%; color:var(--espresso);
  transition:border-color .35s ease, transform .55s var(--ease), color .35s ease; flex-shrink:0;
}
.hb-drawer__close:hover{ border-color:var(--gold); color:var(--gold); transform:rotate(90deg); }
.hb-drawer__close span{ position:absolute; top:50%; left:50%; width:14px; height:1.5px; background:currentColor; }
.hb-drawer__close span:nth-child(1){ transform:translate(-50%,-50%) rotate(45deg); }
.hb-drawer__close span:nth-child(2){ transform:translate(-50%,-50%) rotate(-45deg); }

.hb-drawer__nav{ display:flex; flex-direction:column; margin-top:clamp(30px,8vw,50px); flex:1 1 auto; }
.hb-drawer__link{
  display:flex; align-items:center; gap:16px; padding:clamp(13px,2.6vw,17px) 2px;
  color:var(--espresso); border-bottom:1px solid rgba(36,30,22,0.09);
  font-family:var(--serif); font-size:clamp(25px,7.6vw,33px); line-height:1;
  opacity:0; transform:translateX(-16px);
  transition:opacity .55s var(--ease), transform .55s var(--ease), color .3s ease;
}
.hb-drawer.is-open .hb-drawer__link{ opacity:1; transform:none; transition-delay:calc(0.055s * var(--i) + 0.14s); }
.hb-drawer__link:hover{ color:var(--gold); }
.hb-drawer__dia{ flex-shrink:0; opacity:0.85; transition:transform .6s var(--ease); }
.hb-drawer__link:hover .hb-drawer__dia{ transform:rotate(135deg); }
.hb-drawer__label{ flex:0 1 auto; }
.hb-drawer__arrow{ margin-left:auto; color:var(--gold); font-size:0.52em; opacity:0; transform:translateX(-6px); transition:opacity .3s ease, transform .4s var(--ease); }
.hb-drawer__link:hover .hb-drawer__arrow{ opacity:1; transform:translateX(0); }

.hb-drawer__link--sm{
  font-family:var(--sans); font-size:clamp(11px,3.2vw,12px); letter-spacing:0.22em; text-transform:uppercase;
  color:var(--muted); border-bottom:none; padding:12px 2px 6px;
}
.hb-drawer__link--sm:hover{ color:var(--gold); }

.hb-drawer__rule{
  display:block; height:1px; background:rgba(var(--gold-rgb),0.32); margin:clamp(16px,5vw,26px) 2px clamp(8px,3vw,14px);
  opacity:0; transform:scaleX(0); transform-origin:left;
  transition:opacity .5s ease, transform .6s var(--ease);
}
.hb-drawer.is-open .hb-drawer__rule{ opacity:1; transform:scaleX(1); transition-delay:calc(0.055s * var(--i) + 0.14s); }

.hb-drawer__foot{ margin-top:auto; padding-top:26px; opacity:0; transition:opacity .6s ease .34s; }
.hb-drawer.is-open .hb-drawer__foot{ opacity:1; }
.hb-drawer__tag{ font-family:var(--ital); font-style:italic; font-size:19px; color:var(--gold); }
.hb-drawer__meta{ font-size:10px; letter-spacing:0.22em; text-transform:uppercase; color:var(--muted); margin-top:9px; }

/* lock page scroll while the drawer is open */
html.hb-nav-open, html.hb-nav-open body{ overflow:hidden; }

@media (prefers-reduced-motion:reduce){
  .hb-drawer,.hb-drawer__link,.hb-drawer__rule,.hb-drawer__foot{ transition-duration:0.001ms !important; }
  .hb-drawer__sheen{ animation:none !important; opacity:0 !important; }
  .hb-drawer.is-open .hb-drawer__link{ transition-delay:0s !important; }
}

/* Show the burger only on mobile (kept last so it wins the source-order tie) */
@media (max-width:820px){ .hb-burger{ display:inline-flex; } }
