/* Homepage-scoped tokens: keep the application and legal-page palettes intact. */
html:has(.homepage) { color-scheme: only light; }
.homepage {
  --bg-page: #F6F5F2;
  --bg-surface: #EEEDE8;
  --text-primary: #18181B;
  --text-secondary: #3F3F46;
  --text-muted: #52525B;
  --text-inverse: #FFFFFF;
  --home-chrome: #E9E8E2;
  --home-rule: #D1D0C9;
  --border-base: var(--home-rule);
  --accent-primary: var(--accent);
  --home-light-opacity: .7;
  --home-light-inset: 0;
  --home-halo-opacity: .55;
  color-scheme: only light;
  margin: 0; background: var(--bg-page); font-size: 16px;
}
/* The decorative layer gets opacity, never the copy or a shared parent. */
.homepage .hero::before { opacity: var(--home-halo-opacity); }
.homepage .hero-light { inset: var(--home-light-inset); opacity: var(--home-light-opacity); }
.homepage .public-footer { background: var(--home-chrome); }
.homepage *, .homepage *::before, .homepage *::after { box-sizing: border-box; }
.homepage :is(h1,h2,h3,p,ol,ul) { margin: 0; }
.homepage a { text-decoration: none; }
.homepage a:focus-visible, .homepage [tabindex='-1']:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; left: 16px; top: 12px; transform: translateY(-180%); background: var(--bg-surface); border: 1px solid var(--accent); padding: 10px 16px; z-index: 10; }
.skip-link:focus { transform: none; }
.home-header { height: 76px; padding: 12px 40px; display: flex; align-items: center; gap: 32px; background: var(--home-chrome); border-bottom: 1px solid var(--home-rule); }
.home-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-primary); flex-shrink: 0; }
.home-brand:hover { color: var(--text-primary); }
.home-brand svg { flex-shrink: 0; }
.home-brand span { font-weight: 800; font-size: 18px; letter-spacing: .065em; white-space: nowrap; }
.home-nav { display: flex; gap: 28px; margin-left: auto; }
.home-nav a, .home-login { color: var(--text-secondary); font-size: 14px; padding-block: 11px; }
.home-account { display: flex; align-items: center; gap: 26px; }
.home-access { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 9px 17px; border: 1px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 600; }
.home-access:hover { background: var(--accent-light); }
.positioning { position: relative; overflow: hidden; min-height: calc(100svh - 76px); display: flex; align-items: center; }
.positioning-copy { position: relative; z-index: 2; padding: 56px max(6.7vw, 40px) 104px; width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; width: fit-content; }
.brand-mark { width: 6px; height: 6px; background: var(--accent); flex: 0 0 auto; }
.homepage .hero-title { margin-top: 30px; width: fit-content; max-width: 100%; font-size: clamp(76px, 7.6vw, 116px); line-height: 1.02; font-weight: 800; letter-spacing: -.052em; }
.hero-title .accent-line { display: block; color: var(--accent); }
.homepage .hero-subtitle { margin-top: 28px; width: fit-content; font-size: 20px; line-height: 1.55; color: var(--text-secondary); }
.homepage .hero-cta { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; width: fit-content; }
.home-primary { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 52px; padding: 12px 22px; color: var(--text-inverse); background: var(--accent); font-size: 15px; font-weight: 600; transition: background .15s; }
.home-primary:hover { color: var(--text-inverse); background: var(--accent-dark); }
.home-primary span { font-size: 19px; }
.home-secondary { color: var(--text-primary); font-size: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--home-rule); }
.home-secondary:hover { border-color: var(--accent); }
.hero-baseline { position: absolute; bottom: 22px; left: max(6.7vw, 40px); right: max(6.7vw, 40px); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.micro-label, .section-eyebrow, .step-detail, .workflow-ownership { font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; line-height: 1.5; color: var(--text-secondary); }
.hero-baseline a { color: var(--text-secondary); font-size: 12px; padding: 8px 0; }
.hero-baseline a span { margin-left: 24px; }
.product-system { min-height: 100svh; display: flex; flex-direction: column; background: var(--bg-surface); border-top: 1px solid var(--home-rule); scroll-margin-top: 0; }
.system-content { width: 100%; max-width: 1560px; margin-inline: auto; padding: 36px max(6.7vw, 40px) 28px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.system-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.section-eyebrow { color: var(--accent); }
.system-heading h2 { margin-top: 16px; font-size: clamp(38px, 4.05vw, 60px); font-weight: 600; line-height: 1.09; letter-spacing: -.045em; }
.system-heading h2 span { color: var(--text-muted); }
.system-principle { color: var(--text-secondary); font-size: 14px; line-height: 1.65; padding-bottom: 4px; }
.workflow-ownership { display: grid; grid-template-columns: 3fr 1fr; padding-bottom: 14px; }
.workflow-ownership span:last-child { color: var(--accent); padding-left: 24px; }
.workflow { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0; }
.workflow > li { border-top: 1px solid var(--border-strong); padding: 18px 24px 8px 0; position: relative; }
.workflow > li + li { padding-left: 24px; border-left: 1px solid var(--home-rule); }
.workflow > li.human-step { border-top: 2px solid var(--accent); padding-right: 0; }
.step-marker { display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-family: var(--font-mono); font-size: 12px; height: 22px; }
.step-marker > span:last-child { font-size: 20px; }
.workflow h3 { font-size: clamp(23px,2.35vw,34px); font-weight: 600; letter-spacing: -.035em; margin-top: 16px; }
.workflow p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-top: 10px; max-width: 26ch; min-height: 72px; }
.step-detail { display: block; margin-top: 24px; font-size: 9px; letter-spacing: .045em; }
.human-step :is(h3,.step-detail) { color: var(--accent); }
.talent-memory { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 40px; align-items: center; padding: 25px 0; border-block: 1px solid var(--home-rule); scroll-margin-block: 24px; }
.talent-memory h3 { margin-top: 8px; font-size: 28px; font-weight: 600; line-height: 1.16; letter-spacing: -.03em; }
.talent-memory > p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); max-width: 33ch; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; list-style: none; padding: 0; }
.profile-fields li { border-bottom: 1px solid var(--home-rule); padding-block: 8px; font-size: 13px; color: var(--text-secondary); }
@media (min-width: 1024px) and (max-height: 820px) {
  .positioning-copy { padding-top: 36px; padding-bottom: 76px; }
  .homepage .hero-title { font-size: clamp(72px,7vw,104px); margin-top: 22px; }
  .homepage .hero-subtitle { margin-top: 22px; }
  .homepage .hero-cta { margin-top: 26px; }
  .system-content { gap: 24px; padding-top: 32px; padding-bottom: 24px; }
  .system-heading h2 { font-size: 46px; }
  .talent-memory { padding-block: 20px; }
}
@media (max-width: 1023px) {
  .home-header { padding-inline: 24px; gap: 20px; }
  .home-nav { gap: 20px; }
  .home-account { gap: 18px; }
  .positioning-copy { padding-inline: 40px; }
  .hero-baseline { left: 40px; right: 40px; }
  .homepage .hero-title { font-size: clamp(70px,9.6vw,96px); }
  .system-content { padding: 40px; gap: 36px; }
  .system-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .workflow { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 28px; }
  .workflow > li:nth-child(3) { border-left: 0; padding-left: 0; }
  .workflow p { min-height: 48px; }
  .workflow-ownership { display: none; }
  .step-detail { margin-top: 16px; }
  .talent-memory { gap: 24px; }
  .talent-memory h3 { font-size: 25px; }
  .profile-fields { column-gap: 14px; }
}
@media (max-width: 700px) {
  .home-header { height: 108px; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 20px 6px; }
  .home-brand { gap: 8px; }
  .home-brand span { font-size: 14px; letter-spacing: .035em; }
  .home-brand svg { width: 23px; height: 23px; }
  .home-account { gap: 12px; }
  .home-login { font-size: 12px; }
  .home-access { min-height: 38px; padding: 6px 10px; font-size: 12px; gap: 8px; }
  .home-nav { grid-column: 1/-1; grid-row: 2; margin-left: 0; gap: 22px; }
  .home-nav a { font-size: 12px; }
  .positioning { min-height: 0; align-items: flex-start; }
  .positioning-copy { padding: 40px 24px 84px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .08em; }
  .homepage .hero-title { font-size: clamp(48px,12vw,78px); line-height: 1.06; margin-top: 28px; }
  .homepage .hero-subtitle { font-size: 17px; margin-top: 26px; }
  .homepage .hero-cta { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 28px; }
  .home-primary { min-height: 48px; font-size: 14px; padding-inline: 18px; gap: 20px; }
  .home-secondary { font-size: 13px; }
  .hero-baseline { bottom: 22px; left: 24px; right: 24px; }
  .hero-baseline a { font-size: 11px; }
  .hero-baseline a span { margin-left: 12px; }
  .micro-label { font-size: 9px; }
  .system-content { padding: 40px 24px 32px; gap: 32px; }
  .system-heading h2 { font-size: clamp(33px,8vw,48px); }
  .system-principle { font-size: 14px; }
  .workflow { grid-template-columns: 1fr; gap: 0; }
  .workflow > li, .workflow > li + li, .workflow > li:nth-child(3), .workflow > li.human-step { border: 0; border-left: 1px solid var(--home-rule); padding: 0 0 27px 24px; margin-left: 11px; }
  .workflow > li.human-step { border-color: var(--accent); padding-bottom: 0; }
  .step-marker { position: absolute; top: 4px; left: -12px; width: 24px; height: 24px; background: var(--bg-surface); font-size: 11px; }
  .step-marker > :last-child { display: none; }
  .workflow h3 { margin: 0; font-size: 25px; }
  .workflow p { min-height: 0; max-width: 36ch; margin-top: 6px; }
  .step-detail { margin-top: 10px; }
  .talent-memory { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
  .talent-memory h3 br { display: none; }
  .talent-memory > p { max-width: 40ch; }
  .profile-fields { column-gap: 28px; }
}
@media (max-width: 360px) {
  .home-header { padding-inline: 14px; column-gap: 8px; }
  .home-account { gap: 8px; }
  .home-brand span { font-size: 13px; }
  .home-access { padding-inline: 7px; font-size: 11px; }
  .positioning-copy, .system-content { padding-inline: 20px; }
  .hero-baseline { left: 20px; right: 20px; }
}
@media (prefers-reduced-motion: no-preference) { html:has(.homepage) { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { html:has(.homepage) { scroll-behavior: auto; } .home-primary { transition: none; } }
