/* Production Slaunt chrome: header (wordmark, Menu, metal Sign in) and footer.
   Header geometry is from components/figma-landing (a 3731px design canvas scaled
   by --u); footer from sections/site-footer.css. */

:root {
  --f-geist: 'Geist', system-ui, sans-serif;
  --f-geist-mono: 'Geist Mono', ui-monospace, monospace;
  --f-inter: 'Inter', 'Inter Tight', 'Geist', system-ui, sans-serif;
  --f-inter-tight: 'Inter Tight', 'Geist', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-wordmark: 'Neue Haas Display', 'Helvetica Neue', sans-serif;
  /* Same cap production uses (MAX_CANVAS_WIDTH): past 1920px the chrome stops growing. */
  --u: calc(min(100vw, 1920px) / 3731);
}

/* Two fixed layers that move together: the bar (wordmark) sits under the menu
   drawer, the actions (Menu toggle, Sign in) sit over it, as in production. */
.sl-header, .sl-actions {
  position: fixed; left: 0; right: 0; top: 0; height: calc(420 * var(--u));
  transition: transform .3s, opacity .3s;
}
.sl-header { z-index: 90; }
.sl-actions { z-index: 200; pointer-events: none; }
.sl-actions > * { pointer-events: auto; }
.sl-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(#d9d9d9 70%, #d9d9d900); opacity: 1; transition: opacity .3s;
}
.sl-header[data-over="true"]::before { opacity: 0; }
.sl-header[data-hidden="true"], .sl-actions[data-hidden="true"] { transform: translateY(-100%); }
.sl-header[data-hidden="true"] { opacity: 0; }

.sl-wordmark {
  position: absolute; left: calc(123 * var(--u)); top: calc(192 * var(--u));
  font-family: var(--f-wordmark); font-weight: 500; font-size: calc(128 * var(--u));
  letter-spacing: calc(-10.24 * var(--u)); line-height: normal; white-space: nowrap;
  color: #000; text-decoration: none; transition: color .3s;
}
.sl-header[data-over="true"] .sl-wordmark { color: #fff; }

/* Sign in: metal-fx fills the button; the label stays above the metal. */
.sign-in {
  position: absolute; left: calc(2988 * var(--u)); top: calc(216 * var(--u));
  width: calc(526.8 * var(--u)); height: calc(91.2 * var(--u));
  border-radius: calc(16 * var(--u)); text-decoration: none; display: block;
}
.sign-in-slot { position: absolute; inset: 0; }
.sign-in-metal { position: absolute !important; inset: 0; }
.sign-in-metal.metal-fx-root { background: transparent !important; }
.sign-in-metal.metal-fx-root::before, .sign-in-metal.metal-fx-root::after { box-shadow: none !important; }
.sign-in-metal .metal-fx-inner { display: none !important; }
.sign-in-body {
  display: block; width: calc(526.8 * var(--u)); height: calc(91.2 * var(--u)); border-radius: calc(16 * var(--u));
  background: linear-gradient(100deg, #8d8d92, #e9e9ec 35%, #a7a7ad 60%, #f3f3f5 85%, #9a9aa0);
}
.sign-in-core {
  position: absolute; left: calc(292 * var(--u)); top: calc(6 * var(--u));
  width: calc(268 * var(--u)); height: calc(79 * var(--u)); z-index: 2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95) 0%, rgba(255,255,255,.86) 45%, rgba(255,255,255,.45) 75%, rgba(255,255,255,0) 100%);
  filter: blur(calc(4 * var(--u))); pointer-events: none;
}
.sign-in-label {
  position: absolute; left: calc(353 * var(--u)); top: calc(15 * var(--u)); z-index: 3;
  font-family: var(--f-geist); font-weight: 500; font-size: calc(48 * var(--u)); letter-spacing: calc(-0.96 * var(--u));
  line-height: normal; white-space: nowrap; color: #000;
  text-shadow: 0 0 calc(6 * var(--u)) rgba(255,255,255,.9); pointer-events: none;
}

/* Past the cap, Menu and Sign in keep their distance from the right edge instead of
   drifting toward the middle. Up to 1920px this is the same as the design canvas. */
@media (min-width: 1024px) {
  .sl-actions .mldm_toggle { left: calc(100vw - 1073 * var(--u)); }
  .sl-actions .sign-in { left: calc(100vw - 743 * var(--u)); }
}

/* Phones and tablets: a fixed 60px bar with real-size logo, Menu and Sign in. */
@media (max-width: 1023px) {
  .sl-header, .sl-actions { height: 60px; }
  .sl-wordmark { left: 16px; top: 30px; transform: translateY(-50%); font-size: 21px; letter-spacing: -0.05em; line-height: 1; }
  .sign-in { left: auto; right: 16px; top: 13px; width: 92px; height: 34px; border-radius: 6px; }
  .sign-in-body { width: 92px; height: 34px; border-radius: 6px; }
  .sign-in-core { left: 50%; top: 50%; width: 72px; height: 28px; transform: translate(-50%, -50%); }
  .sign-in-label { left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 14px; letter-spacing: -0.01em; }
}

/* ───────── Footer (production) ───────── */
.site-footer { position: relative; z-index: 6; padding-top: 64px; background: #1f160f; color: #fff; }
/* The pre-footer horizon already fades into the footer brown, so the grey-to-brown
   blend production uses after plain pages is only kept when there's no pre-footer. */
.site-footer-blend {
  height: clamp(220px, 22vw, 420px); margin-top: -64px; margin-bottom: 24px;
  background: linear-gradient(180deg, #d9d9d9 0%, #d5d3d2 8%, #c9c4c1 17%, #b4aba5 27%, #978a81 38%, #74655b 50%, #54443a 62%, #3a2d24 74%, #2a1f17 86%, #1f160f 100%);
}
.prefooter + .site-footer .site-footer-blend { display: none; }
.site-footer-inner { padding: 0 24px; }
.site-footer-grid { display: grid; gap: 40px; max-width: 1460px; margin: 0 auto; }
.site-footer-logo { font-family: var(--f-wordmark); font-size: 24px; font-weight: 500; letter-spacing: -0.06em; color: #fff; text-decoration: none; }
.site-footer-heading { margin: 0 0 12px; font-family: var(--f-geist); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); }
.site-footer-link { display: block; padding: 7px 0; font-family: var(--f-geist); font-size: 15px; color: rgba(255,255,255,.6); text-decoration: none; transition: color 150ms ease; }
.site-footer-link:hover { color: #fff; }
.site-footer-aec {
  display: flex; align-items: center; gap: .35em; max-width: 1460px; margin: 56px auto 0;
  font-family: var(--f-serif); font-size: clamp(32px, 3.6vw, 64px); letter-spacing: -0.04em; line-height: 1.3; color: rgba(255,255,255,.88);
}
.site-footer-aec a { display: inline-flex; align-items: center; gap: .35em; color: inherit; text-decoration: none; transition: color 200ms ease; }
.site-footer-aec a:hover { color: #fff; }
.site-footer-aec a:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 4px; border-radius: 4px; }
.site-footer-aec-logo {
  flex: none; width: .82em; height: calc(.82em * 61.3555 / 105); background: currentColor;
  -webkit-mask: url('../assets/img/ellipse193.svg') center / contain no-repeat; mask: url('../assets/img/ellipse193.svg') center / contain no-repeat;
}
.site-footer-legal { max-width: 1460px; margin: 32px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--f-geist); font-size: 13px; color: rgba(255,255,255,.4); }
@media (min-width: 768px) {
  .site-footer-inner { padding: 0 73px; }
  .site-footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; margin-top: 56px; padding-top: 9vw; overflow: hidden; user-select: none; }
.footer-brand-wash {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(180deg, rgba(150,74,26,.6), rgba(70,34,14,.6)), url('../assets/img/apogee-hero.jpg');
  background-blend-mode: color; background-size: cover; background-position: center 26%; opacity: .42;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
}
.footer-dither {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%); mask-image: linear-gradient(180deg, transparent 0%, #000 42%);
  opacity: 0; transition: opacity 700ms ease;
}
.footer-brand.is-bottom .footer-dither { opacity: .6; }
.footer-brand-fade { position: absolute; inset: 0 0 auto 0; height: 192px; pointer-events: none; background: linear-gradient(180deg, #1f160f, transparent); }
.footer-brand-word {
  position: relative; display: block; width: 100%; margin-bottom: -0.08em; text-align: center;
  font-family: var(--f-wordmark); font-weight: 500; line-height: .74; letter-spacing: -0.07em; font-size: clamp(150px, 31vw, 620px);
  background-image: linear-gradient(165deg, rgba(255,196,130,.9) 8%, rgba(214,110,44,.85) 42%, rgba(120,52,20,.9) 88%), url('../assets/img/apogee-hero.jpg');
  background-blend-mode: overlay; background-size: 125% auto, 125% auto; background-position: center 58%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
@media (prefers-reduced-motion: reduce) { .footer-brand .footer-dither { display: none; } }
