/* Sacred Homes / ASK SHAI — shared editorial visual layer, 2026-10-30.
   Original design principles: restrained black, warmer gold, clear typographic
   hierarchy and consistent brand treatments. No Balmain intellectual property.
   Opt-in via HTML links. Delete the link to roll back any page.
   No content, photography, navigation logic, payments or backend changes. */
:root {
  --shai-editorial-black:#090a0c;
  --shai-editorial-ink:#f5f1e9;
  --shai-editorial-gold:#dcc18a;
  --shai-editorial-gold-strong:#eed29d;
  --shai-editorial-muted:#ccc6ba;
  --shai-editorial-rule:rgba(220,193,138,.35);
  --shai-editorial-serif:Georgia,"Times New Roman",serif;
}
html { scroll-padding-top:90px }
body { -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility }
body > header {
  background:var(--shai-editorial-black)!important;
  color:var(--shai-editorial-ink);
  border-bottom:1px solid var(--shai-editorial-rule);
}
body > header :is(.brand,.media-brand,.wordmark,.identity,.shai-shared-brand) {
  color:var(--shai-editorial-ink);
  text-decoration:none;
}
body > header :is(.brand,.media-brand,.wordmark,.identity,.shai-shared-brand) img {
  object-fit:contain;
  filter:none!important;
  mix-blend-mode:normal;
  background:transparent;
}
body > header :is(nav,.desktop-nav) a {
  color:var(--shai-editorial-ink)!important;
  text-underline-offset:5px;
  text-decoration-thickness:1px;
}
body > header :is(nav,.desktop-nav) a:is(:hover,:focus-visible,[aria-current="page"]) {
  color:var(--shai-editorial-gold-strong)!important;
}
body > header :is(.brand-copy .brand-ai,.media-brand strong,.wordmark-copy small,.brand-shop) {
  color:var(--shai-editorial-gold-strong);
}
body > header :is(.brand,.media-brand,.wordmark,.identity,.shai-shared-brand) :is(strong,span) {
  text-wrap:pretty;
}
body > header :is(a,button,select):focus-visible {
  outline:3px solid var(--shai-editorial-gold-strong);
  outline-offset:3px;
}
body > header :is(nav,.desktop-nav) a { min-height:44px; align-content:center }
body > header img[src*="shai-fox-premium-social.png"] { flex:none }
body.shai-premium-page.premium-dark {
  --fox-bg:var(--shai-editorial-black);
  --fox-violet:var(--shai-editorial-gold);
  --fox-ice:var(--shai-editorial-gold-strong);
}
body.shai-premium-page.premium-dark .topbar .brand-copy :is(.brand-ask,small) {
  color:var(--shai-editorial-muted);
}
body.shai-premium-page.premium-dark .topbar .brand-copy .brand-ai {
  color:var(--shai-editorial-gold-strong);
}
body.shai-premium-page.premium-dark #main .hero-home {
  background:linear-gradient(125deg,#0b0c0e,#161713 100%);
  color:var(--shai-editorial-ink);
  border-bottom:1px solid var(--shai-editorial-rule);
}
body.shai-premium-page #main :is(
  .immersive-hero h1,.discovery-page-heading h1,.r3-inner-hero h1,
  .hero-home h1,.studio-hero h1
) {
  font-family:var(--shai-editorial-serif);
  font-weight:400;
  letter-spacing:-.045em;
  line-height:1.07;
}
body.shai-premium-page.premium-dark #main :is(
  .immersive-hero .eyebrow,.discovery-heading .eyebrow,
  .discovery-page-heading .eyebrow,.hero-home .hero-product-name
) {
  color:var(--shai-editorial-gold);
  letter-spacing:.13em;
}
body.shai-premium-page.premium-dark #main .immersive-hero h1 em {
  color:var(--shai-editorial-gold-strong);
}
body.shai-premium-page.premium-dark #main :is(
  .hero-home .button.primary,.immersive-hero .button.primary,
  .tutor-feature .button.primary
):not(:disabled) {
  background:var(--shai-editorial-gold);
  color:#101114;
  border-color:var(--shai-editorial-gold);
}
body.shai-premium-page.premium-dark #main :is(
  .hero-home .button.primary,.immersive-hero .button.primary,
  .tutor-feature .button.primary
):not(:disabled):hover {
  background:var(--shai-editorial-gold-strong);
  border-color:var(--shai-editorial-gold-strong);
}
body.shai-premium-page.premium-paper > main :is(.hero h1,.hero h1 em),
body.shai-premium-page.premium-paper #main :is(.hero h1,.hero h1 em) {
  font-family:var(--shai-editorial-serif);
  font-weight:400;
  letter-spacing:-.045em;
}
body.shai-premium-page.premium-paper > main > .hero {
  border-bottom:1px solid #c4b494;
}
body.shai-premium-page.premium-paper > main .eyebrow {
  letter-spacing:.14em;
}
body:has(#catalogue-status).shai-premium-page > main > .hero {
  background:linear-gradient(120deg,#111315,#20201b);
  color:var(--shai-editorial-ink);
  border:1px solid var(--shai-editorial-rule);
  padding-inline:clamp(18px,3vw,44px);
}
body:has(#catalogue-status).shai-premium-page > main > .hero :is(h1,.lede,.eyebrow,.fine) {
  color:var(--shai-editorial-ink);
}
body:has(#catalogue-status).shai-premium-page > main > .hero .eyebrow {
  color:var(--shai-editorial-gold);
}
body:has(#catalogue-status).shai-premium-page > main > .hero .action {
  background:var(--shai-editorial-gold);
  border-color:var(--shai-editorial-gold);
  color:#111315;
}
body:has(#catalogue-status).shai-premium-page > main > .hero .ghost {
  color:var(--shai-editorial-ink);
}
body > header.site-top .wordmark-mark {
  border:0;
  width:44px;
  height:44px;
}
body > header.site-top .wordmark-mark img {
  width:44px;
  height:44px;
  display:block;
}
body > header.site-top .wordmark-copy { color:var(--shai-editorial-ink) }
body > header.site-top .wordmark-copy small {color:var(--shai-editorial-gold)}
body > header.site-top .main-nav .nav-back {
  background:var(--shai-editorial-gold);
  color:#141414!important;
}
body > header.site-top .main-nav .nav-back:hover {
  background:var(--shai-editorial-gold-strong);
}
body > header.media-topbar .media-brand small {color:var(--shai-editorial-muted)}
body > header.media-topbar .media-brand strong {color:var(--shai-editorial-gold-strong)}
body > header.media-topbar nav a {border-radius:3px}
body > header.site-head .brand {color:var(--shai-editorial-ink)}
body.shai-premium-page > header :is(.shai-shared-emblem,.shop-fox-mark) {
  background:transparent;
  padding:0;
  border:0;
  border-radius:0;
}
body.shai-premium-page.premium-paper > header .brand-shop {color:var(--shai-editorial-gold)}
body.shai-premium-page :is(main,#main) > :is(.hero,.intro) :is(h1,h2) {
  text-wrap:balance;
}
@media(max-width:760px) {
  body > header :is(nav,.desktop-nav) a {white-space:normal}
  body.shai-premium-page #main :is(.immersive-hero h1,.discovery-page-heading h1,.r3-inner-hero h1,.hero-home h1) {
    letter-spacing:-.035em;
    overflow-wrap:break-word;
  }
  body:has(#catalogue-status).shai-premium-page > main > .hero {
    padding-inline:18px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}
}

/* Compact, first-party fox on informational and learning-tool headers. */
body > header .shai-editorial-fox {
  display:inline-block;
  width:38px;
  height:38px;
  object-fit:contain;
  margin-inline-end:10px;
  vertical-align:middle;
  filter:none;
  background:transparent;
}
body > header .shai-editorial-home {
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:100%;
  color:var(--shai-editorial-ink);
  font-weight:700;
  text-decoration:none;
  letter-spacing:.07em;
}
body > header.lab-header a {
  display:inline-flex;
  align-items:center;
  color:var(--shai-editorial-ink);
  text-decoration:none;
}
body > header.lab-header > span { color:var(--shai-editorial-gold) }
body.shai-premium-page > main h1,
body.shai-premium-page #main h1 {
  font-family:var(--shai-editorial-serif);
  letter-spacing:-.045em;
  text-wrap:balance;
}
/* Maintain image fidelity: no filters, substitutions or forced cropping. */
body.shai-premium-page > header img[src*="shai-fox-premium-social.png"] {
  object-fit:contain;
  filter:none;
}
@media(max-width:540px) {
  body > header .shai-editorial-home {gap:4px}
  body > header .shai-editorial-fox {width:34px;height:34px}
}

/* ================================================================
   VISIBLE EDITORIAL RECOMPOSITION — 2026-10-30 / v2.
   The homepage is rendered by discovery.js and composeHome() in tutoring.js.
   Their real DOM is .welcome-hero, not the legacy .hero-home template.
   Structural CSS only: no protected imagery, routing, data or business logic.
   ================================================================ */
body[data-route="home"] #main {
  background:#0c0c0b;
  color:#f1eee7;
}
body[data-route="home"] #main .welcome-hero {
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(370px,.82fr);
  gap:clamp(36px,5.2vw,90px);
  min-height:690px;
  align-items:center;
  padding:clamp(64px,7vw,108px) max(32px,calc((100% - 1280px)/2));
  border-top:1px solid #51432c;
  border-bottom:1px solid #736143;
  background:
    radial-gradient(ellipse 38% 80% at 94% 0%,rgba(188,144,69,.12),transparent 75%),
    linear-gradient(123deg,#080808 4%,#151410 62%,#1e1b16 100%);
  box-shadow:none;
}
body[data-route="home"] #main .welcome-hero .immersive-hero-content {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  width:100%;
  min-width:0;
  max-width:720px;
  min-height:0;
  margin:0;
  padding:0;
  position:relative;
  z-index:1;
}
body[data-route="home"] #main .welcome-hero .premium-fox-signature {
  display:flex;
  align-items:center;
  gap:20px;
  margin:0 0 clamp(28px,4vw,55px);
  padding:0 0 24px;
  border-bottom:1px solid rgba(218,188,129,.34);
  width:min(100%,510px);
}
body[data-route="home"] #main .welcome-hero .premium-fox-signature img {
  display:block;
  width:clamp(92px,8.5vw,128px);
  height:clamp(92px,8.5vw,128px);
  object-fit:contain;
  opacity:1;
  flex:none;
  filter:none!important;
  background:transparent;
}
body[data-route="home"] #main .welcome-hero .premium-fox-signature strong {
  font:500 clamp(25px,2.5vw,38px)/1.1 "Helvetica Neue",Arial,sans-serif;
  letter-spacing:.14em;
  color:#f3efe5;
}
body[data-route="home"] #main .welcome-hero .premium-fox-signature small {
  margin-top:10px;
  font:600 11px/1.5 "Helvetica Neue",Arial,sans-serif;
  letter-spacing:.25em;
  text-transform:uppercase;
  color:#dfc28a;
}
body[data-route="home"] #main .welcome-hero .immersion-kicker {
  display:flex;
  gap:13px;
  align-items:center;
  font:600 10px/1.6 "Helvetica Neue",Arial,sans-serif;
  letter-spacing:.21em;
  text-transform:uppercase;
  color:#d9c395;
  margin:0 0 23px;
}
body[data-route="home"] #main .welcome-hero h1,
body[data-route="home"] #main .welcome-hero.tutor-entry-hero h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  font-size:clamp(54px,5.1vw,86px);
  line-height:1.065;
  letter-spacing:-.052em;
  max-width:11.8ch;
  color:#f7f3eb;
  text-wrap:balance;
  margin:0 0 27px;
  text-shadow:none;
}
body[data-route="home"] #main .welcome-hero h1 em {
  font-style:normal;
  color:#e6c782;
  font-weight:400;
}
body[data-route="home"] #main .welcome-hero .lead {
  font-size:clamp(16px,1.3vw,19px);
  line-height:1.75;
  color:#d5cfc3;
  max-width:45ch;
  margin:0 0 34px;
}
body[data-route="home"] #main .welcome-hero .hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  width:100%;
  align-items:center;
  margin:0;
}
body[data-route="home"] #main .welcome-hero .hero-actions :is(a,button) {
  min-height:52px;
  border-radius:2px;
  padding:14px 22px;
  font:650 13px/1.4 "Helvetica Neue",Arial,sans-serif;
  letter-spacing:.035em;
  text-decoration:none;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
body[data-route="home"] #main .welcome-hero .hero-actions .primary {
  background:#ddbd78!important;
  border:1px solid #ddbd78!important;
  color:#15130e!important;
  box-shadow:none;
}
body[data-route="home"] #main .welcome-hero .hero-actions .primary:hover {
  background:#f1d79e!important;
  border-color:#f1d79e!important;
}
body[data-route="home"] #main .welcome-hero .hero-actions :is(.button:not(.primary),.hero-quiet-link) {
  border:1px solid #867557;
  border-radius:2px;
  background:transparent;
  color:#f4ead7;
}
body[data-route="home"] #main .welcome-hero .hero-caption {
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid #62533c;
  color:#c6b89d;
  letter-spacing:.08em;
  font-size:11px;
}
body[data-route="home"] #main .welcome-hero .navigator-stage {
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:20px;
  align-self:center;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:auto;
  margin:0;
  padding:clamp(25px,3vw,43px);
  border:1px solid #a68c5a;
  border-radius:3px;
  background:#1c1b18;
  box-shadow:0 32px 80px rgba(0,0,0,.34);
  color:#f4efe5;
}
body[data-route="home"] #main .welcome-hero .navigator-stage-intro {
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin:0;
  padding-bottom:18px;
  border-bottom:1px solid #554b3a;
}
body[data-route="home"] #main .welcome-hero .navigator-orbit {
  border-radius:2px;
  border:1px solid #90794c;
  color:#e4c58d;
  background:#30291f;
  box-shadow:none;
}
body[data-route="home"] #main .welcome-hero .navigator-stage .eyebrow {
  color:#d9bf89;
  letter-spacing:.17em;
  font-size:10px;
}
body[data-route="home"] #main .welcome-hero .navigator-stage h2 {
  font:400 clamp(23px,2.1vw,31px)/1.18 Georgia,"Times New Roman",serif;
  max-width:none;
  color:#faf2e6;
  margin:6px 0 0;
  letter-spacing:-.025em;
}
body[data-route="home"] #main .welcome-hero .home-navigator {
  border:0;
  margin:0;
  padding:0;
  background:transparent;
  box-shadow:none;
}
body[data-route="home"] #main .welcome-hero .navigator-input-row {
  border:1px solid #a5977c;
  border-radius:2px;
  background:#11120f;
  padding:7px;
  min-height:77px;
}
body[data-route="home"] #main .welcome-hero #homeQuestion {
  display:block;
  box-sizing:border-box;
  width:100%;
  min-height:58px;
  color:#fff8e8;
  font-size:16px;
  line-height:1.5;
  background:#11120f;
}
body[data-route="home"] #main .welcome-hero #homeQuestion::placeholder {color:#c6bba6}
body[data-route="home"] #main .welcome-hero .navigator-send-row .navigator-submit {
  border:1px solid #dfc283;
  border-radius:2px;
  background:#dfc283;
  color:#12110e;
  min-width:50px;
  min-height:50px;
}
body[data-route="home"] #main .welcome-hero .navigator-privacy {
  color:#bfb4a0;
  font-size:11px;
  line-height:1.6;
}
body[data-route="home"] #main .welcome-hero .navigator-quick {
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  margin:0;
  padding:0;
  border-top:1px solid #554b3a;
}
body[data-route="home"] #main .welcome-hero .navigator-quick button {
  display:flex;
  width:100%;
  align-items:center;
  justify-content:space-between;
  text-align:left;
  box-sizing:border-box;
  margin:0;
  padding:11px 0;
  min-height:46px;
  color:#f0e6d2;
  border:0;
  border-bottom:1px solid #484137;
  border-radius:0;
  background:transparent;
  font-size:13px;
  flex:none;
}
body[data-route="home"] #main .welcome-hero .navigator-quick button:hover {
  color:#ffe2a4;
  background:#302a21;
}
body[data-route="home"] #main .discovery-section {
  background:#11110f;
  padding-block:clamp(68px,7vw,105px);
}
body[data-route="home"] #main .discovery-heading {
  padding-bottom:25px;
  border-bottom:1px solid #6a5a3c;
  margin-bottom:36px;
}
body[data-route="home"] #main .discovery-heading h2 {
  color:#f4eddd;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(36px,4vw,60px);
  font-weight:400;
  max-width:18ch;
}
body[data-route="home"] #main .discovery-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:38px 22px;
}
body[data-route="home"] #main .discovery-card {
  background:#1a1916;
  border:1px solid #544936;
  border-radius:2px;
  box-shadow:none;
  overflow:hidden;
  transition:border-color .2s ease;
}
body[data-route="home"] #main .discovery-card:hover,
body[data-route="home"] #main .discovery-card:focus-within {
  border-color:#d6b475;
  box-shadow:none;
  transform:none;
}
body[data-route="home"] #main .discovery-card .discovery-image {
  border-radius:0;
  aspect-ratio:1.25;
}
body[data-route="home"] #main .discovery-card .discovery-card-copy {
  padding:22px 22px 28px;
}
body[data-route="home"] #main .discovery-card :is(h3,h3 button) {
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(22px,2.3vw,31px);
  font-weight:400;
  color:#f4eddd;
  letter-spacing:-.025em;
}
body[data-route="home"] #main .discovery-card p {color:#c8c1b5;line-height:1.7}
body[data-route="home"] #main .learning-feature {
  border:1px solid #665638;
  border-radius:2px;
  background:#1b1914;
  box-shadow:none;
  overflow:hidden;
  margin-block:clamp(40px,5vw,75px);
}
body[data-route="home"] #main .learning-feature h2,
body[data-route="home"] #main .discovery-founder h2 {
  color:#f4eddd;
  font:400 clamp(34px,3.3vw,52px)/1.12 Georgia,"Times New Roman",serif;
  letter-spacing:-.04em;
}
body[data-route="home"] #main .learning-feature p {color:#d2c9ba}
body[data-route="home"] #main .discovery-founder {
  border:1px solid #655333;
  border-radius:2px;
  background:#181714;
  padding:clamp(28px,4vw,50px);
  margin-block:55px;
}
body[data-route="home"] #main .grounded-home-details {
  border-top:1px solid #62523b;
  background:#10100f;
}
/* Standalone and internal landing pages share visibly editorial structure. */
body.shai-premium-page.premium-paper > main > .hero,
body.shai-premium-page.premium-paper #main > .hero {
  border:1px solid #bdab82;
  border-radius:2px;
}
body.shai-premium-page.premium-paper > main > .hero h1,
body.shai-premium-page.premium-paper #main > .hero h1 {
  font:400 clamp(44px,5vw,76px)/1.05 Georgia,"Times New Roman",serif;
  letter-spacing:-.05em;
}
body.shai-premium-page > main :is(.eyebrow,.kicker),
body.shai-premium-page #main :is(.eyebrow,.kicker) {
  letter-spacing:.15em;
}
@media(max-width:1080px) {
 body[data-route="home"] #main .welcome-hero {
  grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);
  gap:34px;
  padding:54px 28px;
  min-height:0;
 }
 body[data-route="home"] #main .welcome-hero h1,
 body[data-route="home"] #main .welcome-hero.tutor-entry-hero h1 {font-size:clamp(44px,5vw,65px)}
}
@media(max-width:800px) {
 body[data-route="home"] #main .welcome-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:38px;
  padding:45px clamp(18px,5vw,36px);
 }
 body[data-route="home"] #main .welcome-hero .immersive-hero-content {max-width:700px}
 body[data-route="home"] #main .welcome-hero h1,
 body[data-route="home"] #main .welcome-hero.tutor-entry-hero h1 {
  font-size:clamp(43px,8vw,65px);
  max-width:15ch;
 }
 body[data-route="home"] #main .welcome-hero .navigator-stage {max-width:700px}
 body[data-route="home"] #main .welcome-hero .hero-caption {display:flex}
 body[data-route="home"] #main .discovery-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px) {
 body[data-route="home"] #main .welcome-hero {
  padding:34px 18px 45px;
  gap:26px;
 }
 body[data-route="home"] #main .welcome-hero .premium-fox-signature {
  gap:14px;
  padding-bottom:18px;
  margin-bottom:23px;
 }
 body[data-route="home"] #main .welcome-hero .premium-fox-signature img {
  width:76px;height:76px
 }
 body[data-route="home"] #main .welcome-hero .premium-fox-signature strong {font-size:22px}
 body[data-route="home"] #main .welcome-hero .premium-fox-signature small {font-size:9px}
 body[data-route="home"] #main .welcome-hero h1,
 body[data-route="home"] #main .welcome-hero.tutor-entry-hero h1 {
  font-size:clamp(38px,9.2vw,51px);
  line-height:1.1;
 }
 body[data-route="home"] #main .welcome-hero .lead {font-size:16px;margin-bottom:22px}
 body[data-route="home"] #main .welcome-hero .hero-actions {align-items:stretch;gap:10px}
 body[data-route="home"] #main .welcome-hero .hero-actions a {max-width:100%;white-space:normal}
 body[data-route="home"] #main .welcome-hero .navigator-stage {
  padding:22px 17px;
  gap:17px;
 }
 body[data-route="home"] #main .welcome-hero .navigator-orbit {flex-basis:40px;width:40px;height:40px}
 body[data-route="home"] #main .discovery-grid {grid-template-columns:minmax(0,1fr);gap:19px}
 body[data-route="home"] #main .discovery-heading {align-items:flex-start;gap:14px;flex-wrap:wrap}
 body[data-route="home"] #main .discovery-section {padding-block:55px}
}
@media(prefers-reduced-motion:reduce) {
 body[data-route="home"] #main .welcome-hero .hero-actions :is(a,button),
 body[data-route="home"] #main .discovery-card {transition:none}
}
