/* EventCut homepage: laid out like an editing app (monitor, timeline, panels), normal scrolling throughout */
html { scroll-behavior: smooth; }
section { position: relative; scroll-margin-top: 80px; }
main { display: block; }
.sec-head { max-width: 1240px; margin: 0 auto 36px; padding: 0 max(24px, 4vw); display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.sec-head h2 { max-width: 16ch; }
.sec-head .lede { max-width: 44ch; }

/* ------------------------------------------------------------ menu bar */
.menubar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(1240px, calc(100% - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 8px 8px 8px 16px; border-radius: 14px; background: rgba(9, 10, 24, .82); border: 1px solid var(--panel-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.pagebar { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.pagebar a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; transition: background .2s, color .2s; }
.pagebar a:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.pagebar a.on { color: #fff; background: rgba(255, 255, 255, .14); }
.nav-actions { display: flex; gap: 6px; }

/* ------------------------------------------------------------ hero */
.hero { max-width: 1320px; margin: 0 auto; padding: 112px max(24px, 4vw) 56px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px 44px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.8rem, 4.8vw, 5rem); max-width: 12ch; margin-bottom: 22px; min-height: 3.8em; letter-spacing: -0.035em; line-height: .95; }
.typed { color: #fff; }
.caret { display: inline-block; width: .07em; height: .82em; margin-left: .06em; vertical-align: -.04em; background: var(--playhead); border-radius: 2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lede { margin-bottom: 30px; color: #E2E1F5; text-shadow: 0 1px 12px rgba(7, 8, 20, .55); }
.sec-head .lede { color: #E2E1F5; text-shadow: 0 1px 12px rgba(7, 8, 20, .55); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.monitor { will-change: transform; }
.monitor .clip-name { font-variant-numeric: tabular-nums; }
.viewer { position: relative; margin: 10px auto; background: #000; border-radius: 6px; overflow: hidden; transition: aspect-ratio .35s var(--ease), width .35s var(--ease); }
.viewer[data-shape="16:9"] { aspect-ratio: 16 / 9; width: calc(100% - 20px); }
.viewer[data-shape="9:16"] { aspect-ratio: 9 / 16; width: min(calc(100% - 20px), 230px); }
.viewer[data-shape="1:1"] { aspect-ratio: 1; width: min(calc(100% - 20px), 380px); }
.viewer video { width: 100%; height: 100%; object-fit: cover; }
.monitor:hover .safe { opacity: 1; }
.sound-btn { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 99px; border: 0; background: rgba(0, 0, 0, .66); color: #fff; font-size: .8rem; font-weight: 600; cursor: pointer; }
.sound-btn .eq { width: 16px; height: 12px; background: linear-gradient(#fff, #fff) 0 50%/3px 40% no-repeat, linear-gradient(#fff, #fff) 6px 50%/3px 90% no-repeat, linear-gradient(#fff, #fff) 12px 50%/3px 60% no-repeat; opacity: .55; }
.sound-btn[aria-pressed="true"] .eq { opacity: 1; animation: eq .8s ease-in-out infinite alternate; }
@keyframes eq { to { background-size: 3px 90%, 3px 35%, 3px 100%; } }
.kbd-hint { margin-left: auto; color: var(--ink-2); }

/* the timeline: the page's one big moment, assembled when the page opens */
.timeline { grid-column: 1 / -1; padding: 0 0 6px; will-change: transform; }
.tl-ruler { height: 44px; margin-left: 46px; position: relative; border-bottom: 1px solid var(--panel-line); font-size: .7rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-ruler .flag { position: absolute; bottom: 4px; font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; color: #0a0b18; background: var(--c); white-space: nowrap; }
.tl-ruler .flag::before { content: ""; position: absolute; left: 0; bottom: -5px; border-left: 5px solid var(--c); border-bottom: 5px solid transparent; }
.tl-ruler span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.tl-ruler span::after { content: ""; position: absolute; left: 50%; top: 14px; width: 1px; height: 6px; background: rgba(255, 255, 255, .3); }
.tl-body { display: flex; }
.tl-heads { width: 46px; flex: none; display: grid; grid-template-rows: 38px 22px 22px 34px 22px; gap: 4px; padding: 8px 0; border-right: 1px solid var(--panel-line); }
.tl-heads span { display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.tl-tracks { position: relative; flex: 1; display: grid; grid-template-rows: 38px 22px 22px 34px 22px; gap: 4px; padding: 8px 0; touch-action: none; cursor: ew-resize; overflow: hidden; }
.trk { position: relative; }
.trk .cl { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); border-radius: 5px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .35); cursor: pointer;
  transform-origin: left center; transition: transform .55s var(--ease), opacity .55s var(--ease); }
.timeline:not(.built) .cl { transform: scaleX(0); opacity: 0; }
.v1 .cl { background: color-mix(in srgb, var(--trk-v) 55%, #0b1230); background-size: cover; background-position: center; }
.v1 .cl::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(61, 123, 255, .65); border-radius: 5px; }
.v1 .cl:hover, .v1 .cl.on { outline: 2px solid #fff; outline-offset: -2px; }
.t1 .cl { background: color-mix(in srgb, var(--trk-t) 70%, #1a1238); }
.a1 .cl { background: color-mix(in srgb, var(--trk-s) 75%, #2a1c06); }
.a3 .cl { background: color-mix(in srgb, var(--trk-x) 80%, #2a0a16); width: 6px; border-radius: 3px; }
.trk .cl b { position: absolute; left: 6px; right: 4px; overflow: hidden; text-overflow: ellipsis; top: 50%; transform: translateY(-50%); font-size: .68rem; font-weight: 700; color: #0a0b18; white-space: nowrap; }
.v1 .cl b { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); top: auto; bottom: 3px; transform: none; }
.a2 { border-radius: 5px; background: color-mix(in srgb, var(--trk-m) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--trk-m) 55%, transparent); overflow: hidden; }
.a2 canvas { width: 100%; height: 100%; transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.timeline:not(.built) .a2 canvas { transform: scaleX(0); }
.tl-markers { position: absolute; inset: 0; pointer-events: none; }
.tl-markers span { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(255, 255, 255, .22); }
.tl-markers span b { position: absolute; top: -1px; left: 4px; font-size: .64rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; color: #0a0b18; background: var(--c); }
.playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 22px; margin-left: -11px; padding: 0; border: 0; background: none; cursor: grab; z-index: 4; }
.playhead::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: var(--playhead); }
.playhead::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); border: 7px solid transparent; border-top: 9px solid var(--playhead); border-bottom: 0; }
.playhead:active { cursor: grabbing; }
.tl-tip { padding: 4px 12px 2px 58px; color: var(--ink-2); min-height: 1.6em; }

/* ------------------------------------------------------------ how it works */
.how { padding: 90px 0 80px; }
.steps { list-style: none; margin: 0 auto; padding: 0 max(24px, 4vw); max-width: 1240px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding-bottom: 24px; overflow: hidden; }
.step > h3, .step > p { padding: 0 20px; }
.step > h3 { margin: 18px 0 8px; }
.step > p { color: var(--ink-2); }
.step-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; color: #0a0b18; font-size: .78rem; font-weight: 800; }
.step-art { height: 150px; margin: 14px 14px 0; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--panel-line); position: relative; overflow: hidden; will-change: transform; }
.art-bin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.art-bin i { border-radius: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--trk-v) 70%, #111), color-mix(in srgb, var(--trk-m) 45%, #111)); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); }
.step.in .art-bin i { opacity: 1; transform: none; }
.art-bin i:nth-child(2) { transition-delay: .05s; } .art-bin i:nth-child(3) { transition-delay: .1s; } .art-bin i:nth-child(4) { transition-delay: .15s; } .art-bin i:nth-child(5) { transition-delay: .2s; }
.art-bin i:nth-child(6) { transition-delay: .25s; } .art-bin i:nth-child(7) { transition-delay: .3s; } .art-bin i:nth-child(8) { transition-delay: .35s; } .art-bin i:nth-child(9) { transition-delay: .4s; }
.art-cut { display: grid; align-content: center; gap: 10px; padding: 16px; }
.art-cut .lane { display: flex; gap: 3px; height: 34px; }
.art-cut .lane i { width: var(--w); border-radius: 4px; background: color-mix(in srgb, var(--trk-v) 65%, #0b1230); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.step.in .art-cut .lane i { transform: none; }
.art-cut .lane i:nth-child(2) { transition-delay: .1s; } .art-cut .lane i:nth-child(3) { transition-delay: .2s; } .art-cut .lane i:nth-child(4) { transition-delay: .3s; } .art-cut .lane i:nth-child(5) { transition-delay: .4s; }
.art-cut .music { height: 22px; border-radius: 4px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--trk-m) 70%, transparent) 0 2px, transparent 2px 4px); -webkit-mask: linear-gradient(90deg, #000, #000); clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .3s; }
.step.in .art-cut .music { clip-path: inset(0 0 0 0); }
.art-render { display: grid; align-content: center; gap: 14px; padding: 16px; }
.art-render .job { display: grid; gap: 6px; font-size: .78rem; color: var(--ink); }
.art-render .job b { font-weight: 600; font-variant-numeric: tabular-nums; }
.art-render .bar { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.art-render .bar i { display: block; height: 100%; width: 0; background: var(--trk-m); transition: width 1.6s var(--ease) .2s; }
.art-render .job + .job .bar i { background: var(--trk-v); transition-delay: .5s; }
.step.in .art-render .bar i { width: 100%; }

/* ------------------------------------------------------------ colour */
.colour { padding: 90px 0; }
.grade { max-width: 1240px; margin: 0 auto; width: calc(100% - 2 * max(24px, 4vw)); }
.grade-body { display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; gap: 0; }
.looks-bin { display: grid; align-content: start; gap: 2px; padding: 8px; border-right: 1px solid var(--panel-line); max-height: 520px; overflow: auto; }
.looks-bin button { display: flex; align-items: center; gap: 9px; text-align: left; padding: 6px 8px; border-radius: 8px; border: 0; background: none; color: var(--ink-2); font-size: .86rem; font-weight: 500; cursor: pointer; }
.looks-bin button img { width: 42px; height: 26px; border-radius: 4px; object-fit: cover; flex: none; }
.looks-bin button:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.looks-bin button[aria-checked="true"] { color: #fff; background: rgba(255, 255, 255, .13); }
.ba { position: relative; aspect-ratio: 16/9; overflow: hidden; margin: 12px; border-radius: 6px; user-select: none; touch-action: none; background: #000; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { transition: opacity .25s; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 44px; margin-left: -22px; cursor: ew-resize; }
.ba-handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: #fff; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; border: 6px solid transparent; transform: translateY(-50%); }
.ba-handle span::before { left: 6px; border-right: 8px solid #222; }
.ba-handle span::after { right: 6px; border-left: 8px solid #222; }
.ba-tag { position: absolute; bottom: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(0, 0, 0, .7); font-size: .78rem; font-weight: 600; }
.ba-tag-l { left: 12px; } .ba-tag-r { right: 12px; }
.scope { padding: 12px; border-left: 1px solid var(--panel-line); display: grid; align-content: start; gap: 8px; }
.scope-head { font-weight: 600; color: var(--ink); }
.scope canvas { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; background: #05060c; border: 1px solid var(--panel-line); }

/* ------------------------------------------------------------ craft: inspector panels */
.craft { padding: 90px 0; }
.inspector { max-width: 1240px; margin: 0 auto; padding: 0 max(24px, 4vw); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.insp { padding-bottom: 24px; overflow: hidden; }
.insp > h3, .insp > p { padding: 0 20px; }
.insp > h3 { margin: 18px 0 8px; font-size: 1.3rem; }
.insp > p { color: var(--ink-2); max-width: 52ch; }
.insp-art { height: 170px; margin: 14px 14px 0; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--panel-line); position: relative; overflow: hidden; }
.art-story .mk { position: absolute; top: 10px; left: calc(var(--x) + 8px); font-size: .7rem; font-weight: 700; color: #0a0b18; padding: 2px 6px; border-radius: 4px; background: #fff; }
.art-story .mk:nth-child(1) { background: var(--sec-hook); } .art-story .mk:nth-child(2) { background: var(--sec-build); color: #fff; } .art-story .mk:nth-child(3) { background: var(--sec-peak); }
.art-story .mk:nth-child(4) { background: var(--sec-emotional); } .art-story .mk:nth-child(5) { background: var(--sec-close); }
.art-story .curve { position: absolute; left: 8px; right: 8px; bottom: 12px; height: 100px;
  background: linear-gradient(180deg, rgba(255, 181, 71, .45), rgba(255, 181, 71, 0));
  clip-path: polygon(0 70%, 12% 30%, 18% 55%, 40% 35%, 52% 4%, 64% 20%, 76% 48%, 88% 40%, 100% 75%, 100% 100%, 0 100%); }
.art-reject { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.art-reject span { border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--trk-v) 65%, #111), color-mix(in srgb, var(--trk-m) 40%, #111)); position: relative; }
.art-reject .x { filter: grayscale(.7) brightness(.55); }
.art-reject .x::after { content: attr(data-why); position: absolute; inset: auto 6px 6px 6px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .8); color: #FF8A95; font-size: .68rem; font-weight: 700; text-align: center; filter: none; }
.art-mixer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 20px; }
.fader { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 6px; }
.fader b { font-size: .72rem; color: var(--ink-2); font-weight: 600; }
.meter { width: 14px; height: 100%; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.meter i { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(0deg, var(--trk-m) 0 65%, var(--trk-s) 65% 88%, var(--playhead) 88%); animation: meter 1.4s ease-in-out infinite alternate; }
.fader:nth-child(2) .meter i { animation-duration: .9s; height: 75%; } .fader:nth-child(3) .meter i { animation-duration: .6s; height: 40%; }
@keyframes meter { to { height: 30%; } }
.art-brand { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px; }
.art-brand span { border-radius: 10px; background: var(--c); }

/* ------------------------------------------------------------ recent work: filmstrip */
.work { padding: 90px 0 110px; }
.work-head { align-items: end; }
.work-tools { display: grid; gap: 8px; justify-items: end; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.filters .chip { min-height: 34px; font-size: .84rem; }
.strip-wrap { position: relative; max-width: 1400px; margin: 0 auto; }
.filmstrip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 22px max(24px, 4vw); scrollbar-width: thin;
  /* sprocket holes along both edges, like film */
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .16) 0 3px, transparent 3.5px) 0 4px / 18px 12px repeat-x,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .16) 0 3px, transparent 3.5px) 0 calc(100% - 4px) / 18px 12px repeat-x,
    rgba(5, 6, 14, .72);
  border-top: 1px solid var(--panel-line); border-bottom: 1px solid var(--panel-line);
}
.filmstrip:focus-visible { outline: 2px solid var(--emerald); outline-offset: -2px; }
.film { flex: none; height: 340px; margin: 0; position: relative; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; scroll-snap-align: start; border: 1px solid rgba(255, 255, 255, .12); }
.film[data-shape="9:16"] { aspect-ratio: 9 / 16; } .film[data-shape="16:9"] { aspect-ratio: 16 / 9; } .film[data-shape="1:1"] { aspect-ratio: 1; } .film[data-shape="4:5"] { aspect-ratio: 4 / 5; }
.film img, .film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film video { opacity: 0; transition: opacity .25s; }
.film.playing video { opacity: 1; }
.film .badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; gap: 6px; }
.film .badges span { padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, .72); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.film figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font-weight: 600; font-size: .92rem; display: grid; }
.film figcaption span { font-weight: 500; font-size: .78rem; color: #D6D5EE; }
.film .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--playhead); }
.film:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.strip-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge-bright); background: rgba(9, 10, 24, .88); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.strip-nav.prev { left: 10px; } .strip-nav.next { right: 10px; }
.strip-nav:disabled { opacity: .3; cursor: default; }
.work-empty { padding: 60px 24px; color: var(--ink-2); }
.feed-more { display: flex; justify-content: center; padding: 18px 0 0; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); margin-right: 8px; vertical-align: middle; }

/* the large player */
.player-modal { background: rgba(3, 4, 12, .82); }
.player-card { width: min(1100px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.pm-viewer { display: grid; place-items: center; background: #000; min-height: 0; flex: 1; }
.pm-viewer video { max-width: 100%; max-height: calc(100vh - 200px); }
.pm-keys { padding: 0 12px 10px; }

/* ------------------------------------------------------------ engine */
.engine { max-width: 1320px; margin: 0 auto; padding: 90px max(24px, 4vw) 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.engine-stage { position: relative; height: 460px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.engine-stage:active { cursor: grabbing; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip3d { position: relative; width: 220px; height: 220px; transform-style: preserve-3d; will-change: transform; }
.chip-face { position: absolute; inset: 0; border-radius: 50px; overflow: hidden; backface-visibility: hidden; box-shadow: 0 0 80px rgba(139, 92, 255, .5); }
.chip-face img { width: 100%; height: 100%; }
.chip-face.front { transform: translateZ(14px); }
.chip-face.back { transform: rotateY(180deg) translateZ(14px); }
.chip3d::before { content: ""; position: absolute; inset: 8px; border-radius: 46px; background: linear-gradient(135deg, #3a2a7a, #1b1240); }
.drag-hint { position: absolute; bottom: 10px; }
.engine-copy { padding: 32px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); }
.engine-copy h2 { margin-bottom: 18px; max-width: 15ch; }
.engine-copy .lede { margin-bottom: 22px; }
.engine-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.engine-list li { padding-left: 28px; position: relative; color: var(--ink-2); }
.engine-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald); transform: rotate(-45deg); }
.engine-dl-line { margin-top: 16px; color: var(--ink-2); }
.engine-dl-line a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ footer + modal */
.foot { display: flex; justify-content: space-between; align-items: center; padding: 28px max(24px, 4vw) 36px; border-top: 1px solid var(--panel-line); background: rgba(5, 6, 14, .7); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .06); margin-bottom: 24px; }
.tab { flex: 1; height: 38px; border-radius: 99px; border: 0; background: none; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: var(--ink); }
.auth-form { display: grid; gap: 14px; }
.modal-card { position: relative; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.auth-done { display: grid; gap: 14px; }

/* reveal: steps rise into place once (switched off for reduced motion) */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .grade-body { grid-template-columns: 1fr; }
  .looks-bin { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-right: 0; border-bottom: 1px solid var(--panel-line); max-height: none; }
  .scope { border-left: 0; border-top: 1px solid var(--panel-line); grid-template-columns: 200px 1fr; }
  .engine { grid-template-columns: 1fr; }
  .monitor { width: min(100%, 760px); }
  .hero-title { min-height: 0; }
}
@media (max-width: 980px) { .pagebar { display: none; } }
@media (max-width: 900px) {
  .steps, .inspector { grid-template-columns: 1fr; }
  .film { height: 280px; }
  .work-tools { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .timeline:not(.built) .cl, .timeline:not(.built) .a2 canvas { transform: none; opacity: 1; }
  .meter i { animation: none; }
}
