:root {
  --orange: #ff5800;
  --bg: #0a0a0a;
  --ink: #f4f1ec;
  --dim: #8a8680;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Poppins", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.deck {
  position: fixed;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 7vh 7.5vw;
}

.slide.active {
  display: flex;
}

.body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.opening-chrome {
  justify-content: flex-start;
}

.tag {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.chrome img {
  display: block;
  width: auto;
  height: 30px;
}

.chrome .mark {
  height: 30px;
}

.foot {
  max-width: calc(100% - 170px);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 19px;
  letter-spacing: 0.22em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1 {
  max-width: 17ch;
  font-size: clamp(44px, 6.4vw, 100px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.opening-title {
  display: flex;
  max-width: 18ch;
  flex-direction: column;
  gap: 0.18em;
  font-size: clamp(42px, 5.7vw, 88px);
  line-height: 1;
  text-transform: uppercase;
}

.opening-reframe {
  color: var(--ink);
}

.opening-copy {
  max-width: 38ch;
  margin-top: 4vh;
  color: rgba(10, 10, 10, 0.84);
  font-size: clamp(22px, 2.35vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.opening-body {
  max-width: 72%;
}

.solution-layout {
  gap: 4vh;
  max-width: 58%;
}

.solution-layout h1 {
  max-width: 16ch;
  font-size: clamp(42px, 4.7vw, 76px);
}

.solution-layout .subline {
  max-width: 27ch;
  font-size: clamp(20px, 2.15vw, 34px);
}

.solution-followup {
  display: block;
  margin-top: 0.65em;
  white-space: nowrap;
}

.solution-person {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58vw;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.proactive-message {
  position: absolute;
  right: 26vw;
  bottom: 18vh;
  z-index: 3;
  width: clamp(280px, 26vw, 400px);
  border-radius: 10px;
  background: var(--ink);
  padding: clamp(16px, 1.55vw, 24px);
  color: var(--bg);
}

.proactive-message-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.proactive-message-head img {
  width: 22px;
  height: 22px;
}

.proactive-message-head strong,
.proactive-message-head span {
  font-family: var(--mono);
  font-size: clamp(11px, 0.95vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proactive-message-head span {
  margin-left: auto;
  color: var(--orange);
}

.proactive-message p {
  font-size: clamp(16px, 1.55vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.shift-layout {
  position: relative;
  justify-content: center;
}

#market-shift .tag {
  color: var(--ink);
}

.shift-copy-block {
  position: relative;
  top: -4.5vh;
  max-width: 82%;
}

.shift-copy-block h1 {
  max-width: 17ch;
}

.shift-copy {
  max-width: 35ch;
  margin-top: 4vh;
  color: var(--ink);
  font-size: clamp(22px, 2.35vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.32;
}

.load-curve {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78vw;
  height: 76vh;
  overflow: visible;
  pointer-events: none;
}

.load-curve path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.load-trace {
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-width: 4;
}

.load-trace-1 {
  opacity: 0.38;
}

.load-trace-2 {
  opacity: 0.68;
}

.load-trace-3 {
  opacity: 1;
  stroke-width: 6;
}

.platform-layout {
  gap: 3.5vh;
}

.platform-foundation {
  width: 100%;
  max-width: none;
  color: rgba(10, 10, 10, 0.82);
  font-size: clamp(21px, 2.25vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.32;
}

.platform-foundation span {
  display: block;
}

.platform-origin {
  font-weight: 400;
  white-space: nowrap;
}

.human-future {
  max-width: 42ch;
  color: var(--ink);
  font-size: clamp(24px, 2.7vw, 41px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.26;
  white-space: nowrap;
}

.platform-growth {
  display: grid;
  width: min(880px, 82vw);
  margin-top: 1.5vh;
  padding-top: 2.3vh;
  border-top: 3px solid rgba(10, 10, 10, 0.72);
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 80px);
}

.platform-growth p {
  display: flex;
  flex-direction: column;
}

.platform-growth strong {
  color: var(--ink);
  font-size: clamp(34px, 4vw, 61px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.platform-growth span {
  margin-top: 0.7vh;
  color: rgba(10, 10, 10, 0.78);
  font-family: var(--mono);
  font-size: clamp(11px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orange {
  background: var(--orange);
}

.orange h1,
.orange .tag {
  color: var(--bg);
}

.orange .foot {
  color: rgba(10, 10, 10, 0.72);
}

.orange .subline {
  color: rgba(10, 10, 10, 0.8);
}

.subline {
  max-width: 30ch;
  margin-top: 4vh;
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.process-layout {
  gap: 3.2vh;
}

.process-title {
  max-width: 19ch;
  font-size: clamp(38px, 4.7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.signal-flow {
  position: relative;
  height: clamp(220px, 31vh, 310px);
}

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

.signal-lines path {
  fill: none;
  stroke: rgba(244, 241, 236, 0.28);
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.signal-lines .signal-out {
  stroke: var(--orange);
  stroke-width: 4;
}

.signal-lines .signal-auto {
  stroke: rgba(244, 241, 236, 0.58);
  stroke-width: 3;
}

.signal-sources,
.signal-results,
.signal-core,
.signal-capabilities {
  position: absolute;
  z-index: 2;
}

.signal-sources {
  top: 0;
  bottom: 0;
  left: 3%;
  display: grid;
  width: 22%;
  grid-template-rows: repeat(6, 1fr);
}

.signal-sources span,
.model-choice span {
  font-family: var(--mono);
  font-size: clamp(12px, 1.05vw, 16px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-sources span {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: var(--ink);
  font-size: clamp(10px, 0.9vw, 13px);
  letter-spacing: 0.06em;
  text-align: right;
  white-space: nowrap;
}

.signal-sources i,
.signal-capabilities i {
  color: var(--orange);
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.signal-sources i {
  width: 1.1em;
  font-size: 1.22em;
}

.signal-core {
  top: 50%;
  left: 50%;
  display: grid;
  width: 360px;
  place-items: center;
  text-align: center;
  transform: translate(-50%, -26px);
}

.signal-core img {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: var(--orange);
  object-fit: contain;
  padding: 6px;
}

.signal-core strong {
  margin-top: 8px;
  font-size: clamp(24px, 2.2vw, 34px);
}

.signal-results {
  top: 0;
  right: 0;
  bottom: 0;
  width: 26%;
}

.signal-results p {
  position: absolute;
  left: clamp(10px, 1vw, 16px);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
}

.signal-results p:first-child {
  top: calc(24.075% + 14px);
}

.signal-results p:last-child {
  top: calc(75.925% + 14px);
}

.signal-results strong {
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.14;
}

.signal-results span {
  margin-left: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 600;
}

.signal-capabilities {
  top: calc(50% + 78px);
  left: 50%;
  display: grid;
  width: min(360px, 36%);
  align-items: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
  transform: translateX(-50%);
}

.signal-capabilities span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: clamp(9px, 0.82vw, 12px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-capabilities i {
  color: var(--dim);
  font-size: 1.35em;
}

.gtm-layout {
  gap: 3.1vh;
}

.gtm-layout h1 {
  max-width: none;
  font-size: clamp(40px, 5.25vw, 81px);
}

.gtm-layout h1 span {
  display: block;
  white-space: nowrap;
}

.gtm-thesis {
  max-width: none;
  color: var(--ink);
  font-size: clamp(20px, 2.15vw, 33px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.gtm-loop {
  display: grid;
  margin-top: 1vh;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}

.gtm-loop article {
  padding-top: 2vh;
  border-top: 3px solid var(--orange);
}

.gtm-loop article > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: 0.14em;
}

.gtm-loop strong {
  display: block;
  margin-top: 1.2vh;
  font-size: clamp(20px, 2.05vw, 31px);
  line-height: 1.18;
}

.gtm-loop p {
  max-width: 31ch;
  margin-top: 1vh;
  color: rgba(244, 241, 236, 0.76);
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 500;
  line-height: 1.4;
}

.model-layout {
  gap: 5vh;
}

.model-layout h1 {
  max-width: none;
  font-size: clamp(42px, 5.15vw, 79px);
}

.model-layout h1 span {
  display: block;
  white-space: nowrap;
}

.model-choice {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 7vw;
}

.model-choice > div {
  border-top: 3px solid var(--orange);
  padding-top: 2.2vh;
}

.model-choice span {
  color: var(--orange);
}

.model-choice strong {
  display: block;
  margin-top: 1.5vh;
  color: var(--ink);
  font-size: clamp(23px, 2.4vw, 37px);
  line-height: 1.18;
}

.model-choice p {
  max-width: 33ch;
  margin-top: 1.2vh;
  color: var(--ink);
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 500;
  line-height: 1.42;
}

.progress {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--ink);
  mix-blend-mode: difference;
  transition: width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.slide.active .body > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 47vw;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.94;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%);
}

.opening-hero {
  right: 2vw;
  width: 58vw;
  object-fit: contain;
  object-position: center right;
  opacity: 0.16;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}

.layered {
  position: relative;
  z-index: 2;
}

.ask-body {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(38px, 5.2vw, 80px);
}

.hero-url {
  align-self: flex-start;
  margin-top: 5vh;
  color: var(--orange);
  font-family: var(--mono);
  font-size: clamp(17px, 1.8vw, 27px);
  letter-spacing: 0.08em;
  text-decoration-color: rgba(255, 88, 0, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.hero-url:hover,
.hero-url:focus-visible {
  text-decoration-color: currentColor;
}

#ask .hero-title {
  color: var(--ink);
}

#ask .hero-url {
  color: var(--bg);
  text-decoration-color: rgba(10, 10, 10, 0.48);
}

.deck-controls {
  position: fixed;
  right: 2.25vw;
  bottom: 2.2vh;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--mono);
  opacity: 0.34;
  transition: opacity 0.2s ease;
}

.deck-controls:hover,
.deck-controls:focus-within {
  opacity: 1;
}

.deck-control {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(244, 241, 236, 0.3);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  color: inherit;
  cursor: pointer;
  font: 500 20px/1 var(--mono);
}

.deck-control:hover,
.deck-control:focus-visible {
  border-color: currentColor;
  outline: none;
}

.deck-control:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 88, 0, 0.75);
}

.deck-control:disabled {
  cursor: default;
  opacity: 0.32;
}

.slide-status {
  min-width: 5.5ch;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-align: center;
}

@media (max-width: 820px) {
  .slide {
    padding: 5vh 6vw;
  }

  h1 {
    font-size: clamp(38px, 10vw, 64px);
  }

  .opening-title {
    font-size: clamp(35px, 9.4vw, 54px);
  }

  .opening-copy {
    font-size: clamp(18px, 4.9vw, 27px);
  }

  .platform-layout {
    gap: 2.8vh;
  }

  .platform-foundation {
    font-size: clamp(18px, 4.8vw, 27px);
  }

  .platform-origin {
    white-space: normal;
  }

  .human-future {
    font-size: clamp(21px, 5.4vw, 31px);
    white-space: normal;
  }

  .platform-growth {
    width: 100%;
    margin-top: 0.5vh;
    padding-top: 1.8vh;
    gap: 12px;
  }

  .platform-growth strong {
    font-size: clamp(27px, 8vw, 40px);
  }

  .platform-growth span {
    font-size: clamp(9px, 2.5vw, 12px);
    line-height: 1.3;
  }

  .tag {
    font-size: 11px;
  }

  .foot {
    font-size: 11px;
    letter-spacing: 0.15em;
  }

  .subline {
    font-size: clamp(19px, 5.2vw, 30px);
  }

  .solution-layout,
  .process-layout,
  .model-layout {
    gap: 3.5vh;
  }

  .opening-body {
    max-width: 100%;
  }

  .solution-layout {
    max-width: 100%;
    justify-content: flex-start;
    padding-top: 16vh;
  }

  .solution-layout h1 {
    max-width: 15ch;
    font-size: clamp(32px, 8.5vw, 48px);
  }

  .solution-layout .subline {
    max-width: 25ch;
    font-size: clamp(17px, 4.5vw, 25px);
  }

  .solution-followup {
    white-space: normal;
  }

  .solution-person {
    right: 0;
    width: 82vw;
    height: 48vh;
    opacity: 0.72;
  }

  .proactive-message {
    right: 6vw;
    bottom: 5.5vh;
    width: 88vw;
    padding: 14px;
  }

  .proactive-message p {
    font-size: clamp(14px, 3.8vw, 19px);
  }

  .shift-copy {
    font-size: clamp(18px, 4.8vw, 27px);
  }

  .shift-copy-block {
    top: -5vh;
    max-width: 100%;
  }

  .load-curve {
    right: 0;
    bottom: 1vh;
    width: 100%;
    height: 52vh;
    opacity: 0.52;
  }

  .process-title {
    font-size: clamp(29px, 7.6vw, 44px);
  }

  .signal-flow {
    display: grid;
    left: 0;
    height: auto;
    grid-template-rows: auto auto auto;
    gap: 2.4vh;
  }

  .signal-lines {
    display: none;
  }

  .signal-sources,
  .signal-core,
  .signal-results,
  .signal-capabilities {
    position: static;
    width: auto;
  }

  .signal-sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 8px 14px;
  }

  .signal-sources span,
  .model-choice span {
    font-size: 11px;
  }

  .signal-sources span {
    flex-direction: row;
    justify-content: flex-start;
    gap: 4px;
    font-size: clamp(9px, 2.45vw, 11px);
    text-align: left;
  }

  .signal-core {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    text-align: left;
    transform: none;
  }

  .signal-core img {
    width: 43px;
    height: 43px;
  }

  .signal-core strong {
    margin-top: 0;
  }

  .signal-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .signal-results p {
    position: static;
    transform: none;
  }

  .signal-results strong {
    color: var(--orange);
    font-size: clamp(17px, 4.7vw, 24px);
  }

  .signal-results span {
    margin-left: 0;
    font-size: clamp(15px, 4vw, 21px);
  }

  .signal-capabilities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 7px 8px;
    transform: none;
  }

  .signal-capabilities span {
    font-size: clamp(8px, 2.25vw, 10px);
  }

  .gtm-layout {
    gap: 2.1vh;
  }

  .gtm-layout h1 {
    font-size: clamp(31px, 8.2vw, 46px);
  }

  .gtm-layout h1 span,
  .gtm-thesis {
    white-space: normal;
  }

  .gtm-thesis {
    font-size: clamp(17px, 4.5vw, 24px);
  }

  .gtm-loop {
    margin-top: 0;
    grid-template-columns: 1fr;
    gap: 1.4vh;
  }

  .gtm-loop article {
    display: grid;
    padding-top: 1.1vh;
    grid-template-columns: 3.2ch 1fr;
    column-gap: 10px;
  }

  .gtm-loop article > span {
    grid-row: 1 / span 2;
    font-size: 10px;
  }

  .gtm-loop strong {
    margin-top: 0;
    font-size: clamp(17px, 4.5vw, 23px);
  }

  .gtm-loop p {
    margin-top: 0.4vh;
    font-size: clamp(13px, 3.35vw, 17px);
  }

  .model-layout h1 {
    font-size: clamp(29px, 7.5vw, 44px);
  }

  .model-layout h1 span {
    white-space: normal;
  }

  .model-choice {
    grid-template-columns: 1fr;
    gap: 2.5vh;
  }

  .model-choice > div {
    padding-top: 1.3vh;
  }

  .model-choice strong {
    margin-top: 0.8vh;
    font-size: clamp(19px, 5vw, 26px);
  }

  .model-choice p {
    margin-top: 0.6vh;
    font-size: clamp(14px, 3.6vw, 19px);
  }

  .hero-img {
    width: 75vw;
    opacity: 0.4;
  }

  .opening-hero {
    right: 0;
    width: 100vw;
    opacity: 0.13;
  }

  .hero-title {
    font-size: clamp(34px, 9.2vw, 58px);
  }

  .deck-controls {
    right: 4vw;
    bottom: 1.8vh;
  }
}

@media (pointer: coarse) {
  .deck-controls {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide.active .body > * {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .progress,
  .deck-controls {
    transition: none;
  }
}

@page {
  size: 16in 9in;
  margin: 0;
}

@media print {
  html,
  body {
    height: auto;
    overflow: visible;
  }

  .deck {
    position: static;
  }

  .slide {
    position: relative;
    display: flex !important;
    width: 16in;
    height: 9in;
    break-after: page;
    page-break-after: always;
  }

  .slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .slide .body > * {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }

  .deck-controls,
  .progress {
    display: none !important;
  }
}
