/* Mobile-only orange call control; desktop keeps the existing Contact nav link. */
.site-nav__call {
  display: none;
}
.hero-glow__video--stack {
  display: none;
}

.hero-glow__slice:not(:first-of-type) {
  display: none;
}

.hero-glow__slice:first-of-type {
  position: absolute;
  inset: 0;
}

.hero-glow__slice .hero-glow__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SiteLayout scales the hero video 1.04x, which softens the 960px loop on
   desktop. iOS already overrides this; keep desktop 1:1 as well. */
.hero-glow--intro .hero-glow__video {
  transform: none;
}

@media (width <= 767px) {
  .site-modal { z-index:9000 !important; padding:.55rem; }
  .site-modal[open]:not(.site-modal--narrow):not(#forge918-get-updates-modal):not(#get-updates-modal) { align-items:start; }
  .site-modal:not(.site-modal--narrow):not(#forge918-get-updates-modal):not(#get-updates-modal) .site-modal__inner { width:100%; max-height:calc(100dvh - 1.1rem); grid-template-columns:1fr 1fr; gap:.65rem; padding:1rem .85rem; }
  .site-modal:not(.site-modal--narrow) .site-modal__dismiss { z-index:2; position:sticky; grid-column:2; grid-row:1; justify-self:end; top:0; margin-bottom:-2.4rem; }
  .site-modal:not(.site-modal--narrow) .site-modal__business,
  .site-modal:not(.site-modal--narrow) h2,
  .site-modal:not(.site-modal--narrow) .site-modal__lead,
  .site-modal:not(.site-modal--narrow) .site-modal__instruction,
  .site-modal:not(.site-modal--narrow) .site-modal__copied,
  .site-modal:not(.site-modal--narrow) .site-modal__details,
  .site-modal:not(.site-modal--narrow) .site-modal__prompt { grid-column:1 / -1; }
  .site-modal:not(.site-modal--narrow) .site-modal__business { order:1; padding-right:3rem; }
  .site-modal:not(.site-modal--narrow) h2 { order:2; }
  .site-modal:not(.site-modal--narrow) .site-modal__lead { order:3; }
  .site-modal:not(.site-modal--narrow) .site-modal__actions { display:contents; }
  .site-modal:not(.site-modal--narrow) .site-modal-assistant { order:4; min-width:0; min-height:3.4rem; width:100%; font-size:.9rem; }
  .site-modal:not(.site-modal--narrow) .site-modal-assistant img,
  .site-modal:not(.site-modal--narrow) .site-modal-assistant__mark { width:1.35rem; height:1.35rem; }
  .site-modal:not(.site-modal--narrow) .site-modal__instruction { order:5; margin-top:.15rem; font-size:.8rem; }
  .site-modal:not(.site-modal--narrow) .site-modal__copied { order:6; }
  .site-modal:not(.site-modal--narrow) .site-modal__actions > [data-copy-again] { order:7; grid-column:1 / -1; width:100%; }
  .site-modal:not(.site-modal--narrow) .site-modal__actions > [data-modal-close] { order:8; grid-column:1 / -1; width:100%; }
  .site-modal:not(.site-modal--narrow) .site-modal__details { order:9; margin-top:.1rem; }
  .site-modal:not(.site-modal--narrow) .site-modal__prompt { order:10; display:none; max-height:12rem; margin:0; }
  .site-modal:not(.site-modal--narrow) .site-modal__inner:has(.site-modal__details[open]) > .site-modal__prompt { display:block; }

  /* Founding-5 / narrow dialogs: centered card, not the Get Updates 2-col sheet. */
  .site-modal--narrow[open] {
    place-items: center;
    align-items: center;
    justify-items: center;
    padding: 0.7rem;
  }
  .site-modal--narrow .site-modal__inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    width: min(100%, 22.75rem);
    max-height: min(86dvh, 38rem);
    overflow: auto;
    gap: 0.42rem;
    padding: 1rem 0.9rem 0.95rem;
  }
  .site-modal--narrow .site-modal__dismiss {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    margin: 0;
  }
  .site-modal--narrow .site-modal__business {
    padding-right: 2.4rem;
    font-size: 0.68rem;
  }
  .site-modal--narrow h2 {
    margin: 0;
    padding-right: 2.2rem;
    font-size: 1.22rem;
  }
  .site-modal--narrow .site-modal__lead {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .site-modal--narrow .limited-offer-deals {
    gap: 0.22rem;
    margin: 0.1rem 0 0;
  }
  .site-modal--narrow .limited-offer-deals li {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.08rem 0.45rem;
    padding-bottom: 0.26rem;
  }
  .site-modal--narrow .limited-offer-deals__name {
    font-size: 0.84rem;
    line-height: 1.2;
  }
  .site-modal--narrow .limited-offer-deals__prices {
    flex-shrink: 0;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .site-modal--narrow .limited-offer-deals__note {
    font-size: 0.68rem;
    line-height: 1.25;
  }
  .site-modal--narrow .limited-offer-modal__cta {
    width: 100%;
    min-height: 2.6rem;
    margin-top: 0.15rem;
    justify-content: center;
  }
  .page-scene:has(.contact-layout) > .section,
  .page-scene .section:has(.contact-layout) {
    padding-block: 0.55rem 1.75rem;
  }
  .contact-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .contact-layout > .page-intro { display: contents; }
  .contact-layout > .page-intro > .domain-checker { order: 99; margin-top: 1.15rem; }
  .contact-layout .eyebrow {
    margin: 0 0 0.22rem;
  }
  .contact-layout h1 {
    margin: 0;
    font-size: clamp(1.45rem, 7.2vw, 1.85rem);
    line-height: 1.08;
  }
  .contact-layout .page-intro > p,
  .contact-layout > p {
    margin: 0.32rem 0 0;
    line-height: 1.4;
  }
  .contact-notes {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
  }
  .contact-notes ul {
    margin-top: 0.35rem;
    gap: 0.2rem;
  }
  .contact-form-column {
    margin-top: 0.7rem;
  }

  #contact-form {
    scroll-margin-top: 5.25rem;
  }
  .contact-form__turnstile,
  .domain-checker__turnstile {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .cf-turnstile {
    display: flex !important;
    justify-content: center;
    margin-inline: auto;
    width: auto;
  }
  .contact-form__turnstile iframe,
  .domain-checker__turnstile iframe,
  .cf-turnstile iframe {
    margin-inline: auto !important;
  }
  .forge-network-actions { justify-content:center; }
  .forge-network-actions > .button:first-child { order:1; }
  .forge-network-actions > .forge-network-explore { order:2; text-align:center; }
  .forge-network-actions > .forge-network-get-updates { order:3; }
  #packages { scroll-margin-top:7rem !important; }
}

@media (width >= 768px) {
  .forge-network-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:.55rem; }
  .forge-network-actions > a,
  .forge-network-actions > button { width:100%; min-width:0; padding-inline:.55rem; text-align:center; font-size:.75rem; }
  .forge-network-actions > .button:first-child { order:1; }
  .forge-network-actions > .forge-network-explore { order:2; }
  .forge-network-actions > .forge-network-get-updates { order:3; }
}

/* Keep both primary Discovery actions together, with data exploration below. */
.forge-network-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
  gap:.55rem;
}

.forge-network-actions > .button:first-child {
  order:1;
  grid-column:1;
  width:100%;
}

.forge-network-actions > .forge-network-get-updates {
  order:2;
  grid-column:2;
  width:100%;
}

.forge-network-actions > .forge-network-explore {
  order:3;
  grid-column:1 / -1;
  justify-self:center;
  width:auto;
  text-align:center;
}

.footer-attribution__animation:not([src]) {
  visibility:hidden;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav__submenu-toggle {
    pointer-events: none;
    cursor: default;
  }
}

/* Desktop: one submenu slot. Hover/focus must not paint a second panel.
   Paint is gated on aria-expanded only; a later sibling cannot show while an
   earlier item is still expanded, so two panels cannot occupy the screen. */
@media (width >= 1120px) {
  .site-nav .site-nav__item--dropdown:not(:has([data-submenu-toggle][aria-expanded="true"])) .site-nav__dropdown,
  .site-nav .site-nav__item--dropdown:has([data-submenu-toggle][aria-expanded="true"]) ~ .site-nav__item--dropdown .site-nav__dropdown {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 0.2rem);
  }

  .site-nav .site-nav__item--dropdown:has([data-submenu-toggle][aria-expanded="true"]) .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%);
  }
}

/* Limited Offer dock CSS lives in Nav.astro (ELC-only). Do not pad html here. */

@media (width <= 1119px) {
  /* Close X lives in .site-nav__inner (in-flow). Drawer links are position:fixed
     independently. Sticky nav + html overflow:hidden unsticks the header after
     scroll, so the X leaves the viewport while the drawer stays. Pin the bar. */
  .site-nav.site-nav--open {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5000;
    overflow: visible;
  }

  .site-nav.site-nav--open > .site-nav__inner {
    position: relative;
    z-index: 70;
  }

  .site-nav.site-nav--open .site-nav__links {
    top: 4.25rem !important;
  }

  /* Align hamburger/X with submenu carets: same 2.75rem box on the same right inset.
     Call control sits immediately left of the hamburger, same box size. */
  .site-nav > .site-nav__inner,
  .site-nav > .site-shell {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-inline: max(var(--page-gutter, 1rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 0.45rem;
  }

  .site-nav__call {
    display: grid;
    place-items: center;
    grid-column: 2;
    grid-row: 1;
    z-index: 70;
    box-sizing: border-box;
    width: var(--touch-target, 2.75rem);
    height: var(--touch-target, 2.75rem);
    padding: 0.65rem;
    border: 1px solid color-mix(in srgb, var(--color-primary) 65%, var(--color-border));
    border-radius: 0.55rem;
    background: var(--color-primary);
    color: var(--color-primary-fg);
    text-decoration: none;
  }

  .site-nav__call-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    background: currentColor;
    -webkit-mask: url("/icons/phone-call.svg") center / contain no-repeat;
    mask: url("/icons/phone-call.svg") center / contain no-repeat;
  }

  .site-nav__toggle {
    grid-area: 1 / 3;
    justify-self: end;
    width: var(--touch-target, 2.75rem);
    height: var(--touch-target, 2.75rem);
  }

  .site-nav__submenu-toggle {
    width: var(--touch-target, 2.75rem);
    height: var(--touch-target, 2.75rem);
  }

  /* Opacity-only open: the old translateY + overflow:hidden + header reflow felt laggy. */
  .site-nav__links {
    transform: none;
    transition: opacity 0.2s var(--ease-out, cubic-bezier(.22, 1, .36, 1)), visibility 0.2s ease;
  }

  .site-nav--open .site-nav__links {
    transform: none;
  }

  /* Founding dialog lives inside the nav; hide the drawer so it cannot paint over the card. */
  html.site-modal-open .site-nav__links {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html.site-modal-open .site-nav__toggle,
  html.site-modal-open .site-nav__call {
    visibility: hidden;
    pointer-events: none;
  }

  /* Homepage intro: stable svh only. 100dvh resizes with the browser chrome
     and makes the page jump while scrolling. Mobile lock is --forge-vvh below. */
  .hero-glow.hero-glow--intro {
    box-sizing: border-box;
    align-items: stretch;
    height: calc(100svh - 4.25rem);
    min-height: calc(100svh - 4.25rem);
    max-height: calc(100svh - 4.25rem);
    overflow: hidden;
  }

  .hero-glow--intro .hero-glow__media {
    display: block;
  }

  .hero-glow--intro .hero-glow__scrim {
    position: absolute;
    inset: 0;
  }

  /* One Y-offset for the whole intro: center the content stack in the full-height hero.
     Lead/trail spacers stay collapsed so settle/dock transforms are not fighting flex growth. */
  .hero-glow--intro .hero-glow__content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    height: 100%;
    padding-top: 0.4rem;
    padding-bottom: 3.35rem;
  }

  .hero-glow--intro .hero-glow__intro-lead,
  .hero-glow--intro .hero-glow__intro-trail,
  .hero-glow--intro.is-settled .hero-glow__intro-lead,
  .hero-glow--intro.is-settled .hero-glow__intro-trail {
    flex: 0 0 0 !important;
    min-height: 0 !important;
    height: 0;
    overflow: hidden;
  }
}

@media (width <= 767px) {
  .hero-glow.hero-glow--intro,
  body.page-discovery .forge-network-hero {
    height: calc(var(--forge-vvh, 100svh) - var(--forge-nav-h, 4.25rem));
    min-height: calc(var(--forge-vvh, 100svh) - var(--forge-nav-h, 4.25rem));
    max-height: calc(var(--forge-vvh, 100svh) - var(--forge-nav-h, 4.25rem));
  }

  /* iOS reports innerHeight / svh / dvh the same wrong way. lvh and
     -webkit-fill-available are the visible first screen and stay stable
     (no Chrome-style toolbar jump). */
  @supports (-webkit-touch-callout: none) {
    .hero-glow.hero-glow--intro,
    body.page-discovery .forge-network-hero {
      height: -webkit-fill-available;
      height: calc(100lvh - var(--forge-nav-h, 4.25rem));
      min-height: -webkit-fill-available;
      min-height: calc(100lvh - var(--forge-nav-h, 4.25rem));
      max-height: none;
    }
  }

  body.page-discovery .forge-network-hero__scroll-arrow {
    bottom: calc(3.35rem + env(safe-area-inset-bottom, 0px));
  }

  /* One stitched mp4 fills the already-absolute media layer. Do not un-hide
     extra slices or invent a grid — that shifted the intro and left black gaps. */
  .hero-glow--intro .hero-glow__media {
    display: block;
  }

  .hero-glow--intro .hero-glow__slice:first-of-type {
    position: absolute;
    inset: 0;
  }

  .hero-glow--intro .hero-glow__slice .hero-glow__video {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
  }
}

/* Get Updates: one centered card on every viewport, using the mobile inner
   layout (2-col assistants, stacked copy/close). Do not top-dock it.
   Discovery's Executive Lawn dialog (#get-updates-modal) uses the same card. */
#forge918-get-updates-modal[open],
#get-updates-modal[open] {
  place-items: center;
  align-items: center;
  justify-items: center;
  padding: 0.7rem;
}

#forge918-get-updates-modal .site-modal__inner,
#get-updates-modal .site-modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(24.75rem, calc(100vw - 1.4rem));
  max-height: min(86dvh, 40rem);
  gap: 0.55rem;
  padding: 1rem 0.9rem 0.95rem;
  overflow: auto;
}

/* Close X matches the gallery lightbox dismiss: red tile, white ×. */
#forge918-get-updates-modal .site-modal__dismiss,
#get-updates-modal .site-modal__dismiss {
  z-index: 2;
  position: sticky;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  top: 0;
  margin-bottom: calc(-1 * 2.4rem);
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 0.55rem;
  background: #f04b3a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(240, 75, 58, 0.28);
  outline: none;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#forge918-get-updates-modal .site-modal__dismiss:hover,
#forge918-get-updates-modal .site-modal__dismiss:focus-visible,
#get-updates-modal .site-modal__dismiss:hover,
#get-updates-modal .site-modal__dismiss:focus-visible {
  background: #ff6a5a;
  filter: none;
  outline: none;
  box-shadow: 0 6px 16px rgba(240, 75, 58, 0.28);
}

#forge918-get-updates-modal .site-modal__dismiss > span,
#get-updates-modal .site-modal__dismiss > span {
  display: block;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  text-indent: 0;
  white-space: nowrap;
  background: none;
  border-radius: 0;
  transform: none;
}

#forge918-get-updates-modal .site-modal__dismiss::after,
#get-updates-modal .site-modal__dismiss::after {
  content: none;
}

#forge918-get-updates-modal .site-modal__business,
#forge918-get-updates-modal h2,
#forge918-get-updates-modal .site-modal__lead,
#forge918-get-updates-modal .site-modal__instruction,
#forge918-get-updates-modal .site-modal__copied,
#forge918-get-updates-modal .site-modal__details,
#forge918-get-updates-modal .site-modal__prompt,
#get-updates-modal .site-modal__business,
#get-updates-modal h2,
#get-updates-modal .site-modal__lead,
#get-updates-modal .site-modal__instruction,
#get-updates-modal .site-modal__copied,
#get-updates-modal .site-modal__details,
#get-updates-modal .site-modal__prompt {
  grid-column: 1 / -1;
}

#forge918-get-updates-modal .site-modal__business,
#get-updates-modal .site-modal__business {
  order: 1;
  padding-right: 3rem;
  font-size: 0.68rem;
}

#forge918-get-updates-modal h2,
#get-updates-modal h2 {
  order: 2;
  margin: 0;
  padding-right: 2.85rem;
  font-size: 1.22rem;
}

#forge918-get-updates-modal .site-modal__lead,
#get-updates-modal .site-modal__lead {
  order: 3;
  font-size: 0.78rem;
  line-height: 1.35;
}

#forge918-get-updates-modal .site-modal__actions,
#get-updates-modal .site-modal__actions {
  display: contents;
}

#forge918-get-updates-modal .site-modal-assistant,
#get-updates-modal .site-modal-assistant {
  order: 4;
  min-width: 0;
  min-height: 3.4rem;
  width: 100%;
  font-size: 0.9rem;
}

#forge918-get-updates-modal .site-modal-assistant img,
#forge918-get-updates-modal .site-modal-assistant__mark,
#get-updates-modal .site-modal-assistant img,
#get-updates-modal .site-modal-assistant__mark {
  width: 1.35rem;
  height: 1.35rem;
}

#forge918-get-updates-modal .site-modal__instruction,
#get-updates-modal .site-modal__instruction {
  order: 5;
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

#forge918-get-updates-modal .site-modal__copied,
#get-updates-modal .site-modal__copied {
  order: 6;
}

#forge918-get-updates-modal .site-modal__actions > [data-copy-again],
#get-updates-modal .site-modal__actions > [data-copy-again] {
  order: 7;
  grid-column: 1 / -1;
  width: 100%;
}

#forge918-get-updates-modal .site-modal__actions > [data-modal-close],
#get-updates-modal .site-modal__actions > [data-modal-close] {
  order: 8;
  grid-column: 1 / -1;
  width: 100%;
}

#forge918-get-updates-modal .site-modal__details,
#get-updates-modal .site-modal__details {
  order: 9;
  margin-top: 0.1rem;
}

#forge918-get-updates-modal .site-modal__prompt,
#get-updates-modal .site-modal__prompt {
  order: 10;
  display: none;
  max-height: 12rem;
  margin: 0;
}

#forge918-get-updates-modal .site-modal__inner:has(.site-modal__details[open]) > .site-modal__prompt,
#get-updates-modal .site-modal__inner:has(.site-modal__details[open]) > .site-modal__prompt {
  display: block;
}

#founding-offer-modal .site-modal__dismiss {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 0.55rem;
  background: #f04b3a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(240, 75, 58, 0.28);
  outline: none;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#founding-offer-modal .site-modal__dismiss:hover,
#founding-offer-modal .site-modal__dismiss:focus-visible {
  background: #ff6a5a;
  filter: none;
  outline: none;
  box-shadow: 0 6px 16px rgba(240, 75, 58, 0.28);
}

#founding-offer-modal .site-modal__dismiss > span {
  display: block;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  text-indent: 0;
  white-space: nowrap;
  background: none;
  border-radius: 0;
  transform: none;
}

#founding-offer-modal .site-modal__dismiss::after {
  content: none;
}

/* Hamburger: Get Updates sits with Facebook/Instagram, same 3rem tile. */
.site-nav__panel-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.site-nav__panel-social--updates {
  appearance: none;
  isolation: isolate;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: #8b5cf617;
  border-color: #5c85b5;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  gap: 0.1rem;
  padding: 0.32rem;
  box-shadow: inset 0 0 18px #8b5cf612, 0 0 0 1px #d977571a, 0 8px 24px #0003, 0 0 16px #10a37f2e, 0 0 18px #4e8cff24;
}

.site-nav__panel-social--updates .get-updates-cluster__logo,
.site-nav__panel-social--updates .get-updates-cluster__mark {
  z-index: 1;
  width: 0.95rem;
  height: 0.95rem;
  position: relative;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Phones: stay in portrait. Orientation.lock is ignored in Safari / HTTP;
   this gate hides the broken landscape reflow so the page cannot be used sideways. */
html.forge-phone.forge-landscape,
html.forge-phone.forge-landscape body {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

html.forge-phone.forge-landscape body::after {
  content: "Turn your phone upright";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: #18181b;
  color: #f4f4f5;
  font-family: Hack, ui-monospace, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 1.5rem;
  pointer-events: all;
}

/* Hero videos must never take pan/seek gestures — that fights page scroll. */
.hero-glow--intro,
.hero-glow--intro .hero-glow__media,
body.page-discovery .forge-network-hero,
body.page-discovery .forge-network-hero__media {
  touch-action: pan-y;
}

video[data-hero-video] {
  -webkit-appearance: none;
  pointer-events: none !important;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* iOS draws a start-playback overlay on paused muted hero loops. Hide it. */
video[data-hero-video]::-webkit-media-controls,
video[data-hero-video]::-webkit-media-controls-enclosure,
video[data-hero-video]::-webkit-media-controls-start-playback-button,
video[data-hero-video]::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Leonardo: two proof/product hero actions + labeled Get Updates.
   Conversion stays in the header gold quote CTA. Socials stay in footer/nav. */
.hero-glow--intro .hero-glow__cta-stack {
  margin-top: 0.85rem;
}

.hero-glow--intro .hero-glow__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.6rem;
  width: 100%;
}

.hero-glow--intro .hero-glow__actions .button {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
}

.hero-glow--intro .hero-glow__get-updates {
  appearance: none;
  isolation: isolate;
  overflow: visible;
  cursor: pointer;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.4rem 0.85rem 0.4rem 0.42rem;
  color: #ffd89a;
  background: color-mix(in srgb, #e0a04a 9%, transparent);
  border-color: color-mix(in srgb, #e0a04a 68%, transparent);
  box-shadow:
    inset 0 0 18px color-mix(in srgb, #e0a04a 7%, transparent),
    0 0 0 1px color-mix(in srgb, #e0a04a 8%, transparent),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 20px color-mix(in srgb, #e0a04a 14%, transparent);
}

.hero-glow--intro .hero-glow__get-updates .get-updates-trigger__cluster {
  width: 1.4rem;
  height: 1.4rem;
  gap: 0.08rem;
}

.hero-glow--intro .hero-glow__get-updates .get-updates-trigger__cluster .get-updates-cluster__logo,
.hero-glow--intro .hero-glow__get-updates .get-updates-trigger__cluster .get-updates-cluster__mark {
  width: 0.6rem;
  height: 0.6rem;
}

.hero-glow--intro .hero-glow__get-updates:after {
  display: none;
}

.hero-glow--intro .hero-glow__get-updates:before {
  content: "";
  pointer-events: none;
  z-index: 0;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 135deg,
    #10a37f 0deg,
    #d97757 90deg,
    #4e8cff 180deg,
    #c55bff 270deg,
    #10a37f 360deg
  );
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-glow--intro .hero-glow__get-updates .get-updates-trigger__cluster,
.hero-glow--intro .hero-glow__get-updates .get-updates-trigger__label {
  position: relative;
  z-index: 1;
}

.hero-glow--intro .hero-glow__get-updates:is(:hover, :focus-visible) {
  color: #ffe7bc;
  background: color-mix(in srgb, #e0a04a 16%, transparent);
  border-color: color-mix(in srgb, #e0a04a 82%, white 8%);
  box-shadow:
    inset 0 0 20px color-mix(in srgb, #e0a04a 12%, transparent),
    0 0 0 1px color-mix(in srgb, #e0a04a 16%, transparent),
    0 12px 28px #00000042,
    0 0 22px color-mix(in srgb, #e0a04a 22%, transparent);
}

@media (width <= 767px) {
  .hero-glow--intro .hero-glow__cta-stack {
    margin-top: 0.55rem;
  }

  .hero-glow--intro .hero-glow__actions {
    gap: 0.42rem 0.48rem;
  }

  .hero-glow--intro .hero-glow__actions .button {
    min-height: 2.4rem;
    padding: 0.45rem 0.72rem;
    font-size: 0.88rem;
  }

  .hero-glow--intro .hero-glow__get-updates {
    min-height: 2.4rem;
    padding: 0.35rem 0.72rem 0.35rem 0.38rem;
  }
}

/* After lockup settle: 2x the copy/type/CTA reveal. Webp, swipe, kicker, and
   settle transform stay at their original durations. */
.hero-glow--intro.is-copy-ready .hero-glow__message {
  transition: opacity 0.36s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.hero-glow--intro.is-body-ready .hero-glow__copy {
  transition: opacity 0.18s ease, transform 0.21s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}

.hero-glow--intro .hero-glow__actions .button.is-intro-visible {
  transition: opacity 0.12s ease, transform 0.16s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
    border-color 0.1s ease, background 0.1s ease, color 0.1s ease, box-shadow 0.1s ease;
}

/* Footer Navigation + About share one centered column on the phone so
   headings and chevron lists share a left edge. display:contents on
   desktop keeps the 3-track space-between grid. */
.footer-redesign__nav-stack,
.footer-redesign__nav-pair {
  display: contents;
}

@media (width <= 767px) {
  .footer-redesign__nav-pair {
    display: grid;
    grid-template-columns: max-content;
    justify-content: center;
    justify-items: center;
    align-items: start;
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
  }

  .footer-redesign__grid nav.footer-redesign__navigation {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 100%;
    margin-inline: auto !important;
  }

  .footer-redesign__grid nav.footer-redesign__navigation .footer-redesign__heading {
    display: flex;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    align-self: center;
  }

  .footer-redesign__grid nav.footer-redesign__navigation ul {
    width: max-content !important;
    max-width: 100%;
    margin-inline: auto !important;
    text-align: left;
    align-self: center;
    align-items: flex-start;
  }
}

/* Mill-grain zinc. Matches About empty zinc. Not the legal bar. */
:root {
  --forge-mill-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .88 0 0 0 0 .63 0 0 0 0 .29 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --forge-pre-footer: #111113;
}

html {
  background-color: var(--color-bg, #18181b);
  background-image: var(--forge-mill-grain);
  background-repeat: repeat;
  background-size: 160px 160px;
}

body {
  background-color: var(--color-bg, #18181b);
  background-image: var(--forge-mill-grain);
  background-repeat: repeat;
  background-size: 160px 160px;
}

.section,
.page-scene__content > .section,
.page-scene__content > .pricing-section,
.page-scene__content > .why-choose-forge {
  background-color: var(--color-bg, #18181b);
  background-image: var(--forge-mill-grain);
  background-repeat: repeat;
  background-size: 160px 160px;
}

/* Empty Chassis media plate is #1e1e21 with no grain. It fills every
   page-scene gap (section margins, content padding under the nav). */
.page-scene,
.page-scene__content,
.page-scene__media {
  background-color: var(--color-bg, #18181b);
  background-image: var(--forge-mill-grain);
  background-repeat: repeat;
  background-size: 160px 160px;
}

/* Last content band above the secondary footer (nav/docs lockup).
   Color matches About .about-docs-index. Home hero is not page-scene. */
.page-scene__content > .section:last-of-type,
.page-scene__content > .pricing-section:last-of-type {
  background-color: var(--forge-pre-footer);
  background-image:
    var(--forge-mill-grain),
    radial-gradient(85% 46% at 50% 108%, color-mix(in srgb, #e0a04a 7%, transparent), transparent 58%);
  background-repeat: repeat, no-repeat;
  background-size: 160px 160px, auto;
}

footer.site-footer {
  background-color: var(--color-bg, #18181b);
  background-image: var(--forge-mill-grain);
  background-repeat: repeat;
  background-size: 160px 160px;
}

.footer-redesign__legal-bar {
  background-color: var(--color-footer-bar, #0a0a0a);
  background-image: none;
}

@media print {
  html,
  body,
  .section,
  .page-scene,
  .page-scene__content,
  .page-scene__media,
  footer.site-footer {
    background-image: none;
  }
}
