/* /our-story: scroll film. The canvas is fixed behind the chapters; story.js morphs it per chapter. */
.st-body { background: #000; }
.st { --o: #F26522; --o2: #FF9A5C; --ink: #EDEDED; --mut: #8A8A8A; --line: #1F1F1F; --mono: 'Geist Mono', ui-monospace, monospace; --ease: cubic-bezier(.22,1,.36,1);
  position: relative; background: #000; color: var(--ink); margin-top: -64px; isolation: isolate; overflow: clip; }
.st-cv { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
.st-veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 60% at 50% 50%, transparent 40%, rgba(0,0,0,.65) 100%); }
.st > section { position: relative; z-index: 1; }

/* chapter rail (desktop) */
.st-rail { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.st-rail li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-family: var(--mono); font-size: 11px; color: #525252; transition: color .4s; }
.st-rail li::after { content: ""; width: 14px; height: 1px; background: #333; transition: width .4s var(--ease), background .4s; }
.st-rail li span { opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s var(--ease); }
.st-rail li.on { color: var(--ink); }
.st-rail li.on span, .st-rail:hover li span { opacity: 1; transform: none; }
.st-rail li.on::after { width: 32px; background: var(--o); }
@media (max-width: 999px) { .st-rail { display: none; } }

/* type */
.st-in { width: min(100% - 48px, 1200px); margin: 0 auto; }
.st-in.wide { width: min(100% - 48px, 1200px); }
@media (min-width: 1000px) { .st-in, .st-in.wide { width: min(100% - 220px, 1200px); } }
.st-in.center { text-align: center; display: grid; justify-items: center; }
.st-k { margin: 0 0 22px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--mut); display: flex; gap: 10px; align-items: center; }
.st-k span { color: var(--o); }
.st-k::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.st-in.center .st-k::before { display: none; }
.st-h1 { margin: 0; font-weight: 400; font-size: clamp(3.4rem, 13vw, 12.5rem); line-height: .86; letter-spacing: -.065em; }
.st-h1 .l { display: block; overflow: hidden; padding-bottom: .06em; }
.st-h1 .l > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.st-h1 .l:nth-child(2) > span { transition-delay: .12s; background: linear-gradient(90deg, #fff 0%, #FFD2B8 40%, var(--o) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st.go .st-h1 .l > span { transform: none; }
.st-lead { margin: 28px 0 0; max-width: 34ch; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.45; color: #BDBDBD; letter-spacing: -.015em; opacity: 0; transform: translateY(16px); transition: opacity .9s .35s, transform .9s .35s var(--ease); }
.st.go .st-lead, .st.go .st-k-hero { opacity: 1; transform: none; }
.st-k-hero { opacity: 0; transition: opacity .8s .2s; }

.st-h { margin: 0; font-weight: 400; font-size: clamp(2.3rem, 5.4vw, 4.75rem); line-height: 1; letter-spacing: -.055em; max-width: 15ch; text-wrap: balance; }
.st-p { margin: 26px 0 0; max-width: 52ch; color: #A8A8A8; font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.65; letter-spacing: -.008em; }
.st-in.center .st-p { margin-inline: auto; }
.st-tags { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-tags li { font-family: var(--mono); font-size: 12px; color: #D4D4D4; border: 1px solid #2A2A2A; background: rgba(10,10,10,.6); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 12px; }

/* split words rise in when the chapter arrives */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 40ms); }
.in [data-split] .w > span, .st-quote.in blockquote .w > span { transform: none; }
.st-ch .st-p, .st-ch .st-tags, .st-ch .st-stats, .st-ch .st-cta, .st-ch .st-vals, .st-ch figcaption, .st-ch .st-small { opacity: 0; transform: translateY(24px); transition: opacity .8s .25s, transform .9s .25s var(--ease); }
.st-ch.in .st-p, .st-ch.in .st-tags, .st-ch.in .st-stats, .st-ch.in .st-cta, .st-ch.in .st-vals, .st-ch.in figcaption, .st-ch.in .st-small { opacity: 1; transform: none; }

/* hero */
.st-hero { min-height: 100svh; display: grid; align-items: end; padding: 140px 0 120px; }
.st-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--mut); }
.st-scroll i { width: 1px; height: 46px; background: linear-gradient(var(--o), transparent); transform-origin: top; animation: stDrop 2.2s var(--ease) infinite; }
@keyframes stDrop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* chapters */
.st-ch { min-height: 150vh; display: flex; align-items: center; padding: 120px 0; }
.st-ch .st-in { position: sticky; top: 18vh; }
.st-year { position: absolute; right: 4vw; bottom: 8vh; margin: 0; font-size: clamp(6rem, 22vw, 20rem); line-height: .8; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); pointer-events: none; z-index: -1; }
.st-ch.r .st-in { display: grid; justify-items: end; text-align: right; }
.st-ch.r .st-k { flex-direction: row-reverse; }
.st-ch.r .st-tags, .st-ch.r .st-fly { justify-content: flex-end; }
.st-ch.r .st-year { right: auto; left: 4vw; }
.st-fly { position: relative; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: clamp(1.4rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.st-fly span { opacity: 0; transform: translateZ(0) translateY(40px) scale(.9); filter: blur(8px); transition: opacity .8s, transform 1s var(--ease), filter .8s; transition-delay: calc(.3s + var(--i) * .12s); color: #fff; }
.st-fly span:nth-child(odd) { color: var(--o2); }
.in .st-fly span { opacity: 1; transform: none; filter: none; }

/* founder */
.st-quote figure { margin: 0; max-width: 980px; }
.st-quote blockquote { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.8rem); line-height: 1.18; letter-spacing: -.04em; }
.st-quote blockquote::before { content: "\201C"; display: block; color: var(--o); font-size: 1.6em; line-height: .6; margin-bottom: .1em; }
.st-quote figcaption { margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--mut); display: flex; gap: 10px; }
.st-quote figcaption b { color: var(--ink); font-weight: 400; }
.st-vals { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.st-vals li { display: flex; gap: 14px; padding: 22px 24px; background: rgba(0,0,0,.78); backdrop-filter: blur(10px); color: var(--o); }
.st-vals b { display: block; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.st-vals span { display: block; margin-top: 4px; color: var(--mut); font-size: 14.5px; line-height: 1.55; }
@media (min-width: 900px) { .st-vals { grid-template-columns: repeat(3, 1fr); } }

/* capability cards: 3D flip on hover / focus, and on scroll for touch */
.st-caps .st-in { position: relative; top: auto; }
.st-cards { margin-top: 48px; display: grid; gap: 18px; perspective: 1400px; }
@media (min-width: 720px) { .st-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .st-cards { grid-template-columns: repeat(4, 1fr); } }
.st-card { position: relative; min-height: 340px; outline: none; opacity: 0; transform: translateY(60px) rotateX(18deg); transition: opacity .8s, transform 1s var(--ease); transition-delay: calc(var(--i) * 110ms); }
.in .st-card { opacity: 1; transform: none; }
.st-card-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.st-card:hover .st-card-in, .st-card:focus-within .st-card-in, .st-card.flip .st-card-in { transform: rotateY(180deg); }
.st-card .f, .st-card .b { position: absolute; inset: 0; border-radius: 20px; padding: 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; }
.st-card .f { background: linear-gradient(160deg, #121212, #050505); border: 1px solid #262626; }
.st-card .f::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(70% 50% at 50% 110%, rgba(242,101,34,.22), transparent 70%); pointer-events: none; }
.st-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(242,101,34,.12); color: var(--o); border: 1px solid rgba(242,101,34,.3); }
.st-card .n { margin: auto 0 0; font-family: var(--mono); font-size: 12px; color: #525252; }
.st-card h3 { margin: 6px 0 0; font-size: 2.1rem; font-weight: 400; letter-spacing: -.05em; }
.st-card .f > p:last-child { margin: 8px 0 0; color: var(--mut); font-size: 14.5px; line-height: 1.5; }
.st-card .b { transform: rotateY(180deg); background: radial-gradient(120% 120% at 0% 0%, #FF8A45, var(--o) 45%, #A93709); color: #fff; }
.st-card .b h3 { margin: 0; font-size: 1.6rem; }
.st-card .b p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.92); }
.st-card .b ul { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 2px; }
.st-card .b a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 14.5px; }
.st-card .b a:hover { padding-left: 4px; }
.st-card .b a, .st-card .b a:hover { transition: padding .3s var(--ease); }

/* numbers */
.st-big { margin: 0; font-weight: 400; font-size: clamp(5rem, 17vw, 15rem); line-height: .85; letter-spacing: -.075em; background: linear-gradient(180deg, #fff 30%, var(--o) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.st-stats { margin: 44px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 900px; }
@media (min-width: 900px) { .st-stats { grid-template-columns: repeat(5, 1fr); } }
.st-stats div { padding: 20px 22px; background: rgba(0,0,0,.75); backdrop-filter: blur(10px); }
.st-stats dt { font-family: var(--mono); font-size: 11.5px; color: var(--mut); }
.st-stats dd { margin: 8px 0 0; font-size: 1.7rem; letter-spacing: -.04em; }

/* finale */
.st-end { min-height: 120vh; }
.st-end .st-in { position: relative; top: auto; }
.st-end-h { margin: 0; font-weight: 400; font-size: clamp(3rem, 9vw, 8.5rem); line-height: .92; letter-spacing: -.065em; max-width: 12ch; }
.st-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.st-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid #333; color: var(--ink); font-size: 15.5px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); transition: transform .3s var(--ease), background .3s, border-color .3s; }
.st-btn:hover { transform: translateY(-2px); border-color: #555; }
.st-btn.p { background: var(--o); border-color: var(--o); color: #fff; box-shadow: 0 18px 40px -14px rgba(242,101,34,.8); }
.st-btn.p:hover { background: #FF7A3D; }
.st-small { margin: 22px 0 0; font-family: var(--mono); font-size: 12px; color: var(--mut); }

/* phones */
@media (max-width: 719px) {
  .st-hero { padding: 120px 0 110px; }
  .st-ch { min-height: auto; padding: 18vh 0; }
  .st-ch .st-in { position: relative; top: auto; }
  .st-ch.r .st-in { justify-items: start; text-align: left; }
  .st-ch.r .st-k { flex-direction: row; }
  .st-ch.r .st-tags { justify-content: flex-start; }
  .st-card { min-height: 300px; }
}

/* reduced motion: everything visible, canvas still (drawn once) */
@media (prefers-reduced-motion: reduce) {
  .st *, .st *::before, .st *::after { transition: none !important; animation: none !important; }
  .st-h1 .l > span, [data-split] .w > span, .st-lead, .st-k-hero, .st-card, .st-fly span,
  .st-ch .st-p, .st-ch .st-tags, .st-ch .st-stats, .st-ch .st-cta, .st-ch .st-vals, .st-ch figcaption, .st-ch .st-small { opacity: 1 !important; transform: none !important; filter: none !important; }
}
