/* One continuous scene, with the decision and its source in the same field of view. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.story-hero {
  --story-ink: #fcf7ee;
  --story-copper: #f1b684;
  --story-rail: #242422;
  background: #151615;
  color: var(--story-ink);
  isolation: isolate;
  overflow: clip;
}
.story-stage, .story-scene { display: grid; }
.story-stage { position: relative; }
.story-scene {
  grid-area: 1/1; position: relative; isolation: isolate; min-width: 0;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .72s ease, visibility 0s linear .72s;
}
.story-scene[data-current] {
  z-index: 1; visibility: visible; opacity: 1; pointer-events: auto;
  transition-delay: 0s;
}
.story-picture, .story-picture img, .story-picture video, .story-scrim {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.story-picture { z-index: -3; overflow: hidden; background: #171817; }
.story-picture img, .story-picture video { object-fit: cover; object-position: 50% 52%; }
.story-picture video { opacity: 0; transition: opacity .5s ease; }
.story-picture video[data-ready] { opacity: 1; }
.story-scene[data-story="execution"] .story-picture { background: #151310; }
.story-scene[data-story="execution"] .story-picture :is(img,video) { width: 73%; inset-inline-start: auto; object-position: center; }
@media (min-width: 641px) {
  .story-scene[data-story="execution"] .story-picture :is(img,video) {
    mask-image: linear-gradient(to right, transparent, black 30%);
  }
  [dir="rtl"] .story-scene[data-story="execution"] .story-picture :is(img,video) {
    transform: scaleX(-1);
  }
}
.hero-toggle-in-view .site-header [data-motion-toggle]:not(:focus-visible) {
  visibility: hidden;
}
.story-scrim {
  z-index: -1;
  background: linear-gradient(90deg, rgba(7,13,15,.88), rgba(8,14,16,.66) 34%, rgba(10,15,15,.1) 75%),linear-gradient(0deg, rgba(7,12,13,.69),transparent 48%);
}
[dir="rtl"] .story-scrim {
  background: linear-gradient(270deg, rgba(7,13,15,.88),rgba(8,14,16,.66) 34%,rgba(10,15,15,.1) 75%),linear-gradient(0deg, rgba(7,12,13,.69),transparent 48%);
}
.story-layout {
  display: grid; grid-template-columns: minmax(0,1.32fr) minmax(0, .68fr);
  gap: clamp(36px,6vw,110px); align-items: center;
  min-height: clamp(465px,calc(100svh - 226px),780px);
  padding-block: clamp(52px,8vh,108px);
}
.story-copy { max-width: 640px; }
.story-kicker {
  display: flex; gap: 13px; align-items: center; margin: 0 0 clamp(18px,2.6vw,38px);
  color: #f8debf; font-size: .9375rem; font-weight: 500; letter-spacing: .025em;
}
.story-kicker::before { content:""; width: 35px; height: 1px; background: var(--story-copper); }
.story-copy h2 {
  font-size: clamp(3.55rem,6.3vw,6.8rem); line-height: .98; letter-spacing: -.064em; font-weight: 450;
  color: var(--story-ink); text-wrap: initial;
}
.story-copy h2 span, .story-copy h2 em { display: block; }
.story-copy h2 em { font: inherit; color: #f5d7ad; }
.story-description {
  max-width: 34em; font-size: clamp(1rem,1.3vw,1.18rem); line-height: 1.62;
  color: #f0e9df; margin: clamp(18px,2.3vw,30px) 0 0; text-wrap: pretty;
}
.story-link {
  margin-top: clamp(14px,2.8vw,32px); display: inline-flex; align-items: center;
  min-height: 44px; font-weight: 500; font-size: 1rem; color: #fffaf0;
  text-decoration: none; border-bottom: 1px solid #eca875;
  transition: color .2s, border-color .2s; padding: 4px 0;
}
.story-link:hover { color: #ffd1a6; border-color: #fff2d5; }
.story-copy > * { transform: translateY(11px); transition: transform .85s cubic-bezier(.2,.75,.26,1); }
.story-scene[data-current] .story-copy > * { transform: none; }
.story-copy h2 { transition-delay: 40ms; }
.story-description { transition-delay: 70ms; }
.story-readout {
  justify-self: end; align-self: center; width: min(100%,306px);
  padding: 19px 22px 17px; color: #fff3de;
  background: linear-gradient(125deg,rgba(41,41,36,.87),rgba(18,24,24,.79));
  border: 1px solid rgba(252,224,185,.51); border-inline-start: 3px solid #ecc192; border-radius: 3px;
  box-shadow: 0 24px 80px rgba(0,0,0,.33); backdrop-filter: blur(14px);
}
.story-readout > span, .story-readout > div > span { font-size: .875rem; color: #f0e9dd; }
.story-readout > strong {
  display: block; font: 400 clamp(1.6rem,3.4vw,3.1rem)/1.15 ui-monospace,monospace;
  letter-spacing: -.07em; margin: 14px 0 20px; text-align: start;
}
.story-readout > div { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding-top: 11px; border-top: 1px solid #776d5f; }
.story-readout b { font-size: .875rem; color: #ffd0a0; font-weight: 500; }
.equation-readout > div { padding-block: 9px; }
.equation-readout > div:first-of-type { margin-top: 16px; }
.equation-readout strong { font: 400 1.75rem/1.45 Georgia,serif; }
.story-dock { background: linear-gradient(100deg,#171a19,#211f1b); border-block: 1px solid #484239; }
.story-controls { min-height: 90px; display: flex; align-items: center; gap: clamp(16px,3.8vw,65px); }
.story-tabs { flex: 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(11px,2.8vw,46px); }
.story-tab {
  position: relative; display:flex; flex-direction:column; justify-content:center; min-height:66px;
  text-decoration: none; color: #d2c9bc; font-size: clamp(.875rem,1.2vw,1.08rem);
  line-height: 1.4; font-weight: 450; padding: 7px 0 10px;
}
.story-tab i { position: relative; display: block; order: -1; height: 2px; margin-bottom: 12px; background: #665d50; overflow: hidden; }
.story-tab i::after {
  content:""; position:absolute; inset:0; background:#f0b37b;
  transform-origin: left center; transform:scaleX(0);
}
.story-tab[aria-selected="true"] { color:#ffeed6; }
.story-tab[aria-selected="true"] i { background:#8b6c52; }
.story-tab[aria-selected="true"] i::after { transform:scaleX(var(--progress, .12)); }
[dir="rtl"] .story-tab i::after { transform-origin: right center; }
.story-tab:hover { color: white; }
.story-toggle { width:44px; height:44px; border-radius:50%; color:#f9e5c8; border-color:#837361; }
.story-tab:focus-visible, .story-link:focus-visible, .story-toggle:focus-visible { outline: 2px solid #fff1ca; outline-offset: 4px; }
[dir="rtl"] .story-copy h2 { letter-spacing: 0; line-height: 1.23; font-weight: 500; }
[dir="rtl"] .story-kicker { letter-spacing: 0; }
.capability-evidence { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--accent-ink) !important; font-size:.9375rem; }
.capability-copy .capability-evidence + a { margin-top: 10px; }
.company-founder { border-block: 1px solid var(--line); }
.company-founder .founder-role { color: var(--accent-ink) !important; font-weight: 500; }
.execution-visual { margin-block:12px 0; background:#171714; position:relative; border:1px solid var(--line); }
.execution-visual video { width:100%; height:clamp(228px,35vw,460px); object-fit:cover; }
.execution-visual figcaption { display:flex; flex-wrap:wrap; gap:8px 24px; align-items:baseline; border-top:1px solid var(--line); padding:18px clamp(16px,2.6vw,32px); }
.execution-visual figcaption strong { color:var(--accent-ink); font-size:1rem; font-weight:500; }
.execution-visual figcaption span { max-width:50em; color:var(--muted); font-size:1rem; }
@media (max-width: 850px) {
  .story-layout { grid-template-columns: minmax(0,1.35fr) minmax(0,.65fr); gap:22px; }
  .story-copy h2 { font-size:clamp(2.9rem,7.6vw,4.2rem); }
  .story-readout { padding:14px; }
  .story-readout > div { flex-wrap:wrap; gap:5px 15px; }
  .story-tabs { gap:14px; }
}
@media (max-width: 640px) {
  .story-stage { background:#121717; }
  .story-layout {
    display:flex; flex-direction:column; justify-content:flex-end; align-items:stretch;
    min-height: clamp(440px,calc(92svh - 190px),580px); padding-block:110px 30px; gap:0;
  }
  .story-picture :is(img,video) { object-position:62% 38%; }
  .story-scene[data-story="execution"] .story-picture :is(img,video) { width:100%; inset:0; object-position:65% 42%; }
  .story-stage .story-scrim { background:linear-gradient(0deg,rgba(7,14,15,.98),rgba(7,14,15,.81) 38%,rgba(7,14,15,.17) 83%,rgba(7,14,15,.14)); }
  .story-copy { max-width:100%; }
  .story-copy h2 { font-size:clamp(2.75rem,10.35vw,4.1rem); letter-spacing:-.047em; }
  .story-kicker { margin-bottom:13px; font-size:.875rem; }
  .story-kicker::before { width:23px; }
  .story-description { font-size:1rem; line-height:1.48; margin-top:16px; max-width:34em; }
  .story-link { margin-top:12px; }
  .story-readout { display:none; }
  .story-controls { gap:12px; align-items:center; min-height:80px; padding-block:10px; }
  .story-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
  .story-tab { min-height:57px; justify-content:flex-start; font-size:.875rem; line-height:1.2; padding-block:3px; overflow-wrap:break-word; }
  .story-tab i { margin-bottom:8px; flex-shrink:0; }
  .story-toggle { width:40px; height:44px; border:0; border-radius:0; }
  .execution-visual video { object-fit:contain; height:auto; }
  .execution-visual figcaption { display:grid; }
}
@media (max-width: 520px) {
  .story-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .story-tab { min-height: 44px; padding-block: 6px; overflow-wrap: normal; }
  .story-tab i { margin-bottom: 6px; }
}
@media (max-width: 378px) {
  .story-layout { padding-top:80px; }
  .story-controls { gap:8px; }
}
html[data-motion="paused"] .story-scene,
html[data-motion="paused"] .story-copy > *,
html[data-motion="paused"] .story-picture video { transition:none; }
@media(prefers-reduced-motion: reduce) {
  .story-scene,.story-copy > *,.story-picture video { transition:none; }
}
