/* Stellar theme layer: the deep navy frame (header, heroes, page heads, footer) with blue glows and a
   faint starfield, light content between, and the shield's gold: accent words, eyebrows, numbers,
   rules and the real shield (cut from the logo) as a watermark on every dark band.
   Small gold text uses #C9B87A on navy (5.6:1) and #7A6B34 on white (5.3:1); brand gold #B09E5D is for
   rules, outlines and large text. */

:root {
  --gold: #B09E5D; --gold-light: #E3D49B; --gold-on-navy: #C9B87A; --gold-on-light: #7A6B34; --gold-head: #8F7F45;
  --night: #050b1f; --night-2: #0d1630; --hair: #e3e6ee;
  --p-bg: #ffffff; --p-surface: #f2f4fa; --p-ink: #0b1530; --p-muted: #4a5573;
  --p-accent: #1d4ed8; --p-accent-ink: #fff; --p-action: #1d4ed8; --p-action-ink: #fff;
  --p-inv-bg: var(--night); --p-inv-surface: var(--night-2); --p-inv-ink: #f4f7ff; --p-inv-muted: #a7b1c8;
  --p-inv-accent: var(--gold-on-navy); --p-inv-accent-ink: var(--night); --p-inv-action: #2563eb; --p-inv-action-ink: #fff;
  --grad-action: linear-gradient(92deg, #1d4ed8 0%, #0ea5e9 100%);
  --grad-gold: linear-gradient(92deg, #B09E5D 0%, #E3D49B 55%, #C2AE6B 100%);
  --font-display: "Sora", "Mona Sans", system-ui, sans-serif;
  --font-text: "Mona Sans", system-ui, sans-serif;
}

/* type: accent words in the shield's gold */
h1, h2, .page-head h1, .statement { font-family: var(--font-display); }
h1, .page-head h1 { font-weight: 600; letter-spacing: -0.035em; }
h2 { font-weight: 600; letter-spacing: -0.03em; }
h1 em, h2 em, .statement em { font-style: normal; color: var(--gold-head); background: none; -webkit-text-fill-color: currentColor; }
.ground-inverse h1 em, .ground-inverse h2 em, .glow-ground h1 em, .glow-ground h2 em {
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.eyebrow { margin: 0 0 var(--s-4); font: 600 12px/1.5 var(--font-text); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-on-light); }
.ground-inverse .eyebrow, .glow-ground .eyebrow { color: var(--gold-on-navy); }

/* header: dark glass, the white-and-gold logo, a gold rule under the current page */
.nav.nav--tone { --bg: rgb(5 11 31 / .84); background: var(--bg); border-bottom: 1px solid rgb(176 158 93 / .22); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
.nav--tone .nav__logo img { height: 38px; }
.nav--tone .nav__link { color: rgb(244 247 255 / .8); }
.nav--tone .nav__link:hover, .nav--tone .nav__link[aria-current="page"] { color: #fff; }
.nav--tone .nav__link::before, .nav--tone .nav__link[aria-current="page"]::after { background: var(--gold); }
@media (max-width: 639px) { .nav--tone .nav__logo img { height: 34px; } }

/* buttons: the blue gradient pill for the main action, a gold-edged outline beside it */
.btn { border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:active { transform: scale(.98); }
.btn--primary, .btn--navy { background: var(--grad-action); color: #fff; box-shadow: 0 8px 24px -10px rgb(14 165 233 / .7); }
.btn--primary:hover, .btn--navy:hover { background: var(--grad-action); transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgb(14 165 233 / .85); }
.ground-inverse .btn--secondary, .glow-ground .btn--secondary, .btn--line { background: rgb(255 255 255 / .04); color: #fff; border: 1px solid rgb(201 184 122 / .55); }
.ground-inverse .btn--secondary:hover, .glow-ground .btn--secondary:hover, .btn--line:hover { background: rgb(176 158 93 / .14); border-color: var(--gold); }
.btn--navy-line { background: transparent; color: var(--p-ink); border: 1px solid var(--p-ink); }
.btn--navy-line:hover { background: var(--p-ink); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tag { display: inline-flex; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border: 1px solid rgb(176 158 93 / .5); border-radius: 999px; font: 600 11px/1.4 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-on-light); }

/* the night ground: blue glows, a faint starfield and the real shield (gold T included) */
.glow-ground, .shield-band {
  position: relative; isolation: isolate; overflow: hidden; background-color: var(--night);
  background-image: radial-gradient(42% 55% at calc(82% - var(--glow-x, 0%)) calc(8% + var(--glow-x, 0%)), rgb(37 99 235 / .3), transparent 70%), radial-gradient(36% 48% at 10% 92%, rgb(14 165 233 / .16), transparent 70%), radial-gradient(28% 36% at 60% 60%, rgb(176 158 93 / .07), transparent 70%);
}
.glow-ground::before, .shield-band::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; right: -5%; top: 50%; transform: translateY(var(--shield-y, -50%));
  width: min(640px, 52vw); aspect-ratio: 233 / 260; opacity: .06; background: url(../img/shield-light.png) center / contain no-repeat;
}
.glow-ground::after, .shield-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 68% 14%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 78%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 64%, #e3d49b 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 36%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 52%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 88%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 4% 8%, #e3d49b 50%, transparent 51%);
  background-size: 420px 420px;
}

/* home hero (the talent desk window on the night ground) */
.hero.glow-ground .hero__lead, .hero.glow-ground .hero__proof, .hero.glow-ground .hero__dock .muted { color: var(--p-inv-muted); }
.hero.glow-ground .client-logos img { filter: grayscale(1) invert(1) brightness(1.15) contrast(1.1); mix-blend-mode: screen; opacity: .8; }
.hero.glow-ground .hero__art { border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgb(176 158 93 / .35), 0 0 60px -10px rgb(37 99 235 / .55), 0 40px 80px -40px rgb(0 0 0 / .8); }
.hero.glow-ground::before { right: auto; left: 38%; width: min(560px, 44vw); opacity: .05; }

/* inner page heads */
.page-head.ground-inverse { padding-bottom: var(--s-9); }
.page-head.ground-inverse .t-lead, .page-head.ground-inverse .crumbs { color: var(--p-inv-muted); }
.page-head.ground-inverse .page-head__art { background: rgb(255 255 255 / .03); box-shadow: 0 0 0 1px rgb(176 158 93 / .3), 0 0 70px -20px rgb(37 99 235 / .6); }
.page-head.ground-inverse .page-head__art::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(70% 60% at 30% 10%, rgb(59 130 246 / .28), transparent 70%), radial-gradient(60% 60% at 90% 100%, rgb(176 158 93 / .14), transparent 70%); }
.svc__art { box-shadow: 0 0 0 1px rgb(37 99 235 / .12), 0 30px 60px -40px rgb(37 99 235 / .5); }
.page-head--contact .form-panel { background: rgb(255 255 255 / .03); box-shadow: 0 0 0 1px rgb(176 158 93 / .3), 0 0 80px -30px rgb(37 99 235 / .6); }
.page-head--contact .contact-rows a { color: #fff; }
@media (min-width: 1024px) { #contact-form .form-panel { padding: var(--s-6); gap: var(--s-4); } }

/* numbered rows (services): gold numbers on hairlines, the status card on a night panel */
main > section.svc-rows, main > section.desk-band, main > section.roles-band, main > section.faq-band, main > section.stack-band { height: auto; min-height: 0; padding: var(--band) 0; }
.svc-rows__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-9); align-items: start; margin-top: var(--s-7); }
.num-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.num-row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px; gap: var(--s-4); align-items: start; padding: 24px 8px 24px 0; border-bottom: 1px solid var(--hair); color: inherit; text-decoration: none; }
.num-row::before { content: ""; position: absolute; left: -16px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--gold); transform: scaleY(0); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.num-row.is-on::before { transform: scaleY(1); }
.num-row__n { font: 600 15px/1.6 var(--font-display); letter-spacing: .06em; color: var(--gold-on-light); }
.num-row__title { display: block; font: 600 clamp(19px, 1.6vw, 23px)/1.3 var(--font-display); color: var(--p-ink); }
.num-row__text { display: block; margin-top: 6px; color: var(--p-muted); font-size: 15px; line-height: 1.6; }
.num-row__go { align-self: center; color: var(--gold); font-size: 20px; transition: transform .25s ease; }
.num-row:hover .num-row__go, .num-row.is-on .num-row__go { transform: translateX(4px); }
.svc-rows__panel { position: sticky; top: calc(var(--nav) + var(--s-6)); min-height: 440px; border-radius: 20px; padding: var(--s-7); box-shadow: 0 0 0 1px rgb(176 158 93 / .28), 0 30px 70px -40px rgb(5 11 31 / .8); }
.svc-rows__panel::before { right: -18%; width: 90%; opacity: .07; }
.svc-rows__card { position: absolute; inset: var(--s-7); display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.svc-rows__card.is-on { opacity: 1; transform: none; }
.svc-rows__card .d-card { padding: 22px 24px; font-size: 15px; border-radius: 14px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.svc-rows__card .d-card h5 { font: 600 17px/1.3 var(--font-display); color: var(--p-ink); }

/* how it works */
.desk-band { background: var(--p-surface); }
#how .app.fill { flex: none; height: 560px; margin-top: var(--s-7); }
@media (max-width: 1023px) { #how .app.fill { height: 620px; } }

/* stack band */
.stack-band .ic-cell { border-color: rgb(255 255 255 / .1); }
.stack-band .stat-aside .t-stat { color: #fff; }

/* open roles: two columns of numbered rows */
.roles-band .section-head--split { align-items: end; }
.role-rows { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-9); }
.role-rows a { display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; gap: var(--s-3); align-items: center; padding: 20px 0; border-bottom: 1px solid var(--hair); color: inherit; text-decoration: none; }
.role-rows b { display: block; color: var(--p-ink); font-weight: 600; font-size: 17px; line-height: 1.35; }
.role-rows small { display: block; margin-top: 4px; color: var(--p-muted); font-size: 13.5px; }
.role-rows a:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.role-rows a:hover .num-row__go { transform: translateX(4px); }

/* questions: numbered accordion */
.faq-band { background: var(--p-surface); }
.faq-band__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-9); align-items: start; }
.accordion { border-top: 1px solid var(--hair); }
.accordion details { border-bottom: 1px solid var(--hair); }
.accordion summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; gap: var(--s-3); align-items: center; padding: 22px 0; cursor: pointer; list-style: none; font: 600 18px/1.35 var(--font-display); color: var(--p-ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary i { position: relative; width: 16px; height: 16px; justify-self: end; }
.accordion summary i::before, .accordion summary i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--gold); transition: transform .25s ease; }
.accordion summary i::after { transform: rotate(90deg); }
.accordion details[open] summary i::after { transform: rotate(0deg); }
.accordion details p { margin: 0 0 22px 60px; color: var(--p-muted); line-height: 1.7; max-width: 60ch; }

/* closing footer on the night ground */
.footer--night { --bg: var(--night); --surface: var(--night-2); --ink: #f4f7ff; --muted: var(--p-inv-muted); --action: #2563eb; --action-ink: #fff;
  --line: rgb(255 255 255 / .1); --line-strong: rgb(255 255 255 / .2); color: var(--ink); }
.footer--night .closing__cta > .section-head { position: relative; padding: var(--s-8); border-radius: 28px; background: rgb(255 255 255 / .03);
  box-shadow: 0 0 0 1px rgb(176 158 93 / .3), 0 0 80px -30px rgb(37 99 235 / .6); }
.footer--night .close__word { display: none; }
.footer--night a { color: inherit; }
.footer--night .footer__col h4 { color: var(--gold-on-navy); }
.footer--night .footer__col a, .footer--night .footer__lede, .footer--night .footer__legal { color: var(--muted); }
.footer--night .footer__col a:hover { color: #fff; }
.footer--night .socials img, .footer--night .socials svg { filter: brightness(0) invert(1); opacity: .8; }

/* layout: sections grow past their screen instead of overlapping */
@media (max-width: 1023px) {
  footer.closing.footer--night { height: auto; min-height: 0; }
  footer.closing.footer--night > .wrap { height: auto; grid-template-rows: auto auto; }
  .svc-rows__grid, .faq-band__grid { grid-template-columns: minmax(0, 1fr); }
  .svc-rows__panel { display: none; }
  .num-row::before { left: -10px; }
  .role-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing { height: auto; min-height: calc(var(--hm, var(--h, 1)) * 100svh); display: flex; flex-direction: column; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
  .footer--night .closing__cta > .section-head { padding: var(--s-6); border-radius: 20px; }
  .accordion details p { margin-left: 0; }
}
main > section.svc-rows.svc-rows, main > section.desk-band.desk-band, main > section.roles-band.roles-band,
main > section.faq-band.faq-band, main > section.stack-band.stack-band { min-height: 0; }
@media (max-width: 639px) { main > section.svc-rows.svc-rows, main > section.desk-band.desk-band, main > section.roles-band.roles-band, main > section.faq-band.faq-band, main > section.stack-band.stack-band { padding: var(--band) 0; } }

/* how we work: four numbered steps on a gold track */
main > section.steps-band { height: auto; min-height: 0; padding: var(--band) 0; }
main > section.steps-band.steps-band { min-height: 0; }
.step-track { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7); }
.step-track li { position: relative; padding-top: var(--s-6); border-top: 1px solid var(--hair); }
.step-track li::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 2px; background: var(--gold); }
.step-track h3 { margin: var(--s-3) 0 var(--s-3); font: 600 22px/1.25 var(--font-display); color: var(--p-ink); }
.step-track p { margin: 0; color: var(--p-muted); line-height: 1.65; }
@media (max-width: 1023px) { .step-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .step-track { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } main > section.steps-band.steps-band { padding: var(--band) 0; } }

/* ================================================================ motion hooks (assets/js/motion.js)
   html.motion is set in the head when motion is allowed; content waits for GSAP to set its start
   states (html.motion-ready) and shows anyway after 3s if the scripts never run. */
html.motion:not(.motion-ready) :is(.hero, .page-head) { visibility: hidden; animation: motion-safety 0s 3s forwards; }
@keyframes motion-safety { to { visibility: visible; } }
/* the gold sweep across accent words */
.ground-inverse h1 em, .ground-inverse h2 em, .glow-ground h1 em, .glow-ground h2 em {
  background: linear-gradient(100deg, #B09E5D 0%, #E3D49B 40%, #fff3cf 50%, #E3D49B 60%, #C2AE6B 100%); background-size: 260% 100%;
  background-position: calc(100% - var(--sweep, 100%)) 0; -webkit-background-clip: text; background-clip: text;
}
.ground-inverse h1 em div, .glow-ground h1 em div, .ground-inverse h2 em div, .glow-ground h2 em div { background: inherit; background-size: inherit; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* the hero board: one live row at a time */
.hero__art .d-row { transition: background-color .5s ease, box-shadow .5s ease; border-radius: 8px; }
.hero__art .d-row.is-live { background: #f3f6ff; box-shadow: inset 3px 0 0 var(--gold); }
/* how we work: the gold track and the lit steps */
.step-track { position: relative; }
.step-track::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform-origin: left; transform: scaleX(var(--track, 1)); }
html.motion .step-track::after { transform: scaleX(var(--track, 0)); }
.step-track li .num-row__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.step-track li.is-lit .num-row__n, html:not(.motion) .step-track li .num-row__n { background: var(--gold); border-color: var(--gold); color: var(--p-ink); }
.step-track li::before { display: none; }
@media (max-width: 1023px) { .step-track::after { display: none; } }
@media (prefers-reduced-motion: reduce) { html.motion :is(.hero, .page-head) { visibility: visible; animation: none; } }

/* phone menu: the frosted header would become the containing block of the fixed sheet (and clip
   it), so the blur is dropped while the menu is open and the sheet is solid night */
.nav.nav--tone.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; --bg: var(--night); background: var(--night); }
.nav--tone.is-open .nav__links { background: var(--night); }

/* the Services dropdown (desktop panel and phone sheet) on the night ground, gold group labels */
.nav--tone .nav__menu { --bg: var(--night-2); --ink: #f4f7ff; --muted: var(--p-inv-muted); --action: var(--gold-on-navy); --line: rgb(255 255 255 / .1); background: var(--night-2); color: var(--ink); border-top: 1px solid rgb(176 158 93 / .25); }
.nav--tone .nav__menu .t-label { color: var(--gold-on-navy); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.nav--tone .nav__menu a { color: #fff; }
.nav--tone .nav__menu a span { color: var(--p-inv-muted); }
.nav--tone .nav__menu a:hover { color: var(--gold-on-navy); }
.nav--tone.is-open .nav__menu { background: transparent; border-top: 0; }
