/* TIO CINEMA / FIRST-PAINT GEOMETRY LOCK
   Reserve the final Experience Dial composition before JavaScript appends the dial.
   This prevents the hero and dial-console from changing grid geometry after first paint. */
.hero {
  min-height: 100svh;
  padding: 6rem var(--pad) 3rem;
  display: grid;
  grid-template-columns: minmax(270px,.55fr) minmax(700px,1.45fr);
  grid-template-rows: 1fr;
  grid-template-areas: "copy dial";
  gap: clamp(1rem,2vw,2.2rem);
  align-items: center;
  isolation: isolate;
  overflow: clip;
  background: #030503;
}
.hero-copy {
  grid-area: copy;
  width: min(430px,100%);
  align-self: center;
  z-index: 12;
}
.hero h1 {
  font-size: clamp(4.5rem,6.6vw,7.1rem);
  line-height: .78;
}
.hero-deck {
  max-width: 410px;
  margin-top: 1.55rem;
  font-size: clamp(.9rem,1vw,1rem);
  line-height: 1.55;
}
.hero-actions { margin-top: 1.45rem; }
.hero-signal,
.hero-index,
.scroll-cue,
.hero-reactor { display: none !important; }

/* The empty named dial area exists from first paint. When tio-cinema.js appends
   the shell it occupies this already-reserved track instead of expanding the page. */
.experience-dial-shell {
  grid-area: dial;
  position: relative;
  z-index: 8;
  min-width: 0;
  min-height: min(86svh,850px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.dial-backdrop { position: absolute; inset: -12vh -8vw -12vh -7vw; z-index: -3; overflow: hidden; pointer-events: none; }
.dial-console {
  width: min(820px,100%);
  min-height: min(86svh,850px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
}
.dial-topline,
.dial-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; z-index: 9; }
.dial-stage {
  position: relative;
  width: min(62vw,700px);
  aspect-ratio: 1;
  margin: auto;
  display: grid;
  place-items: center;
}
.dial-orbit,
.dial-ring,
.dial-crosshair { position: absolute; inset: 0; }
.dial-item {
  --item-size: clamp(74px,6.6vw,102px);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: var(--item-size);
  min-height: calc(var(--item-size) * 1.18);
  padding: 0;
  border: 0;
  background: transparent;
}
.dial-item__frame { display: block; width: 100%; aspect-ratio: .82; }
.dial-item__meta { display: grid; gap: .2rem; margin-top: .55rem; text-align: center; }
.dial-center {
  position: relative;
  z-index: 7;
  width: 40%;
  min-width: 250px;
  max-width: 310px;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 1.55rem .7rem;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 720px;
    grid-template-areas: "copy" "dial";
    min-height: auto;
    padding-top: 6.5rem;
    gap: 1rem;
  }
  .hero-copy { width: min(760px,100%); }
  .hero h1 { font-size: clamp(4.2rem,15vw,8rem); }
  .experience-dial-shell { min-height: 720px; }
  .dial-stage { width: min(88vw,680px); }
}

@media (max-width: 760px) {
  .hero {
    grid-template-rows: auto 620px;
    padding: 6rem 1rem 2.2rem;
    gap: 1.4rem;
  }
  .hero-copy { width: 100%; padding-right: .6rem; }
  .hero h1 { font-size: clamp(3.9rem,20vw,6.9rem); }
  .hero-deck { max-width: 92%; }
  .hero-actions { gap: .6rem; }
  .experience-dial-shell { min-height: 620px; }
  .dial-console { min-height: 620px; }
  .dial-stage { width: min(100%,390px); }
  .dial-item { --item-size: clamp(58px,16vw,70px); }
  .dial-center { width: 46%; min-width: 150px; max-width: 178px; padding: 1.2rem .25rem; }
}

@media (max-width: 430px) {
  .hero { grid-template-rows: auto 560px; }
  .experience-dial-shell,
  .dial-console { min-height: 560px; }
  .dial-stage { width: min(100%,350px); }
  .dial-item { --item-size: 62px; }
}

/* TIO CINEMA / FOUNDER FINAL VISUAL PASS
   Screenshot-led polish after first-party motion certification.
   Inlined into release.css so the approved geometry is available before first paint. */

/* The original dial used percentage translateY values. Percentage transforms resolve
   against the dial-item itself, which pulled the orbit cards into the centre. These
   fixed stage-relative travel distances restore a true circular selector. */
.dial-item {
  --dial-travel: -225px;
  transform: translate(-50%,-50%) rotate(var(--dial-angle)) translateY(var(--dial-travel)) rotate(calc(var(--dial-angle) * -1)) scale(calc(.72 + var(--dial-depth) * .14)) !important;
}
.dial-item.is-active {
  transform: translate(-50%,-50%) rotate(var(--dial-angle)) translateY(var(--dial-travel)) rotate(calc(var(--dial-angle) * -1)) scale(1.1) !important;
}

/* Give the dial the visual priority promised by the approved opening concept. */
@media (min-width: 1101px) {
  .tio-cinema-v4 .hero.hero-dial-active {
    grid-template-columns: minmax(270px,.55fr) minmax(700px,1.45fr) !important;
    gap: clamp(1rem,2vw,2.2rem) !important;
    padding-top: 6rem !important;
  }
  .tio-cinema-v4 .hero-copy {
    width: min(430px,100%) !important;
  }
  .tio-cinema-v4 .hero h1 {
    font-size: clamp(4.5rem,6.6vw,7.1rem) !important;
    line-height: .78 !important;
  }
  .tio-cinema-v4 .hero-deck {
    max-width: 410px !important;
    margin-top: 1.55rem !important;
    font-size: clamp(.9rem,1vw,1rem) !important;
    line-height: 1.55 !important;
  }
  .tio-cinema-v4 .hero-actions {
    margin-top: 1.45rem !important;
  }
  .experience-dial-shell,
  .dial-console {
    min-height: min(86svh,850px) !important;
  }
  .dial-console {
    width: min(820px,100%) !important;
  }
  .dial-stage {
    width: min(62vw,700px) !important;
  }
  .dial-item {
    --dial-travel: -245px;
    --item-size: clamp(74px,6.6vw,102px) !important;
  }
  .dial-center {
    width: 40% !important;
    min-width: 250px !important;
    max-width: 310px !important;
    padding: 1.55rem .7rem !important;
  }
  .dial-center h2 {
    max-width: 305px !important;
    font-size: clamp(2rem,2.7vw,3.15rem) !important;
    line-height: .9 !important;
    letter-spacing: -.055em !important;
  }
  .dial-center__copy {
    max-width: 285px !important;
    margin-top: .8rem !important;
    font-size: .78rem !important;
    line-height: 1.45 !important;
  }
  .dial-enter {
    margin-top: .9rem !important;
  }
  .dial-item__meta strong {
    font-size: clamp(.54rem,.62vw,.66rem) !important;
  }
}

@media (min-width: 1320px) {
  .dial-item { --dial-travel: -258px; }
}

/* Tablet still uses the full orbit, but gives it enough physical distance from centre copy. */
@media (min-width: 761px) and (max-width: 1100px) {
  .dial-item { --dial-travel: -225px; }
  .dial-center {
    width: 40% !important;
    max-width: 300px !important;
  }
  .dial-center h2 {
    font-size: clamp(2rem,4.6vw,3rem) !important;
  }
}

/* Mobile is a deliberate rotary control, not a squeezed desktop orbit. */
@media (max-width: 760px) {
  .experience-dial-shell {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .dial-stage {
    width: min(100%,390px) !important;
  }
  .dial-item {
    --dial-travel: -132px;
    --item-size: clamp(58px,16vw,70px) !important;
  }
  .dial-item.is-active {
    transform: translate(-50%,-50%) rotate(var(--dial-angle)) translateY(var(--dial-travel)) rotate(calc(var(--dial-angle) * -1)) scale(1.08) !important;
  }
  .dial-center {
    width: 46% !important;
    min-width: 150px !important;
    max-width: 178px !important;
    padding: 1.2rem .25rem !important;
  }
  .dial-center h2 {
    font-size: clamp(1.35rem,6.3vw,1.85rem) !important;
    line-height: .92 !important;
  }
  .dial-center__index {
    top: -.6rem !important;
  }
  .dial-item__meta {
    margin-top: .35rem !important;
  }
  .dial-item__meta strong {
    font-size: .44rem !important;
  }
  .dial-item__meta small {
    font-size: .34rem !important;
  }
  .dial-enter {
    font-size: .4rem !important;
    letter-spacing: .1em !important;
  }
  .return-dial {
    width: 48px !important;
    height: 48px !important;
    right: .7rem !important;
    bottom: max(.7rem,env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 430px) {
  .dial-item { --dial-travel: -118px; }
  .dial-stage { width: min(100%,350px) !important; }
}

/* Mobile menu repair. The menu must be a full-screen editorial layer, not an
   oversized link stack clipped behind the page content. */
@media (max-width: 1100px) {
  .site-header .brand,
  .site-header .menu-button,
  .site-header .sound-toggle {
    position: relative;
    z-index: 4;
  }
  .site-nav {
    z-index: 2 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding-top: 6.4rem !important;
    padding-bottom: 2.4rem !important;
    gap: .75rem !important;
    background: #030503 !important;
    backdrop-filter: none !important;
  }
  .site-nav a {
    flex: 0 0 auto !important;
    font-size: clamp(2.35rem,7vw,4.8rem) !important;
    line-height: .9 !important;
  }
  .site-nav .nav-cta {
    width: auto !important;
    margin-top: 1rem !important;
    padding: .9rem 1.05rem !important;
    font-size: .65rem !important;
    line-height: 1 !important;
  }
}

@media (max-width: 760px) {
  .site-nav {
    padding: 5.7rem 1.15rem max(2rem,env(safe-area-inset-bottom)) !important;
    gap: .58rem !important;
  }
  .site-nav a {
    font-size: clamp(2.15rem,10.5vw,3.35rem) !important;
  }
  .site-nav .nav-cta {
    margin-top: .8rem !important;
    font-size: .6rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dial-item,
  .dial-item.is-active { transition: none !important; }
}

/* Gates 7–8: privacy controls and release-layer performance polish. */

.privacy-choice {
  position: fixed;
  z-index: 1200;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(5,7,6,.96);
  box-shadow: 0 28px 90px rgba(0,0,0,.48), 0 0 0 1px rgba(79,159,58,.08) inset;
  backdrop-filter: blur(18px);
}
.privacy-choice[hidden] { display: none !important; }
.privacy-choice strong { display: block; margin: .2rem 0 .55rem; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.privacy-choice p { margin: 0; max-width: 620px; color: #9fa9a1; font-size: .88rem; }
.privacy-choice .eyebrow { color: var(--green); margin-bottom: .35rem; }
.privacy-choice__actions { display: flex; gap: .65rem; flex-wrap: wrap; justify-content: flex-end; }
.privacy-choice__actions .button { min-height: 44px; }

.privacy-reopen {
  position: fixed;
  z-index: 400;
  right: 1rem;
  bottom: 1rem;
  padding: .58rem .72rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5,7,6,.86);
  color: #9da69f;
  font: 800 .56rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.privacy-reopen:hover,
.privacy-reopen:focus-visible { color: var(--white); border-color: rgba(79,159,58,.48); }

html[data-analytics="disabled"] .privacy-reopen { display: none; }

/*
 * Release runtime budget.
 * The grain texture remains visible, but the giant fixed layer no longer repaints
 * four times per second forever. Heavy chapters below the hero are skipped until
 * the browser actually approaches them.
 */
.grain {
  animation: none !important;
  transform: none !important;
  opacity: .05;
}

@supports (content-visibility: auto) {
  .manifesto,
  .experience-worlds,
  .capabilities,
  .divisions,
  .operations,
  .systems,
  .command,
  .field,
  .concepts,
  .proof,
  .managed-work,
  .about,
  .journey,
  .brief,
  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 980px;
  }
}

/*
 * A scrolled header normally uses backdrop-filter. That filter turns the header
 * into the containing block for its fixed navigation child, so opening the mobile
 * menu after scrolling can trap the full-screen nav inside the short header box.
 * Drop the filter only while the menu is open so the nav remains viewport-fixed.
 */
@media (max-width: 1100px) {
  .site-header:has(.site-nav.is-open) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 720px) {
  .privacy-choice { grid-template-columns: 1fr; align-items: start; }
  .privacy-choice__actions { justify-content: stretch; }
  .privacy-choice__actions .button { flex: 1 1 150px; }
  .privacy-reopen { right: .75rem; bottom: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-choice,
  .privacy-reopen { scroll-behavior: auto; }
}