/* Homepage film direction: actual machinery and people, an expansive Archivo
   headline, and a single brass action. All other pages retain their own chrome. */
.homepage-film {
  --home-gutter: clamp(28px, 4.45vw, 96px);
  --home-width: 1728px;
}
html:has(> .homepage-film) {
  --home-header-expanded: 100px;
  --home-header-compact: 72px;
  scroll-padding-top: var(--home-header-compact);
}
.homepage-film [id] { scroll-margin-top: 24px; }
.homepage-film :is(a, button, summary):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 6px;
}
.home-skip {
  position: fixed;
  top: 12px;
  left: var(--home-gutter);
  z-index: 100;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-180%);
}
.home-skip:focus { transform: translateY(0); }
body > .home-header {
  --home-header-height: var(--home-header-expanded);
  --home-nav-surface: var(--moss-dark);
  --home-nav-rule: rgba(238, 240, 239, .18);
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  isolation: isolate;
  border: 0;
  background: transparent;
  color: var(--paper);
}
body > .home-header[data-sticky-header] { position: fixed; }
.home-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--home-nav-surface);
  box-shadow: inset 0 -1px var(--home-nav-rule);
  opacity: 0;
  transition: opacity 180ms ease-out;
}
.home-header:is([data-header-state="hero"], [data-header-state="page"]) {
  --home-header-height: var(--home-header-compact);
}
.home-header:is([data-header-state="hero"], [data-header-state="page"])::before,
.home-header:has(.home-menu[open])::before { opacity: 1; }
body > .home-header[data-header-state="page"] {
  --home-nav-surface: var(--home-canvas, #f8faf9);
  --home-nav-rule: var(--line);
  color: var(--ink);
}
/* Surface and text change together at the hero boundary, avoiding a low-
   contrast midpoint. Only opacity and compact geometry are interpolated. */
.home-header[data-header-state="page"] :is(a, summary):focus-visible { outline-color: var(--moss); }
.home-header__inner {
  display: flex;
  align-items: center;
  gap: 42px;
  min-height: var(--home-header-height);
  max-width: var(--home-width);
  margin-inline: auto;
  padding-inline: var(--home-gutter);
  position: relative;
  transition: min-height 180ms ease-out;
}
.home-header__inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: var(--home-gutter);
  height: 1px;
  background: rgba(238, 240, 239, .24);
  transition: opacity 180ms ease-out;
}
.home-header:is([data-header-state="hero"], [data-header-state="page"]) .home-header__inner::after { opacity: 0; }
.home-header .brand { flex: none; font-size: 34px; line-height: 1; transition: font-size 180ms ease-out; }
.home-header:is([data-header-state="hero"], [data-header-state="page"]) .brand { font-size: 28px; }
.home-header .brand .sq { height: 7px; width: 7px; margin-left: 4px; }
.home-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.home-nav a, .home-header__cta, .home-menu summary {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.home-nav a { padding-block: 14px; }
.home-nav a:hover { color: var(--brass); }
.home-header[data-header-state="page"] .home-nav a:hover { color: var(--moss); }
.home-header__cta {
  min-height: 44px;
  padding: 12px 19px;
  border: 1px solid rgba(238, 240, 239, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: none;
}
.home-header__cta:hover { color: var(--ink); background: var(--paper); }
.home-header__duration { white-space: nowrap; }
.home-header:is([data-header-state="hero"], [data-header-state="page"]) .home-header__cta {
  border-color: transparent;
  color: var(--ink);
  background: var(--brass);
}
.home-header:is([data-header-state="hero"], [data-header-state="page"]) .home-header__cta:hover { background: #e0af53; }
.home-menu { display: none; }

.future-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 800px;
  min-height: max(760px, 100svh);
  background: var(--moss-dark);
  color: var(--paper);
}
.future-hero__media, .future-hero__shade { position: absolute; inset: 0; z-index: -1; }
.future-hero__media { overflow: hidden; }
.future-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, var(--moss-dark) 100%);
}
.future-hero__poster, .future-hero__poster img, .future-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 44%;
}
.future-hero__video { opacity: 0; transition: opacity .65s ease; }
.future-hero.has-video .future-hero__video { opacity: 1; }
.future-hero__shade {
  background:
    linear-gradient(180deg, rgba(10, 23, 23, .82) 0%, rgba(10, 23, 23, .06) 26%, rgba(10, 23, 23, .2) 46%, rgba(10, 23, 23, .94) 100%),
    linear-gradient(90deg, rgba(10, 23, 23, .75) 0%, rgba(10, 23, 23, .55) 38%, rgba(10, 23, 23, .13) 76%, rgba(10, 23, 23, .04) 100%);
}
.future-hero__body {
  width: 100%;
  max-width: var(--home-width);
  margin-inline: auto;
  padding-inline: var(--home-gutter);
}
.future-hero__body { padding-top: 210px; padding-bottom: 72px; }
.future-hero__audience {
  margin-bottom: 27px;
  color: rgba(238, 240, 239, .85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.future-hero h1 {
  font-size: clamp(68px, 7.15vw, 112px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .99;
  max-width: 13ch;
}
.future-hero__intro {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(17px, 1.28vw, 20px);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(238, 240, 239, .9);
  text-wrap: pretty;
}
.future-hero__actions { margin-top: 32px; display: flex; align-items: center; gap: 30px; }
.future-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  min-height: 56px;
  padding: 17px 23px;
  color: var(--ink);
  background: var(--brass);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: background .18s;
}
.future-hero__cta:hover { background: #e0af53; }
.future-hero__cta svg { flex: none; transition: transform .18s; }
.future-hero__cta:hover svg { transform: translateX(3px); }
.future-hero__secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(238, 240, 239, .42);
}
.future-hero__secondary:hover { text-decoration-color: var(--paper); }

@media (min-width: 1800px) {
  .future-hero { min-height: min(1100px, 100svh); }
  .future-hero__body { padding-bottom: 92px; }
}
@media (max-width: 1100px) {
  .home-header__inner { gap: 28px; }
  .home-nav { gap: 24px; }
}
@media (max-width: 899px) {
  html:has(> .homepage-film) { --home-header-expanded: 84px; --home-header-compact: 64px; }
  .homepage-film { --home-gutter: 28px; }
  .home-header__inner { gap: 24px; }
  .home-header .brand { font-size: 30px; }
  .home-nav, .home-header__cta { display: none; }
  .home-menu { display: block; margin-left: auto; }
  .home-menu summary { display: flex; align-items: center; min-height: 44px; gap: 14px; cursor: pointer; list-style: none; }
  .home-menu summary::-webkit-details-marker { display: none; }
  .home-menu__icon { position: relative; width: 23px; height: 12px; border-block: 1px solid currentColor; }
  .home-menu[open] .home-menu__icon { border: 0; }
  .home-menu[open] .home-menu__icon::before, .home-menu[open] .home-menu__icon::after {
    content: ''; position: absolute; top: 5px; width: 23px; height: 1px; background: currentColor; transform: rotate(45deg);
  }
  .home-menu[open] .home-menu__icon::after { transform: rotate(-45deg); }
  .home-menu__panel {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px var(--home-gutter) 28px;
    max-height: calc(100dvh - var(--home-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--home-nav-surface);
    border-bottom: 1px solid var(--home-nav-rule);
  }
  .home-menu__panel a { padding-block: 15px; font-size: 17px; font-weight: 500; }
  .home-menu__panel .home-menu__call { color: var(--ink); background: var(--brass); padding: 16px 20px; margin-top: 14px; text-align: center; font-weight: 700; font-size: 14px; }
  .home-header:is([data-header-state="hero"], [data-header-state="page"]) .home-header__inner { gap: 8px; }
  .home-header:is([data-header-state="hero"], [data-header-state="page"]) .brand { font-size: 26px; }
  .home-header:is([data-header-state="hero"], [data-header-state="page"]) .home-header__cta {
    display: flex;
    flex: 0 1 auto;
    margin-left: auto;
    min-width: 0;
    max-width: 180px;
    min-height: 44px;
    padding: 8px 10px;
    white-space: normal;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: .015em;
    line-height: 1.25;
  }
  .home-header:is([data-header-state="hero"], [data-header-state="page"]) .home-menu { flex: none; margin-left: 0; }
  .home-header:is([data-header-state="hero"], [data-header-state="page"]) .home-menu summary { justify-content: center; width: 44px; height: 44px; }
  .home-header:is([data-header-state="hero"], [data-header-state="page"]) .home-menu__label { display: none; }
  .future-hero { min-height: max(800px, 100svh); }
  .future-hero__media { bottom: auto; height: clamp(470px, 75vw, 690px); }
  .future-hero__poster img, .future-hero__video { object-position: 50% 12%; }
  .future-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 40, 39, .76) 0%, rgba(23, 40, 39, .68) 17%, rgba(23, 40, 39, .2) 35%, rgba(23, 40, 39, .34) 52%, var(--moss-dark) 100%);
  }
  .future-hero__shade { background: none; }
  .future-hero__body { padding-top: clamp(248px, 32svh, 340px); padding-bottom: 38px; }
  .future-hero__audience { font-size: 10px; letter-spacing: .065em; margin-bottom: 22px; }
  .future-hero h1 { font-size: clamp(36px, 11.4vw, 82px); line-height: 1; letter-spacing: -.05em; }
  .future-hero__intro { font-size: 16px; max-width: 43ch; margin-top: 23px; }
  .future-hero__actions { margin-top: 27px; gap: 24px; }
  .future-hero__cta { padding-inline: 20px; }
}
@media (max-width: 480px) {
  html:has(> .homepage-film) { --home-header-expanded: 76px; }
  .homepage-film { --home-gutter: 22px; }
  .future-hero__audience { max-width: 34ch; font-size: 10px; line-height: 1.6; }
  .future-hero__actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .future-hero__cta { width: 100%; }
}
@media (max-width: 480px) and (max-height: 700px) {
  .future-hero { min-height: 100svh; }
  .future-hero__body { padding-top: 186px; }
  .future-hero__media { height: 390px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .future-hero *, .home-header *, .home-header::before, .home-header *::after { transition: none !important; }
}
