:root {
  --sf-black: #070706;
  --sf-ink: #14110f;
  --sf-paper: #f2f0e9;
  --sf-white: #f8f7f2;
  --sf-gold: #ffcb06;
  --sf-cyan: #70d6ff;
  --sf-red: #f2554f;
  --sf-green: #6ce5b1;
}

.section.banner[hidden] {
  display: none !important;
}

.banner-bottom-content {
  display: none !important;
}

.strata-film {
  position: relative;
  width: 100%;
  height: calc(100svh - 104px);
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background: var(--sf-black);
  color: var(--sf-white);
  font-family: 'Inter Tight', Arial, sans-serif;
}

.strata-film::before,
.strata-film::after {
  content: '';
  position: absolute;
  z-index: 30;
  pointer-events: none;
}

.strata-film::before {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 180px rgba(0, 0, 0, 0.82);
}

.strata-film::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 203, 6, 0.22);
  opacity: 0.4;
}

.sf-stage,
.sf-scene,
.sf-atmosphere {
  position: absolute;
  inset: 0;
}

.sf-stage {
  z-index: 2;
  transform: translate3d(var(--sf-x, 0), var(--sf-y, 0), 0);
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sf-atmosphere {
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sf-atmosphere::before {
  content: none;
}

.sf-atmosphere::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.055);
}

.sf-scene {
  z-index: 1;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.01);
  transition:
    opacity 0.7s ease,
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0s linear 0.7s;
}

.sf-scene.is-active {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition:
    opacity 0.85s ease 0.75s,
    transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.75s,
    visibility 0s linear 0.75s;
}

/* Keep each scene's internal choreography at frame zero until its crossfade lands. */
.sf-scene:not(.is-revealed) *,
.sf-scene:not(.is-revealed) *::before,
.sf-scene:not(.is-revealed) *::after {
  animation-play-state: paused !important;
}

.sf-copy {
  position: relative;
  z-index: 12;
  width: min(900px, calc(100% - 64px));
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

.sf-kicker {
  display: block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.46);
  font-family: 'Chivo Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sf-title,
.sf-display,
.sf-final-brand {
  margin: 0;
  color: var(--sf-white);
  font-family: 'Funnel Display', 'Inter Tight', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.sf-title {
  font-size: 64px;
  line-height: 1.02;
}

.sf-subtitle {
  max-width: 720px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 19px;
  line-height: 1.5;
}

.sf-mono {
  font-family: 'Chivo Mono', monospace;
}

.sf-gold {
  color: var(--sf-gold);
}

/* Act 01: The loss */
.sf-loss {
  background: #050504;
}

.sf-loss-copy {
  position: relative;
  min-height: 270px;
  display: grid;
  place-items: center;
  margin-top: -18px;
}

.sf-loss-number {
  position: absolute;
  left: 0;
  width: 100%;
  color: var(--sf-white);
  font-family: 'Funnel Display', sans-serif;
  font-size: 132px;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(18px);
}

.sf-loss-statement,
.sf-loss-cause,
.sf-loss-buried {
  position: absolute;
  left: 0;
  width: 100%;
  opacity: 0;
}

.sf-loss-statement {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: 'Funnel Display', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.sf-loss-cause {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 28px;
}

.sf-loss-buried {
  margin: 0;
  color: var(--sf-gold);
  font-family: 'Funnel Display', sans-serif;
  font-size: 52px;
  font-weight: 700;
}

.sf-loss.is-active .sf-loss-number {
  animation: sf-loss-beat 1.4s 0.25s both;
}

.sf-loss.is-active .sf-loss-statement {
  animation: sf-loss-beat 1.7s 1.55s both;
}

.sf-loss.is-active .sf-loss-cause {
  animation: sf-loss-beat 1.45s 3.25s both;
}

.sf-loss.is-active .sf-loss-buried {
  animation: sf-loss-final 1.15s 4.65s forwards;
}

.sf-document-void {
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 1100px;
  pointer-events: none;
}

.sf-sheet {
  --sf-sheet-image: url('../images/construction-document-atlas-v1.jpg');
  position: absolute;
  width: 172px;
  height: 214px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background-color: #eceae2;
  background-image: var(--sf-sheet-image);
  background-repeat: no-repeat;
  background-size: 204% 204%;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
  filter: brightness(0.68) saturate(0.68);
  opacity: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.sf-sheet.atlas-admin {
  --sf-sheet-image: url('../images/construction-admin-atlas-v1.jpg');
}

.sf-sheet.q-tl { background-position: 0% 0%; }
.sf-sheet.q-tr { background-position: 100% 0%; }
.sf-sheet.q-bl { background-position: 0% 100%; }
.sf-sheet.q-br { background-position: 100% 100%; }

.sf-sheet-1 { top: 9%; left: 7%; transform: translate3d(-70px, 10px, -80px) rotate(-7deg); }
.sf-sheet-2 { top: 15%; right: 8%; transform: translate3d(80px, -10px, -100px) rotate(6deg); }
.sf-sheet-3 { bottom: 6%; left: 13%; transform: translate3d(-50px, 60px, -180px) rotate(5deg); }
.sf-sheet-4 { bottom: 7%; right: 13%; transform: translate3d(40px, 80px, -150px) rotate(-5deg); }
.sf-sheet-5 { top: -9%; left: 32%; transform: translate3d(-20px, -100px, -250px) rotate(3deg); }
.sf-sheet-6 { top: -6%; right: 31%; transform: translate3d(25px, -90px, -220px) rotate(-2deg); }
.sf-sheet-7 { bottom: -16%; left: 38%; transform: translate3d(-20px, 100px, -260px) rotate(-4deg); }
.sf-sheet-8 { bottom: -14%; right: 38%; transform: translate3d(20px, 100px, -240px) rotate(4deg); }

.sf-loss.is-active .sf-sheet {
  animation: sf-sheet-emerge 1.8s 2.15s forwards, sf-sheet-drift 6s 3.95s ease-in-out infinite alternate;
}

.sf-loss.is-active .sf-sheet-2,
.sf-loss.is-active .sf-sheet-5 { animation-delay: 2.3s, 4.1s; }
.sf-loss.is-active .sf-sheet-3,
.sf-loss.is-active .sf-sheet-6 { animation-delay: 2.45s, 4.25s; }
.sf-loss.is-active .sf-sheet-4,
.sf-loss.is-active .sf-sheet-7 { animation-delay: 2.6s, 4.4s; }
.sf-loss.is-active .sf-sheet-8 { animation-delay: 2.75s, 4.55s; }

/* Act 02: Herald */
.sf-herald {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  padding: 90px 8%;
}

.sf-herald-field {
  position: relative;
  height: 520px;
  perspective: 1000px;
}

.sf-herald-document {
  position: absolute;
  overflow: hidden;
  width: 54%;
  height: 82%;
  top: 9%;
  left: 14%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: #ebe9e2 url('../images/construction-document-atlas-v1.jpg') 0% 0% / 204% 204% no-repeat;
  box-shadow: 36px 34px 90px rgba(0, 0, 0, 0.72);
  filter: brightness(0.72) contrast(1.08) saturate(0.72);
  transform: rotateY(8deg) rotateX(2deg) rotate(-2deg);
}

.sf-herald-document::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 203, 6, 0.06);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.2);
}

.sf-read-pulse {
  position: absolute;
  z-index: 5;
  top: 4%;
  bottom: 4%;
  left: 5%;
  width: 1px;
  background: var(--sf-gold);
  box-shadow: 0 0 24px rgba(255, 203, 6, 0.7);
  opacity: 0;
}

.sf-herald.is-active .sf-read-pulse {
  animation: sf-read-document 4.8s 0.45s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.sf-evidence-mark {
  position: absolute;
  z-index: 7;
  padding: 7px 9px;
  border: 1px solid rgba(255, 203, 6, 0.62);
  border-radius: 2px;
  background: rgba(7, 7, 6, 0.84);
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Chivo Mono', monospace;
  font-size: 9px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.sf-evidence-mark strong {
  display: block;
  margin-bottom: 3px;
  color: var(--sf-gold);
  font-size: 10px;
}

.sf-mark-1 { top: 18%; left: 5%; }
.sf-mark-2 { top: 27%; right: 3%; }
.sf-mark-3 { bottom: 27%; left: 2%; }
.sf-mark-4 { bottom: 14%; right: 8%; }

.sf-herald.is-active .sf-evidence-mark {
  animation: sf-rise-in 0.7s forwards;
}
.sf-herald.is-active .sf-mark-1 { animation-delay: 1.2s; }
.sf-herald.is-active .sf-mark-2 { animation-delay: 2s; }
.sf-herald.is-active .sf-mark-3 { animation-delay: 2.8s; }
.sf-herald.is-active .sf-mark-4 { animation-delay: 3.6s; }

.sf-agent-word {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--sf-gold);
  font-family: 'Chivo Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.sf-agent-word::before {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--sf-gold);
  box-shadow: 0 0 12px rgba(255, 203, 6, 0.5);
}

.sf-herald-copy {
  text-align: left;
  opacity: 0;
  transform: translateX(24px);
}

.sf-herald.is-active .sf-herald-copy {
  animation: sf-slide-in 1.2s 1.2s forwards;
}

.sf-herald-copy .sf-subtitle {
  margin-left: 0;
}

.sf-proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.42);
  font-family: 'Chivo Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
}

.sf-proof-list span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  background: var(--sf-gold);
  vertical-align: 1px;
}

/* Act 03: Evidence connects */
.sf-connect {
  padding: 72px 5% 54px;
}

.sf-connect-copy {
  position: absolute;
  z-index: 14;
  top: 72px;
  left: 50%;
  width: min(800px, calc(100% - 48px));
  transform: translateX(-50%);
  text-align: center;
}

.sf-connect-copy .sf-title {
  font-size: 42px;
}

.sf-evidence-map {
  position: relative;
  width: min(1120px, 94vw);
  height: 520px;
  margin: 74px auto 0;
}

.sf-evidence-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sf-evidence-lines path {
  fill: none;
  stroke: rgba(255, 203, 6, 0.72);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(255, 203, 6, 0.3));
}

.sf-connect.is-active .sf-evidence-lines path {
  animation: sf-draw-line 1.3s forwards;
}
.sf-connect.is-active .sf-evidence-lines path:nth-child(1) { animation-delay: 1.2s; }
.sf-connect.is-active .sf-evidence-lines path:nth-child(2) { animation-delay: 1.6s; }
.sf-connect.is-active .sf-evidence-lines path:nth-child(3) { animation-delay: 2s; }
.sf-connect.is-active .sf-evidence-lines path:nth-child(4) { animation-delay: 2.4s; }
.sf-connect.is-active .sf-evidence-lines path:nth-child(5) { animation-delay: 2.8s; }

.sf-evidence-fragment {
  position: absolute;
  width: 210px;
  height: 118px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background-color: #e9e7df;
  background-repeat: no-repeat;
  background-size: 204% 204%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.62);
  filter: brightness(0.68) saturate(0.65);
  opacity: 0;
  transform: translateY(12px);
}

.sf-evidence-fragment::after {
  content: attr(data-evidence);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: rgba(7, 7, 6, 0.9);
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Chivo Mono', monospace;
  font-size: 8px;
  text-transform: uppercase;
}

.sf-frag-drawing { top: 66px; left: 0; background-image: url('../images/construction-document-atlas-v1.jpg'); background-position: 0 0; }
.sf-frag-spec { top: 28px; right: 10px; background-image: url('../images/construction-document-atlas-v1.jpg'); background-position: 100% 100%; }
.sf-frag-schedule { bottom: 40px; left: 60px; background-image: url('../images/construction-document-atlas-v1.jpg'); background-position: 100% 0; }
.sf-frag-rfi { bottom: 24px; right: 48px; background-image: url('../images/construction-admin-atlas-v1.jpg'); background-position: 0 0; }
.sf-frag-cost { bottom: 0; left: 50%; background-image: url('../images/construction-admin-atlas-v1.jpg'); background-position: 0 100%; transform: translate(-50%, 12px); }

.sf-connect.is-active .sf-evidence-fragment {
  animation: sf-rise-in 0.8s forwards;
}
.sf-connect.is-active .sf-frag-drawing { animation-delay: 0.45s; }
.sf-connect.is-active .sf-frag-spec { animation-delay: 0.75s; }
.sf-connect.is-active .sf-frag-schedule { animation-delay: 1.05s; }
.sf-connect.is-active .sf-frag-rfi { animation-delay: 1.35s; }
.sf-connect.is-active .sf-frag-cost { animation: sf-cost-rise 0.8s 1.65s forwards; }

.sf-answer-core {
  position: absolute;
  z-index: 8;
  top: 46%;
  left: 50%;
  width: 230px;
  min-height: 118px;
  transform: translate(-50%, -50%) scale(0.94);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
  border: 1px solid rgba(255, 203, 6, 0.62);
  border-radius: 4px;
  background: rgba(7, 7, 6, 0.94);
  box-shadow: 0 0 70px rgba(255, 203, 6, 0.08), 0 24px 60px rgba(0, 0, 0, 0.72);
  opacity: 0;
}

.sf-connect.is-active .sf-answer-core {
  animation: sf-core-lock 1s 3s forwards;
}

.sf-answer-core small {
  color: rgba(255, 255, 255, 0.42);
  font: 700 8px/1.2 'Chivo Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sf-answer-core strong {
  margin: 8px 0 4px;
  color: var(--sf-white);
  font: 800 24px/1 'Funnel Display', sans-serif;
}

.sf-answer-core span {
  color: var(--sf-gold);
  font: 700 11px/1.4 'Chivo Mono', monospace;
}

/* Act 05: Assay */
.sf-assay {
  padding: 58px 6%;
}

.sf-assay-shell {
  position: relative;
  width: min(1180px, 100%);
  height: 570px;
  margin: 0 auto;
  perspective: 1100px;
}

.sf-takeoff-drawing {
  position: absolute;
  top: 4%;
  left: 0;
  width: 71%;
  height: 88%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: #ebe9e2 url('../images/construction-document-atlas-v1.jpg') 0% 0% / 204% 204% no-repeat;
  box-shadow: 44px 40px 100px rgba(0, 0, 0, 0.68);
  filter: brightness(0.72) contrast(1.08) saturate(0.7);
  transform: rotateY(6deg) rotateX(2deg) translateZ(-20px);
  transform-origin: left center;
  opacity: 0;
}

.sf-assay.is-active .sf-takeoff-drawing {
  animation: sf-drawing-settle 1.2s 0.2s forwards;
}

.sf-scan-line {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--sf-gold);
  box-shadow: 0 0 22px rgba(255, 203, 6, 0.8);
  opacity: 0;
}

.sf-assay.is-active .sf-scan-line {
  animation: sf-scan 3.2s 1s ease-in-out forwards;
}

.sf-detection {
  position: absolute;
  z-index: 5;
  border: 1px solid var(--sf-gold);
  background: rgba(255, 203, 6, 0.08);
  opacity: 0;
  transform: scale(0.88);
}

.sf-detection::before {
  content: attr(data-measure);
  position: absolute;
  left: -1px;
  bottom: 100%;
  padding: 4px 6px;
  background: var(--sf-gold);
  color: var(--sf-ink);
  font: 800 8px/1 'Chivo Mono', monospace;
  white-space: nowrap;
}

.sf-d1 { top: 31%; left: 20%; width: 7%; height: 12%; }
.sf-d2 { top: 27%; left: 44%; width: 7%; height: 13%; }
.sf-d3 { top: 53%; left: 56%; width: 7%; height: 12%; }
.sf-d4 { top: 59%; left: 32%; width: 8%; height: 13%; }
.sf-d5 { top: 64%; left: 65%; width: 7%; height: 11%; }
.sf-zone { top: 33%; left: 29%; width: 25%; height: 21%; border-color: var(--sf-cyan); background: rgba(112, 214, 255, 0.06); }

.sf-assay.is-active .sf-detection {
  animation: sf-detection-lock 0.5s forwards;
}
.sf-assay.is-active .sf-d1 { animation-delay: 1.6s; }
.sf-assay.is-active .sf-d2 { animation-delay: 2s; }
.sf-assay.is-active .sf-d3 { animation-delay: 2.4s; }
.sf-assay.is-active .sf-d4 { animation-delay: 2.8s; }
.sf-assay.is-active .sf-d5 { animation-delay: 3.2s; }
.sf-assay.is-active .sf-zone { animation-delay: 3.6s; }

.sf-assay-copy {
  position: absolute;
  z-index: 9;
  top: 0;
  right: 0;
  width: 31%;
  text-align: left;
  opacity: 0;
  transform: translateX(18px);
}

.sf-assay.is-active .sf-assay-copy {
  animation: sf-slide-in 1s 0.75s forwards;
}

.sf-assay-copy .sf-title {
  font-size: 44px;
}

.sf-boq {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 2%;
  width: 32%;
  border-top: 1px solid rgba(255, 203, 6, 0.55);
  background: rgba(7, 7, 6, 0.92);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.66);
  opacity: 0;
  transform: translateY(18px);
  backdrop-filter: blur(16px);
}

.sf-assay.is-active .sf-boq {
  animation: sf-rise-in 1s 3.65s forwards;
}

.sf-boq-head,
.sf-boq-row,
.sf-boq-total {
  display: grid;
  grid-template-columns: 1fr 56px 90px;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sf-boq-head {
  color: rgba(255, 255, 255, 0.35);
  font: 700 8px/1 'Chivo Mono', monospace;
  text-transform: uppercase;
}

.sf-boq-row {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.sf-boq-row span:nth-child(2),
.sf-boq-row span:nth-child(3),
.sf-boq-head span:nth-child(2),
.sf-boq-head span:nth-child(3) {
  text-align: right;
}

.sf-boq-total {
  min-height: 44px;
  border-bottom: 0;
  color: var(--sf-white);
  font-weight: 700;
}

.sf-boq-total strong {
  grid-column: 2 / 4;
  color: var(--sf-gold);
  text-align: right;
  font-family: 'Chivo Mono', monospace;
}

/* Act 06: Certainty */
.sf-certainty {
  padding: 70px 7%;
  background: #080807;
}

.sf-certainty-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
}

.sf-final-lockup {
  opacity: 0;
  transform: translateY(14px);
}

.sf-certainty.is-active .sf-final-lockup {
  animation: sf-rise-in 1.15s 2.5s forwards;
}

.sf-final-brand {
  color: var(--sf-white);
  font-size: 66px;
  line-height: 0.95;
}

.sf-final-category {
  margin: 14px 0 24px;
  color: var(--sf-gold);
  font-family: 'Chivo Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sf-final-agents {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.sf-final-agents strong {
  color: rgba(255, 255, 255, 0.84);
}

.sf-final-line {
  margin-top: 24px;
  color: var(--sf-white);
  font-family: 'Funnel Display', sans-serif;
  font-size: 23px;
  font-weight: 700;
}

.sf-final-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 0 7px;
  border-bottom: 1px solid rgba(255, 203, 6, 0.52);
  color: var(--sf-gold);
  font-family: 'Chivo Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: color 220ms ease, border-color 220ms ease, gap 220ms ease;
}

.sf-final-cta:hover,
.sf-final-cta:focus-visible {
  gap: 14px;
  border-color: var(--sf-gold);
  color: var(--sf-white);
  outline: none;
}

.sf-controls {
  position: absolute;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.strata-film.is-ready:hover .sf-controls,
.strata-film.is-user-paused .sf-controls,
.strata-film.is-complete .sf-controls,
.sf-controls:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.sf-control {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(7, 7, 6, 0.68);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.sf-control:hover,
.sf-control:focus-visible {
  border-color: rgba(255, 203, 6, 0.72);
  background: rgba(7, 7, 6, 0.88);
  color: var(--sf-gold);
  outline: none;
}

.sf-pause-icon {
  display: flex;
  gap: 4px;
}

.sf-pause-icon i {
  display: block;
  width: 2px;
  height: 12px;
  background: currentColor;
}

.sf-play-icon {
  display: none;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.strata-film.is-user-paused .sf-pause-icon {
  display: none;
}

.strata-film.is-user-paused .sf-play-icon {
  display: block;
}

.sf-replay {
  display: none;
  font: 400 21px/1 Arial, sans-serif;
}

.strata-film.is-complete .sf-playback-toggle {
  display: none;
}

.strata-film.is-complete .sf-replay {
  display: grid;
}

/* Motion */
@keyframes sf-fade-in {
  to { opacity: 1; }
}

@keyframes sf-loss-beat {
  0% { opacity: 0; transform: translateY(16px); }
  15%, 78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes sf-loss-final {
  0% { opacity: 0; transform: translateY(16px); }
  28%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes sf-rise-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sf-cost-rise {
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes sf-slide-in {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes sf-sheet-emerge {
  to { opacity: 0.78; filter: brightness(0.82) saturate(0.72); }
}

@keyframes sf-sheet-drift {
  to { translate: 0 -12px; rotate: 1deg; }
}

@keyframes sf-read-document {
  0% { left: 5%; opacity: 0; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 76%; opacity: 0; }
}

@keyframes sf-draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes sf-signal-run {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes sf-drawing-settle {
  to { opacity: 1; transform: rotateY(4deg) rotateX(1deg) translateZ(0); }
}

@keyframes sf-scan {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes sf-detection-lock {
  to { opacity: 1; transform: scale(1); }
}

@keyframes sf-core-lock {
  to { opacity: 1; transform: scale(1); }
}

.sf-answer-core {
  transform: translate(-50%, -50%) scale(0.94);
}

.sf-connect.is-active .sf-answer-core {
  animation-name: sf-answer-lock;
}

@keyframes sf-answer-lock {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.strata-film.is-paused *,
.strata-film.is-paused *::before,
.strata-film.is-paused *::after {
  animation-play-state: paused !important;
}

@media (max-width: 1024px) {

  .strata-film {
    min-height: 700px;
  }



  .sf-title { font-size: 52px; }


  .sf-loss-number { font-size: 108px; }


  .sf-herald { grid-template-columns: 1fr 0.82fr; padding-inline: 5%; }


  .sf-herald-field { height: 470px; }


  .sf-evidence-map { transform: scale(0.9); }


  .sf-assay-shell { transform: scale(0.92); }
}

@media (max-width: 760px) {

  .strata-film {
    height: calc(100svh - 82px);
    min-height: 680px;
  }



  .sf-copy { width: calc(100% - 36px); }


  .sf-title { font-size: 42px; }


  .sf-subtitle { font-size: 16px; }


  .sf-loss-number { font-size: 94px; }


  .sf-loss-statement { font-size: 31px; }


  .sf-loss-cause { font-size: 22px; }


  .sf-loss-buried { font-size: 38px; }



  .sf-sheet { width: 112px; height: 144px; }


  .sf-sheet-1 { top: 8%; left: -2%; }


  .sf-sheet-2 { top: 14%; right: -4%; }


  .sf-sheet-3 { bottom: 4%; left: 4%; }


  .sf-sheet-4 { bottom: 5%; right: 2%; }


  .sf-sheet-5,
  .sf-sheet-6,
  .sf-sheet-7,
  .sf-sheet-8 { display: none; }



  .sf-herald {
    grid-template-columns: 1fr;
    padding: 76px 24px 36px;
  }


  .sf-herald-field { height: 360px; }


  .sf-herald-document { width: 68%; height: 86%; left: 16%; }


  .sf-herald-copy { margin-top: -18px; text-align: center; }


  .sf-herald-copy .sf-subtitle { margin-left: auto; }


  .sf-agent-word { justify-content: center; }


  .sf-proof-list { justify-content: center; }



  .sf-connect { padding: 64px 16px 28px; }


  .sf-connect-copy { top: 68px; }


  .sf-connect-copy .sf-title { font-size: 34px; }


  .sf-evidence-map { width: 100%; height: 500px; margin-top: 76px; transform: none; }


  .sf-evidence-fragment { width: 142px; height: 90px; }


  .sf-frag-drawing { top: 72px; left: 0; }


  .sf-frag-spec { top: 62px; right: 0; }


  .sf-frag-schedule { bottom: 36px; left: 0; }


  .sf-frag-rfi { bottom: 32px; right: 0; }


  .sf-frag-cost { display: none; }


  .sf-answer-core { width: 190px; min-height: 104px; }


  .sf-evidence-lines { opacity: 0.78; }



  .sf-assay { padding: 62px 16px 32px; }


  .sf-assay-shell { height: 570px; transform: none; }


  .sf-takeoff-drawing { top: 14%; width: 100%; height: 62%; transform: none; }


  .sf-assay.is-active .sf-takeoff-drawing { animation-name: sf-drawing-mobile; }


  .sf-assay-copy { position: relative; top: auto; right: auto; width: 100%; text-align: center; }


  .sf-assay-copy .sf-title { font-size: 38px; }


  .sf-boq { width: 88%; right: 6%; bottom: 0; }


  .sf-d5,
  .sf-zone { display: none; }



  .sf-certainty { padding: 60px 18px 28px; }


  .sf-final-brand { font-size: 52px; }


  .sf-final-agents { gap: 8px 14px; flex-wrap: wrap; }


  .sf-final-line { font-size: 19px; }


  .sf-controls {
    right: 14px;
    bottom: 14px;
    opacity: 0.72;
    pointer-events: auto;
  }
}

@keyframes sf-drawing-mobile {
  to { opacity: 1; transform: none; }
}

@media (max-width: 430px) {

  .strata-film {
    min-height: 650px;
  }



  .sf-title { font-size: 36px; }


  .sf-loss-number { font-size: 82px; }


  .sf-loss-copy { margin-top: 0; }


  .sf-loss-statement { font-size: 27px; }


  .sf-loss-cause { font-size: 19px; }


  .sf-loss-buried { font-size: 34px; }


  .sf-herald-field { height: 330px; }


  .sf-evidence-mark { font-size: 8px; }


  .sf-connect-copy .sf-title { font-size: 29px; }


  .sf-evidence-fragment { width: 126px; height: 82px; }


  .sf-answer-core { width: 168px; }


  .sf-assay-copy .sf-title { font-size: 34px; }


  .sf-boq { width: 96%; right: 2%; }


  .sf-final-brand { font-size: 46px; }


  .sf-final-cta { margin-top: 20px; }
}

@media (max-width: 760px) and (max-height: 720px) {

  .sf-herald {
    padding-top: 58px;
    padding-bottom: 22px;
  }



  .sf-herald-field { height: 300px; }


  .sf-agent-word { margin-bottom: 14px; }


  .sf-proof-list { margin-top: 18px; }



  .sf-connect {
    padding: 48px 14px 18px;
  }



  .sf-connect-copy { top: 50px; }


  .sf-evidence-map {
    height: 430px;
    margin-top: 68px;
  }



  .sf-assay {
    padding: 46px 16px 18px;
  }



  .sf-assay-shell { height: 520px; }


  .sf-takeoff-drawing {
    top: 15%;
    height: 58%;
  }



  .sf-certainty {
    padding-top: 46px;
    padding-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .strata-film *,
  .strata-film *::before,
  .strata-film *::after {
    animation: none !important;
    transition: none !important;
  }



  .strata-film .sf-scene {
    display: none;
  }



  .strata-film .sf-certainty {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: none;
  }



  .strata-film .sf-controls {
    display: none;
  }
}

/* ═══ Script revision: define + change scenes, final knows, progress ═══ */

/* Scene 1: the buried-sources line holds beneath the final statement. */
.sf-loss-sources {
  position: absolute;
  left: 0;
  bottom: -78px;
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font: 700 12px/1.6 'Chivo Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
}

.sf-loss.is-active .sf-loss-sources {
  animation: sf-fade-in 1s 5.9s forwards;
}

/* Scene 2: define Stratora — same visual weight as the agent scenes. */
.sf-define {
  background: var(--sf-black);
}

.sf-define-shell {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.sf-define-brand {
  margin: 0;
  color: var(--sf-white);
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
  opacity: 0;
}

.sf-define-category {
  margin-top: 18px;
  color: var(--sf-gold);
  font: 700 13px/1 'Chivo Mono', monospace;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0;
}

.sf-define-sentence {
  max-width: 640px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Funnel Display', sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
}

.sf-define-knows {
  display: flex;
  gap: 34px;
  margin-top: 40px;
}

.sf-define-knows span {
  color: var(--sf-white);
  font-family: 'Funnel Display', sans-serif;
  font-size: 20px;
  font-weight: 700;
  opacity: 0;
}

.sf-define-knows span::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--sf-gold);
}

.sf-define.is-active .sf-define-brand { animation: sf-rise-in 1s 0.3s forwards; }
.sf-define.is-active .sf-define-category { animation: sf-fade-in 0.9s 1s forwards; }
.sf-define.is-active .sf-define-sentence { animation: sf-rise-in 1s 1.7s forwards; }
.sf-define.is-active .sf-define-knows span:nth-child(1) { animation: sf-rise-in 0.8s 2.9s forwards; }
.sf-define.is-active .sf-define-knows span:nth-child(2) { animation: sf-rise-in 0.8s 3.6s forwards; }
.sf-define.is-active .sf-define-knows span:nth-child(3) { animation: sf-rise-in 0.8s 4.3s forwards; }

/* Scene 3: the change. */
.sf-change {
  background: #060605;
}

.sf-change-shell {
  display: grid;
  place-items: center;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.sf-change-title {
  max-width: 760px;
  opacity: 0;
}

.sf-change-shell .sf-kicker {
  opacity: 0;
}

.sf-change-sources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.sf-change-sources span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.78);
  font: 700 11px/1 'Chivo Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
}

.sf-change-note {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  opacity: 0;
}

.sf-change.is-active .sf-kicker { animation: sf-fade-in 0.8s 0.3s forwards; }
.sf-change.is-active .sf-change-title { animation: sf-rise-in 1s 0.9s forwards; }
.sf-change.is-active .sf-change-sources span:nth-child(1) { animation: sf-rise-in 0.6s 2s forwards; }
.sf-change.is-active .sf-change-sources span:nth-child(2) { animation: sf-rise-in 0.6s 2.3s forwards; }
.sf-change.is-active .sf-change-sources span:nth-child(3) { animation: sf-rise-in 0.6s 2.6s forwards; }
.sf-change.is-active .sf-change-sources span:nth-child(4) { animation: sf-rise-in 0.6s 2.9s forwards; }
.sf-change.is-active .sf-change-sources span:nth-child(5) { animation: sf-rise-in 0.6s 3.2s forwards; }
.sf-change.is-active .sf-change-note { animation: sf-fade-in 0.9s 3.9s forwards; }

/* Scene 6 kicker as the brand word. */
.sf-kicker--brand {
  color: var(--sf-gold);
  letter-spacing: 0.34em;
}

/* Scene 7: the three knows. */
.sf-certainty-knows {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-bottom: 40px;
}

.sf-certainty-knows span {
  color: var(--sf-white);
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  opacity: 0;
}

.sf-certainty.is-active .sf-certainty-knows span:nth-child(1) { animation: sf-rise-in 0.9s 0.3s forwards; }
.sf-certainty.is-active .sf-certainty-knows span:nth-child(2) { animation: sf-rise-in 0.9s 1s forwards; }
.sf-certainty.is-active .sf-certainty-knows span:nth-child(3) { animation: sf-rise-in 0.9s 1.7s forwards; }

/* Compact viewports. */
@media (max-width: 760px) {

  .sf-define-brand { font-size: 52px; }


  .sf-define-sentence { font-size: 18px; }


  .sf-define-knows { flex-direction: column; gap: 12px; margin-top: 30px; }


  .sf-change-title { font-size: 30px; }


  .sf-change-sources { gap: 7px; }


  .sf-change-sources span { font-size: 9.5px; padding: 7px 9px; }


  .sf-loss-sources { font-size: 9.5px; bottom: -60px; }


}

@media (prefers-reduced-motion: reduce) {

  .sf-loss-sources,
  .sf-define-brand,
  .sf-define-category,
  .sf-define-sentence,
  .sf-define-knows span,
  .sf-change-shell .sf-kicker,
  .sf-change-title,
  .sf-change-sources span,
  .sf-change-note,
  .sf-certainty-knows span {
    animation: none;
    opacity: 1;
  }


}
