/* EQGenix — production global stylesheet */

/* ============ EQGenix global layer: nav, footer, a11y ============ */
:root {
  --black:#191713; --ink:#26221C; --cream:#F3EEE7; --ivory:#FDFBF7;
  --gold:#8A6A3E; --gold-light:#C9A268; --gold-bright:#C9A24B;
  --stone:#8A8171; --stone-dim:#6E675A; --sand:#B7AF9E;
  --serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;
  --sans:'Instrument Sans','Helvetica Neue',Arial,sans-serif;
  --mono:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid var(--gold-light); outline-offset:2px; }
.eqx-nav { font-family:var(--sans); position:relative; z-index:800; }
.eqx-nav a { text-decoration:none; }
.eqx-nav-bar { display:flex; align-items:center; justify-content:space-between; height:76px; padding:0 48px; background:var(--cream); border-bottom:1px solid rgba(25,23,19,0.08); }
.eqx-nav-brand { font-family:var(--serif); font-size:22px; font-weight:500; letter-spacing:0.32em; color:var(--black); }
.eqx-nav-brand.light { color:var(--cream); }
.eqx-nav-right { display:flex; align-items:center; gap:40px; }
.eqx-nav-partner { font-size:10.5px; font-weight:600; letter-spacing:0.26em; color:#5C5546; }
.eqx-nav-partner:hover { color:var(--gold); }
.eqx-nav-toggle { display:flex; align-items:center; gap:12px; background:none; border:none; cursor:pointer; padding:8px 0; font-family:var(--sans); font-size:10.5px; font-weight:600; letter-spacing:0.26em; color:var(--black); }
.eqx-nav-burger { display:flex; flex-direction:column; gap:5px; }
.eqx-nav-burger span { display:block; width:26px; height:1.5px; background:var(--black); transition:transform 0.4s cubic-bezier(0.22,1,0.36,1); }
body.eqx-menu-open .eqx-nav-burger span:first-child { transform:translateY(3.25px) rotate(45deg); }
body.eqx-menu-open .eqx-nav-burger span:last-child { transform:translateY(-3.25px) rotate(-45deg); }
.eqx-nav-ov { position:fixed; inset:0; z-index:900; background:var(--black); color:var(--cream); overflow-y:auto; opacity:0; visibility:hidden; pointer-events:none; transition:opacity 0.55s cubic-bezier(0.22,1,0.36,1), visibility 0.55s, background 0.8s cubic-bezier(0.22,1,0.36,1); }
.eqx-nav-ov.open { opacity:1; visibility:visible; pointer-events:auto; }
.eqx-nav-ov-bar { display:flex; align-items:center; justify-content:space-between; height:76px; padding:0 48px; border-bottom:1px solid #2C2921; }
.eqx-nav-close { background:none; border:none; cursor:pointer; font-family:var(--sans); font-size:10.5px; font-weight:600; letter-spacing:0.26em; color:var(--cream); padding:8px 0; }
.eqx-nav-ov-grid { max-width:1560px; margin:0 auto; padding:9vh 48px 80px; display:grid; grid-template-columns:1fr 1fr; gap:80px; }
.eqx-nav-main { display:flex; flex-direction:column; }
.eqx-nav-main a { display:flex; align-items:baseline; gap:26px; padding:22px 0; border-bottom:1px solid #2C2921; color:var(--cream); opacity:0; transform:translateY(26px); transition:opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1), padding-left 0.4s, color 0.3s; }
.eqx-nav-ov.open .eqx-nav-main a { opacity:1; transform:none; }
.eqx-nav-main a:hover { color:var(--gold-light); padding-left:20px; }
.eqx-nav-main a.active { color:var(--gold-light); }
.eqx-nav-main em { font-family:var(--serif); font-size:14px; font-style:italic; color:var(--stone-dim); }
.eqx-nav-main span { font-family:var(--serif); font-weight:400; font-size:clamp(34px,3.8vw,58px); line-height:1; }
.eqx-nav-inits-label { font-size:10px; font-weight:600; letter-spacing:0.32em; color:var(--stone-dim); padding:22px 0 10px; opacity:0; transition:opacity 0.7s 0.25s; }
.eqx-nav-ov.open .eqx-nav-inits-label { opacity:1; }
.eqx-nav-inits a { display:block; padding:20px 0; border-bottom:1px solid #2C2921; color:var(--cream); opacity:0; transform:translateY(26px); transition:opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1), padding-left 0.4s, color 0.3s; }
.eqx-nav-ov.open .eqx-nav-inits a { opacity:1; transform:none; }
.eqx-nav-inits a:hover { color:var(--gold-light); padding-left:20px; }
.eqx-nav-inits small { display:block; font-size:9.5px; font-weight:600; letter-spacing:0.28em; }
.eqx-nav-inits span { display:block; font-family:var(--serif); font-weight:400; font-size:clamp(26px,2.4vw,36px); margin-top:8px; }
.eqx-nav-ov.open .eqx-nav-main a:nth-child(1) { transition-delay:120ms,120ms,0s,0s; } .eqx-nav-ov.open .eqx-nav-main a:nth-child(2) { transition-delay:190ms,190ms,0s,0s; } .eqx-nav-ov.open .eqx-nav-main a:nth-child(3) { transition-delay:260ms,260ms,0s,0s; } .eqx-nav-ov.open .eqx-nav-main a:nth-child(4) { transition-delay:330ms,330ms,0s,0s; } .eqx-nav-ov.open .eqx-nav-main a:nth-child(5) { transition-delay:400ms,400ms,0s,0s; }
.eqx-nav-ov.open .eqx-nav-inits a:nth-child(1) { transition-delay:180ms,180ms,0s,0s; } .eqx-nav-ov.open .eqx-nav-inits a:nth-child(2) { transition-delay:250ms,250ms,0s,0s; } .eqx-nav-ov.open .eqx-nav-inits a:nth-child(3) { transition-delay:320ms,320ms,0s,0s; } .eqx-nav-ov.open .eqx-nav-inits a:nth-child(4) { transition-delay:390ms,390ms,0s,0s; } .eqx-nav-ov.open .eqx-nav-inits a:nth-child(5) { transition-delay:460ms,460ms,0s,0s; } .eqx-nav-ov.open .eqx-nav-inits a:nth-child(6) { transition-delay:530ms,530ms,0s,0s; }
.eqx-nav-partner-btn { display:inline-block; margin-top:44px; font-size:10.5px; font-weight:600; letter-spacing:0.28em; color:var(--cream); border:1px solid #4A4438; padding:15px 32px; opacity:0; transition:opacity 0.7s 0.5s, background 0.3s, color 0.3s, border-color 0.3s; }
.eqx-nav-ov.open .eqx-nav-partner-btn { opacity:1; }
.eqx-nav-partner-btn:hover { background:var(--cream); color:var(--black); border-color:var(--cream); }
@media (max-width:860px) {
  .eqx-nav-bar, .eqx-nav-ov-bar { padding:0 22px; }
  .eqx-nav-partner { display:none; }
  .eqx-nav-ov-grid { grid-template-columns:1fr; gap:40px; padding:6vh 22px 60px; }
}
.eqx-footer { font-family:var(--sans); background:var(--black); color:var(--cream); }
.eqx-footer a { color:var(--cream); text-decoration:none; }
.eqx-footer a:hover { color:var(--gold-light); }
.eqx-footer-hero { max-width:1560px; margin:0 auto; padding:130px 48px 120px; text-align:center; }
.eqx-footer-kicker { font-size:10px; font-weight:600; letter-spacing:0.32em; color:var(--stone); }
.eqx-footer-title { font-family:var(--serif); font-weight:400; font-size:clamp(40px,4.8vw,80px); line-height:1.1; margin:36px auto 0; max-width:1000px; }
.eqx-footer-sub { font-size:14px; line-height:1.75; color:var(--stone); max-width:480px; margin:34px auto 0; text-wrap:pretty; }
.eqx-footer-cta { display:inline-block; margin-top:44px; font-size:10.5px; font-weight:600; letter-spacing:0.26em; border:1px solid #4A4438; padding:15px 34px; transition:background 0.3s, color 0.3s, border-color 0.3s; }
.eqx-footer-cta:hover { background:var(--cream); border-color:var(--cream); color:var(--black) !important; }
.eqx-footer-mid { border-top:1px solid #2C2921; }
.eqx-footer-cols { max-width:1560px; margin:0 auto; padding:70px 48px; display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:56px; align-items:start; }
.eqx-footer-brand { display:flex; align-items:center; gap:14px; font-family:var(--serif); font-size:21px; font-weight:500; letter-spacing:0.3em; }
.eqx-footer-brand img { height:42px; width:auto; }
.eqx-footer-tag { font-size:12px; line-height:1.8; color:var(--stone-dim); margin:18px 0 0; max-width:340px; }
.eqx-footer-contact { display:flex; flex-direction:column; gap:8px; margin-top:20px; }
.eqx-footer-contact a { font-size:12px; letter-spacing:0.02em; color:var(--gold-bright); }
.eqx-footer-contact a:hover { color:#E4C878; }
.eqx-footer-col-title { font-size:9.5px; font-weight:600; letter-spacing:0.28em; color:var(--stone-dim); margin-bottom:22px; }
.eqx-footer-links { display:flex; flex-direction:column; gap:13px; }
.eqx-footer-links a { font-size:12.5px; letter-spacing:0.04em; color:var(--sand); }
.eqx-footer-legal { border-top:1px solid #2C2921; }
.eqx-footer-legal-grid { max-width:1560px; margin:0 auto; padding:44px 48px 56px; display:grid; grid-template-columns:1.5fr 1fr; gap:40px 70px; align-items:start; }
.eqx-footer-legal-grid > p:first-child { font-size:10px; letter-spacing:0.06em; line-height:1.9; color:var(--stone-dim); margin:0; max-width:760px; }
.eqx-footer-lid { font-size:12px; line-height:1.8; color:var(--stone); margin:0; justify-self:end; text-align:right; }
.eqx-footer-lid a { color:var(--sand); border-bottom:1px solid #4A4438; }
@media (max-width:860px) {
  .eqx-footer-hero { padding:80px 22px 70px; }
  .eqx-footer-cols { grid-template-columns:1fr; gap:36px; padding:50px 22px; }
  .eqx-footer-legal-grid { grid-template-columns:1fr; gap:20px; padding:36px 22px 44px; }
  .eqx-footer-lid { justify-self:start; text-align:left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration:0.01ms !important; animation-duration:0.01ms !important; animation-iteration-count:1 !important; }
}

/* ===== shared responsive overrides (inline styles carry the page design) ===== */
/* EQGenix — shared mobile overrides. Inline styles carry the design;
   this layer only collapses layout below tablet width. */
@media (max-width: 860px) {
  /* Hero top info bars wrap instead of colliding */
  [style*="justify-content:space-between"][style*="align-items:baseline"] { flex-wrap: wrap; }
  /* Images never exceed the viewport */
  img { max-width: 100%; }
  /* Any multi-column grid collapses to a single column */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* Stat bands keep their vertical rhythm once stacked */
  [style*="repeat(3,1fr)"] > div { border-right: none !important; }
  /* Sticky side panels flow normally */
  [style*="position:sticky"][style*="top:150px"], [style*="position: sticky"][style*="top: 150px"] { position: static !important; }
  /* Side padding tightens from 48px to 22px */
  [style*="px 48px"], [style*="0 48px"], [style*="vh 48px"] { padding-left: 22px !important; padding-right: 22px !important; }
  /* Tall section paddings breathe less on a phone */
  [style*="padding:16vh 48px"], [style*="padding:18vh 48px"], [style*="padding:14vh 48px"] { padding-top: 9vh !important; padding-bottom: 9vh !important; }
  [style*="padding:22vh 48px"] { padding-top: 11vh !important; }
  /* Post-normalization paddings: 8-12vh sections compress to 6vh, vertical margins tighten */
  [style*="padding:12vh 48px"], [style*="padding: 12vh 48px"],
  [style*="padding:11vh 48px"], [style*="padding: 11vh 48px"],
  [style*="padding:10vh 48px"], [style*="padding: 10vh 48px"],
  [style*="padding:9vh 48px"], [style*="padding: 9vh 48px"],
  [style*="padding:8vh 48px"], [style*="padding: 8vh 48px"] { padding-top: 6vh !important; padding-bottom: 6vh !important; }
  [style*="margin-top:9vh"], [style*="margin-top: 9vh"],
  [style*="margin-top:8vh"], [style*="margin-top: 8vh"],
  [style*="margin-top:7vh"], [style*="margin-top: 7vh"] { margin-top: 4.5vh !important; }
  [style*="margin:8vh auto 0"], [style*="margin: 8vh auto 0"],
  [style*="margin:7vh auto 0"], [style*="margin: 7vh auto 0"] { margin-top: 4.5vh !important; }
  [style*="margin:5vh 0 0"], [style*="margin: 5vh 0 0"] { margin-top: 3vh !important; }
  [style*="margin:4vh 0 0"], [style*="margin: 4vh 0 0"] { margin-top: 2.5vh !important; }
  [style*="margin:4vh auto 0"], [style*="margin: 4vh auto 0"] { margin-top: 2.5vh !important; }
  [style*="padding:5vh 0"], [style*="padding: 5vh 0"], [style*="padding:6vh 0"], [style*="padding: 6vh 0"] { padding-top: 3.5vh !important; padding-bottom: 3.5vh !important; }
  /* Full-bleed offsets neutralize */
  [style*="margin-left:-48px"], [style*="margin-left: -48px"] { margin-left: 0 !important; }
  /* Wide gaps compress */
  [style*="gap:110px"], [style*="gap: 110px"] { gap: 40px !important; }
  [style*="gap:70px"], [style*="gap: 70px"] { gap: 36px !important; }
  [style*="gap:90px"], [style*="gap: 90px"] { gap: 36px !important; }
  [style*="gap:96px"], [style*="gap: 96px"] { gap: 36px !important; }
  [style*="gap:80px"], [style*="gap: 80px"] { gap: 36px !important; }
  [style*="gap:60px"], [style*="gap: 60px"] { gap: 28px !important; }
  /* Hero logo blocks release their right offset */
  [style*="justify-self:end"][style*="margin-right:48px"] { margin-right: 0 !important; }
  /* Label/value spec rows: once stacked, the label hugs its value */
  [style*="grid-template-columns:180px 1fr"], [style*="grid-template-columns:200px 1fr"],
  [style*="grid-template-columns:260px 1fr"], [style*="grid-template-columns:220px 1fr"],
  [style*="grid-template-columns:minmax(140px,200px) 1fr"] { gap: 10px !important; }
  /* Numbered editorial rows tighten when stacked */
  [style*="grid-template-columns:90px 220px 1fr"], [style*="grid-template-columns:90px 1fr"],
  [style*="grid-template-columns:110px 1fr 1fr"], [style*="grid-template-columns:150px 1fr 340px"],
  [style*="grid-template-columns:1fr 240px 200px"], [style*="grid-template-columns:120px 1fr 320px"],
  [style*="grid-template-columns:120px 1fr 1.1fr"], [style*="grid-template-columns:320px 1fr"] { gap: 14px !important; }
  /* Ledger rows: status aligns left when stacked */
  [style*="justify-content:flex-end"][style*="text-align:right"] { justify-content: flex-start !important; text-align: left !important; }
  /* Indented editorial blocks square up */
  [style*="margin:2vh 0 0 12vw"] { margin-left: 0 !important; }
  [style*="0 0 12vw"] { margin-left: 0 !important; }
  /* Right-aligned intro notes read left once stacked */
  [style*="text-align:right"][style*="max-width:320px"] { text-align: left !important; }
  [style*="justify-self:end"] { justify-self: start !important; text-align: left !important; }
  [style*="margin-left:auto"][style*="max-width:380px"] { margin-left: 0 !important; }
}
@media (max-width: 560px) {
  /* Full-screen heroes shrink to their content on phones */
  [style*="min-height:calc(100vh - 76px)"] { min-height: auto !important; }
  /* Hero logo blocks scale down and hug the headline */
  [data-reveal="scale"][style*="max-width:420px"],
  [data-reveal="scale"][style*="max-width:340px"] { max-width: 220px !important; justify-self: start !important; }
  /* Hero CTA rows stack cleanly */
  [style*="display:flex"][style*="justify-content:center"][style*="gap:52px"],
  [style*="display:flex"][style*="justify-content:center"][style*="gap:40px"],
  [style*="display:flex"][style*="justify-content:center"][style*="align-items:center"][style*="gap:22px"] { flex-direction: column; gap: 20px !important; }
  /* Decorative hero rule lines vanish */
  [style*="width:52px"][style*="height:1px"] { display: none !important; }
  /* Bordered feature panels tighten */
  [style*="padding:clamp(40px,6vw,90px)"] { padding: 28px 22px !important; }
  [style*="padding:clamp(36px,4vw,60px)"] { padding: 26px 20px !important; }
  /* Wordmark hero letter-spacing eases so it fits */
  [style*="letter-spacing:0.12em"][style*="clamp(48px"] { letter-spacing: 0.06em !important; }
  /* Assess→Refine cycle stacks */
  [style*="justify-content:center"][style*="flex-wrap:wrap"][style*="align-items:baseline"] { gap: 14px 24px !important; }
  /* G2G hero reads as a centered poster on phones */
  [data-screen-label="G2G Hero"] { text-align: center; }
  [data-screen-label="G2G Hero"] [data-reveal="fade"][style*="align-items:baseline"][style*="gap:14px"] { flex-direction: column; align-items: center !important; gap: 4px !important; justify-content: center; }
  [data-screen-label="G2G Hero"] h1 { text-align: center !important; font-size: clamp(56px, 13.5vw, 110px) !important; }
  [data-screen-label="G2G Hero"] [data-reveal="scale"] { justify-self: center !important; margin: 0 auto !important; max-width: 280px !important; }
  [data-screen-label="G2G Hero"] [data-reveal="scale"] > div { display: none !important; }
  [data-screen-label="G2G Hero"] p { margin-left: auto !important; margin-right: auto !important; }
  [data-screen-label="G2G Hero"] [style*="Permanent Marker"] { margin-left: auto !important; margin-right: auto !important; transform: none !important; letter-spacing: 0.08em; }
  [data-screen-label="G2G Hero"] [style*="display:flex"][style*="gap:44px"] { flex-direction: column; align-items: center; gap: 18px !important; }
}

@media (max-width: 860px) {
  /* G2G hero poster applies through tablet width too */
  [data-screen-label="G2G Hero"] { text-align: center; }
  [data-screen-label="G2G Hero"] [data-reveal="fade"][style*="gap:14px"],
  [data-screen-label="G2G Hero"] [data-reveal="fade"][style*="gap: 14px"] { flex-direction: column; align-items: center !important; gap: 4px !important; justify-content: center; }
  [data-screen-label="G2G Hero"] h1 { text-align: center !important; font-size: clamp(56px, 13.5vw, 110px) !important; }
  [data-screen-label="G2G Hero"] [data-reveal="scale"] { justify-self: center !important; margin: 0 auto !important; max-width: 300px !important; }
  [data-screen-label="G2G Hero"] [data-reveal="scale"] > div { display: none !important; }
  [data-screen-label="G2G Hero"] p { margin-left: auto !important; margin-right: auto !important; }
  [data-screen-label="G2G Hero"] [style*="Permanent Marker"] { margin-left: auto !important; margin-right: auto !important; transform: none !important; letter-spacing: 0.08em; }
  [data-screen-label="G2G Hero"] [style*="gap:44px"],
  [data-screen-label="G2G Hero"] [style*="gap: 44px"] { flex-direction: column; align-items: center; gap: 18px !important; justify-content: center; }
  [data-screen-label="G2G Hero"] a[href*="enroll"] { font-size: 22px !important; padding: 22px 56px !important; }
  [data-screen-label="G2G Hero"] a[href="#experience"] { font-size: 15px !important; }
  [data-screen-label="G2G Hero"] a[href="https://grittogenius.com"] { font-size: 15px !important; padding: 18px 34px !important; }
  /* Category line band tightens and scales up on phones */
  [data-screen-label="Category Line"] > div { padding-top: 6vh !important; padding-bottom: 6vh !important; }
  [data-screen-label="Category Line"] h2 { font-size: clamp(30px, 7vw, 54px) !important; line-height: 1.4 !important; }

  /* Home: collapse tall editorial paddings on phones */
  [style*="padding:20vh"], [style*="padding: 20vh"] { padding-top: 9vh !important; padding-bottom: 9vh !important; }
  [style*="padding:22vh"], [style*="padding: 22vh"] { padding-top: 10vh !important; padding-bottom: 10vh !important; }
  [style*="margin:14vh auto 0"], [style*="margin: 14vh auto 0"] { margin-top: 7vh !important; }
  [style*="margin:10vh auto 0"], [style*="margin: 10vh auto 0"] { margin-top: 6vh !important; }
}

@media (max-width: 860px) {
  /* Full-viewport sections collapse to their content on phones */
  [style*="min-height:calc(100vh"], [style*="min-height: calc(100vh"],
  [style*="min-height:100vh"], [style*="min-height: 100vh"],
  [style*="min-height:90vh"], [style*="min-height: 90vh"],
  [style*="min-height:85vh"], [style*="min-height: 85vh"],
  [style*="min-height:80vh"], [style*="min-height: 80vh"] { min-height: 0 !important; }
  /* Stat blocks: tall row gaps compress */
  [style*="gap:9vh"], [style*="gap: 9vh"], [style*="gap:8vh"], [style*="gap: 8vh"],
  [style*="gap:7vh"], [style*="gap: 7vh"], [style*="gap:6vh"], [style*="gap: 6vh"] { gap: 3.5vh !important; }
  /* Hero padding stays comfortable after min-height removal */
  [style*="padding:22vh"], [style*="padding: 22vh"],
  [style*="padding:20vh"], [style*="padding: 20vh"],
  [style*="padding:18vh"], [style*="padding: 18vh"],
  [style*="padding:16vh"], [style*="padding: 16vh"],
  [style*="padding:15vh"], [style*="padding: 15vh"],
  [style*="padding:14vh"], [style*="padding: 14vh"],
  [style*="padding:13vh"], [style*="padding: 13vh"],
  [style*="padding:12vh"], [style*="padding: 12vh"] { padding-top: 9vh !important; padding-bottom: 9vh !important; }
}

@media (max-width: 860px) {
  /* Contact hero: drop the inset frame lines on phones */
  [data-screen-label="Contact Hero"] [style*="inset:28px"], [data-screen-label="Contact Hero"] [style*="inset: 28px"] { display: none !important; }
}

@media (max-width: 860px) {
  /* Life in Darkness: doors show their image inline; sticky cross-fade box hides */
  .lid-door-img { display: block !important; }
  [data-screen-label="Three Doors"] [style*="position:sticky"], [data-screen-label="Three Doors"] [style*="position: sticky"] { display: none !important; }
}

@media (max-width: 860px) {
  /* Stat panels: fixed compact padding when stacked */
  [style*="padding:6vh 40px"], [style*="padding: 6vh 40px"] { padding: 28px 20px !important; }
  /* The Problem: kill the 12vw indents and 10vh gap on phones */
  [style*="margin:2vh 0 0 12vw"], [style*="margin: 2vh 0 0 12vw"] { margin: 1vh 0 0 0 !important; }
  [style*="margin:10vh 0 0 12vw"], [style*="margin: 10vh 0 0 12vw"] { margin: 4vh 0 0 0 !important; }
  /* Wide two-column text grids stack tight */
  [style*="gap:70px"], [style*="gap: 70px"] { gap: 24px !important; }
}

@media (max-width: 860px) {
  /* Program-page hero top bar: breadcrumb only, right label hides */
  [style*="padding:28px 48px"][style*="justify-content:space-between"] { padding: 18px 20px !important; }
  [style*="padding:28px 48px"][style*="justify-content:space-between"] > span:last-child { display: none !important; }
}

@media (max-width: 860px) {
  /* Stacked stat cells: thin separators instead of side borders */
  [style*="padding:6vh 40px"][style*="border-right"], [style*="padding: 6vh 40px"][style*="border-right"] { border-right: none !important; border-bottom: 1px solid rgba(201,162,104,0.3) !important; }
}

@media (max-width: 860px) {
  /* Top-bar PARTNER WITH US hides on phones (menu still has it) */
  [style*="gap:40px"] > a[href*="Partner"], [style*="gap: 40px"] > a[href*="Partner"],
  [style*="gap:40px"] > a[href*="partner"], [style*="gap: 40px"] > a[href*="partner"] { display: none !important; }
}

@media (max-width: 860px) {
  /* Pillar cards: bigger text, tighter min-height on phones */
  [style*="min-height:300px"], [style*="min-height: 300px"] { min-height: 0 !important; padding: 30px 24px !important; }
  [style*="min-height:300px"] span[style*="font-size:14px"], [style*="min-height: 300px"] span[style*="font-size: 14px"] { font-size: 16px !important; }
  [style*="min-height:300px"] span[style*="font-size:16px"], [style*="min-height: 300px"] span[style*="font-size: 16px"] { font-size: 18px !important; min-height: 0 !important; }
  [style*="min-height:300px"] span[style*="margin:20px 0"], [style*="min-height: 300px"] span[style*="margin: 20px 0"] { margin: 14px 0 !important; }
}

@media (max-width: 860px) {
  /* Decorative flanking rules in hero CTA rows hide on phones */
  span[style*="width:52px"][style*="height:1px"], span[style*="width: 52px"][style*="height: 1px"],
  span[style*="width:44px"][style*="height:1px"], span[style*="width: 44px"][style*="height: 1px"] { display: none !important; }
}

@media (max-width: 860px) {
  /* Sacred Deposits book cover: smaller, centered on phones */
  img[src*="sd-book"] { max-width: 240px !important; margin: 0 auto !important; }
}

@media (max-width: 860px) {
  /* Author photo shows on phones */
  .sd-author-img { display: block !important; }
}

@media (max-width: 860px) {
  /* LID countdown stays 4-across on phones */
  [data-screen-label="Behind Both Badges"] [style*="grid-template-columns:repeat(4"],
  [data-screen-label="Behind Both Badges"] [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(4, 1fr) !important; gap: 6px !important; }
}

@media (max-width: 860px) {
  /* Pillar card descriptions at 15px step up too */
  [style*="min-height:300px"] span[style*="font-size:15px"], [style*="min-height: 300px"] span[style*="font-size: 15px"] { font-size: 17px !important; }
}

@media (max-width: 860px) {
  /* Hero top-bar labels: very small on phones */
  [style*="padding:28px 48px"][style*="justify-content:space-between"] > div[data-reveal],
  [style*="padding:28px 48px"][style*="justify-content:space-between"] > span[data-reveal] { font-size: 9px !important; letter-spacing: 0.16em !important; }
}

@media (max-width: 860px) {
  /* Both top-bar labels visible, tiny, one line */
  [style*="padding:28px 48px"][style*="justify-content:space-between"] { padding: 14px 16px !important; align-items: center !important; }
  [style*="padding:28px 48px"][style*="justify-content:space-between"] > span:last-child { display: inline !important; }
  [style*="padding:28px 48px"][style*="justify-content:space-between"] > div[data-reveal],
  [style*="padding:28px 48px"][style*="justify-content:space-between"] > span[data-reveal] { font-size: 8px !important; letter-spacing: 0.12em !important; white-space: nowrap !important; }
  [style*="padding:28px 48px"][style*="justify-content:space-between"] > div[data-reveal] * { white-space: nowrap !important; }
}

@media (max-width: 860px) {
  /* VR&E step cards: bigger text on phones */
  [style*="padding:44px 36px"] div[style*="font-size:17px"], [style*="padding: 44px 36px"] div[style*="font-size: 17px"] { font-size: 19px !important; }
  [style*="padding:44px 36px"] p[style*="font-size:15px"], [style*="padding: 44px 36px"] p[style*="font-size: 15px"] { font-size: 17px !important; }
  [style*="padding:44px 36px"], [style*="padding: 44px 36px"] { padding: 30px 24px !important; }
}

@media (max-width: 860px) {
  /* Diagnostic cover: content-height on phones, no viewport centering gap */
  [data-screen-label="EWD Cover"] { min-height: 0 !important; padding: 5vh 20px 6vh !important; }
}

@media (max-width: 860px) {
  /* Any calc()-based full-height hero collapses on phones */
  section[style*="min-height:calc("], section[style*="min-height: calc("] { min-height: 0 !important; }
  /* Hero inner padding tightens */
  [style*="padding:12vh 48px 10vh"], [style*="padding: 12vh 48px 10vh"] { padding: 8vh 24px 7vh !important; }
}

@media (max-width: 860px) {
  /* About model rows: bigger text on phones */
  [style*="grid-template-columns:260px 1fr"] span[style*="font-size:14px"],
  [style*="grid-template-columns: 260px 1fr"] span[style*="font-size: 14px"] { font-size: 16px !important; }
  [style*="grid-template-columns:260px 1fr"] span[style*="Cormorant"],
  [style*="grid-template-columns: 260px 1fr"] span[style*="Cormorant"] { font-size: clamp(24px,6vw,30px) !important; }
  [style*="grid-template-columns:260px 1fr"], [style*="grid-template-columns: 260px 1fr"] { gap: 12px !important; padding: 3vh 0 !important; }
}

.eqx-nav-cmd { border-bottom:1px solid #2C2921; opacity:0; transform:translateY(26px); transition:opacity 0.7s cubic-bezier(0.22,1,0.36,1) 250ms, transform 0.7s cubic-bezier(0.22,1,0.36,1) 250ms; }
.eqx-nav-ov.open .eqx-nav-cmd { opacity:1; transform:none; }
.eqx-nav-cmd summary { list-style:none; cursor:pointer; padding:20px 0; color:var(--cream); transition:color 0.3s, padding-left 0.4s; }
.eqx-nav-cmd summary::-webkit-details-marker { display:none; }
.eqx-nav-cmd summary:hover { color:var(--gold-light); padding-left:20px; }
.eqx-nav-cmd summary small { display:block; font-size:9.5px; font-weight:600; letter-spacing:0.28em; }
.eqx-nav-cmd summary > span { display:block; font-family:var(--serif); font-weight:400; font-size:clamp(26px,2.4vw,36px); margin-top:8px; }
.eqx-nav-cmd .cmd-arrow { display:inline-block; font-size:18px; color:var(--stone-dim); margin-left:16px; transition:transform 0.4s; }
.eqx-nav-cmd[open] .cmd-arrow { transform:rotate(180deg); }
.eqx-nav-cmd-sub a { display:block; padding:14px 0 14px 28px !important; border-bottom:none !important; color:var(--cream); }
.eqx-nav-cmd-sub a:last-child { padding-bottom:22px !important; }
.eqx-nav-cmd-sub a span { font-size:clamp(22px,1.8vw,28px) !important; margin-top:6px !important; }
.eqx-nav-cmd-sub a:hover { padding-left:44px !important; }

