/* The landing's three tabs (What's this about, What's 311, Who built me). A tab does not float a window: the whole landing turns into
   that page. The line, the plan button, the dateline and the year slide away, the photograph pulls back under a dusk veil, a charge
   line runs under the header, and the page builds itself in. One picture per page, few words. */
#landing .ld-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease-out);
  background: radial-gradient(120% 90% at 70% 20%, rgba(18,10,12,.6) 0%, rgba(14,8,10,.84) 55%, rgba(10,6,8,.94) 100%); }
#landing .ld-photo { transition: transform 1.4s var(--ease-out); transform-origin: 60% 40%; }
html.ld-tab #landing .ld-veil { opacity: 1; }
html.ld-tab #landing .ld-photo { transform: scale(1.07); }
#landing .ld-sky, #landing .ld-eve, #landing .ld-hit, #landing .ld-cap { transition: opacity .55s var(--ease), transform .7s var(--ease-out); }
html.ld-tab #landing .ld-sky { opacity: 0; transform: translateY(-36px); pointer-events: none; }
html.ld-tab #landing .ld-eve { opacity: 0; transform: translateY(40px); pointer-events: none; }
html.ld-tab #landing .ld-hit, html.ld-tab #landing .ld-cap { opacity: 0 !important; pointer-events: none; }
.ld-terry-top { transition: opacity .6s var(--ease); }
html.ld-tab .ld-terry-top { opacity: 0; }

/* the active tab: an amber line that slides from tab to tab */
#landing .ld-navr { position: relative; }
#landing .ld-ind { position: absolute; bottom: -2px; height: 2px; left: 0; width: 0; background: var(--l-amber-hi); border-radius: 2px; opacity: 0; pointer-events: none;
  transition: left .55s var(--ease-out), width .55s var(--ease-out), opacity .3s var(--ease); }
html.ld-tab #landing .ld-ind { opacity: 1; }
html.ld-tab #landing .ld-link::after { display: none; }
#landing .ld-link[aria-selected="true"] { color: var(--l-amber-hi); }
#landing .ld-charge { position: absolute; left: var(--ld-edge); right: var(--ld-edge); top: calc(var(--ld-t, 22px) + 52px); height: 1px; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--l-amber-hi) 20%, var(--l-amber) 80%, transparent); transform: scaleX(0); transform-origin: left; opacity: 0; }
#landing .ld-charge.run { animation: ldCharge 1.1s var(--ease-out) forwards; }
@keyframes ldCharge { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: .9; } 100% { transform: scaleX(1); opacity: .18; } }

/* the stage */
#ld-stage { position: absolute; left: 0; right: 0; top: calc(var(--ld-t, 22px) + 60px); bottom: 0; z-index: 4; overflow: hidden auto; pointer-events: none; visibility: hidden;
  padding: 0 var(--ld-edge); scrollbar-width: none; overscroll-behavior: contain; display: flex; flex-direction: column; justify-content: flex-start; }
#ld-stage::-webkit-scrollbar { display: none; }
html.ld-tab #ld-stage { pointer-events: auto; visibility: visible; }
#ld-stage .tz-tb { display: none; width: 100%; max-width: 1360px; margin: auto; padding: 2vh 0 9vh; }
#ld-stage .tz-tb.tz-cur { display: block; }
#ld-stage .tz-rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms + 120ms); }
#ld-stage .tz-tb.tz-on .tz-rv { opacity: 1; transform: none; }
#ld-stage .tz-tb.tz-off .tz-rv { opacity: 0; transform: translateY(-12px); transition-duration: .28s; transition-delay: 0s; }
#ld-stage h2 { margin: 0; font: 400 clamp(40px, 4.4vw, 70px)/1.03 var(--display); letter-spacing: -.022em; color: var(--l-paper); max-width: 15ch; }
#ld-stage h2 em { font-style: italic; color: var(--l-tone); }
#ld-stage .tz-c { text-align: center; margin-left: auto; margin-right: auto; max-width: none; }
#ld-stage .tz-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
#ld-stage .tz-back { position: fixed; left: var(--ld-edge); bottom: 22px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; cursor: pointer;
  background: rgba(20,11,12,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(245,236,223,.16); border-radius: 999px;
  font: 500 13px var(--ui); color: var(--l-paper2); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease) .6s, color .3s; }
html.ld-tab #ld-stage .tz-back { pointer-events: auto; }
html.ld-tab #ld-stage .tz-back { opacity: 1; }
#ld-stage .tz-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#ld-stage .tz-back:hover { color: #fff; }

/* ---- What's this about */
.tz-nums { display: flex; gap: clamp(26px, 3vw, 54px); margin-top: clamp(34px, 6vh, 64px); }
.tz-nums b { display: block; font: 400 clamp(40px, 3.6vw, 60px)/1 var(--display); letter-spacing: -.02em; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.tz-nums span { display: block; margin-top: 8px; font: 400 14px var(--ui); color: var(--l-paper2); }
.tz-nums > div { padding-top: 14px; border-top: 1px solid rgba(245,236,223,.22); }
.tz-note { margin: clamp(28px, 5vh, 52px) 0 0; max-width: 46ch; font: 400 15px/1.6 var(--ui); color: var(--l-paper3); }
.tz-loop { display: block; width: 100%; max-width: 560px; margin: 0 auto; overflow: visible; }
.tz-ring { fill: none; stroke: rgba(245,236,223,.14); stroke-width: 1.5; }
.tz-ring2 { fill: none; stroke: var(--l-amber-hi); stroke-width: 1.5; opacity: .7; transition: stroke-dashoffset 2.6s var(--ease-out) .5s; }
.tz-on .tz-ring2 { stroke-dashoffset: 0 !important; }
.tz-orbit { animation: tzOrbit 7s linear infinite; }
.tz-dot { fill: #fff; filter: drop-shadow(0 0 8px rgba(248,207,159,.9)); }
@keyframes tzOrbit { to { transform: rotate(360deg); } }
.tz-bat { fill: var(--l-paper); opacity: .92; }
.tz-nb { fill: #1c1314; stroke: rgba(248,207,159,.55); stroke-width: 1.2; }
.tz-ni { fill: none; stroke: var(--l-amber-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tz-nl { font: 400 22px var(--display); fill: var(--l-paper); }
.tz-node { opacity: 0; transition: opacity .6s var(--ease-out); transition-delay: calc(var(--i) * 260ms + 700ms); }
.tz-on .tz-node { opacity: 1; }

/* ---- What's 311 */
.tz-hero { margin-top: clamp(30px, 5vh, 56px); }
.tz-hero b { display: block; font: 400 clamp(72px, 7.4vw, 124px)/.92 var(--display); letter-spacing: -.035em; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.tz-hero span { display: block; margin-top: 12px; font: 400 15px var(--ui); color: var(--l-paper2); }
.tz-path { display: flex; margin: clamp(34px, 6vh, 64px) 0 0; padding: 0; list-style: none; }
.tz-path li { position: relative; flex: 1; padding-top: 22px; font: 500 14px var(--ui); color: var(--l-paper2); }
.tz-path li:before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: rgba(245,236,223,.4); }
.tz-path li:after { content: ""; position: absolute; left: 14px; right: 6px; top: 4px; height: 1px; background: rgba(245,236,223,.2); }
.tz-path li:last-child:after { display: none; }
.tz-path li.tz-us { color: #fff; }
.tz-path li.tz-us:before { background: var(--l-amber-hi); box-shadow: 0 0 0 5px rgba(248,207,159,.18); }
.tz-path small { display: block; margin-top: 4px; font: italic 400 14px var(--display); color: var(--l-amber-hi); }
.tz-chart { display: block; width: 100%; overflow: visible; }
.tz-chart rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease-out); }
.tz-on .tz-chart rect { transform: scaleY(1); }
.tz-chart text { font: 400 13px var(--ui); fill: var(--l-paper3); }
.tz-legend { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 10px 20px; margin: 16px 0 0; padding: 0; list-style: none; }
.tz-legend li { font: 400 13px var(--ui); color: var(--l-paper2); }
.tz-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; }
.tz-legend b { display: block; margin-top: 4px; font: 400 24px var(--display); color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.tz-src { margin: 14px 0 0; font: 400 12px var(--ui); color: var(--l-paper3); }
.tz-src a { color: var(--l-paper2); }

/* ---- Who built me */
.tz-crew { display: grid; grid-template-columns: 300px 300px; column-gap: 56px; row-gap: 0; justify-content: center; margin-top: clamp(26px, 4.5vh, 50px); perspective: 1400px; }
.tz-crew .tz-lead { grid-column: 1 / -1; justify-self: center; width: 330px; border-color: rgba(248,207,159,.38);
  background: linear-gradient(180deg, rgba(255,232,200,.1), rgba(255,244,230,.03)); }
.tz-tie { grid-column: 1 / -1; display: block; width: 100%; height: clamp(26px, 4vh, 40px); overflow: visible; }
.tz-tie path { fill: none; stroke: rgba(248,207,159,.5); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.tz-badge { position: relative; padding: 30px 26px 26px; text-align: center; border-radius: 20px; background: linear-gradient(180deg, rgba(255,244,230,.07), rgba(255,244,230,.02)); border: 1px solid rgba(245,236,223,.12);
  transition: border-color .4s var(--ease), background .4s var(--ease); }
#ld-stage .tz-tb-who .tz-badge.tz-rv { transform: translateY(36px) rotateX(16deg); }
#ld-stage .tz-tb-who.tz-on .tz-badge.tz-rv { transform: none; }
.tz-badge:hover { border-color: rgba(248,207,159,.4); background: linear-gradient(180deg, rgba(255,244,230,.1), rgba(255,244,230,.03)); }
.tz-em { width: 68px; height: 68px; fill: none; stroke: var(--l-amber-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tz-role { margin-top: 16px; font: 400 30px/1.1 var(--display); color: #fff; }
.tz-nm { margin-top: 8px; font: 500 15px var(--ui); color: var(--l-paper2); }
.tz-nm a { color: var(--l-amber-hi); text-decoration: none; }
.tz-sc { margin-top: 14px; font: italic 400 16px/1.4 var(--display); color: var(--l-tone); }
.tz-built { margin-top: clamp(30px, 5vh, 54px) !important; font: 400 13px var(--ui); color: var(--l-paper3); }

.tz-links { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: clamp(24px, 4vh, 40px); }
.tz-play { display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(248,207,159,.42); background: rgba(255,232,200,.07); color: #fff; font: 500 14px var(--ui); transition: background .3s var(--ease), border-color .3s var(--ease); }
.tz-play i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--l-amber-hi); }
.tz-play i svg { width: 18px; height: 18px; fill: #1c1314; }
.tz-play span { font-weight: 400; color: var(--l-paper3); font-variant-numeric: tabular-nums; }
.tz-play:hover { background: rgba(255,232,200,.14); border-color: rgba(248,207,159,.7); }
.tz-gh { display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--ui); color: var(--l-paper2); text-decoration: none; transition: color .3s; }
.tz-gh svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tz-gh:hover { color: #fff; }
#ld-stage .tz-tb-who .tz-built { margin-top: 18px !important; }
.tz-film { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: rgba(8,5,6,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s var(--ease); }
.tz-film.on { opacity: 1; }
.tz-film[hidden] { display: none; }
.tz-film video { display: block; width: min(92vw, calc(84vh * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 14px; background: #000; box-shadow: 0 30px 90px rgba(0,0,0,.6);
  transform: scale(.97); transition: transform .45s var(--ease-out); }
.tz-film.on video { transform: none; }
.tz-film-x { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(245,236,223,.25); background: rgba(255,244,230,.06); color: #fff; }
.tz-film-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tz-film-x:hover { background: rgba(255,244,230,.14); }
@media (max-height: 820px) and (min-width: 1001px) {
  #ld-stage .tz-tb-who h2 { font-size: clamp(34px, 3.4vw, 50px); }
  .tz-crew { margin-top: 18px; }
  .tz-badge { padding: 20px 22px 18px; }
  .tz-em { width: 50px; height: 50px; }
  .tz-role { margin-top: 10px; font-size: 26px; }
  .tz-sc { margin-top: 8px; }
  .tz-tie { height: 22px; }
  .tz-built { margin-top: 18px !important; }
  .tz-links { margin-top: 18px; }
  #ld-stage .tz-tb-who .tz-built { margin-top: 12px !important; }
}
@media (max-width: 1000px) {
  #ld-stage { justify-content: flex-start; }
  #ld-stage .tz-split { grid-template-columns: 1fr; }
  .tz-crew { grid-template-columns: 1fr; max-width: 360px; row-gap: 18px; margin-left: auto; margin-right: auto; }
  .tz-crew .tz-lead { width: auto; justify-self: stretch; }
  .tz-tie { display: none; }
  .tz-nums { flex-wrap: wrap; }
  #ld-stage .tz-split > * { min-width: 0; }
  #ld-stage .tz-tb { padding-bottom: 96px; }
}
/* phones: the tab pages fit the width */
@media (max-width: 640px) {
  #ld-stage { top: calc(var(--ld-t, 22px) + 92px); }
  .tz-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 14px 18px; }
  .tz-legend b { font-size: 21px; }
}
/* Safari draws the bars' grow-in wrong (scaled SVG rects): there they simply appear */
html.tz-wk .tz-chart rect { transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  #ld-stage .tz-rv, #landing .ld-photo, #landing .ld-sky, #landing .ld-eve, .tz-node, .tz-chart rect { transition: none !important; }
  .tz-orbit { animation: none; }
}

/* while the video or the 2025 plan is open the page itself cannot scroll, whatever the browser does with the event */
html:has(.tz-film.on), html:has(.tz-film.on) body, html:has(#landing .ld-plan.open), html:has(#landing .ld-plan.open) body { overflow: hidden !important; overscroll-behavior: none; }
