/* HELMS base styles — copied 1:1 from helmsadvisory.com index.html */

:root{
  --bg:#050504;
  --bg2:#0b0a08;
  --card:#15130e;
  --card2:#1d1a12;
  --text:#f7f1e6;
  --muted:#d2c7ad;
  --soft:#9c9078;
  --gold:#d39d31;
  --gold2:#f4ce71;
  --gold3:#8b6016;
  --line:rgba(212,157,49,.34);
  --line2:rgba(255,255,255,.09);
  --shadow:0 34px 100px -64px rgba(0,0,0,.96), inset 0 1px 0 rgba(255,255,255,.055);
  --sans:'Satoshi','General Sans',Inter,system-ui,-apple-system,Segoe UI,sans-serif;
  --serif:'Cormorant Garamond',Georgia,serif;
  --mono:'IBM Plex Mono',monospace;
  --max:1360px;
}
[data-theme="light"]{
  --bg:#f5f0e4;
  --bg2:#eee5d2;
  --card:#fffaf0;
  --card2:#f4ead5;
  --text:#17120a;
  --muted:#5d5342;
  --soft:#8b806b;
  --gold:#a97819;
  --gold2:#8a6010;
  --gold3:#6c4a0d;
  --line:rgba(137,95,16,.28);
  --line2:rgba(30,24,14,.12);
  --shadow:0 30px 90px -58px rgba(94,66,19,.44), inset 0 1px 0 rgba(255,255,255,.72);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:84px;background:var(--bg);overscroll-behavior-y:auto;-webkit-tap-highlight-color:transparent}
body{
  min-height:100vh;
  font-family:var(--sans);
  color:var(--text);
  /* REDESIGN v34: body background (base gradient + gold ambient glow) moved to chrome.css body{} — single source, identical on every route */
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(180deg,rgba(255,255,255,.014) 1px,transparent 1px);
  background-size:92px 92px;
  mask-image:linear-gradient(180deg,black,transparent 78%);
  opacity:.42;
  /* composite this fixed masked grid onto its own GPU layer so fast scrolling / boundary overscroll doesn't
     re-rasterise it (it was flashing the grid squares on scroll-to-top/bottom in desktop-site mode). */
  transform:translateZ(0);
  backface-visibility:hidden;
}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
.wrap{width:min(var(--max),calc(100% - 56px));margin:auto;position:relative;z-index:1}
.glass{
  background:linear-gradient(145deg,rgba(26,24,17,.82),rgba(9,9,7,.74));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  backdrop-filter:blur(20px) saturate(1.15);
  -webkit-backdrop-filter:blur(20px) saturate(1.15);
}
[data-theme="light"] .glass{background:linear-gradient(145deg,rgba(255,250,240,.88),rgba(244,234,213,.76))}
.header{position:sticky;top:0;z-index:50;padding:12px 20px 0}
.nav{
  width:min(100%,var(--max));
  margin:0 auto;
  height:102px;
  border-radius:42px;
  display:flex;
  align-items:center;
  gap:26px;
  padding:0 28px 0 30px;
}
.brand{display:flex;align-items:center;min-width:250px}
.brand img{height:64px;max-width:240px;width:auto;object-fit:contain;display:block;filter:drop-shadow(0 10px 22px rgba(212,157,49,.25))}
.menu{display:flex;gap:30px;margin-left:auto;align-items:center}
.menu a{font-size:15px;color:var(--muted);font-weight:500;transition:.2s}
.menu a:hover{color:var(--gold2)}
.nav-actions{display:flex;align-items:center;gap:18px;margin-left:20px}
.portal{
  height:44px;
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(212,157,49,.6);
  border-radius:999px;
  color:var(--gold2);
  font-weight:650;
  font-size:14px;
  white-space:nowrap;
}
.theme-toggle{
  width:80px;height:38px;border-radius:999px;border:1px solid rgba(212,157,49,.55);
  background:rgba(255,255,255,.035);position:relative;cursor:pointer;color:var(--gold2)
}
.theme-toggle:before{
  content:"";position:absolute;width:30px;height:30px;left:5px;top:3px;border-radius:50%;
  background:linear-gradient(135deg,var(--gold2),var(--gold));
  box-shadow:0 8px 22px -8px rgba(212,157,49,.9);
  transition:.25s ease;
}
[data-theme="light"] .theme-toggle:before{transform:translateX(38px)}
.theme-toggle span{position:absolute;right:13px;top:8px;font-size:18px}
.burger{width:44px;height:44px;border:0;background:transparent;display:none;place-items:center;cursor:pointer}
.burger i,.burger:before,.burger:after{content:"";display:block;width:26px;height:2px;background:var(--muted);border-radius:2px;margin:3px 0}
.hero{padding:78px 0 52px}
.hero-grid{display:grid;grid-template-columns:.80fr 1.20fr;gap:74px;align-items:start}
.kicker{display:flex;align-items:center;gap:16px;font-family:var(--sans);font-size:11px;letter-spacing:1.32px;color:var(--soft);text-transform:uppercase}
.kicker:before{content:"";width:48px;height:1px;background:linear-gradient(90deg,var(--gold),transparent)}
h1{font-family:var(--serif);font-size:clamp(54px,5.35vw,78px);line-height:.96;letter-spacing:-.04em;font-weight:500;margin-top:42px;color:var(--text);text-shadow:0 2px 18px rgba(0,0,0,.35)}
h1 em{color:var(--gold2);font-style:italic;font-weight:500;text-shadow:0 0 26px rgba(212,157,49,.18)}
.lead{margin-top:46px;max-width:560px;font-size:20px;line-height:1.72;color:var(--muted)}
.bridge{margin-top:34px;color:var(--gold2);font-family:var(--serif);font-style:italic;font-size:28px;line-height:1.35}
.disciplines{margin-top:52px;display:flex;align-items:center;flex-wrap:wrap;gap:20px;color:var(--gold);font-weight:700;text-transform:uppercase;letter-spacing:.03em;font-size:16px}
.disciplines i{width:1px;height:20px;background:rgba(212,157,49,.45)}
.cta{margin-top:42px;display:flex;gap:28px;flex-wrap:wrap}
.btn{height:62px;border-radius:var(--r-sm);display:inline-flex;align-items:center;justify-content:center;gap:12px;font-weight:650;padding:0 30px;transition:.25s ease;white-space:nowrap}   /* REDESIGN v36: rectangular 8px (was 999px pill) */
.btn:hover{transform:translateY(-1px)}
.btn-gold{min-width:226px;color:#1a1204;background:#f4ce71;box-shadow:0 8px 24px rgba(212,157,49,.16)}   /* REDESIGN v36: FLAT --hx-gold #f4ce71 (was gold gradient + inset bevel) */
.btn-gold:hover{background:#f6d98a;box-shadow:0 12px 30px rgba(212,157,49,.24)}
.btn-ghost{min-width:280px;color:var(--muted);background:rgba(255,255,255,.018);border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--gold2);color:var(--gold2)}
@media(prefers-reduced-motion:reduce){.btn:hover{transform:none}}

section.block{padding:62px 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:26px;margin-bottom:24px}
.section-head h2{font-family:var(--serif);font-size:clamp(38px,4.3vw,58px);line-height:1.12;font-weight:500;letter-spacing:-.035em}
.section-head p{color:var(--muted);max-width:560px;font-size:17px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.card{border-radius:var(--r-lg);padding:22px;position:relative;overflow:hidden;min-height:145px!important;background:linear-gradient(145deg,rgba(22,20,15,.74),rgba(9,9,7,.66))!important;border-color:rgba(212,157,49,.20)!important;transition:border-color .3s ease, transform .3s ease, box-shadow .3s ease !important}
/* REDESIGN v34: card corner glow -> chrome.css .card::before + .card::after (two diagonal glows, all cards) */
.icon{width:50px;height:50px;border-radius:var(--r-md);border:1px solid rgba(246,205,103,.30);display:grid;place-items:center;color:var(--gold2);background:linear-gradient(145deg,rgba(255,218,112,.15),rgba(103,71,21,.08));margin-bottom:22px}
.icon svg{width:28px;height:28px}
.card h3,.card h4{font-size:19px;letter-spacing:-.018em;margin-bottom:10px}
.card p{color:var(--muted);font-size:15px;line-height:1.58}
.tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.tag{border:1px solid var(--line);border-radius:999px;padding:9px 13px;color:var(--muted);font-size:13px;background:rgba(255,255,255,.025)}
.step .num{font-family:var(--serif);font-size:46px;color:var(--gold2);line-height:1;margin-bottom:14px}
.about-card{display:grid;grid-template-columns:170px 1fr;gap:26px;align-items:center;border-radius:var(--r-lg);padding:24px}
.about-logo{width:190px;height:190px;border-radius:28px;display:grid;place-items:center;background:#000;border:1px solid var(--line)}
/* About logo tile = DARK on BOTH themes (match hero); soft shadow lifts it off the cream page in light theme — 2026-06-17 */
[data-theme="light"] .about-logo{background:#0c0b08;border-color:rgba(212,157,49,.22);box-shadow:0 18px 40px -20px rgba(25,18,6,.45)}
.about-logo img{width:90%;height:90%;object-fit:contain}
/* Hero figure: the new theme-swap hero image is a self-contained rounded tile -> neutralise the old glassy box (no second frame/glow) and swap by theme (no inline JS) */
.hero-figure{background:none!important;border:none!important;box-shadow:none!important;padding:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:visible!important}
.hero-figure img.hero-pic{width:100%;height:auto;max-height:520px;object-fit:contain;display:block;filter:none;border-radius:2.3% / 3.05%;overflow:hidden}
/* hero is the DARK card on BOTH themes (single img, no theme-swap) — 2026-06-17 */
.about-card h2{font-family:var(--serif);font-size:48px;font-weight:500;line-height:1}
.about-role{color:var(--gold2);font-family:var(--serif);font-size:24px;font-style:italic;margin-top:8px}
.about-card p{color:var(--muted);margin-top:14px;max-width:850px}
.book-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px}
.book-info,.calendar{border-radius:var(--r-lg);padding:30px}
.book-info h2{font-family:var(--serif);font-size:48px;line-height:1;font-weight:500;margin:14px 0}
.book-info p{color:var(--muted);font-size:16px}
.feature{display:flex;gap:12px;align-items:baseline;margin-top:14px;color:var(--muted)}
.feature b{font:600 11px/1 var(--mono);color:var(--gold2);border:1px solid var(--line);border-radius:var(--r-sm);padding:7px 10px;min-width:72px;text-align:center}
.cal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.cal-month{font-family:var(--serif);font-size:28px;color:var(--text)}
.cal-nav button{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer}
.dow,.days{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
.dow span{text-align:center;color:var(--soft);font:600 10px/1 var(--mono);text-transform:uppercase;padding:7px 0}
.day{aspect-ratio:1;border-radius:12px;border:1px solid transparent;display:grid;place-items:center;color:var(--muted);cursor:pointer}
.day:hover,.day.sel{border-color:var(--gold);color:var(--gold2);background:rgba(212,157,49,.08)}
.day.off{opacity:.25;pointer-events:none}
.slots{border-top:1px solid var(--line2);margin-top:18px;padding-top:18px}
.slot-list{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}
.slot{padding:11px;border-radius:13px;border:1px solid var(--line);background:rgba(255,255,255,.025);color:var(--muted);cursor:pointer}
.slot.sel{color:#120d05;background:linear-gradient(135deg,var(--gold2),var(--gold))}
.form{display:grid;gap:10px;margin-top:16px}
.form input,.form textarea{width:100%;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.035);color:var(--text);padding:12px 14px;resize:vertical}
.form input:focus,.form textarea:focus{outline:none;border-color:var(--gold2)}

/* footer base + .foot container -> MOVED to chrome.css v34 (reskinned, markup verbatim) */
.chat-float{position:fixed;right:28px;bottom:28px;z-index:140;width:62px;height:62px;border-radius:50%;border:0;color:#fff6dd;background:linear-gradient(135deg,#f3ca6c,#bd7f1e);box-shadow:0 18px 44px -18px rgba(212,157,49,.9);display:grid;place-items:center;cursor:pointer}
.chat-float svg{width:31px;height:31px}
.chat-panel{position:fixed;inset:0;z-index:160;background:rgba(5,5,4,.64);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;padding:22px}
.chat-panel.show{display:flex}
.chat-box{width:min(430px,100%);border-radius:var(--r-lg);overflow:hidden}
.chat-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.chat-head b{display:block} .chat-head span{color:var(--muted);font-size:12px}
.chat-close{width:34px;height:34px;border-radius:var(--r-pill);border:1px solid var(--line);background:transparent;color:var(--text);cursor:pointer}
.chat-log{padding:18px 20px;display:grid;gap:10px}
.msg{max-width:86%;padding:12px 14px;border-radius:var(--r-lg);font-size:14px}
.msg.op{background:rgba(255,255,255,.055);border:1px solid var(--line2);border-bottom-left-radius:5px}
.msg.me{justify-self:end;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#120d05;border-bottom-right-radius:5px}
.chat-form{padding:16px 20px 20px;border-top:1px solid var(--line);display:grid;gap:10px}
.chat-form input,.chat-form textarea{width:100%;border:1px solid var(--line);border-radius:var(--r-md);background:rgba(255,255,255,.035);color:var(--text);padding:11px 13px;resize:vertical}
@media(max-width:1180px){
  .menu{gap:18px}
  .hero-grid{grid-template-columns:1fr;gap:42px}
  
  .grid-4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:920px){
  .header{padding:8px 10px 0}
  .nav{height:auto;min-height:84px;border-radius:30px;flex-wrap:wrap;padding:12px 18px}
  .brand{min-width:0}
  .brand img{height:52px;max-width:195px}
  .menu{order:3;width:100%;display:none;flex-direction:column;align-items:flex-start;padding:12px 8px 6px}
  body.menu-open .menu{display:flex}
  .burger{display:grid}
  .portal{display:none}
  .hero{padding:48px 0 38px}
  .grid-3,.book-grid{grid-template-columns:1fr}
  .about-card{grid-template-columns:1fr}
  
}
@media(max-width:640px){
  .wrap{width:min(100% - 28px,var(--max))}
  .theme-toggle{display:none}
  h1{font-size:46px;margin-top:30px}
  .lead{font-size:17px;margin-top:30px}
  .bridge{font-size:24px}
  .disciplines{margin-top:34px;font-size:14px;gap:14px}
  .btn{width:100%;min-width:0}

  .grid-4{grid-template-columns:1fr}
  .section-head{display:block}
  .section-head p{margin-top:12px}
  .slot-list{grid-template-columns:repeat(2,1fr)}
  .foot{display:block}
  .foot div:last-child{margin-top:8px}
}

/* === UI REFINEMENT PASS — tighter proportions, calmer typography, better scanning === */
:root{
  --max:1280px;
}
.header{
  padding:10px 18px 0;
}
.nav{
  height:82px;
  border-radius:34px;
  padding:0 22px 0 24px;
}
.brand{
  min-width:218px;
}
.brand img{
  height:54px;
  max-width:205px;
}
.menu{
  gap:24px;
}
.menu a{
  font-size:14px;
}
.nav-actions{
  gap:14px;
  margin-left:16px;
}
.portal{
  height:40px;
  padding:0 20px;
  font-size:13px;
}
.theme-toggle{
  width:70px;
  height:34px;
}
.theme-toggle:before{
  width:26px;
  height:26px;
  top:3px;
  left:4px;
}
[data-theme="light"] .theme-toggle:before{
  transform:translateX(35px);
}
.theme-toggle span{
  top:7px;
  right:11px;
  font-size:16px;
}

.hero{
  padding:54px 0 38px;
}
.hero-grid{
  grid-template-columns:.84fr 1.16fr;
  gap:54px;
  align-items:start;
}
.kicker{
  font-size:11px;
  gap:14px;
}
.kicker:before{
  width:42px;
}
h1{
  font-size:clamp(42px,4.25vw,60px);
  line-height:.99;
  margin-top:28px;
  letter-spacing:-.035em;
}
.lead{
  margin-top:30px;
  max-width:510px;
  font-size:17px;
  line-height:1.62;
}
.bridge{
  margin-top:24px;
  font-size:23px;
  line-height:1.28;
}
.disciplines{
  margin-top:34px;
  gap:16px;
  font-size:13px;
}
.disciplines i{
  height:16px;
}
.cta{
  margin-top:30px;
  gap:18px;
}
.btn{
  height:52px;
  padding:0 24px;
  font-size:14px;
}
.btn-gold{
  min-width:190px;
}
.btn-ghost{
  min-width:235px;
}

section.block{
  padding:46px 0;
}
.section-head{
  margin-bottom:20px;
}
.section-head h2{
  font-size:clamp(32px,3.4vw,46px);
}
.section-head p{
  font-size:15.5px;
  line-height:1.58;
}
.grid-3,
.grid-4{
  gap:14px;
}

.icon{
  width:44px;
  height:44px;
  border-radius:var(--r-md);
  margin-bottom:18px;
}
.icon svg{
  width:24px;
  height:24px;
}
.card h3,
.card h4{
  font-size:17px;
  margin-bottom:8px;
}
.card p{
  font-size:14px;
  line-height:1.54;
}
.step .num{
  font-size:38px;
  margin-bottom:10px;
}

.about-logo{
  width:150px;
  height:150px;
  border-radius:24px;
}
.about-card h2{
  font-size:38px;
}
.about-role{
  font-size:20px;
}
.about-card p{
  font-size:15px;
  line-height:1.6;
}
.tag{
  padding:8px 12px;
  font-size:12.5px;
}

.book-grid{
  grid-template-columns:.88fr 1.12fr;
  gap:16px;
}
.book-info,
.calendar{
  padding:26px;
  border-radius:var(--r-lg);
}
.book-info h2{
  font-size:38px;
}
.book-info p,
.feature{
  font-size:14.5px;
}
.cal-month{
  font-size:24px;
}
.day{
  border-radius:10px;
  font-size:13px;
}
.slot{
  padding:9px;
  font-size:13px;
}
.form input,
.form textarea{
  padding:10px 12px;
  font-size:14px;
}

.chat-float{
  width:56px;
  height:56px;
  right:24px;
  bottom:24px;
}
.chat-float svg{
  width:28px;
  height:28px;
}

@media(max-width:920px){
  .nav{
    min-height:74px;
    border-radius:28px;
  }
  .brand img{
    height:48px;
    max-width:180px;
  }
  .hero{
    padding:38px 0 34px;
  }
  .hero-grid{
    gap:30px;
  }
  
  .about-card,
  .book-grid{
    grid-template-columns:1fr;
  }
  .about-logo{
    width:132px;
    height:132px;
  }
}
@media(max-width:640px){
  .header{
    padding:8px 10px 0;
  }
  .nav{
    border-radius:22px;
    padding:10px 14px;
  }
  .brand img{
    height:42px;
    max-width:165px;
  }
  h1{
    font-size:40px;
    margin-top:24px;
  }
  .lead{
    font-size:16px;
    margin-top:24px;
  }
  .bridge{
    font-size:21px;
  }
  .hero{
    padding:30px 0 30px;
  }
  .disciplines{
    margin-top:26px;
    gap:12px;
  }
  .cta{
    margin-top:24px;
    gap:12px;
  }

  section.block{
    padding:38px 0;
  }
  .card{
    min-height:0;
  }
  .about-card h2,
  .book-info h2{
    font-size:34px;
  }
  .chat-float{
    width:52px;
    height:52px;
    right:18px;
    bottom:18px;
  }
}

/* === FINAL HERO / UI QUALITY PASS ===
   1 right logo reduced, 2 hero raised, 3 less italic noise, 4 grotesk hero title,
   5 left column wider, 6 single chat CTA, 7 tighter tags, 8 tighter sections,
   9 visual top aligned with hero copy, 10 smaller navbar
*/
.header{
  padding:8px 18px 0 !important;
}
.nav{
  height:72px !important;
  min-height:72px !important;
  border-radius:30px !important;
  padding:0 20px 0 22px !important;
}
.brand{
  min-width:205px !important;
}
.brand img{
  height:46px !important;
  max-width:185px !important;
}
.menu{
  gap:22px !important;
}
.menu a{
  font-size:13.5px !important;
  letter-spacing:-.01em !important;
}
.nav-actions{
  gap:12px !important;
  margin-left:14px !important;
}
.portal{
  height:38px !important;
  padding:0 18px !important;
  font-size:13px !important;
}
.theme-toggle{
  width:66px !important;
  height:32px !important;
}
.theme-toggle:before{
  width:24px !important;
  height:24px !important;
  top:3px !important;
  left:4px !important;
}
[data-theme="light"] .theme-toggle:before{
  transform:translateX(34px) !important;
}
.theme-toggle span{
  top:6px !important;
  right:10px !important;
  font-size:15px !important;
}
.hero{
  padding:42px 0 32px !important;
}
.hero-grid{
  grid-template-columns:1.08fr .92fr !important;
  gap:46px !important;
  align-items:start !important;
}
.hero-eyebrow{
  display:flex;
  align-items:center;
  gap:18px;
  color:var(--gold2);
  font:700 13px/1 var(--mono);
  letter-spacing:.20em;
  text-transform:uppercase;
  margin-top:0;
}
.hero-eyebrow:before{
  content:"";
  width:72px;
  height:1px;
  background:linear-gradient(90deg,var(--gold2),transparent);
}
.hero-eyebrow span{
  opacity:.8;
}
.hero-title{
  font-family:var(--sans) !important;
  font-size:clamp(58px,7.05vw,104px) !important;
  line-height:.96 !important;
  letter-spacing:-.072em !important;
  font-weight:700 !important;
  margin:20px 0 0 !important;
  color:#f4efe6 !important;
  text-shadow:0 2px 22px rgba(0,0,0,.38) !important;
}
[data-theme="light"] .hero-title{
  color:#17120a !important;
  text-shadow:none !important;
}
.hero-lead{
  margin-top:28px !important;
  max-width:900px !important;
  font-size:22px !important;
  line-height:1.72 !important;
  color:var(--muted) !important;
}
.hero-bridge{
  margin-top:28px !important;
  max-width:920px !important;
  font-family:var(--sans) !important;
  font-style:italic !important;
  color:var(--gold2) !important;
  font-size:34px !important;
  line-height:1.25 !important;
  letter-spacing:-.035em !important;
}
.hero-tags{
  margin-top:34px;
  display:flex;
  flex-wrap:wrap;
  gap:12px 16px;
}
.hero-tags span{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 24px;
  border-radius:17px;
  border:1px solid rgba(212,157,49,.35);
  background:rgba(255,255,255,.025);
  color:#d8d0c1;
  font-size:18px;
  line-height:1;
  letter-spacing:.025em;
  font-weight:800;
  text-transform:uppercase;
}
[data-theme="light"] .hero-tags span{
  color:#3b3020;
  background:rgba(255,255,255,.46);
}
.hero-chat-actions{
  margin-top:36px;
}
.hero-chat-btn{
  min-width:360px;
  height:64px;
  padding:0 38px;
  border-radius:999px;
  border:1px solid rgba(246,207,112,.48);
  background:linear-gradient(135deg,#f4cf72,#d39d31 62%,#8b6016);
  box-shadow:0 24px 58px -30px rgba(246,207,112,.98), inset 0 1px 0 rgba(255,255,255,.35);
  color:#080704;
  font-size:20px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  transition:.25s ease;
}
.hero-chat-btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.04);
}
.hero-chat-btn i{
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(255,242,175,.38);
  position:relative;
  flex:none;
}
.hero-chat-btn i:after{
  content:"";
  position:absolute;
  width:13px;
  height:13px;
  border-radius:50%;
  background:#37c46e;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 0 0 0 rgba(55,196,110,.6);
  animation:heroPulse 2s infinite;
}
@keyframes heroPulse{
  0%{box-shadow:0 0 0 0 rgba(55,196,110,.55)}
  70%{box-shadow:0 0 0 12px rgba(55,196,110,0)}
  100%{box-shadow:0 0 0 0 rgba(55,196,110,0)}
}
.hero-chat-note{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--soft);
  font:600 13px/1.4 var(--mono);
  letter-spacing:.045em;
}
.hero-chat-note i{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#37c46e;
  box-shadow:0 0 0 10px rgba(55,196,110,.11);
  flex:none;
}

section.block{
  padding:40px 0 !important;
}
.section-head h2{
  font-family:var(--sans) !important;
  font-size:clamp(30px,3vw,42px) !important;
  letter-spacing:-.045em !important;
  font-weight:700 !important;
}
.book-info h2,
.about-card h2{
  font-family:var(--sans) !important;
  letter-spacing:-.045em !important;
  font-weight:700 !important;
}
.bridge:not(.hero-bridge),
.about-role{
  font-style:normal !important;
}

.hero .cta,
.hero .disciplines,
.hero .kicker,
.hero h1:not(.hero-title){
  display:none !important;
}
@media(max-width:1180px){
  .hero-grid{
    grid-template-columns:1fr !important;
    gap:30px !important;
  }

  .hero-title{
    font-size:clamp(54px,9vw,92px) !important;
  }
}
@media(max-width:920px){
  .nav{
    height:auto !important;
    min-height:68px !important;
    border-radius:24px !important;
    padding:10px 14px !important;
  }
  .brand img{
    height:40px !important;
    max-width:162px !important;
  }
  .burger{
    display:grid !important;
  }
  .menu{
    order:3;
    width:100%;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:14px !important;
    padding:12px 6px 6px;
  }
  body.menu-open .menu{
    display:flex !important;
  }
  .hero{
    padding:34px 0 28px !important;
  }
  .hero-title{
    font-size:clamp(48px,12vw,76px) !important;
  }
  .hero-lead{
    font-size:18px !important;
  }
  .hero-bridge{
    font-size:28px !important;
  }
  .hero-tags span{
    min-height:44px;
    font-size:15px;
    padding:0 18px;
  }
}
@media(max-width:640px){
  .hero-eyebrow{
    font-size:11px;
    gap:10px;
    letter-spacing:.15em;
  }
  .hero-eyebrow:before{
    width:38px;
  }
  .hero-title{
    font-size:42px !important;
    letter-spacing:-.055em !important;
  }
  .hero-lead{
    font-size:16px !important;
    line-height:1.62 !important;
  }
  .hero-bridge{
    font-size:23px !important;
  }
  .hero-tags{
    gap:10px;
  }
  .hero-tags span{
    width:100%;
    justify-content:center;
    font-size:14px;
  }
  .hero-chat-btn{
    width:100%;
    min-width:0;
    height:58px;
    font-size:17px;
    padding:0 20px;
  }
  .hero-chat-note{
    font-size:11.5px;
  }
  
}

/* === PREMIUM RESTRAINT PASS — cleaner, less flashy, better hierarchy === */
:root{
  --max:1240px;
}
body{
  /* PHASE-3 BATCH-1 BG-FIX (2026-07-06): REVERTED batch-1's flat #0d0c09 "brand-black" (read as brown /
     тошнотно коричневый) back to PROD — near-black base var(--bg)=#050504 vertical gradient + the low gold
     ambient corner glow (18% 38%). The top "62% 3%" radial STAYS DROPPED: it was the deadline-banner light-
     bleed the batch-1 banner-uniformity fix removed (KEPT — a DIFFERENT glow from this body ambient glow).
     var(--bg)/(--bg2) resolve dark #050504 + light cream in one rule (prod structure; no separate light rule). */
  background:
    radial-gradient(620px 360px at 18% 38%,rgba(212,157,49,.045),transparent 70%),
    linear-gradient(180deg,var(--bg) 0%,var(--bg2) 58%,var(--bg) 100%) !important;
}
.header{padding:10px 20px 0!important}
.nav{
  height:74px!important;
  min-height:74px!important;
  border-radius:28px!important;
  padding:0 20px 0 22px!important;
  background:linear-gradient(145deg,rgba(17,16,12,.78),rgba(7,7,5,.66))!important;
  border-color:rgba(202,154,55,.24)!important;
}
.brand{min-width:190px!important}
.brand img{height:44px!important;max-width:175px!important}
.menu{gap:24px!important}
.menu a{font-size:13.5px!important;color:var(--muted)!important}
.portal{height:38px!important;padding:0 18px!important;font-size:13px!important}
.theme-toggle{width:64px!important;height:32px!important}
.burger{display:none}

.premium-hero{
  padding:56px 0 42px!important;
}
.premium-hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:54px;
  align-items:center;
}
.premium-copy{max-width:690px}
.premium-eyebrow{
  display:flex;
  align-items:center;
  gap:14px;
  color:#d7aa4e;
  font:700 12px/1 var(--mono);
  letter-spacing:.18em;
  text-transform:uppercase;
}
.premium-eyebrow:before{
  content:"";
  width:54px;
  height:1px;
  background:linear-gradient(90deg,#d7aa4e,transparent);
}
.premium-copy h1{
  margin:26px 0 0!important;
  font-family:var(--sans)!important;
  font-size:clamp(48px,5.25vw,76px)!important;
  line-height:.98!important;
  letter-spacing:-.065em!important;
  font-weight:650!important;
  color:#f2eee6!important;
  text-shadow:0 2px 24px rgba(0,0,0,.28)!important;
}
.premium-lead{
  margin-top:16px!important;   /* PHASE 3 hero-align ROBUST 2026-07-06: reverted the per-width hack (22->16). Pills-bottom is now landed on the terminal bottom by stretching .premium-copy + margin-top:auto on .premium-whatwedo in the 2-col desktop MQ, NOT by tuning this H1->sub margin. */
  max-width:650px!important;
  color:var(--muted)!important;
  font-size:18px!important;
  line-height:1.68!important;
}
.premium-bridge{
  margin-top:22px!important;
  max-width:650px!important;
  color:#e2b85d!important;
  font-size:22px!important;
  line-height:1.35!important;
  font-style:italic;
  letter-spacing:-.018em;
}
.premium-tags{
  margin-top:30px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.premium-tags span{
  height:38px;
  display:inline-flex;
  align-items:center;
  padding:0 15px;
  border-radius:12px;
  border:1px solid rgba(212,157,49,.28);
  background:rgba(255,255,255,.018);
  color:#cfc6b5;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.premium-actions{
  margin-top:32px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.premium-primary,.premium-secondary{
  height:48px;
  border-radius:var(--r-sm);   /* REDESIGN v36: rectangular (was 999px pill) */
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:transform .22s ease,box-shadow .22s ease,background .22s ease,border-color .22s ease;
}
.premium-primary{
  min-width:190px;
  color:#1a1204;
  background:#f4ce71;   /* REDESIGN v36: FLAT --hx-gold #f4ce71 (was gold gradient + inset bevel) */
  box-shadow:0 8px 24px rgba(212,157,49,.16);
}
.premium-primary:hover{
  background:#f6d98a;
  transform:translateY(-1px);
  box-shadow:0 12px 30px rgba(212,157,49,.24);
}
.premium-secondary{
  min-width:126px;
  color:#d9cfba;
  background:rgba(255,255,255,.018);
  border:1px solid rgba(212,157,49,.26);
}
.premium-secondary:hover{
  border-color:var(--gold2);
  transform:translateY(-1px);
}
@media(prefers-reduced-motion:reduce){.premium-primary:hover,.premium-secondary:hover{transform:none}}
/* PHASE 2a: hero trust line (merges the old typical-reply note + jurisdiction coverage) */
.premium-hero-trust{margin-top:3px;max-width:640px;display:flex;align-items:center;gap:8px;color:var(--soft);font:600 8.5px/1.55 var(--mono);letter-spacing:.04em}   /* Итерация 4 п.1: 18→8 (-10px, Live chat→"Typical reply" gap only). .premium-whatwedo{margin-top:auto} untouched — it still bottom-anchors to terminal, so this -10px is absorbed entirely into the auto slack below, growing the Typical-reply→WHAT-WE-DO gap by the same 10px. Итерация 5: margin-top 8→3 (-5px доп.), font-size 11.5→8.5px (-3px); align-items:center on the flex row keeps the .desk-dot vertically centered against the shorter line-box automatically, no separate vertical-align fix needed */
.premium-hero-trust + .premium-hero-trust{margin-top:5px}   /* PHASE 2a: 2nd trust line sits just under the 1st */
[data-theme="light"] .premium-hero-trust{color:#6f644f}
/* PHASE 3 hero CTA — desk-status Live-chat + trust-line dot (owner 2026-07-06, contract §"Gold CTA hierarchy + Live-chat desk status").
   Reuses body.desk-closed (set by the homepage inline desk script — SAME clock as the header .hx-livechat .hx-dot; no new clock). */
.premium-hero-trust .desk-dot{flex:0 0 8px;width:8px;height:8px;border-radius:var(--r-pill);background:#37c46e}   /* trust-line status dot: GREEN open / RED closed — NO pulse */
body.desk-closed .premium-hero-trust .desk-dot{background:#e5484d}
/* hero Live-chat = CONSTANT UNIFIED-BORDER frame var(--line) — the site's standard ghost/secondary button border (NOT a custom gold outline); border colour does NOT change with desk state; transparent bg; ONLY the LABEL TEXT changes colour with the desk state + a TEXT-ONLY pulse in the green (open) state. Overrides the filled .premium-primary fill for THIS hero button only. */
#home .premium-actions .desk-cta{background:transparent;border:1px solid rgba(212,157,49,.20);box-shadow:none;color:#37c46e;animation:deskTextPulse 2.6s ease-in-out infinite}   /* PHASE 3 border-unify: canonical faint-gold .20 (was var(--line) .34) */
#home .premium-actions .desk-cta:hover{background:rgba(212,157,49,.08);border-color:rgba(212,157,49,.20);box-shadow:none;transform:translateY(-1px)}
body.desk-closed #home .premium-actions .desk-cta{color:#e5484d;animation:none}   /* CLOSED: red label, static (no pulse) */
@keyframes deskTextPulse{0%,100%{color:#37c46e;text-shadow:0 0 5px rgba(55,196,110,.12)}50%{color:#8be3ad;text-shadow:0 0 12px rgba(55,196,110,.5)}}
@media(prefers-reduced-motion:reduce){#home .premium-actions .desk-cta{animation:none}}
/* PHASE 3: hero-left filler — "What we do" service pills (6 pills, 3-col×2-row equal-width grid; kicker REUSES .premium-eyebrow) */
#home .premium-whatwedo{margin-top:22px;max-width:600px}   /* PHASE 3 hero-align ROBUST 2026-07-06: base (stacked/mobile) value reverted 30->22 (pre-hack natural gap). On the 2-col desktop MQ this is OVERRIDDEN to margin-top:auto so the "What we do" kicker + pills anchor to the BOTTOM of the stretched .premium-copy column (== terminal bottom) automatically at EVERY width — no per-width margin tuning (supersedes the 1440-only 30px lever). */
#home .premium-whatwedo .premium-eyebrow{margin-bottom:13px}
#home .premium-pills{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;list-style:none;margin:0;padding:0;max-width:600px}
#home .premium-pills li{border:1px solid rgba(212,157,49,.20);color:var(--text);background:transparent;border-radius:var(--r-sm);padding:10px 7px;font:500 11.5px/1.2 var(--mono);letter-spacing:.01em;text-align:center;white-space:nowrap}   /* PHASE 3 border-unify: canonical faint-gold rgba(212,157,49,.20) = terminal tracker-row + .card border (var(--line) .34 was too bright) */
.premium-note{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--soft);
  font:600 11.5px/1.4 var(--mono);
  letter-spacing:.035em;
}
.premium-note i{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#37c46e;
  box-shadow:0 0 0 8px rgba(55,196,110,.09);
}
.premium-visual{
  border-radius:var(--r-lg);
  padding:12px 16px;
  overflow:hidden;
  justify-self:end;
  max-width:590px;
  background:
    radial-gradient(560px 260px at 48% 0%,rgba(212,157,49,.10),transparent 66%),
    linear-gradient(145deg,rgba(25,23,17,.86),rgba(10,10,8,.92))!important;
  border-color:rgba(212,157,49,.34)!important;
  box-shadow:0 30px 92px -64px rgba(0,0,0,.98), inset 0 1px 0 rgba(255,255,255,.045)!important;
}
.premium-visual img{
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 22px 48px rgba(212,157,49,.22));
}
.premium-trust{
  margin-top:42px;
  border-radius:18px;
  padding:22px 28px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  background:linear-gradient(145deg,rgba(20,19,14,.70),rgba(9,9,7,.64))!important;
  border-color:rgba(212,157,49,.22)!important;
}
.premium-trust article{
  display:grid;
  gap:5px;
  padding-left:18px;
  border-left:1px solid rgba(212,157,49,.25);
}
.premium-trust b{
  color:#e6dcc2;
  font-size:13px;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.premium-trust span{
  color:#bcb29c;
  font-size:14px;
  line-height:1.45;
}
section.block{padding:42px 0!important}
.section-head h2,
.about-card h2,
.book-info h2{
  font-family:var(--sans)!important;
  font-weight:650!important;
  letter-spacing:-.045em!important;
}
.section-head h2{font-size:clamp(30px,3vw,42px)!important}

.card h3,.card h4{font-size:16.5px!important}
.card p{font-size:14px!important;color:#beb4a2!important}
/* light theme: cards match the other cream panels, readable text */
[data-theme="light"] .card{
  background:linear-gradient(145deg,rgba(255,250,240,.92),rgba(244,234,213,.82))!important;
  border-color:rgba(154,108,20,.22)!important;
}
[data-theme="light"] .card h3,
[data-theme="light"] .card h4{color:#1d160b!important}
[data-theme="light"] .card p{color:#5d5342!important}
.icon{width:42px!important;height:42px!important;margin-bottom:16px!important}
.chat-float{
  width:54px!important;
  height:54px!important;
  background:linear-gradient(135deg,#e9c369,#b37a20)!important;
}
@media(max-width:1180px){
  .premium-hero-grid{grid-template-columns:1fr;gap:34px}
  .premium-visual{justify-self:start;max-width:720px}
  .premium-visual img{max-height:none}
}
@media(max-width:920px){
  .burger{display:grid!important}
  .nav{height:auto!important;min-height:68px!important}
  .menu{order:3;width:100%;display:none;flex-direction:column;align-items:flex-start;padding:12px 6px 6px}
  body.menu-open .menu{display:flex!important}
  .premium-hero{padding:38px 0 32px!important}
  .premium-trust{grid-template-columns:1fr}
}
@media(max-width:640px){
  .brand img{height:40px!important;max-width:155px!important}
  .premium-copy h1{font-size:42px!important}
  .premium-lead{font-size:16px!important}
  .premium-bridge{font-size:20px!important}
  .premium-tags span{height:36px;font-size:11.5px}
  .premium-primary,.premium-secondary{width:100%}
  .premium-visual{padding:8px 6px}
  #home .premium-pills{grid-template-columns:repeat(2,1fr);max-width:none}
  #home .premium-pills li{white-space:normal}   /* narrow: 2 cols, allow long labels to wrap inside cell */
}

/* === SLOGAN FIX — main hero slogan restored and emphasized === */
.premium-main-slogan{
  display:block !important;
  margin:26px 0 0 !important;
  font-family:var(--sans) !important;
  font-size:clamp(48px,5.25vw,76px) !important;
  line-height:.98 !important;
  letter-spacing:-.065em !important;
  font-weight:650 !important;
  color:#f2eee6 !important;
  text-shadow:0 2px 24px rgba(0,0,0,.28) !important;
}
[data-theme="light"] .premium-main-slogan{
  color:#17120a !important;
  text-shadow:none !important;
}
@media(max-width:640px){
  .premium-main-slogan{
    font-size:42px !important;
  }
}

/* === Reference slogan fix — serif style, same line breaks, no final dot === */
.reference-serif-slogan,
.premium-main-slogan.reference-serif-slogan{
  display:block !important;
  font-family:var(--serif) !important;
  font-size:clamp(70px,9.15vw,134px) !important;
  line-height:.92 !important;
  letter-spacing:-.055em !important;
  font-weight:500 !important;
  color:#f2eee6 !important;
  margin:20px 0 0 !important;
  text-shadow:0 2px 24px rgba(0,0,0,.30) !important;
}
[data-theme="light"] .reference-serif-slogan{
  color:#17120a !important;
  text-shadow:none !important;
}
@media(max-width:1180px){
  .reference-serif-slogan,
  .premium-main-slogan.reference-serif-slogan{
    font-size:clamp(62px,11vw,112px) !important;
  }
}
@media(max-width:640px){
  .reference-serif-slogan,
  .premium-main-slogan.reference-serif-slogan{
    font-size:56px !important;
    line-height:.94 !important;
  }
}

/* === HARD FIX: visible reference hero title, exact text, no final dot === */
#home .hero-reference-title{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative !important;
  z-index:5 !important;
  margin:20px 0 0 !important;
  padding:0 !important;
  font-family:var(--serif), Georgia, serif !important;
  font-size:clamp(70px,9.15vw,134px) !important;
  line-height:.92 !important;
  letter-spacing:-.055em !important;
  font-weight:500 !important;
  color:#f2eee6 !important;
  text-shadow:0 2px 24px rgba(0,0,0,.30) !important;
  max-width:1100px !important;
}
[data-theme="light"] #home .hero-reference-title{
  color:#17120a !important;
  text-shadow:none !important;
}
#home .premium-copy,
#home .hero-grid > div,
#home .premium-hero-grid > div{
  overflow:visible !important;
}
@media(max-width:1180px){
  #home .hero-reference-title{
    font-size:clamp(62px,11vw,112px) !important;
  }
}
@media(max-width:640px){
  #home .hero-reference-title{
    font-size:56px !important;
    line-height:.94 !important;
  }
}

/* === BALANCED HERO TITLE FIX — visible, premium, not oversized === */
#home .hero-reference-title{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative !important;
  z-index:5 !important;
  margin:22px 0 0 !important;
  padding:0 !important;
  font-family:var(--serif), Georgia, serif !important;
  font-size:clamp(46px,5.25vw,76px) !important;
  line-height:.98 !important;
  letter-spacing:-.045em !important;
  font-weight:500 !important;
  color:#f2eee6 !important;
  text-shadow:0 2px 22px rgba(0,0,0,.26) !important;
  max-width:760px !important;
}
#home .premium-copy{
  max-width:760px !important;
}
#home .premium-hero-grid{
  grid-template-columns:1.02fr .98fr !important;
  gap:54px !important;
  align-items:center !important;
}
#home .premium-visual{
  max-width:590px !important;
}
#home .premium-visual img{
  max-height:420px !important;
}
[data-theme="light"] #home .hero-reference-title{
  color:#17120a !important;
  text-shadow:none !important;
}
@media(max-width:1180px){
  #home .hero-reference-title{
    font-size:clamp(44px,7.2vw,70px) !important;
    max-width:820px !important;
  }
  #home .premium-hero-grid{
    grid-template-columns:1fr !important;
    gap:34px !important;
  }
}
@media(max-width:640px){
  #home .hero-reference-title{
    font-size:40px !important;
    line-height:1 !important;
    letter-spacing:-.035em !important;
    max-width:100% !important;
  }
}

/* === HEADER ALIGNMENT FIX — vertically centred bar, gold nav text === */
.nav{
  align-items:center !important;
  padding-top:0 !important;
}
.brand{
  align-self:center !important;
  margin-top:0 !important;
}
.brand img{
  display:block !important;
  height:50px !important;
}
.menu,
.nav-actions{
  padding-top:0 !important;
  align-items:center !important;
}
/* nav links + portal in the logo gold */
.menu a{color:var(--hx-nav-text) !important;font-weight:600 !important;letter-spacing:.01em !important}
.menu a:hover{color:#f6d27a !important}
.portal{color:#f0c463 !important;border-color:rgba(226,182,90,.55) !important}
[data-theme="light"] .menu a{color:#9a6c14 !important}
[data-theme="light"] .menu a:hover{color:#7a560f !important}
[data-theme="light"] .portal{color:#8a6010 !important;border-color:rgba(137,95,16,.5) !important}

/* === RIGHT HERO CARD RAISE FIX ===
   Поднимаем весь правый hero-блок с карточкой HELMS вверх,
   чтобы убрать пустоту сверху и выровнять его с верхней линией hero-текста.
*/
.premium-hero-grid,
.hero-grid{
  align-items:start !important;
}
.premium-visual{
  margin-top:-88px !important;
}
@media(max-width:1180px){
  .premium-visual{
    margin-top:0 !important;
  }
}

/* === HERO CARD ALIGNMENT PASS 2 ===
   Выравнивание верхней границы карточки по строке
   ADVISORY · FINANCE · LEGAL
*/
.premium-visual{
  margin-top:-165px !important;
}

.premium-hero-grid,
.hero-grid{
  align-items:start !important;
}

@media(max-width:1180px){
  .premium-visual{
    margin-top:0 !important;
  }
}

/* === REDONE HERO SIDE / TRUST BLOCK — clean step-by-step correction === */

/* 1. Right side becomes one controlled column: logo card + small trust cards */
#home .hero-side-column{
  width:min(560px,100%);
  justify-self:end;
  margin-top:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* 2. The hero logo/card keeps the requested raised alignment */
#home .hero-side-column > .premium-visual{
  width:100% !important;
  max-width:100% !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
  justify-self:auto !important;
}

/* 3. The trust block is a separate, calm block under the logo — not a huge bar */
#home .hero-trust-row{
  width:100%;
  margin:0 !important;
  padding:12px !important;
  border-radius:18px !important;
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:8px !important;
  background:
    radial-gradient(420px 140px at 50% 0%,rgba(212,157,49,.07),transparent 72%),
    linear-gradient(145deg,rgba(18,17,12,.76),rgba(8,8,6,.68)) !important;
  border:1px solid rgba(212,157,49,.24) !important;
  box-shadow:0 22px 62px -54px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

/* 4. Each card is centered, compact and visually related to the hero logo colors */
#home .hero-trust-row article{
  min-height:78px !important;
  padding:14px 14px !important;
  border:1px solid rgba(212,157,49,.16) !important;
  border-radius:14px !important;
  background:linear-gradient(160deg,rgba(255,255,255,.035),rgba(255,255,255,.012)) !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:center !important;
  gap:5px !important;
}

/* 5. Hide old icons inside this row: the block should feel typographic like the logo */

/* 6. Title style: restrained gold, not oversized, not cartoonish */
#home .hero-trust-row b{
  margin:0 !important;
  display:block !important;
  font-family:var(--serif), Georgia, serif !important;
  font-size:15px !important;
  line-height:1.05 !important;
  font-weight:600 !important;
  letter-spacing:-.012em !important;
  text-transform:none !important;
  color:#d7a84c !important;
  text-shadow:0 1px 8px rgba(212,157,49,.18) !important;
}

/* 7. Body text smaller and quieter */
#home .hero-trust-row span,
#home .hero-trust-row p{
  margin:0 auto !important;
  display:block !important;
  max-width:145px !important;
  font-family:var(--sans) !important;
  font-size:11px !important;
  line-height:1.32 !important;
  font-weight:500 !important;
  letter-spacing:-.005em !important;
  color:#aaa18e !important;
}

/* 8. Prevent any old full-width trust row from reappearing under the whole hero */
#home > .wrap > .premium-trust:not(.hero-trust-row){
  display:none !important;
}

/* 9. Responsive: on smaller screens the right column returns to natural flow */
@media(max-width:1180px){
  #home .hero-side-column{
    justify-self:start;
    margin-top:0;
    width:min(720px,100%);
  }
}
@media(max-width:640px){
  #home .hero-trust-row{
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding:10px !important;
  }
  #home .hero-trust-row article{
    min-height:62px !important;
  }
  #home .hero-trust-row span,
  #home .hero-trust-row p{
    max-width:240px !important;
  }
}

/* === TASK 4: COMPACT BOOK / CALENDAR + COLLAPSIBLE SLOTS === */
#book .book-grid{
  grid-template-columns:1fr 1fr !important;
  gap:20px !important;
  align-items:start !important;
  max-width:980px !important;
  margin:0 auto !important;
}
#book .book-info,
#book .calendar{padding:24px !important}
#book .book-info h2{font-size:clamp(26px,2.6vw,34px) !important;margin:12px 0 !important}
#book .book-info p{font-size:14.5px !important}
#book .feature{margin-top:12px !important}
#book .calendar{width:100% !important;max-width:430px !important;justify-self:end !important}
#book .cal-month{font-size:21px !important}
#book .cal-nav button{width:32px !important;height:32px !important}
#book .dow,#book .days{gap:5px !important}
#book .dow span{font-size:9px !important;padding:5px 0 !important}
#book .day{
  border-radius:10px !important;
  font-size:13px !important;
  background:rgba(255,255,255,.035) !important;
  border:1px solid var(--line) !important;
  color:var(--soft) !important;
}
#book .day:hover{
  background:rgba(212,157,49,.10) !important;
  border-color:var(--gold) !important;
  color:var(--gold2) !important;
}
[data-theme="light"] #book .day{
  background:rgba(20,16,8,.04) !important;
  border-color:rgba(0,0,0,.10) !important;
  color:#3a3326 !important;
}
[data-theme="light"] #book .day:hover{
  background:rgba(154,108,20,.12) !important;
  border-color:rgba(154,108,20,.5) !important;
  color:#7a560f !important;
}
/* clearer, non-inverted selected day */
#book .day.sel{
  border-color:transparent !important;
  color:#120d05 !important;
  background:linear-gradient(135deg,var(--gold2),var(--gold)) !important;
}
#book .cal-hint{
  margin-top:16px !important;
  text-align:center !important;
  color:var(--soft) !important;
  font:600 11.5px/1.4 var(--mono) !important;
  letter-spacing:.04em !important;
}
/* slots collapsed until a day is chosen */
#book .slots{display:none !important;margin-top:16px !important;padding-top:16px !important}
#book .slots.show{display:block !important}
#book .slot-list{gap:8px !important;margin-top:10px !important}
#book .slot{padding:9px !important;border-radius:11px !important;font-size:13px !important}
#book .form{margin-top:14px !important}
@media(max-width:820px){
  #book .book-grid{grid-template-columns:1fr !important}
  #book .calendar{max-width:100% !important;justify-self:stretch !important}
}

/* === TASK 5: HERO BACKGROUND FROM PROCESSED PHOTO, fading into page === */
#home.premium-hero{
  position:relative !important;
  background-image:
    linear-gradient(180deg, rgba(5,5,4,.83) 0%, rgba(5,5,4,.89) 45%, rgba(5,5,4,.95) 88%, var(--bg) 100%),
    radial-gradient(900px 480px at 64% 6%, rgba(212,157,49,.16), transparent 60%),
    url("img/hero.webp") !important;
  background-size:cover, auto, cover !important;
  background-position:center top, center top, center 40% !important;
  background-repeat:no-repeat !important;
  background-attachment:scroll !important;
}
[data-theme="light"] #home.premium-hero{
  background-image:
    linear-gradient(180deg, rgba(246,242,232,.92) 0%, rgba(245,238,223,.96) 52%, var(--bg) 100%),
    url("img/hero.webp") !important;
  background-size:cover, cover !important;
  background-position:center top, center 40% !important;
}
[data-theme="light"] #home .premium-lead{ color:#43392a !important; }
[data-theme="light"] #home .premium-eyebrow{ color:#9a6c1c !important; }

/* === BUILD ALONGSIDE MARQUEE === */
#alongside{padding:16px 0 14px!important;text-align:center}
.alongside-title{font:600 13.5px/1 var(--sans);letter-spacing:.05em;color:var(--text);opacity:.9;margin-bottom:30px}
.marquee{position:relative;overflow:hidden;width:100%;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 11%,#000 89%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 11%,#000 89%,transparent 100%);}
.marquee-track{display:inline-flex;align-items:center;gap:62px;white-space:nowrap;padding-left:62px;
  will-change:transform;animation:marqueeRTL 40s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee-track span{font:600 25px/1 var(--sans);letter-spacing:.005em;color:var(--soft);opacity:.62;
  transition:color .25s,opacity .25s}
.marquee-track span:hover{color:var(--gold2);opacity:1}
@keyframes marqueeRTL{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.marquee-track{animation:none}.marquee{mask-image:none;-webkit-mask-image:none;overflow-x:auto}}
@media(max-width:700px){.marquee-track span{font-size:19px}.marquee-track{gap:42px;padding-left:42px}}

/* === CALENDAR: TODAY HIGHLIGHT (gold ring, distinct from selected) === */
#book .day.today{
  border-color:var(--gold)!important;
  color:var(--gold2)!important;
  box-shadow:inset 0 0 0 1px var(--gold);
  font-weight:700!important;
}
#book .day.today.sel{
  box-shadow:none;
  color:#120d05!important;
}
[data-theme="light"] #book .day.today{color:#8a6010!important}
[data-theme="light"] #book .day.today.sel{color:#120d05!important}

/* === HERO CHIPS: fit Financial Leadership / Treasury Infrastructure / Growth & Governance on one row === */
#home .premium-tags{gap:9px!important;flex-wrap:wrap!important}
#home .premium-tags span{
  height:36px!important;
  padding:0 13px!important;
  font-size:11px!important;
  letter-spacing:.045em!important;
  white-space:nowrap!important;
}
@media(min-width:1181px){
  #home .premium-tags{flex-wrap:nowrap!important}
}

/* === COVERAGE CARD: 4th pillar under the three hero chips — width MATCHES the 3-chip row (.premium-tagwrap = width:max-content), centred line, wraps on mobile === */
#home .premium-tagwrap{display:block;width:fit-content;max-width:100%}
#home .premium-coverage{margin-top:9px;width:100%;box-sizing:border-box;min-height:36px;display:flex;align-items:center;justify-content:center;padding:8px 16px;border-radius:12px;border:1px solid rgba(212,157,49,.28);background:rgba(255,255,255,.018);color:#cfc6b5;font-size:11px;font-weight:700;letter-spacing:.045em;text-transform:uppercase;text-align:center;line-height:1.55}
#home .premium-coverage b{color:#e7c06a;font-weight:700}
[data-theme="light"] #home .premium-coverage{background:rgba(255,255,255,.66);border-color:rgba(169,120,25,.34);color:#5f4f30}
[data-theme="light"] #home .premium-coverage b{color:#8a6010}

/* ===== NAV BAR: equal top/bottom space so pill is vertically centred ===== */
.header{padding-top:14px !important;padding-bottom:14px !important}
@media(max-width:920px){.header{padding-top:8px !important;padding-bottom:8px !important}}

/* ===== HERO KPI STRIP (replaces baked-in numbers; matches Layer row design) ===== */
.hero-kpis{
  display:grid;grid-template-columns:repeat(3,1fr);align-items:stretch;
  margin-top:14px;padding-top:18px;
  border-top:1px solid rgba(212,157,49,.20);
}
.hero-kpis .kpi{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  text-align:center;gap:5px;padding:2px 8px;
  position:relative;
}
.hero-kpis .kpi + .kpi:before{
  content:"";position:absolute;left:0;top:6px;bottom:6px;width:1px;
  background:linear-gradient(180deg,transparent,rgba(212,157,49,.30),transparent);
}
.hero-kpis b{
  font-family:var(--serif);font-weight:600;
  font-size:clamp(22px,2.2vw,29px);line-height:1;letter-spacing:.005em;
  display:flex;align-items:flex-end;justify-content:center;min-height:30px;
  background:var(--hx-gold-grad);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
}
.hero-kpis b.kpi-text{font-size:clamp(17px,1.7vw,21px);white-space:nowrap}
.hero-kpis span{
  font-family:var(--sans);font-size:11px;line-height:1.35;font-weight:500;
  text-transform:none;letter-spacing:.005em;color:#d3bf94;max-width:140px;
}
[data-theme="light"] .hero-kpis span{color:#c0a974}
@media(max-width:560px){.hero-kpis b{font-size:24px;min-height:28px}.hero-kpis b.kpi-text{font-size:18px}.hero-kpis span{font-size:10px}}

/* ===== TRUST-MINI: titles in hero-logo metallic gold + fix light-bg gray artifact ===== */
#home .hero-trust-row b{
  background:var(--hx-gold-grad) !important;
  background-size:100% 1.05em !important;background-repeat:repeat-y !important;
  -webkit-background-clip:text !important;background-clip:text !important;
  -webkit-text-fill-color:transparent !important;color:transparent !important;
  text-shadow:none !important;
}
/* opaque dark panel in light theme stops cream bleed-through (the gray strip artifact) */
[data-theme="light"] #home .hero-trust-row{
  background:linear-gradient(145deg,#17150f,#0d0c09) !important;
  box-shadow:0 14px 40px -42px rgba(94,66,19,.5), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
[data-theme="light"] #home .hero-trust-row article{
  background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.018)) !important;
  border-color:rgba(212,157,49,.16) !important;
}
[data-theme="light"] #home .hero-trust-row span,
[data-theme="light"] #home .hero-trust-row p{color:#a9a08c !important}

/* ===== BUILD ALONGSIDE: title styled like other section labels ===== */
.alongside-title{
  font:700 12.5px/1 var(--sans) !important;
  text-transform:uppercase !important;
  letter-spacing:.16em !important;
  color:var(--gold) !important;
  opacity:1 !important;
  margin-bottom:34px !important;
}
[data-theme="light"] .alongside-title{color:#9a6c14 !important}
/* company names: clean grayscale wordmarks (like reference) */
.marquee-track{gap:74px !important;padding-left:74px !important}
.marquee-track span{
  font:600 30px/1 var(--sans) !important;
  letter-spacing:.012em !important;
  color:#c4c0b6 !important;opacity:.5 !important;
  text-transform:none !important;
  filter:grayscale(1);
  transition:color .28s,opacity .28s !important;
}
.marquee-track span:hover{color:#e7c069 !important;opacity:.95 !important;filter:none}
[data-theme="light"] .marquee-track span{color:#6c6557 !important;opacity:.6 !important}
[data-theme="light"] .marquee-track span:hover{color:#9a6c14 !important;opacity:1 !important}
@media(max-width:700px){.marquee-track span{font-size:21px !important}.marquee-track{gap:46px !important;padding-left:46px !important}}

/* ===== CARD HOVER FILL (resume repositioned as services) ===== */

.card:hover{
  border-color:rgba(212,157,49,.42) !important;
  transform:translateY(-3px);
  box-shadow:0 28px 64px -52px rgba(0,0,0,.92), inset 0 1px 0 rgba(255,255,255,.05) !important;
}
.card .card-fill{
  position:absolute;inset:0;padding:24px;
  display:flex;align-items:center;
  background:linear-gradient(158deg,rgba(28,21,8,1),rgba(11,9,5,1));
  border-radius:inherit;
  opacity:0;transform:translateY(10px);pointer-events:none;
  transition:opacity .32s ease, transform .32s ease;
}
.card:hover .card-fill{opacity:1;transform:none}
.card .card-fill:before{
  content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:3px;
  background:linear-gradient(180deg,#f4ce71,#a9781a);
}
.card-fill p{
  margin:0 !important;padding-left:14px !important;
  color:#ece1c8 !important;font-size:13.5px !important;line-height:1.6 !important;
  font-weight:500 !important;letter-spacing:0 !important;
}
[data-theme="light"] .card .card-fill{background:linear-gradient(158deg,rgba(34,26,11,.985),rgba(18,14,7,.992))}
[data-theme="light"] .card-fill p{color:#f0e7d3 !important}
@media(max-width:700px){.card-fill p{font-size:12.5px !important}}
/* segment-landing card links (#clients): the Crypto and Stablecoin cards link to /for/* — display:contents
   keeps the <article> as the grid item (layout unchanged); .seg-cta is the always-visible gold CTA cue. */
.seg-card-link{display:contents}
.seg-cta{display:block;margin-top:14px;color:var(--gold2);font-weight:700;font-size:13px;letter-spacing:.01em;cursor:pointer}
/* compact link rows: all 6 segment landing pages (#clients) + 3 service pages (#services) */
.seg-row{margin:20px 0 0;font-size:14px;line-height:1.7;color:var(--muted)}
.seg-row a{color:var(--gold2);font-weight:600;text-decoration:none}
.seg-row a:hover{text-decoration:underline}

/* ===== SECTION-HEAD: description below heading, full width ===== */
.section-head{display:block !important}
.section-head > div{margin:0 !important}
.section-head > p{margin:14px 0 0 !important;max-width:none !important}

/* ===== NAV: remove gray-white top inset outline; keep soft drop shadow ===== */
.nav{box-shadow:0 22px 56px -50px rgba(0,0,0,.8) !important}

/* ===== NAV LINKS: warmer off-white so they read clearly, not gold-on-gold ===== */
.menu a{color:var(--hx-nav-text) !important;font-weight:600 !important;letter-spacing:.012em !important}
.menu a:hover{color:#f6d27a !important}
[data-theme="light"] .menu a{color:#9a6c14 !important}
[data-theme="light"] .menu a:hover{color:#7a560f !important}

/* ===== THEME TOGGLE: centre the sun glyph inside the knob (light position) ===== */
.theme-toggle span{
  position:absolute !important;top:3px !important;right:2px !important;left:auto !important;bottom:auto !important;
  width:24px !important;height:24px !important;
  display:flex !important;align-items:center !important;justify-content:center !important;
  font-size:13px !important;line-height:1 !important;
}

/* ===== MAIN SLOGAN: compact for the longer wording ===== */
#home .hero-reference-title{
  font-size:clamp(38px,3.95vw,58px) !important;
  line-height:1.02 !important;
  letter-spacing:-.03em !important;
  max-width:680px !important;
  margin:13px 0 0 !important;   /* PHASE 3 hero spacing: eyebrow->H1 gap == kicker->pills gap (was 22 -> now 13) */
  text-wrap:balance !important;   /* PHASE 2a: clean line balancing */
}
/* 2b: h1 is one uniform serif/cream (the <em> gold-italic is dropped); "Regulatory Infrastructure" kept as a non-break unit via &nbsp; + text-wrap:balance above — no <em>, no line-split */
@media(max-width:920px){#home .hero-reference-title{font-size:clamp(34px,7vw,52px) !important}}
@media(max-width:560px){#home .hero-reference-title{font-size:34px !important;line-height:1.04 !important}}

/* ===== TRUST BLOCK: single bordered box with internal gold dividers, aligned to KPI columns ===== */
.hero-trust-row{
  width:100% !important;
  margin:0 !important;
  padding:14px 16px !important;          /* horizontal 16px == premium-visual padding -> columns align with KPI */
  border-radius:18px !important;
  display:grid !important;
  grid-template-columns:repeat(3,1fr) !important;
  gap:0 !important;
  background:linear-gradient(145deg,#17150f,#0d0c09) !important;
  border:1px solid rgba(212,157,49,.22) !important;
  box-shadow:0 16px 44px -44px rgba(94,66,19,.55) !important;
}
.hero-trust-row article{
  position:relative !important;
  min-height:0 !important;
  margin:0 !important;
  padding:4px 8px !important;
  border:0 !important;
  background:none !important;
  border-radius:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  text-align:center !important;
  gap:6px !important;
}
.hero-trust-row article + article:before{
  display:none !important;
}
.hero-trust-row span{
  font-family:var(--sans) !important;
  font-size:11.5px !important; line-height:1.32 !important; font-weight:500 !important;
  letter-spacing:.005em !important; color:#cdb98c !important;
  max-width:160px !important; display:block !important; margin:0 auto !important;
}
[data-theme="light"] .hero-trust-row span{color:#cdb98c !important}
@media(max-width:920px){
  .hero-trust-row{grid-template-columns:1fr !important;gap:6px !important}
  .hero-trust-row article{padding:8px !important}
  .hero-trust-row article + article:before{display:none !important}
}

/* ===== BOOK: calendar block matches Book block in size/height ===== */
#book .book-grid{align-items:stretch !important}
#book .book-info, #book .calendar{height:100% !important}

/* ===== MAIN SLOGAN: keep "Finance, Treasury & Legal" on one line (desktop) ===== */
@media(min-width:921px){
  #home .hero-reference-title{
    font-size:clamp(31px,2.85vw,42px) !important;   /* PHASE 2a: one step down (was ...,48px) */
    line-height:1.08 !important;
    letter-spacing:-.022em !important;
    max-width:760px !important;
  }
}
@media(min-width:1100px){
  #home .hero-reference-title{white-space:normal !important}   /* PHASE 2a: was nowrap -> allow clean balanced wrap (em stays intact via its own nowrap) */
}

/* ===== TYPE SYSTEM UNIFICATION: all display headings use the serif (matches hero, KPI, trust) ===== */
.section-head h2,
.about-card h2,
.book-info h2{
  font-family:var(--serif) !important;
  font-weight:500 !important;
  letter-spacing:-.012em !important;
}

/* ===== SELECTED EXPERIENCE subtitle: muted, understated, centred ===== */
.alongside-sub{
  margin:22px auto 0 !important;
  max-width:none !important;
  white-space:nowrap !important;
  text-align:center !important;
  font-family:var(--sans) !important;
  font-size:13.5px !important;
  line-height:1.65 !important;
  font-weight:400 !important;
  letter-spacing:.03em !important;
  color:var(--soft) !important;
}
[data-theme="light"] .alongside-sub{color:#837a68 !important}
@media(max-width:880px){.alongside-sub{white-space:normal !important;max-width:600px !important}}
@media(max-width:700px){.alongside-sub{font-size:12px !important;max-width:90% !important}}
#home .hero-side-column .hero-trust-row{padding-left:16px !important;padding-right:16px !important;gap:12px !important;column-gap:12px !important}

/* ===== PATCH 2026-06m: non-mirrored base, lighter LIGHT-theme hero for readability ===== */
/* Anchor offset — GEOMETRIC, browser-agnostic. scroll-margin-top / scrollIntoView-honouring it proved
   unreliable in some browsers (section top hid under the sticky header). Instead each anchor section's
   BORDER-BOX top is pulled up 66px (margin-top) and 66px extra TOP PADDING is added — net visual layout is
   unchanged (−66 + 66), but the element's box top now sits 66px above the eyebrow. el.scrollIntoView() (and
   native #hash) ALWAYS align the border-box top to the viewport top, so the eyebrow now lands ~40px below the
   ~74px sticky header (consistent on desktop AND mobile; header ≈74-76px both). pointer-events:none on the
   section lets the 66px transparent overlap pass clicks through to the previous section's bottom links; its
   children re-enable pointer events. Defined LAST (id-specificity + late source) so it wins the section padding. */
/* FIX 2026-07-01 (mobile+desktop anchor offset): the comment ABOVE is out of date — html sets scroll-padding-top:84px,
   so scrollIntoView()/native #hash land the section BORDER-BOX top at y=84 (NOT the viewport top y=0 it assumes). With
   the +66px padding the eyebrow (kicker) therefore sat at 84 + (--sec-pad 48 + 66) = 198px, ~122px (~3cm) below the
   ~74-76px sticky header. scroll-margin-top was 0; now -110px pulls the border-box top to y=-26 so the eyebrow lands at
   ~88px = ~12-14px below the header, identical on mobile(390) AND desktop(1280) (measured live, headless). scroll-margin-top
   changes ONLY the anchor landing (no layout / pointer-events change); if ever unsupported it falls back to 198px (still
   visible, never hidden under the header). */
#services,#clients,#work,#process{scroll-margin-top:-110px!important;padding-top:calc(var(--sec-pad) + 66px)!important;margin-top:-66px!important;pointer-events:none}
#services>*,#clients>*,#work>*,#process>*{pointer-events:auto}
#home .hero-side-column{transform:none !important}
[data-theme="light"] #home .hero-reference-title{color:#1c160c !important;text-shadow:none !important}
[data-theme="light"] #home .premium-lead{color:#3f3525 !important}
[data-theme="light"] #home .premium-bridge{color:#8a6210 !important}
[data-theme="light"] #home .premium-eyebrow{color:#8a6210 !important}
[data-theme="light"] #home .premium-note{color:#6f644f !important}
[data-theme="light"] #home .premium-tags span{background:rgba(255,255,255,.66) !important;border-color:rgba(169,120,25,.34) !important;color:#5f4f30 !important}
[data-theme="light"] #home .premium-secondary{background:rgba(255,255,255,.68) !important;border-color:rgba(169,120,25,.36) !important;color:#5f4f30 !important}
[data-theme="light"] #home .hero-side-column > .premium-visual{background:radial-gradient(560px 240px at 50% 0%,rgba(212,157,49,.18),transparent 66%),linear-gradient(150deg,#211b11,#15110a) !important;border:1px solid rgba(212,157,49,.40) !important;box-shadow:0 26px 64px -42px rgba(94,66,19,.55), inset 0 1px 0 rgba(255,255,255,.06) !important}
[data-theme="light"] #home .hero-trust-row{background:radial-gradient(420px 140px at 50% 0%,rgba(212,157,49,.13),transparent 72%),linear-gradient(150deg,#211b11,#15110a) !important;border:1px solid rgba(212,157,49,.40) !important;box-shadow:0 22px 58px -44px rgba(94,66,19,.5), inset 0 1px 0 rgba(255,255,255,.05) !important}
[data-theme="light"] #home .hero-trust-row article{background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.02)) !important;border-color:rgba(212,157,49,.20) !important}
[data-theme="light"] #home .hero-trust-row span,[data-theme="light"] #home .hero-trust-row p{color:#c9bda1 !important}

/* ===== THEME TOGGLE FIX: sun glyph rides the knob, perfectly centred ===== */
.theme-toggle span{
  left:4px !important; right:auto !important; top:3px !important;
  width:24px !important; height:24px !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  font-size:13px !important; line-height:1 !important;
  transition:transform .25s ease !important;
}
[data-theme="light"] .theme-toggle span{ transform:translateX(34px) !important; }

/* ===== BOOK BLOCKS: opaque fill so colour stays constant on open/resize ===== */
#book .book-info, #book .calendar{
  background:linear-gradient(150deg,#17150f,#100e09) !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
}
[data-theme="light"] #book .book-info, [data-theme="light"] #book .calendar{
  background:linear-gradient(150deg,#fffaf0,#f3ead6) !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
}
/* ===== THEME TOGGLE: dark sun so it reads on the gold knob (both themes) ===== */
.theme-toggle span{ color:#171206 !important; }

/* ===== MULTI-PAGE ROUTER + NEW PAGES ===== */
[data-view]{display:none}
[data-view].active{display:block}
.page-wrap{padding:46px 0 30px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.insight{display:flex;flex-direction:column;gap:9px}
.insight .meta{font:600 11px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.insight h3{font-family:var(--serif);font-size:23px;font-weight:500;color:var(--text);line-height:1.12}
.insight p{color:var(--muted);font-size:14.5px;line-height:1.62}
.leadmag{margin-top:0}
.leadmag form{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.leadmag input{flex:1;min-width:240px;padding:13px 15px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--text)}
[data-theme="light"] .leadmag input{background:rgba(0,0,0,.035)}
.leadmag input:focus{outline:none;border-color:var(--gold2)}
.faq details{border-bottom:1px solid var(--line2);padding:16px 2px}
.faq summary{cursor:pointer;list-style:none;font-weight:600;color:var(--text);font-size:16.5px;display:flex;justify-content:space-between;gap:16px;align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--gold2);font-size:20px;line-height:1}
.faq details[open] summary::after{content:"\2013"}
.faq details p{color:var(--muted);margin-top:10px;font-size:14.5px;line-height:1.62}
.compare{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.compare .card.hl{border-color:var(--gold)}
.compare h3{font-family:var(--serif);font-weight:500;font-size:22px;color:var(--text)}
.compare ul{list-style:none;margin-top:12px;display:grid;gap:8px}
.compare li{color:var(--muted);font-size:14px;line-height:1.5;padding-left:18px;position:relative}
.compare li:before{content:"\203A";position:absolute;left:0;color:var(--gold2)}
.legal h3{font-family:var(--serif);font-weight:500;color:var(--text);margin:24px 0 8px;font-size:21px}
.legal p,.legal li{color:var(--muted);font-size:14.5px;line-height:1.7}
.legal ul{margin:8px 0 8px 20px}
.note-band{border:1px dashed var(--line);border-radius:14px;padding:13px 16px;color:var(--soft);font-size:13px;margin-bottom:22px}
.cookie{position:fixed;left:18px;right:18px;bottom:18px;z-index:200;max-width:700px;margin:auto;display:none;gap:14px;align-items:center;justify-content:space-between;padding:14px 18px;border-radius:var(--r-lg);flex-wrap:wrap}
.cookie.show{display:flex}
.cookie p{color:var(--muted);font-size:13px;margin:0;flex:1;min-width:240px}
.cookie .btn{height:40px !important;min-width:auto !important;padding:0 18px !important}
/* .foot-links/.foot-social -> chrome.css v34 */
.trust-line{color:var(--muted);font-size:13px;letter-spacing:.02em;margin:14px 0 2px;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.trust-line b{color:var(--gold2);font-weight:600}
/* .deadline-banner styles moved to chrome.css (shared across all pages; text centred under the nav-group). */
/* .foot-links a -> chrome.css v34 */
.page-lead{color:var(--muted);max-width:640px;font-size:16px;margin-top:8px}
@media(max-width:820px){.compare{grid-template-columns:1fr}.grid-2{grid-template-columns:1fr}}

/* ===== footer recompose -> MOVED to chrome.css v34 (reskinned; markup verbatim; disclaimer now 12.5px = VISIBLE, not fine print) ===== */
.foot-disc{color:var(--soft);font-size:11px;line-height:1.4;margin-top:8px}
/* footer .foot-sub mobile -> chrome.css v34 media */
/* gold (logo) text */
.goldtext{background:var(--hx-gold-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
/* marquee never pauses */
.marquee:hover .marquee-track{animation-play-state:running !important}

/* ===== LIVE DESK STATUS (green 11:00-17:00 CET, red otherwise; always pulsing) ===== */
@keyframes deskpulse{0%,100%{opacity:1}50%{opacity:.4}}
@keyframes deskring{0%{box-shadow:0 0 0 0 rgba(55,196,110,.5)}70%{box-shadow:0 0 0 10px rgba(55,196,110,0)}100%{box-shadow:0 0 0 0 rgba(55,196,110,0)}}
@keyframes deskringred{0%{box-shadow:0 0 0 0 rgba(229,72,77,.55)}70%{box-shadow:0 0 0 10px rgba(229,72,77,0)}100%{box-shadow:0 0 0 0 rgba(229,72,77,0)}}
/* PHASE 2a: hero desk-status green/red pulse REMOVED — the hero Live-chat is now the gold PRIMARY button and the ghost is "Registry Portal"; the live-desk indicator remains in the header .hx-livechat .hx-dot (chrome.css). */

.work-list{margin-top:6px;border-top:1px solid var(--line2)}
.work-item{padding:22px 2px;border-bottom:1px solid var(--line2)}
.work-item h3{font-family:var(--serif);font-weight:500;font-size:clamp(20px,2vw,24px);letter-spacing:-.012em;color:var(--text);line-height:1.18;margin-bottom:7px}
.work-item p{color:var(--muted);font-size:15.5px;line-height:1.56;max-width:780px}
.work-cta{margin-top:30px;font-size:15.5px}
.work-cta a{color:var(--gold2);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:2px}

@media(max-width:920px){.about-logo{justify-self:center}}

/* ===== THEME TOGGLE: symmetric light-knob position (mirror of dark left-inset) =====
   pad-box 62px (64 - 2*1px border), knob 24px @ left4 -> translateX = 62 - 2*4 - 24 = 30px */
[data-theme="light"] .theme-toggle:before,
[data-theme="light"] .theme-toggle span{transform:translateX(30px) !important}

/* FIX: status dot must stay a fixed round dot (was shrinking to a tall oval inside flex when the note wraps) */
#home .premium-note{align-items:center !important}
#home .premium-note i{flex:0 0 9px !important;width:9px !important;height:9px !important;min-width:9px !important;border-radius:50% !important;align-self:center !important}
/* chat close button: keep fixed size, never stretch */
.chat-head{align-items:flex-start !important}
.chat-close{flex:0 0 34px !important;width:34px !important;height:34px !important;align-self:flex-start !important}

/* ===== MOBILE: brand grows to absorb slack -> burger+toggle flush RIGHT; one row, original bar height ===== */
@media(max-width:640px){
  .nav{column-gap:12px !important;}                         /* tighter horizontal gap; row-gap kept for the dropdown */
  .brand{min-width:0 !important; flex:1 1 0% !important;}   /* grow -> pushes burger+toggle to the right edge; logo stays flush-left */
  .burger{order:1; flex:0 0 auto;}                          /* immediately left of the toggle */
  .theme-toggle{display:inline-block !important; align-self:center; order:2; flex:0 0 auto; margin:0;}  /* rightmost; only nav right-padding after it */
}

/* ===== CHAT BOX: taller panel; log always ~3cm and grows; short fixed textarea so it does not eat the panel ===== */
.chat-box{max-height:min(700px,85vh) !important;display:flex !important;flex-direction:column !important;overflow:hidden !important}
.chat-head,.chat-form{flex:0 0 auto !important}
.chat-log{flex:1 1 auto !important;min-height:160px !important;overflow-y:auto !important}
.chat-form textarea{height:54px !important;min-height:54px !important;max-height:84px !important}

/* lazy Cal.com: collapse the empty booking container until the calendar is injected */
#my-cal-inline-30min:empty{min-height:0 !important}

/* ===== POLISH 2026-06-10: unified vertical rhythm + components ===== */
:root{--sec-pad:48px;--head-gap:20px;--grid-gap:16px;--sub-gap:96px}
section.block{padding:var(--sec-pad) 0 !important}
.hero{padding:44px 0 var(--sec-pad) !important}
.page-wrap{padding:var(--sec-pad) 0 !important}
.section-head{margin-bottom:var(--head-gap) !important}
.section-head > p{margin:12px 0 0 !important;max-width:none !important}
.grid-2,.grid-3,.grid-4,.compare{gap:var(--grid-gap) !important}
.sub-sep{margin-top:var(--sub-gap) !important}
.sub-head{font-family:var(--serif);font-size:clamp(28px,3vw,40px);font-weight:500;letter-spacing:-.03em;margin:var(--sub-gap) 0 16px}
/* engagements grid (P3) */
.work-grid .card h3{font-family:var(--serif);font-weight:500;font-size:clamp(19px,1.8vw,23px);letter-spacing:-.012em;line-height:1.22;margin-bottom:8px}
.work-grid .card p{color:var(--muted);font-size:14.5px;line-height:1.58}
.work-cta{margin-top:var(--head-gap)}
/* FAQ single-line collapse (P5) */
.faq-wrap{border:1px solid var(--line2);border-radius:var(--r-lg);padding:2px 18px;background:rgba(255,255,255,.02)}
.faq-wrap > summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 2px;font-weight:600;font-size:17px;color:var(--text)}
.faq-wrap > summary::-webkit-details-marker{display:none}
.faq-wrap > summary::after{content:"+";color:var(--gold2);font-size:22px;line-height:1;flex:0 0 auto}
.faq-wrap[open] > summary::after{content:"\2013"}
.faq-wrap[open] > summary{border-bottom:1px solid var(--line2)}
.faq-wrap .faq details:last-child{border-bottom:0}
/* about chapter breathing (P6) */
#about .about-card{margin-bottom:0}
/* (was: #about #book{display:block;margin-top:30px} — obsolete old stacked layout; #book is now a grid card) */
/* theme toggle: kill native blue tap/focus artifact (P7) */
.theme-toggle{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;outline:none;background-clip:padding-box}
.theme-toggle:focus,.theme-toggle:active{outline:none}
.theme-toggle:focus-visible{outline:2px solid var(--gold2);outline-offset:2px}
.theme-toggle::-moz-focus-inner{border:0}
.burger,.menu a{-webkit-tap-highlight-color:transparent}
#alongside{padding:var(--sec-pad) 0 !important}
/* P4: calendar lives inside the Book card; wide month_view */
#book .book-grid{grid-template-columns:1fr !important;max-width:980px !important}
.cal-embed{width:100%;min-height:520px;overflow:auto;border-radius:18px;margin-top:18px}
@media(max-width:640px){.cal-embed{min-height:460px}}
/* flip cards: hover reveals (desktop), click toggles .flip-open everywhere (P1) */
.card.flip-open .card-fill{opacity:1 !important;transform:none !important;pointer-events:auto}
.card.flip-suppress:hover .card-fill{opacity:0;transform:translateY(10px)}

/* ===== ROUND6 ===== */
/* P2: Book = text left, calendar right, top-aligned, calendar no taller than text */
#book .book-grid{grid-template-columns:.66fr 1.66fr !important;max-width:none !important;gap:20px !important;align-items:start !important}
.cal-embed{margin-top:0;min-height:0;max-height:584px;overflow:auto;border-radius:18px}
@media(max-width:880px){#book .book-grid{grid-template-columns:1fr !important}.cal-embed{max-height:560px;margin-top:4px}}
/* P3: collapsed FAQ sits in normal rhythm, not floating in space */
details.faq-wrap{margin-top:26px !important}
.faq-wrap > summary{padding:13px 2px}
/* P4: every card heading uses the engagement-model ("Project") heading style */
.card h3,.card h4{font-family:var(--serif) !important;font-weight:500 !important;color:var(--text) !important;font-size:21px !important;letter-spacing:-.012em !important;line-height:1.16 !important}
.insight h3{font-size:23px !important}
[data-theme="light"] .card h3,[data-theme="light"] .card h4{color:#1d160b !important}
/* P5: engagement cards get a premium hover lift */
.work-grid .card{transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.work-grid .card:hover{transform:translateY(-3px);border-color:var(--gold)}
.work-grid .card .meta{margin-bottom:10px}
.work-grid .card p{margin-top:6px}
/* P6: hero hands off to the logo strip with the same visual gap as other chapters */
.hero{padding-bottom:64px !important}

/* ===== ROUND7 2026-06-11 ===== */
/* P1 (rev. ROUND8): Book text + Cal.com embed share ONE gold-framed glass card;
   the calendar shows FULL height (no cap, no inner scroll) and drives the card height, text top-aligned */
.book-card{display:grid;grid-template-columns:.8fr 1.2fr;gap:28px;align-items:start;border-radius:var(--r-lg);padding:30px}
.book-card .book-info{padding:0;border-radius:0}
.book-card #my-cal-inline-30min{height:auto;min-height:0;max-height:none;margin-top:0;overflow:visible;border-radius:14px}
.book-card #my-cal-inline-30min iframe{max-height:none}
@media(max-width:880px){
  .book-card{grid-template-columns:1fr;gap:20px;padding:24px}
  .book-card #my-cal-inline-30min{height:auto;min-height:0;max-height:none}
}
/* P2: collapsed FAQ docks to the comparison grid above and hands off to About without the dead zone */
details.faq-wrap{margin-top:var(--grid-gap) !important}
#process{padding-bottom:48px !important}
#about{padding-top:48px !important}
/* P3: one measured spacing scale page-wide — chapters 96 (48+48), sub-blocks 46, card grids 16 */
.hero{padding-bottom:var(--sec-pad) !important}
#about #book{margin-top:0 !important}   /* was var(--sub-gap): #book is now the right column of the About|Book grid, not a stacked block */
/* footer margin-top -> chrome.css v34 (footer{margin-top:40px}) */

/* ===== ROUND8 2026-06-11 ===== */
/* P2: seamless marquee — two identical sets, each set carries its trailing gap,
   so translateX(-50%) lands exactly on the second set (no jump) */
.marquee-track{gap:0 !important;padding-left:0 !important}
.marquee-set{display:inline-flex;align-items:center;gap:74px;padding-right:74px}
@media(max-width:700px){.marquee-set{gap:46px;padding-right:46px}}
/* PHASE 2a: removed the light-theme desk-status green/red tint on #home .premium-secondary — the hero secondary is now the ghost "Registry Portal" link (kept .premium-secondary light-theme readability rule above). */

/* ===== ROUND9 2026-06-11 ===== */
/* P1: the LEFT text column sets the Book card height; the calendar fits that height.
   The calendar column stays >=800px wide so the Cal.com iframe renders its side-by-side
   month view (~538px natural, dates visible immediately — below 768px iframe width Cal
   stacks its meta panel above the grid and grows to ~1000px). overflow:auto gives a small
   inner scroll when slots expand the content. */
.book-card{grid-template-columns:minmax(0,1fr) minmax(0,800px);align-items:start}
.book-card #my-cal-inline-30min{height:540px;max-height:540px;min-height:0;overflow:auto;overscroll-behavior:contain}
.book-card #my-cal-inline-30min:empty{height:0}
/* P2: equal, tighter vertical padding top/bottom; both columns top-aligned;
   the embed container hugs the iframe height (no phantom 540-vs-538 bottom gap) */
.book-card{padding:24px 30px;align-items:start}
.book-card #my-cal-inline-30min{height:auto}
@media(max-width:880px){.book-card{padding:24px}}
@media(max-width:1240px){
  .book-card{grid-template-columns:1fr}
  .book-card #my-cal-inline-30min{height:auto;max-height:540px}
}
@media(max-width:900px){
  .book-card #my-cal-inline-30min{height:auto;max-height:520px}
}

/* ===== ROUND10 2026-06-11 ===== */
/* P1: Briefings is a separate news page (view), not a scroll section - mark it gold in the top bar */
.menu a.nav-briefings{background:var(--hx-gold-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent !important;font-weight:700 !important}
.menu a.nav-briefings:hover{filter:brightness(1.2)}
/* P2: hero status-note fits ONE line on desktop (wraps on mobile as before) */
@media(min-width:1100px){
  #home .premium-note{white-space:nowrap !important;font-size:10px !important;letter-spacing:0 !important;max-width:none !important}
}
/* hero Registry Portal search lives in the RIGHT column under the HELMS card (.hero-side-column flex-column,
   gap:14), centred to the card width. Columns stay vertically centred (original); a small top margin on the
   Live-chat row nudges it onto the same horizontal baseline as the search field on the right. Desktop only. */
@media(min-width:1181px){
  #home .premium-copy .premium-actions{margin-top:9px}   /* F: gap coverage->Live chat now 9 = gap tags->coverage (was 6, Live chat too close) */
}
/* P3: Book card - equal, tighter top/bottom padding; both columns top-aligned */
.book-card{padding:18px 30px !important;align-items:start !important}
@media(max-width:880px){.book-card{padding:18px 24px !important}}
/* ===== ROUND11 2026-06-12: expandable Briefings cards (SCOPED to the Briefings section only -
   the .insight class is shared by Example Engagements / Engagement models in other sections) ===== */
#insights .insight .ins-head{cursor:pointer;display:block;position:relative;padding-right:30px;outline:none}
#insights .insight .ins-head:focus-visible{box-shadow:0 0 0 2px var(--gold2);border-radius:8px}
#insights .insight .ins-head h3{margin:0 0 6px}
#insights .insight .ins-sum{margin:0}
#insights .insight .ins-chev{position:absolute;top:2px;right:2px;color:var(--gold2);font-size:20px;line-height:1;transition:transform .3s ease;pointer-events:none}
#insights .insight.open .ins-chev{transform:rotate(180deg)}
#insights .insight .ins-body{max-height:0;overflow:hidden;opacity:0;transition:max-height .38s ease,opacity .28s ease,margin-top .38s ease;margin-top:0}
#insights .insight.open .ins-body{max-height:1200px;opacity:1;margin-top:12px}
#insights .insight .ins-body p{margin:0 0 10px}
#insights .insight .ins-src{color:var(--gold2);font-size:13px;display:inline-block;margin-top:2px}
/* ===== ROUND12 2026-06-12: desktop paired-row expansion (pairing logic in feed.js v9) ===== */
@media(min-width:821px){
  /* both cards in a row open together, so give the body room for the taller of the pair */
  #insights .insight.open .ins-body{max-height:1600px}
}
/* ===== ROUND13 2026-06-13: "Tools" dropdown in the top nav (CSS-only <details>; FdLP inline script untouched) ===== */
.menu .nav-tools{position:relative;display:inline-flex;align-items:center}
.menu .nav-tools>summary{list-style:none;cursor:pointer;font-size:13.5px;color:var(--muted);font-weight:500;transition:.2s}
.menu .nav-tools>summary::-webkit-details-marker{display:none}
.menu .nav-tools>summary::after{content:"▾";font-size:.85em;margin-left:4px;opacity:.85}
.menu .nav-tools>summary:hover,.menu .nav-tools[open]>summary{color:var(--gold2)}
.menu .nav-tools-menu{position:absolute;left:0;top:calc(100% + 10px);min-width:248px;background:var(--card,#161410);border:1px solid var(--line,#3a3322);border-radius:12px;padding:8px;box-shadow:0 14px 34px rgba(0,0,0,.5);z-index:80}
.menu .nav-tools-menu a{display:block;padding:9px 12px;border-radius:8px;font-size:13.5px;color:var(--muted) !important;white-space:nowrap}
.menu .nav-tools-menu a:hover{background:rgba(211,157,49,.10);color:var(--gold2) !important}
@media(max-width:920px){
  .menu .nav-tools{display:block;width:100%}
  .menu .nav-tools-menu{position:static;box-shadow:none;border:0;padding:4px 0 4px 14px;min-width:0;background:transparent}
}
/* ===== ROUND14 2026-06-13: Briefings card title-link + contextual tool CTA (site, feed.js v11) ===== */
#insights .insight .ins-head h3 .ins-titlelink{color:inherit;text-decoration:none}
#insights .insight .ins-head h3 .ins-titlelink:hover{color:var(--gold2)}
#insights .insight .toolcta{border:1px solid var(--gold,#d39d31);border-radius:14px;padding:18px 20px;margin-top:14px;background:rgba(211,157,49,.06)}
#insights .insight .toolcta-h{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold,#d39d31);margin:0 0 10px}
#insights .insight .toolcta-row{display:flex;flex-wrap:wrap;gap:10px}
#insights .insight .toolcta-btn{display:inline-block;border:1px solid var(--gold,#d39d31);border-radius:10px;padding:10px 16px;font-size:14px;font-weight:600;color:var(--gold2)}
#insights .insight .toolcta-btn:hover{background:var(--gold,#d39d31);color:#1a1505;text-decoration:none}
/* ===== ROUND15 2026-06-13: ONE tool CTA per open row (full-width block, feed.js v12) + checklist download button ===== */
#insights .toolcta-rowblock{grid-column:1/-1;margin:2px 0 6px}
#insights .toolcta-rowblock .toolcta{border:1px solid var(--gold,#d39d31);border-radius:14px;padding:18px 20px;background:rgba(211,157,49,.06)}
#insights .toolcta-rowblock .toolcta-h{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold,#d39d31);margin:0 0 10px}
#insights .toolcta-rowblock .toolcta-row{display:flex;flex-wrap:wrap;gap:12px}
#insights .toolcta-rowblock .toolcta-btn{display:inline-block;border:1px solid var(--gold,#d39d31);border-radius:10px;padding:10px 16px;font-size:14px;font-weight:600;color:var(--gold2)}
#insights .toolcta-rowblock .toolcta-btn:hover{background:var(--gold,#d39d31);color:#1a1505;text-decoration:none}
a.lead-dl{display:inline-block;margin-top:12px;background:var(--gold);color:#1a1505;border-radius:10px;padding:11px 20px;font-size:14px;font-weight:700;text-decoration:none}
a.lead-dl:hover{background:var(--gold2)}
/* ===== ROUND16 2026-06-13: Tools nav -> gold gradient (like Briefings); mobile burger Tools centered + aligned (CSS only; FdLP untouched) ===== */
.menu .nav-tools>summary{background:var(--hx-gold-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;font-weight:700;letter-spacing:.012em}
.menu .nav-tools>summary::after{-webkit-text-fill-color:#d39d31;color:#d39d31}
.menu .nav-tools>summary:hover,.menu .nav-tools[open]>summary{filter:brightness(1.15)}
@media(max-width:920px){
  .menu .nav-tools{display:flex;flex-direction:column;align-items:center;width:100%}
  .menu .nav-tools>summary{font-size:13.5px;text-align:center;justify-content:center}
  .menu .nav-tools-menu{position:static;box-shadow:none;border:0;padding:8px 0 0;min-width:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:10px}
  .menu .nav-tools-menu a{padding:0;text-align:center;font-size:13.5px}
}
/* ===== ROUND17 2026-06-15: CTA de-clustering — Cal.com popup (no inline embed), one booking action,
   presence dot on the floating chat widget, lighter mobile bottom. CSS only; the FdLP/PELMhj inline
   script is untouched, _headers CSP unchanged. ===== */
/* Book section: the inline calendar is gone -> single, centred card with one dominant booking button */
#book .book-card{grid-template-columns:1fr !important}   /* was max-width:780px + margin:auto (single centred block) — now a full-width grid column */
.book-cta-btn{margin-top:24px}
.book-contact{margin-top:20px}
@media(max-width:600px){.book-cta-btn{width:100%}}
/* Presence indicator MOVED onto the floating chat widget so the one chat entity carries presence — same
   green/red live-desk language as the hero note, driven by body.desk-closed (set by the inline desk script). */
.chat-float{overflow:visible}
.chat-float .chat-dot{position:absolute;top:7px;right:7px;width:13px;height:13px;border-radius:50%;background:#37c46e;border:2px solid #15110a;box-shadow:0 0 0 0 rgba(55,196,110,.5);animation:deskring 2.2s ease-out infinite;pointer-events:none}
body.desk-closed .chat-float .chat-dot{background:#e5484d;animation:deskringred 2.2s ease-out infinite}
@media(prefers-reduced-motion:reduce){.chat-float .chat-dot{animation:none}}
/* Mobile: never pile the sticky booking button + chat widget + cookie banner at the bottom at once.
   While the one-time cookie banner is up, drop the two floats so only the banner shows; the dominant
   booking button + unobtrusive chat return the instant consent is given. :has() degrades to today's
   behaviour where unsupported. */
@media(max-width:860px){
  body:has(#cookieBar.show) .sticky-book,
  body:has(#cookieBar.show) .chat-float{display:none !important}
}
/* ===== ROUND18 2026-06-17: hero visual fix. ROOT CAUSE: hero-{dark,light}.webp have a TRANSPARENT
   canvas — the gold rounded card is drawn on alpha=0 outside. The container .premium-visual painted its
   own rounded-rect (bg gradient + border-radius:22px clip + a box-shadow ring) which showed in that
   transparent margin at a DIFFERENT radius than the image's baked gold frame → a 1–2px double-edge
   "кайма" around the card (dark halo on dark / cream rim on light), plus a 1px border only in light that
   nudged the box on theme-toggle.
   FIX:
   (1) кайма — container paints NOTHING (no bg, no border, no ring, no radius clip): the transparent
       margin then shows the page straight through, so the ONLY visible edge is the image's own gold
       frame. Single clean rounded edge, both themes.
   (2) no theme shift — border:0 + identical box in both themes → rect(dark)==rect(light), nothing moves.
   (3) light contrast/float — filter:drop-shadow on the IMG (respects the alpha shape) → a soft shadow
       hugging the rounded card so it lifts off the cream page; warm/subtle so it reads as float, not a rim.
   CSS-only inside <style>; inline <script> (FdLP/PELMhj CSP hash) untouched. ===== */
#home .hero-side-column > .premium-visual,
[data-theme="light"] #home .hero-side-column > .premium-visual{
  border:0 !important;
  background:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  overflow:visible !important;
}
#home .hero-side-column > .premium-visual img.hero-pic{
  filter:drop-shadow(0 16px 30px rgba(0,0,0,.45)) !important;
}
[data-theme="light"] #home .hero-side-column > .premium-visual img.hero-pic{
  filter:drop-shadow(0 20px 42px rgba(25,18,6,.42)) !important;
}
/* ===== ROUND20 2026-06-23: HERO v2 (FINAL_HERO2). The card image still carries its old shimmer frame +
   square black corners; CROP just past them (img scale ~2% + container rounded clip) and draw ONE clean,
   even brand-gold border (same token as the site's other cards). CSS-only; inline <script>/CSP hash untouched. */
#home .hero-side-column > .premium-visual.hero-figure,
[data-theme="light"] #home .hero-side-column > .premium-visual.hero-figure{
  overflow:hidden !important;
  border-radius:var(--r-lg) !important;
  border:1.5px solid rgba(212,157,49,.5) !important;
  background:#0c0b08 !important;
  box-shadow:0 18px 44px -26px rgba(0,0,0,.55) !important;
  padding:0 !important;
  box-sizing:border-box !important;
  width:100% !important;            /* FINAL_HERO2 is 1:1 -> keep the box SQUARE so the image fills it with */
  max-width:560px !important;       /* NO pillarbox bands (which would re-expose the old side frame).      */
  height:auto !important;
  max-height:none !important;
  margin-left:auto !important; margin-right:auto !important;
}
#home .hero-side-column > .premium-visual.hero-figure img.hero-pic,
[data-theme="light"] #home .hero-side-column > .premium-visual.hero-figure img.hero-pic{
  width:100% !important;
  height:auto !important;           /* 1:1 image -> height = width -> container is square -> no bands */
  max-height:none !important;
  object-fit:contain !important;
  transform:scale(1.02);            /* crop ~1% past the old flush frame at the now-at-edge image border */
  transform-origin:center;
  border-radius:0 !important;
  filter:none !important;
}
/* ===== ROUND19 2026-06-19: bottom-align the hero card with the coverage bar on desktop.
   The right card (.premium-visual, fixed ~1.2 aspect ≈420px tall) is vertically CENTRED against the
   LEFT column, which extends ~110px below the coverage bar (Live-chat button + note). That centring left
   the card hanging ~32–38px BELOW the coverage bar's bottom edge at common desktop widths. The card can't
   shrink without letterboxing the logo, so we lift the whole right column up to meet the coverage line.
   Scoped to the 2-column desktop layout (≥1181px); on mobile the grid stacks (1 col) → no shift applies.
   Overrides the earlier `#home .hero-side-column{transform:none !important}` (same selector, later in
   source). CSS-only inside <style> — inline <script>/CSP hash (TRDxPq) untouched. ===== */
@media(min-width:1181px){
  #home .hero-side-column{transform:translateY(-34px) !important}
}
/* ===== ROUND23 2026-06-24: HERO v3b — size the card to the user's overlay, MEASURED in the live DOM (not by
   eye). getBoundingClientRect on desktop gives constants: H1 «Finance, Treasury & Legal» top0 = 197, grid-row
   top = 163 (eyebrow), EXPERIENCE-bar bottom0 (varies 607→629), and the EXPERIENCE→row-bottom gap = CONSTANT
   109. So the card spans TOP=top0, BOTTOM=bottom0, WIDTH=right-column width via: align-self:stretch (fill the
   grid row) + margin-top:34px (= top0−163, lands the top on the H1) + margin-bottom:109px (lands the bottom on
   the EXPERIENCE bar) + figure width:100%/height:100% (fill the right column). Pixel-exact top & bottom at all
   widths. The box is ~1.27:1 (near-square) and the asset is 1.41 landscape, so the image uses object-fit:CONTAIN
   (centered, NO crop of content, NO distortion); the asset's black bg blends with the container's black bg so
   the letterbox is seamless. Asset = hero-black-hq.webp (FULL-RES LOSSLESS crop of HEROBLACKFINAL — frame/black
   corners removed; sharp on upscale). ONE even brand-gold border via token var(--gold) kept. Both themes
   identical (unprefixed + [data-theme="light"]). Horizontal unchanged (column position as-is, card fills it).
   Scoped to the REAL 2-column desktop (min-width:1200 and NOT coarse). CSS-only in <style>; inline
   <script>/CSP hash (TRDxPq) untouched. */
@media (min-width:1200px) and (not (pointer:coarse)){
  #home .hero-side-column,
  [data-theme="light"] #home .hero-side-column{
    transform:none !important; align-self:start !important; margin-top:0 !important; margin-bottom:0 !important;   /* 2b-followup: margin-top was 30px (legacy — pushed the OLD emblem card down onto the H1 line); now 0 so the terminal panel's TOP EDGE lines up with the ADVISORY·FINANCE·REGULATORY eyebrow */
  }
  /* ROUND25 2026-06-24: switched the artwork back to FINAL_HERO (richer — baked gradient bg, warm logo
     glow, glossy 3D logo, soft inner card frames; do NOT recreate on the flat HEROBLACKFINAL). Size/position
     UNCHANGED (top0→bottom0 × column width from ROUND23/24). Asset = hero-final.webp (FULL-RES LOSSLESS crop
     of FINAL_HERO; baked frame is a thin 0–3px edge band → cropped 8px, 0 remnant within 4px of edge, content
     untouched). Ratio 1.338 ≈ the box (~1.285), so object-fit:COVER fills the box edge-to-edge (NO letterbox
     bands → no band-seam; only ~10–18px of near-black side margin cropped, no content lost) — the gradient/
     glow/logo stay intact. Contour: ONE even brand-gold border copied 1:1 from .premium-coverage / .premium-tags
     span (1px rgba(201,151,52,.28) + radius 12 dark; light rgba(169,120,25,.34)); container background:#040404
     = measured asset edge colour (fills any sub-pixel corner seam); overflow:hidden+radius clips corners;
     box-shadow:none + filter:none → no halo. Inner 3-card frames are left as in the artwork. Both themes. */
  #home .hero-side-column > .premium-visual.hero-figure,
  [data-theme="light"] #home .hero-side-column > .premium-visual.hero-figure{
    width:100% !important; max-width:none !important; height:100% !important; max-height:none !important; aspect-ratio:auto !important;
    margin:0 !important; padding:0 !important; box-sizing:border-box !important;
    overflow:hidden !important; border-radius:var(--r-md) !important;
    border:1px solid rgba(201,151,52,.28) !important;
    background:#040404 !important;
    box-shadow:none !important;
  }
  [data-theme="light"] #home .hero-side-column > .premium-visual.hero-figure{
    border:1px solid rgba(169,120,25,.34) !important;
  }
  #home .hero-side-column > .premium-visual.hero-figure img.hero-pic,
  [data-theme="light"] #home .hero-side-column > .premium-visual.hero-figure img.hero-pic{
    width:100% !important; height:100% !important; object-fit:cover !important; object-position:center !important;
    transform:none !important; filter:none !important; border-radius:0 !important;
  }
  /* ===== HERO FINAL LAYOUT 2026-06-28 (owner reference): the Registry-Portal search is MOVED OUT of the right
     column into a centered band BELOW the grid (.hero-rp is now a sibling after .premium-hero-grid). Right column
     = HELMS card only. Both columns top-aligned (align-items:start). Tighten the hero top padding (44->30) so the
     block sits just under the deadline bar; eyebrow ~30px below the bar (premium-copy margin-top:0 -> eyebrow at
     grid top); card ~30px below eyebrow (.hero-side-column margin-top:30; no stretch / no bottom margin, so the
     card keeps its 560x419 geometry and just moves up). H1 starts just under the eyebrow (F not above card top).
     Search band centered on the page (max-width 680, margin auto). Scoped to the real 2-col desktop (>=1200,
     non-coarse); <1200 stacks (search sits under the stacked content). Card .premium-visual size/style/border
     NOT touched. CSS-only — inline <script>/CSP hash untouched. */
  #home.premium-hero{padding-top:30px !important}
  #home .premium-hero-grid{align-items:start !important}
  #home .premium-copy{margin-top:0 !important;align-self:stretch !important;display:flex !important;flex-direction:column !important}   /* PHASE 3 hero-align ROBUST 2026-07-06: stretch the hero-LEFT column to the grid-row height (= the taller terminal, grid is align-items:start) and make it a flex COLUMN so margin-top:auto on .premium-whatwedo can bottom-anchor. Default cross-axis stretch keeps every child at its block-flow width (each capped by its own max-width) -> H1/sub/pills wrapping UNCHANGED. */
  #home .premium-whatwedo{margin-top:auto !important}   /* PHASE 3 hero-align REVERT-TO-ROBUST 2026-07-06: margin-top:auto on the WHOLE .premium-whatwedo block -> the flexible slack sits ABOVE "What we do" (the trust->kicker gap), and the whole block (kicker + pills) drops to the BOTTOM of the stretched .premium-copy flex column == .term bottom at every width (bottom lock preserved). The kicker->pills gap = D = eyebrow-goldline->H1-top = 19px, set by the base kicker margin-bottom:13px (line ~1050): goldline sits at the eyebrow flex-row centre (6px above the box bottom) so goldline->pills-top = 6 + 13 = 19 = D (pixel-exact, measured). Reverts the interim "slack BELOW kicker" (pills{margin-top:auto} + whatwedo flex-grow) that floated the "What we do" label from its pills. */
  #home .hero-rp{max-width:680px !important;margin:28px auto 0 !important}
}
/* DESKTOP-SITE on a narrow touch screen (desktop layout >=1200 but coarse/touch pointer = "Request desktop
   site" on a phone): the two-column hero pushes the logo card far right. Stack to a single column, left-
   aligned under the text (matching the responsive layout). Real desktop (pointer:fine) and real mobile
   (<1200) are unaffected. CSS-only inside <style> — inline <script>/CSP hash (TRDxPq) untouched. */
@media (pointer:coarse) and (min-width:1200px){
  #home .premium-hero-grid{grid-template-columns:1fr !important;gap:34px}
  /* .hero-side-column is the grid ITEM; its base rule is justify-self:end (right column) — flip it to start
     so the stacked logo card's left edge lines up with the hero text. */
  #home .hero-side-column{justify-self:start !important;transform:none !important}
}
/* Whole burger range (<=1199, the breakpoint where the nav becomes the burger): keep the hero single-column
   with the logo card left-aligned under the text. Covers desktop-site at ~980px AND the 1181-1199 hybrid
   zone where the 2-col hero otherwise pushed the card far right. Real wide desktop (>=1200) keeps 2 columns. */
@media (max-width:1199px){
  #home .premium-hero-grid{grid-template-columns:1fr !important;gap:34px}
  #home .hero-side-column{justify-self:start !important;transform:none !important}
  /* E (mobile only): centre the Registry search between the hero card bottom and the "Selected Experience" heading.
     margin-top:48 drops it (gap card->search 0->48); margin-bottom:-48 pulls the next section back up so the heading
     stays put (gap search->heading 96->48) => equal 48px gaps. Desktop (>=1200, not coarse) is unchanged. */
  #home .hero-rp{margin:48px auto -48px}
}

/* ===== HERO CHIPS — mobile centring (CSS-only; inline <script>/CSP hash TRDxPq untouched) =====
   On mobile the chips wrap and a lone chip (e.g. "Growth & Governance") sat pinned LEFT with empty space on
   the right. Centre the wrapped pill rows so single/short rows sit in the middle; full rows are unaffected.
   Desktop (>=1181px) is a single nowrap row -> no visual change. */
@media (max-width:1180px){
  #home .premium-tags{justify-content:center}
}

/* ===== REVEAL CARDS — kill the faint text "doubling" (CSS-only; CSP hash untouched) =====
   The hover/flip "card-fill" overlay fades opacity 0->1 over the base h3/p. In light theme its background was
   slightly translucent (.985/.992) so the base text bled through = "doubling". Make it FULLY opaque, and give
   the fill its own compositing layer (will-change:opacity) so the fade composites cleanly during scroll without
   ghost trails. Transform is left to the existing reveal animation; no transform/translateZ on the .glass card
   (that would break its backdrop-filter). */
.card .card-fill{will-change:opacity}
[data-theme="light"] #clients .card .card-fill,[data-theme="light"] .card .card-fill{background:linear-gradient(158deg,rgba(34,26,11,1),rgba(18,14,7,1))}

/* ===== ABOUT | BOOK — merged into TWO equal-height columns (desktop), stacked on mobile. Same .glass card +
   site tokens (gold border via --line, serif headings, sans body, gold .kicker eyebrow). CSS-only; the inline
   <script>/CSP hash (TRDxPq) is untouched. Scoped under #about to win over the older layered .about-card/.book-info rules. */
#about .abk-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:stretch}
#about .abk-grid > .about-card,
#about .abk-grid > .book-card{display:flex;flex-direction:column;align-items:stretch;margin:0 !important;padding:32px !important;border-radius:var(--r-lg);height:auto;width:auto;max-width:none !important;grid-template-columns:none !important}
/* FILL/GLOW: both cards carry the SAME component class as the comparison cards above — `.card.glass` — so the
   background/gradient comes from the identical `.card{background:…!important}` rule (no recreated/weaker copy).
   About and Book are therefore byte-identical to each other and to the «HELMS vs in-house vs Big 4» cards.
   (logo lock-up removed entirely per request — About has no logo) */
#about .about-card h2{font-size:clamp(26px,2.5vw,33px) !important;line-height:1.1 !important;margin:0}
/* Gold subhead: was line-height 1.55 (too loose for the 20px serif) -> 1.3, matching the tight rhythm of the Book text. */
#about .about-card .about-role{margin-top:12px;line-height:1.3 !important}
/* About body == Book body EXACTLY: one shared rule -> identical font-size + line-height (14.5px/22.475px) in both cards. */
#about .about-card p{margin-top:14px;max-width:none}
#about .about-card p,#about .book-card .book-info p{font-size:14.5px !important;line-height:1.55 !important}
/* Book card: content fills the height; pin the footer (button + Prefer-to-write) to the bottom so both cards align. */
#about .book-card .book-info{display:flex;flex-direction:column;height:100%;width:100%;padding:0 !important;border-radius:0}
#about .book-card .book-info h2{font-size:clamp(26px,2.5vw,33px) !important;line-height:1.1 !important}
#about .book-card .abk-foot{margin-top:auto;display:flex;flex-direction:column;gap:14px;padding-top:24px}
#about .book-card .book-cta-btn{align-self:flex-start}
#about .book-card .book-contact{margin:0;font-size:13.5px;line-height:1.55}
/* (1) NO corner glow on these cards — kill the .card:after radial so the fill is flat like the comparison cards. */
#about .about-card:after,#about .book-card:after{content:none !important;display:none !important;background:none !important}
/* (2) Book: drop the extra inner-panel fill (was a different opaque tone) — book-info transparent, so ONLY the
   card background shows (one fill, identical to About + the «HELMS vs in-house vs Big 4» cards). */
#about .book-card .book-info,[data-theme="light"] #about .book-card .book-info{background:none !important;background-color:transparent !important}
/* (3) eyebrow -> heading: identical margin in both cards (Book h2 had margin-top:12, About had 0). */
#about .about-card h2,#about .book-card .book-info h2{margin:14px 0 0 !important}
/* (4) "What HELMS brings" list — same look as the site's card lists (.compare li: gold › bullet, muted body text). */
#about .about-card .about-brings-h{margin:20px 0 0;color:var(--text);font-weight:600;font-size:13.5px;line-height:1.4}
#about .about-card ul.about-brings{list-style:none;margin:11px 0 0;padding:0;display:grid;gap:8px}
#about .about-card ul.about-brings li{color:var(--muted);font-size:14px;line-height:1.5;padding-left:18px;position:relative}
#about .about-card ul.about-brings li:before{content:"\203A";position:absolute;left:0;color:var(--gold2);font-weight:600}
@media(max-width:760px){
  #about .abk-grid{grid-template-columns:1fr;gap:16px}
  #about .abk-grid > .about-card,#about .abk-grid > .book-card{padding:26px}
}

/* ===== PHASE 2b — hero-right REGULATORY TERMINAL (replaces the emblem; live from /snapshot.json via external /terminal.js). Dark instrument panel in BOTH themes; OUR gold; crisp radii (--r-lg panel / --r-sm controls). ===== */
#home .term{display:flex;flex-direction:column;gap:13px;width:100%;padding:8px 18px 10px;border-radius:var(--r-lg);background:linear-gradient(150deg,rgba(26,23,16,.94),rgba(9,9,7,.97));border:1px solid rgba(212,157,49,.30);box-shadow:0 34px 100px -64px rgba(0,0,0,.96),inset 0 1px 0 rgba(255,255,255,.045);color:var(--text)}   /* HERO-FIX Итерация 2 п.2: top 18→8, bottom 16→6 (-10px each, container only, internal flex gap:13px untouched). Итерация 3 п.Б: bottom 6→10 (+4px more) */
[data-theme="light"] #home .term{background:linear-gradient(150deg,#1b160d,#100e09);border-color:rgba(212,157,49,.4);box-shadow:0 26px 64px -42px rgba(94,66,19,.5),inset 0 1px 0 rgba(255,255,255,.05)}
/* Panel is a DARK instrument in BOTH themes → pin its inherited colour tokens to their dark-theme values in light mode, so the stat cells / rows / search input / foot stay light-on-dark (avoids the light-theme dark-on-dark contrast bug on this always-dark panel). Dark theme is unaffected (identical values). */
[data-theme="light"] #home .term{--text:#f7f1e6;--muted:#d2c7ad;--soft:#9c9078;--gold:#d39d31;--gold2:#f4ce71;--gold3:#8b6016;--line:rgba(212,157,49,.34)}
#home .term-head{display:flex;flex-direction:column;align-items:center;padding:4px 0 3px;border-bottom:1px solid rgba(212,157,49,.16)}   /* PHASE 3: CROWN header RAISED (divider up) to reclaim space for the restored search label — logo shrunk + vertically centered (equal space above/below) so terminal TOTAL height stays ≈ unchanged */
#home .term-crown{height:30px;width:auto;display:block}   /* name-only HELMS crown — transparent-keyed webp, seamless on the panel; shrunk 44->30 to free the crown band for the tagline while keeping terminal height */
/* PHASE 3: restored prod hero-search LABEL — one line, terminal mono + muted label colour, sits in the space reclaimed by the raised crown divider, directly above the search input (wrap groups label+form as ONE flex child → no extra .term gap) */
#home .term-searchwrap{display:flex;flex-direction:column;gap:8px}
#home .term-tagline{margin:0;font:600 10.25px/1.3 var(--mono);letter-spacing:.015em;color:var(--text)}   /* PHASE 3 label COLOUR+SIZE 2026-07-06 (owner): WHITE/cream (var(--text)=#f7f1e6, re-declared on [data-theme=light] .term so it stays cream on the always-dark terminal in BOTH themes) + weight 600 (bold like prod). Итерация 6 (owner): +1px (9.75→10.75) was requested but this monospace font has a glyph-advance rounding CLIFF between 10.45px and 10.5px (natural string width jumps 406.31→472.42px, a ~66px step — measured via binary scan) — 10.75 would need letter-spacing ≈ -0.85px to claw back to the original 405.67px boundary, well past readable (worse than the -0.6px "already unreadable" threshold from Итерация 2). Owner-approved fallback: +0.5px (10.25px) instead — natural width at 10.25 is 406.17px, only +0.5px over the 405.67px baseline with the SAME em-relative letter-spacing (no explicit compression needed, imperceptible/sub-pixel), so the existing left/right text boundaries are preserved for all practical purposes. Mobile pinned back to 9.75px in the ≤520px media query (see below) — at this size the string already has ~97px deficit before ANY size increase (Итерация 2), so ANY growth reflows "…& payments"/"registers" onto separate lines; owner chose to leave mobile untouched rather than accept that reflow. */
#home .term-tl-cp{letter-spacing:-0.5px;word-spacing:-3.2px}   /* Итерация 8 п.а: "crypto & payments" squeezed max (owner-approved, semantic pair around "&") */
#home .term-tl-gap-b{word-spacing:-2px}   /* Итерация 8 п.б: "company"/"EU" stitch — minimal needed on top of max-a, found via linear scan */
#home .term-tagline-sep{word-spacing:-2px}   /* Итерация 8 п.в: "registers"/"one" stitch — same minimal value, reuses the existing sep span (mobile still hides it entirely, no conflict) */
/* .term-live removed — the LIVE·synced status moved into #home .term-emt-lbl; .term-dot + .term-synced below are reused there */
#home .term-synced{color:var(--soft);font-weight:500;letter-spacing:.05em}
#home .term-dot{width:8px;height:8px;border-radius:var(--r-pill);background:#37c46e;box-shadow:0 0 0 0 rgba(55,196,110,.5);animation:termpulse 2.2s ease-out infinite;flex:0 0 auto}
@keyframes termpulse{0%{box-shadow:0 0 0 0 rgba(55,196,110,.5)}70%{box-shadow:0 0 0 8px rgba(55,196,110,0)}100%{box-shadow:0 0 0 0 rgba(55,196,110,0)}}
@media(prefers-reduced-motion:reduce){#home .term-dot{animation:none}}
#home .term-search{display:flex;align-items:center;gap:8px;position:relative}
#home .term-mag{position:absolute;left:12px;top:13px;width:16px;height:16px;color:var(--soft);pointer-events:none}   /* HERO-FIX п.1: top pins the icon to the 42px input row ((42-16)/2=13) — without it the absolutely-positioned svg falls to its static position, which drops BELOW the input once the ≤520px .term-search flex-wrap stacks the button */
#home .term-search input{flex:1;min-width:0;height:42px;padding:0 14px 0 34px;border-radius:var(--r-sm);border:1px solid rgba(212,157,49,.30);background:rgba(0,0,0,.34);color:var(--text);font:14px var(--sans);transition:border-color .18s ease,box-shadow .18s ease}   /* PHASE 3 focus-soften 2026-07-06: transition so the dimmed focus state eases in (no hard pop) */
#home .term-search input::placeholder{color:var(--soft)}
#home .term-search input:focus{outline:none;border-color:rgba(212,157,49,.55);box-shadow:inset 0 0 0 1px rgba(212,157,49,.12)}   /* PHASE 3 focus-soften 2026-07-06 (owner "бьёт в глаза"): was the bright solid ring border-color:var(--gold2)=#f4ce71. Now a DIM gold border rgba(212,157,49,.55) (clearly above the resting .30 so focus reads, far below the glaring solid gold) + a whisper-soft low-opacity INSET glow (.12) instead of an outer ring — signals focus without glare. */
#home .term-search button{height:42px;padding:0 16px;border-radius:var(--r-sm);border:1px solid rgba(212,157,49,.20);background:transparent;color:var(--gold2);font-weight:700;font-size:13.5px;cursor:pointer;white-space:nowrap;transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease}   /* PHASE 3 border-unify: OUTLINE — canonical faint-gold .20 (= terminal tracker-row + .card border; was var(--line) .34, too bright) + gold TEXT, transparent bg — action/route unchanged */
#home .term-search button:hover{background:rgba(212,157,49,.10);border-color:rgba(212,157,49,.20);transform:translateY(-1px);box-shadow:0 8px 22px -8px rgba(212,157,49,.35)}
@media(prefers-reduced-motion:reduce){#home .term-search button:hover{transform:none}}
#home .term-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#home .tstat{padding:11px 13px;border-radius:var(--r-sm);border:1px solid rgba(212,157,49,.18);background:rgba(255,255,255,.02)}
#home .tstat-v{font:600 14.5px/1.25 var(--sans);color:var(--text)}
#home .tstat-v b{font-family:'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums;color:var(--gold2);font-weight:600}
#home .term-star{color:var(--soft);font-size:.7em;vertical-align:super;font-weight:600}
#home .tstat-k{margin-top:4px;font:600 10px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--soft)}
#home .tstat-sub{margin-top:3px;font:500 10.5px/1.2 var(--sans);color:#9c9078}
#home #emt-cap{color:#f4ce71}
/* Euro-EMT dashboard (replaces the old CASP-momentum sparkline). Colours HARDCODED light-on-dark — the panel is always dark in both site themes, so these must never inherit a theme-flipping var. Radius via non-flipping --r-sm. */
#home .term-emt{display:flex;flex-direction:column;gap:7px}
#home .term-emt-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
#home .term-emt-lbl{display:inline-flex;align-items:center;gap:5px;font:600 10px/1.2 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:#9c9078}   /* now carries the relocated ● LIVE · … · synced <date> status: green .term-dot + muted label; .term-synced null-hides gracefully */
#home .term-emt-tf{display:inline-flex;gap:3px}
#home .term-emt-tf button{font:600 9.5px/1 var(--mono);letter-spacing:.04em;padding:4px 7px;border-radius:var(--r-sm);border:1px solid rgba(212,157,49,.28);background:rgba(0,0,0,.28);color:#9c9078;cursor:pointer;transition:color .18s ease,border-color .18s ease,background .18s ease}
#home .term-emt-tf button:hover{color:#f7f1e6;border-color:rgba(212,157,49,.5)}
#home .term-emt-tf button.is-on{color:#1a1204;background:#f4ce71;border-color:#f4ce71}
#home .term-emt-tf button:focus-visible{outline:2px solid #f4ce71;outline-offset:1px}
#home .term-emt-meta{font:500 9.5px/1.3 var(--mono);letter-spacing:.03em;color:#9c9078}
#home .term-emt-meta b{color:#f7f1e6;font-weight:600;font-variant-numeric:tabular-nums}
#home .term-emt-chg{display:flex;align-items:center;gap:9px;flex-wrap:wrap;transform:translateY(10px)}   /* HERO-FIX п.6: 7D/30D badges + sparkline shifted 10px DOWN (translateY, no layout shift → the tracker rows below stay put, visual gap to them shrinks by 10px). Was transform:none. */
#home .term-emt-badge{display:inline-flex;align-items:center;gap:5px;font:600 11px/1 var(--mono);letter-spacing:.02em}
#home .term-emt-k{color:#9c9078;font-weight:600;text-transform:uppercase;font-size:9px;letter-spacing:.06em}
#home .term-emt-v{color:#f7f1e6;font-variant-numeric:tabular-nums}
#home .term-emt-v.pos{color:#f4ce71}
#home .term-emt-v.neg{color:#e5675c}
#home .term-emt-chart{position:relative;transform:translateY(10px)}   /* HERO-FIX п.6: moves with .term-emt-chg (same 10px shift) */
#home .term-emt-bars{width:100%;height:46px;display:block;overflow:visible}
#home .term-emt-bars rect.hit{cursor:pointer;outline:none}
#home .term-emt-bars rect.hit:focus-visible{outline:2px solid #f4ce71;outline-offset:1px}
#home .term-foot b{color:#b8ad95;font-weight:600}
#home .term-emt-tip{position:absolute;transform:translateX(-50%);pointer-events:none;white-space:nowrap;font:600 10px/1.2 var(--mono);letter-spacing:.02em;color:#f7f1e6;background:rgba(12,10,6,.97);border:1px solid rgba(212,157,49,.42);border-radius:var(--r-sm);padding:4px 7px;box-shadow:0 8px 22px -8px rgba(0,0,0,.85);z-index:5}
#home .term-emt-tip[hidden]{display:none}
#home .term-rows{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#home .term-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px;border-radius:var(--r-sm);border:1px solid rgba(212,157,49,.2);background:rgba(255,255,255,.015);color:var(--text);text-decoration:none;font-weight:600;font-size:12.5px;line-height:1.2;transition:border-color .2s ease,background .2s ease}
#home .term-row:hover{border-color:var(--gold2);background:rgba(212,157,49,.09)}
#home .term-arr{color:var(--gold2);flex:0 0 auto}
#home .term-foot{font:500 9.5px/1.4 var(--mono);letter-spacing:.04em;color:var(--soft);opacity:.85}
/* 2b-followup: TOP-align the hero grid so the terminal's TOP lines up with the top of the left copy column (was center). */
#home.premium-hero .premium-hero-grid{align-items:start !important}
/* PHASE 2b-final: hero-LEFT is TEXT ONLY — the floating feathered logo is REMOVED (rejected); the name-only HELMS logo now lives as the terminal CROWN (see .term-crown). */
/* side column top-aligns with the grid (inherits align-items:start) */
#home .hero-side-column{align-self:start !important}
@media(max-width:520px){#home .term-stats,#home .term-rows{grid-template-columns:1fr}#home .term-search{flex-wrap:wrap}#home .term-search button{width:100%}
/* HERO-FIX п.2 (mobile): "LIVE · EURO EMT SUPPLY" one unwrapped line, "SYNCED <date>" its own unwrapped line under it; the " · " separator span hides so line 2 starts clean */
#home .term-emt-lbl{flex-wrap:wrap;white-space:nowrap}
#home .term-synced{flex-basis:100%;margin-left:13px}
#home .term-sync-sep{display:none}
/* Итерация 2 п.1: 1-line fit tested A→B→C (letter-spacing/word-spacing on "crypto & payments", on both "·" separators, then whole string) — even at aggressive compression (letter-spacing -0.6px + word-spacing -1.5px overall, already past readable) textWidth 338.1px still > container 309px true content width (measured after fixing a min-width:auto grid-blowout bug nowrap caused). 1-line not achievable without unreadable text → kept 2-line fallback from iteration 1, unchanged. */
#home .term-tagline{text-align:center;font-size:9.75px}   /* Итерация 3 п.В: line1 centered relative to the tagline's own box, which is the SAME width as the divider stripe (.term-head border-bottom) — both share the unpadded .term-searchwrap content width, confirmed equal (left 33/right 438.7) in Итерация-2 diagnostics. Итерация 6: font-size pinned back to the original 9.75px here (base rule above is now 10.25px) — mobile already had a ~97px width deficit at 9.75px (Итерация 2), so any growth reflows the 2-line fallback into 3 lines; owner chose to leave mobile untouched */
#home .term-tl-cp,#home .term-tl-gap-b,#home .term-tagline-sep{letter-spacing:normal;word-spacing:normal}   /* Итерация 8: the 3 desktop squeeze points reset to normal on mobile — this task targets the desktop input-row width only, mobile tagline stays exactly as accepted in Итерации 2/3/6 */
#home .term-tagline-sep{display:none}
#home .term-tagline-tail{display:block;text-align:center}
/* HERO-FIX п.5 (mobile): both disclaimer lines nowrap at ONE shared font-size; bottom padding raised so last-text→card-bottom gap equals card-top→crown gap (23px) */
#home .term-foot{white-space:nowrap;font-size:7px}
#home .term{padding-bottom:16px}}   /* HERO-FIX Итерация 2 п.2: mobile bottom 22→12 (-10px, same delta as desktop). Итерация 3 п.Б: 12→16 (+4px more) */
