/* Master page only; shared globe assets and signup UI remain unchanged. */
body.master-home { --master-accent: #5b9eff; --home-blue: var(--master-accent); }
html[data-theme] body.master-home.home-refined.home-openai-clean .master-hero {
  min-height: max(780px, 88svh) !important;
  padding: 144px 0 100px !important;
  border-bottom: 0 !important;
  isolation: isolate;
  overflow: hidden;
}
body.master-home .master-hero .container {
  display: flex !important;
  align-items: center;
  min-height: max(560px, calc(88svh - 220px)) !important;
}
body.master-home .master-hero .idx-hero-content { max-width: 1152px !important; }
body.master-home .master-hero .idx-hero-content h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(64px, 6.5vw, 100px) !important;
  line-height: .98 !important;
  letter-spacing: -.06em !important;
  text-wrap: balance;
}
body.master-home .master-hero .idx-hero-sub {
  max-width: 600px;
  margin: 34px 0 0;
  padding: 0;
  font-size: 20px !important;
  line-height: 1.5 !important;
  color: #b0b0b0;
}
body.master-home .master-hero .idx-hero-conversion { max-width: 740px; margin-top: 32px; gap: 28px; align-items: flex-start; }
.master-signup-group { width: 470px; min-width: 0; flex: 0 1 470px; }
.master-services-link { flex: none; margin-top: 5px; white-space: nowrap; }
body.master-home .master-hero .home-hero-signup { width: 100%; }
.master-home .home-hero-signup:focus-within { outline: 2px solid #a0a0a0; outline-offset: 4px; }
.master-home .home-hero-signup input { border-radius: 999px; }
.master-home .home-hero-signup-status { max-width: 470px; color: #a0a0a0; }
.master-reader-trust { max-width: 1000px; margin-top: 46px; padding-top: 24px; }
.master-reader-trust > p { margin: 0 0 20px; color: #a0a0a0; font-size: 12px; }
.master-reader-logos { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: center; gap: 30px; }
.master-reader-logos img { width: 100%; max-width: 138px; height: 36px; object-fit: contain; opacity: .75; filter: grayscale(1) brightness(0) invert(1); }
.master-globe-scroll { position: absolute; inset: 0; z-index: 1; pointer-events: none; transform-origin: 75% 50%; }
/* Full-bleed star field; the globe and all content paint above it. */
.master-star-mark { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.master-star-mark canvas { display: block; width: 100%; height: 100%; }
body.master-home .master-star-toggle { position: absolute; top: 88px; right: 24px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8b9a9e; cursor: pointer; pointer-events: auto; }
body.master-home .master-star-toggle[hidden] { display: none; }
body.master-home .master-star-toggle:hover { color: #fff; background: #ffffff0d; }
body.master-home .master-star-toggle:focus-visible { outline: 1px solid #a0a0a0; outline-offset: 0; }
body.master-home .master-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 150px; z-index: 2; background: linear-gradient(transparent, #000); pointer-events: none; }
body.master-home .master-hero .idx-hero-media { top: 50%; right: -200px; width: 880px; height: 740px; }
body.master-home .master-hero .idx-hero-earth { z-index: 1; }
body.master-home .master-hero .idx-hero-earth img { mask-image: radial-gradient(ellipse 29% 45% at 70% 51%, #000 88%, transparent 100%); }
body.master-home .master-hero .idx-hero-media::after {
  /* The Earth image is already masked. An extra black overlay obscures the 51. */
  background: none;
}
.master-scroll-cue { position: absolute; left: max(24px, calc((100% - 1152px)/2)); bottom: 36px; z-index: 6; display: inline-flex; align-items: center; gap: 26px; font-size: 13px; color: #a0a0a0; }
.master-scroll-cue span { font-size: 24px; color: #ededed; }
.master-home .master-eyebrow { margin: 0 0 24px; color: var(--master-accent); font-size: 12px; font-weight: 500; letter-spacing: .03em; }
.master-home .master-partners h2,
.master-home .master-perspective h2,
.master-home .master-contact h2 { margin: 0; font-size: clamp(48px,5.4vw,78px); line-height: 1.02; letter-spacing: -.055em; }
.master-offerings { position: relative; z-index: 6; padding: 40px 0 112px; background: #000; scroll-margin-top: 80px; }
.master-offerings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.master-offering {
  --offering-accent: #91d5ff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  border-radius: 24px;
  background: #101a22;
  color: #f5f7fa;
}
.master-offering + .master-offering {
  --offering-accent: #cdbdff;
  background: #1b1825;
}
/* Editorial labels stay distinct and readable against the two tonal surfaces. */
html:not(#legacy-typeface) body.master-home .master-offering-label,
html:not(#legacy-typeface) body.master-home .master-eyebrow {
  display: block;
  margin-bottom: 24px;
  color: var(--offering-accent, #91d5ff);
  font-family: 'Nova Mono', monospace !important;
  font-size: 24px !important;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html:not(#legacy-typeface) body.master-home .master-eyebrow { font-size: 18px !important; }
.master-offering h2 { margin: 0; color: #f5f7fa; font-size: clamp(30px,3vw,40px); line-height: 1.1; letter-spacing: -.04em; }
.master-offering p { max-width: 420px; margin: 20px 0 0; color: #a0a0a0; font-size: 17px; line-height: 1.6; }
.master-offering-link, .master-text-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; color: #ededed; font-size: 14px; font-weight: 500; }
.master-offering-link span, .master-text-link span { transition: transform 180ms ease; }
.master-offering-link:hover, .master-text-link:hover { color: var(--master-accent); }
.master-offering-link:hover span, .master-text-link:hover span { transform: translateX(4px); }
.master-offering-intro { min-height: 210px; }
.master-capabilities { width: 100%; padding-top: 24px; }
.master-capabilities a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 6px;
  min-height: 104px;
  align-content: start;
  padding: 16px 28px 16px 0;
  color: #ededed;
}
.master-capabilities a::after {
  content: '→';
  position: absolute;
  top: 16px;
  right: 0;
  color: var(--offering-accent, #91d5ff);
  font-size: 20px;
  line-height: 1.2;
  transition: transform 180ms ease;
}
.master-capabilities a:hover::after { transform: translateX(3px); }
.master-capabilities a span:first-child { font-size: 16px; }
.master-capabilities a span:nth-child(2) { grid-column: 1; color: #a0a0a0; font-size: 14px; }
.master-capabilities a:hover span:first-child { color: var(--offering-accent); }
body.master-home .master-offering > .btn { align-self: flex-start; display: inline-flex; justify-content: center; align-items: center; min-height: 50px; max-width: 100%; margin-top: 28px; padding: 14px 24px !important; border: 0 !important; border-radius: 999px !important; background: #f7f7f7 !important; color: #111 !important; font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; }
body.master-home .master-offering > .btn:hover { background: #dedede !important; }
.master-partners { padding: 76px 0; background: #0b0d10; border-block: 1px solid #242424; }
.master-partners-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
/* Match the visible marks, compensating for each source image's internal padding. */
.master-client-logos { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: center; gap: 28px; margin-top: 44px; }
.master-client-logo { display: grid; place-items: center; min-width: 0; height: 64px; }
.master-client-mark { position: relative; display: block; width: min(var(--logo-width), 100%); aspect-ratio: var(--logo-ratio); overflow: hidden; }
.master-client-mark img { position: absolute; width: var(--image-width); height: var(--image-height); max-width: none; left: var(--image-left); top: var(--image-top); filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .85; }
.master-partners-action { display: flex; justify-content: center; margin-top: 36px; }
.master-contact { --offering-accent: #cdbdff; }
.master-perspective { padding: 112px 0; }
.master-perspective-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.master-perspective-copy p { margin: 0 0 26px; color: #a0a0a0; font-size: 20px; line-height: 1.6; }
body.master-home .master-secondary-button { display: inline-flex; align-items: center; min-height: 50px; gap: 24px; padding: 14px 24px !important; border: 1px solid #707070 !important; border-radius: 999px !important; background: transparent !important; color: #ededed !important; font-size: 14px; font-weight: 500; }
body.master-home .master-secondary-button:hover { background: #161616 !important; border-color: #aaa !important; }
.master-contact { position: relative; overflow: hidden; padding: 100px 0; background: #081317; border-block: 1px solid #20363d; }
.master-contact::after { content: ''; position: absolute; width: 560px; height: 560px; top: -30px; right: -80px; border: 1px solid #205361; border-radius: 50%; box-shadow: 0 0 0 70px #081317,0 0 0 71px #173e48,0 0 0 140px #081317,0 0 0 141px #112e36; opacity: .6; pointer-events: none; }
.master-contact .container { position: relative; z-index: 1; }
body.master-home .master-contact .btn { display: inline-flex; align-items: center; min-height: 52px; margin-top: 36px; padding: 16px 24px !important; gap: 24px; border: 0 !important; border-radius: 999px !important; background: #fff !important; color: #111 !important; font-size: 14px; font-weight: 500; }
body.master-home .master-contact .btn:hover { background: #dedede !important; }
.master-home :is(.master-offering-link,.master-text-link,.master-capabilities a,.master-scroll-cue):focus-visible { outline: 2px solid var(--master-accent); outline-offset: 6px; }
/* Center the menu independently of the unequal logo and action widths. */
@media (min-width: 1001px) {
  .master-home .nav-inner { position: relative; }
  .master-home .nav-links { position: absolute; left: 50%; transform: translateX(-50%); }
}

/* Compact footer rhythm without shrinking its type or removing link targets. */
.master-home .site-footer { padding: 36px 0 24px; }
.master-home .footer-grid { gap: 32px; margin-bottom: 24px; }
.master-home .footer-grid > div { min-width: 0; }
.master-home .footer-heading { margin-bottom: 10px; }
.master-home .footer-links { gap: 0; }
.master-home .footer-links .footer-link { display: flex; align-items: center; min-height: 32px; }
.master-home .footer-social { gap: 10px; }
.master-home .footer-bottom { gap: 24px; padding-top: 16px; }
.master-home .footer-bottom > div { flex-shrink: 0; flex-wrap: wrap; }
.master-home .footer-bottom .footer-link { white-space: nowrap; }

@media (max-width: 1000px) {
  body.master-home .master-hero .idx-hero-content h1 { font-size: clamp(64px,8.5vw,86px) !important; max-width: 810px; }
  body.master-home .master-hero .idx-hero-media { right: -320px; opacity: .8; }
  .master-offering { padding: 32px 28px; }
  .master-offering-intro { min-height: 240px; }
  .master-capabilities a { min-height: 120px; }
  .master-client-logos { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px 40px; }
  .master-perspective-grid { gap: 40px; }
}
@media (max-width: 700px) {
  body.master-home .master-star-toggle { top: 80px; right: 12px; }
  html[data-theme] body.master-home.home-refined.home-openai-clean .master-hero { min-height: 780px !important; padding: 124px 0 76px !important; }
  body.master-home .master-hero .container { min-height: 508px !important; align-items: flex-start; }
  body.master-home .master-hero .idx-hero-content h1 { font-size: clamp(43px,11.8vw,70px) !important; line-height: 1.02 !important; }
  body.master-home .master-hero .idx-hero-sub { font-size: 17px !important; margin-top: 26px; }
  body.master-home .master-hero .idx-hero-conversion { margin-top: 26px; flex-direction: column; gap: 12px; }
  .master-signup-group { flex: none; width: 100%; }
  .master-services-link { margin-top: 0; }
  .master-reader-trust { margin-top: 28px; }
  .master-reader-logos { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .master-reader-logos img { height: 28px; }
  body.master-home .master-hero .idx-hero-media { top: 360px; right: -205px; bottom: auto; width: 630px; height: 500px; opacity: .7; transform: none; }
  .master-globe-scroll { transform: none !important; }
  .master-offerings { padding: 30px 0 60px; }
  .master-home .master-partners h2, .master-home .master-perspective h2, .master-home .master-contact h2 { font-size: 48px; }
  .master-offerings-grid, .master-perspective-grid { grid-template-columns: 1fr; }
  .master-offerings-grid { row-gap: 24px; }
  .master-offering, .master-offering + .master-offering { display: flex; flex-direction: column; align-items: flex-start; grid-row: auto; padding: 32px 24px; border-radius: 20px; }
  .master-home .master-offering > .btn { align-self: flex-start; }
  .master-offering-intro { min-height: 0; }
  .master-capabilities a { min-height: 0; }
  .master-offering h2 { font-size: clamp(28px, 7vw, 36px); }
  .master-offering .offering-break { display: none; }
  .master-offering p { margin: 20px 0 0; }
  .master-capabilities { margin-top: 0; }
  .master-partners, .master-perspective, .master-contact { padding: 64px 0; }
  .master-partners-heading { align-items: flex-start; flex-direction: column; }
  .master-client-logos { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 32px; gap: 16px 28px; }
  .master-client-logo { height: 56px; }
  .master-partners-action { margin-top: 28px; }
  html:not(#legacy-typeface) body.master-home .master-eyebrow { font-size: 16px !important; }
  .master-perspective-copy p { font-size: 18px; }
  .master-contact::after { right: -460px; }
  .master-home .site-footer { padding: 32px 0 20px; }
  .master-home .footer-grid { gap: 24px 20px; }
  .master-home .footer-bottom { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .master-home *, .master-home *::before, .master-home *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .master-globe-scroll { transform: none !important; }
}

