/* /presentation/: 1920x1080 stage (1080-wide in portrait) scaled to the viewport.
   Animation keyframes are ported from the Next.js prototype's deck.css (smoothed: no blur/wobble/flicker). */
:root { --navy: #0b132b; --navy-deep: #080e1e; --navy-600: #143a63; --gold: #c5a059; --gold-bright: #d4b273; --gold-soft: #f3e7be; --paper: #fff; --serif: "Playfair Display", Georgia, serif; --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--navy-deep); color: #fff; font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
a { color: inherit; text-decoration: none; }
#deck { position: fixed; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
#stage { position: absolute; left: 50%; top: 50%; transform-origin: center; will-change: transform; }

.slide { position: absolute; inset: 0; overflow: hidden; background: var(--navy-deep); backface-visibility: hidden; will-change: transform, opacity; }
.slide.in-r { animation: inR .95s cubic-bezier(.2,.8,.2,1) both; }
.slide.in-l { animation: inL .95s cubic-bezier(.2,.8,.2,1) both; }
.slide.out-l { animation: outL .75s ease both; pointer-events: none; }
.slide.out-r { animation: outR .75s ease both; pointer-events: none; }
@keyframes inR { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-90px); } to { opacity: 1; transform: none; } }
@keyframes outL { to { opacity: 0; transform: translateX(-90px); } }
@keyframes outR { to { opacity: 0; transform: translateX(90px); } }
.rv { animation: rise .95s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 120ms + 380ms); }
@keyframes rise { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: none; } }
.pop { animation: pop .8s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i, 0) * 120ms + 450ms); transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: draw 2.2s cubic-bezier(.5,0,.2,1) forwards; animation-delay: calc(var(--i, 0) * 160ms + 450ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.growx { transform-origin: left center; animation: growx 1.6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 180ms + 600ms); }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.growy { transform-origin: bottom center; animation: growy 1.5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 150ms + 600ms); }
@keyframes growy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 2.6s ease-out infinite; animation-delay: calc(var(--i, 0) * 260ms + 1.4s); }
@keyframes ping { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.kenburns { animation: kb 40s ease-out both; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.shimmer { background: linear-gradient(100deg, #c5a059 20%, #fff2cf 40%, #c5a059 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: -250% 0; } }
.blink { animation: blink 3.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 80px 80px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.glow { position: absolute; inset: 0; background: radial-gradient(1100px 700px at 85% 8%, rgba(201,162,39,.2), transparent), radial-gradient(900px 650px at 0% 100%, rgba(30,75,122,.55), transparent); }

/* layout primitives */
.frame { position: absolute; inset: 0; padding: 100px 130px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-size: 26px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-bright); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 92px; line-height: 1.04; }
.lede { font-size: 34px; line-height: 1.45; color: rgba(255,255,255,.72); margin: 28px 0 0; max-width: 1200px; }
.row { display: grid; gap: 40px; }
.c2 { grid-template-columns: 1fr 1fr; align-items: center; }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); gap: 30px; }
.card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.045); border-radius: 32px; padding: 44px; }
.card .bar { position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--gold), #fff2cf); }
.card h3 { font-size: 46px; line-height: 1.1; margin-top: 26px; }
.card p { font-size: 26px; line-height: 1.4; color: rgba(255,255,255,.66); margin: 14px 0 0; }
.card ul { list-style: none; padding: 0; margin: 22px 0 0; font-size: 26px; }
.card li { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.card li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.ic { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; flex: none; }
.ic svg { width: 40px; height: 40px; }
.ic.sm { width: 64px; height: 64px; } .ic.sm svg { width: 32px; height: 32px; }
.btns { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 56px; }
.btn { display: inline-flex; align-items: center; gap: 14px; font-size: 32px; font-weight: 700; padding: 26px 44px; border-radius: 22px; border: 2px solid rgba(255,255,255,.35); transition: background .2s; cursor: pointer; color: #fff; background: transparent; font-family: inherit; }
.btn:hover { background: rgba(255,255,255,.12); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: var(--gold-bright); }
.foot-note { font-size: 22px; color: rgba(255,255,255,.45); margin-top: 28px; }
.num { font-family: var(--serif); font-variant-numeric: tabular-nums; }

/* slide-specific */
.title-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .62; }
.title-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #080e1e 8%, rgba(6,18,38,.62) 55%, rgba(6,18,38,.15)), linear-gradient(0deg, #080e1e, transparent 55%); }
.title-h { font-size: 148px; line-height: 1; white-space: nowrap; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step .n { font-family: var(--serif); font-size: 120px; line-height: 1; color: var(--gold); }
.slider { display: grid; gap: 10px; margin-top: 30px; }
.slider label { font-size: 28px; color: rgba(255,255,255,.8); display: flex; justify-content: space-between; }
.slider input[type=range] { width: 100%; height: 14px; accent-color: var(--gold); cursor: pointer; }
.kpi { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); border-radius: 28px; padding: 36px 40px; }
.kpi b { display: block; font-family: var(--serif); font-size: 84px; font-weight: 600; color: var(--gold-bright); }
.kpi span { font-size: 26px; color: rgba(255,255,255,.7); }

.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; margin-top: 10px; }
.st-t { font-size: 30px; font-weight: 700; color: var(--gold-bright); }
.st-p { font-size: 24px; line-height: 1.4; color: rgba(255,255,255,.66); margin: 10px 0 0; }
body.portrait .st-t { font-size: 42px; }
body.portrait .st-p { font-size: 32px; }
body.portrait .foot-note { font-size: 28px; }
.timeline { width: 100%; margin-top: 70px; }
body.portrait .steps5 { grid-template-columns: 1fr; gap: 24px; margin-top: 50px; }
body.portrait .timeline { display: none; }

/* chrome */
#chrome-top { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; pointer-events: none; }
#chrome-top .brand { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 800; letter-spacing: .25em; color: rgba(255,255,255,.85); }
#chrome-top .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font: 700 1.1rem var(--serif); letter-spacing: 0; }
.pill { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); color: #fff; font: 600 13px var(--sans); border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); }
.pill:hover { background: rgba(255,255,255,.22); }
#chrome-bot { position: absolute; inset: auto 0 0 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); }
#dots { display: flex; gap: 6px; align-items: center; }
#dots button { height: 6px; width: 12px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s; }
#dots button:hover { background: rgba(255,255,255,.6); }
#dots button[aria-selected="true"] { width: 36px; background: var(--gold); }
#nav { display: flex; align-items: center; gap: 8px; font-size: 14px; }
#count { color: rgba(255,255,255,.6); margin-right: 8px; font-variant-numeric: tabular-nums; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.round:hover:not(:disabled) { background: rgba(255,255,255,.24); }
.round.go { background: var(--gold); color: var(--navy); }
.round:disabled { opacity: .3; cursor: default; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

/* portrait phones/tablets: 1080-wide stage, single-column slides */
body.portrait .frame { padding: 140px 80px 170px; }
body.portrait .card { padding: 34px; }
body.portrait .card h3 { font-size: 40px; margin-top: 18px; }
body.portrait .ic { width: 72px; height: 72px; }
body.portrait h2 { font-size: 84px; }
body.portrait .title-h { font-size: 112px; white-space: normal; }
body.portrait .lede { font-size: 38px; }
body.portrait .c2, body.portrait .c3, body.portrait .c4 { grid-template-columns: 1fr; }
body.portrait .c4.keep2 { grid-template-columns: 1fr 1fr; }
body.portrait .card p, body.portrait .card ul { font-size: 30px; }
body.portrait .eyebrow { font-size: 28px; }
body.portrait .btn { font-size: 36px; width: 100%; justify-content: center; }
body.portrait .kpi b { font-size: 92px; }
@media (max-width: 700px) { #count, #fs { display: none; } #chrome-top .brand span.t { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .slide, .rv, .pop, .draw, .growx, .growy, .ping, .kenburns, .shimmer, .blink { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .shimmer { color: var(--gold); background: none; }
}
