/* HossAI portfolio: authored scenes, inspectable work, one visual language. */
:root {
  --bg: #0c0d12;
  --surface: #181c1e;
  --surface-raised: #1f2528;
  --text: #f4f3ef;
  --muted: #bac2c5;
  --quiet: #a4a8ba;
  --line: #2f373b;
  --line-strong: #576368;
  --accent: #79c1e5;
  --accent-ink: #c3e4f4;
  --accent-soft: rgba(121,193,229, .13);
  --brand-violet: #79c1e5;
  --brand-magenta: #79bde5;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-precise: cubic-bezier(.4, 0, .2, 1);
}
body { background: var(--bg); }
.site-header { background: rgba(12,13,18, .86); border-bottom-color: rgba(255,255,255,.09); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.header-inner { min-height: 74px; gap: 18px; }
.brand-copy strong { font-weight: 500; }
.brand-mark { color: var(--accent-ink); }
.site-nav a { position: relative; border-bottom: 0; }
.site-nav a::after { content: ""; position: absolute; inset-inline: 12px; inset-block-end: 4px; height: 1px; background: var(--brand-violet); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--motion-ease); }
[dir="rtl"] .site-nav a::after { transform-origin: right center; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { border: 0; }
.language-switch { border-color: rgba(255,255,255,.18); }
.eyebrow, .card-category, .perspective-card .eyebrow, .experience-card .eyebrow, .feature-copy > .eyebrow, .section-heading .eyebrow { color: var(--accent-ink); }
.text-link, .card-link, .evidence-link, .contact-email { color: var(--accent-ink); }
.button { position: relative; overflow: hidden; background: var(--brand-violet); border-color: var(--brand-violet); color: #ffffff; box-shadow: inset 0 1px rgba(255,255,255,.15), 0 6px 26px rgba(121,193,229,.13); transition: background .25s, border-color .25s, box-shadow .35s; }
.button:hover { background: #89cbec; border-color: #89cbec; box-shadow: inset 0 1px rgba(255,255,255,.2), 0 8px 34px rgba(121,193,229,.25); }
.button-secondary, .button.button-secondary { color: var(--text); background: rgba(255,255,255,.035); border-color: #576368; box-shadow: none; }
.button-secondary:hover, .button.button-secondary:hover { color: #ffffff; background: rgba(121,193,229,.1); border-color: var(--accent-ink); }
.metric { color: var(--accent-ink); }
::selection { color: #ffffff; background: #64a2c1; }

/* A full-bleed rendered scene, with typography given its own quiet field. */
.cinematic-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(810px, calc(100svh - 74px)); background: #070909; overflow: clip; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-film-wrap { position: absolute; z-index: -2; inset: -2%; overflow: hidden; transform: translate3d(var(--parallax-x,0px),var(--parallax-y,0px),0) scale(1.035); will-change: transform; }
.hero-film, .hero-film-wrap > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 69% 50%; }
.cinematic-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg,rgba(10,13,15,.98) 0%,rgba(10,13,15,.91) 23%,rgba(10,13,15,.68) 43%,rgba(10,13,15,.08) 80%),linear-gradient(0deg,#0c0d12 0%,transparent 24%,transparent 80%,rgba(11,14,16,.22)); }
.hero-inner { position: relative; width: min(1200px, calc(100% - var(--space) * 2)); margin-inline: auto; padding-block: 84px 104px; }
.cinematic-hero .hero-copy { max-width: 650px; }
.cinematic-hero .eyebrow { margin-bottom: 24px; color: #cce8f6; letter-spacing: .035em; font-size: 14px; }
.cinematic-hero h1 { max-width: 10.6em; color: #ffffff; font-size: clamp(48px,5.4vw,72px); font-weight: 450; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
.cinematic-hero .hero-copy > p:not(.eyebrow):not(.meta) { max-width: 33em; color: #c4c6d1; font-size: 18px; line-height: 1.75; }
.cinematic-hero .hero-copy > p.hero-roles { max-width: 36em; font-size: 16px; color: #b3b7c8; margin-top: 21px; }
.cinematic-hero .hero-copy > .meta { max-width: 35em; color: #aeb2c4; margin-top: 22px; }
.cinematic-hero .hero-actions { margin-top: 30px; gap: 12px; }
.cinematic-hero .button-secondary { background: rgba(11,14,16,.38); backdrop-filter: blur(8px); }
.hero-caption { position: absolute; inset-inline-end: max(var(--space), calc((100% - 1200px) / 2)); inset-block-end: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 300px; padding-inline-start: 14px; border-inline-start: 1px solid rgba(195,228,244,.65); color: #d8e0e4; font-size: 14px; line-height: 1.55; }
.hero-caption strong { font-size: 14px; font-weight: 500; }
.hero-caption span { color: #b9c4c9; }
.cinematic-hero > .hero-caption.wrap { inset-inline: 0; width: min(1200px,calc(100% - var(--space) * 2)); max-width: none; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0 0; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.13); }
.cinematic-hero .hero-copy > p.hero-role-line { max-width: 470px; color: #b6c0c5; font-size: 14px; line-height: 1.7; margin-top: 25px; }
[dir="rtl"] .cinematic-hero::before { background: linear-gradient(270deg,rgba(10,13,15,.98) 0%,rgba(10,13,15,.91) 23%,rgba(10,13,15,.68) 43%,rgba(10,13,15,.08) 80%),linear-gradient(0deg,#0c0d12 0%,transparent 24%,transparent 80%,rgba(11,14,16,.22)); }
[dir="rtl"] .hero-film { object-position: 31% 50%; }
[dir="rtl"] .cinematic-hero h1 { letter-spacing: 0; line-height: 1.38; }
[dir="rtl"] .cinematic-hero .eyebrow { letter-spacing: 0; }
.motion-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: var(--text); background: rgba(255,255,255,.025); font-size: 14px; line-height: 1.4; }
.motion-toggle:hover { background: rgba(121,193,229,.11); border-color: var(--accent-ink); }
.motion-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
.motion-toggle:disabled { opacity: .7; cursor: default; }
.motion-ready:not(.motion-paused) .cinematic-hero .hero-copy > :nth-child(1) { animation: hero-type-in .85s var(--motion-ease) .08s both; }
.motion-ready:not(.motion-paused) .cinematic-hero .hero-copy > :nth-child(2) { animation: hero-type-in 1.1s var(--motion-ease) .18s both; }
.motion-ready:not(.motion-paused) .cinematic-hero .hero-copy > :nth-child(3) { animation: hero-type-in 1.05s var(--motion-ease) .3s both; }
.motion-ready:not(.motion-paused) .cinematic-hero .hero-copy > :nth-child(n+4) { animation: hero-type-in 1.05s var(--motion-ease) .42s both; }
@keyframes hero-type-in { from { opacity: 0; transform: translate3d(0,30px,0); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: translate3d(0,0,0); clip-path: inset(0); } }

/* Proof is given a real image area, not a row of decorative pictograms. */
.section { padding-block: clamp(48px,6.2vw,80px); }
.section + .section { border-top-color: rgba(255,255,255,.08); }
.section-heading { margin-bottom: 30px; }
.proof-grid { gap: 22px; }
.proof-card { position: relative; background: linear-gradient(155deg,#1c2225,#14181a 80%); border-color: rgba(255,255,255,.12); border-radius: 12px; transition: border-color .4s,box-shadow .45s; }
.proof-card:hover { border-color: rgba(171,220,245,.5); box-shadow: 0 16px 52px rgba(0,0,0,.2); }
.proof-visual { position: relative; isolation: isolate; aspect-ratio: 16 / 10; padding: 0; background: #14181a; border-bottom-color: rgba(255,255,255,.1); overflow: hidden; }
.proof-visual > img, .proof-visual > video, .proof-visual > .premium-illustration { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform .9s var(--motion-ease); }
.proof-card:hover .proof-visual > :is(img,video,.premium-illustration) { transform: scale(1.045); }
.proof-visual > svg { width: 100%; height: 100%; padding: 24px; color: var(--accent-ink); }
.proof-visual::after { content: ""; position: absolute; z-index: 1; inset: 58% 0 0; background: linear-gradient(transparent,rgba(9,12,14,.72)); pointer-events: none; }
.visual-hud { position: absolute; z-index: 2; inset-inline: 17px; inset-block-end: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #eeebf7; font-size: 14px; line-height: 1.45; }
.visual-hud > span { display: inline-flex; align-items: center; gap: 8px; }
.card-visual-label { position: absolute; z-index: 2; inset-inline-start: 20px; inset-block-end: 17px; color: #d5e1e7; font-size: 14px; }
.card-content h3 { font-weight: 450; line-height: 1.3; }
.card-content .card-role { color: var(--muted); }
.card-result { border-top-color: rgba(255,255,255,.1); }
.card-orbit { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-ink); }
.card-orbit svg { width: 100%; height: 100%; }
.card-metric { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: center; gap: 14px; color: #faf8ff; font-size: clamp(54px,6vw,82px); font-weight: 450; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.card-metric small, .card-metric span { color: #bac6cc; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.scope-strip { border-color: rgba(255,255,255,.1); }
.perspective-card, .experience-card { border-top-color: rgba(121,193,229,.7); }

/* The case itself becomes a staged, controllable visual narrative. */
.story-section { position: relative; min-height: 180svh; margin-block: 40px; padding-block: 58px 48px; border-block: 1px solid rgba(255,255,255,.08); background: radial-gradient(ellipse at 24% 54%,rgba(71,121,146,.12),transparent 58%),#0d1012; }
.story-header { position: relative; z-index: 2; margin-bottom: 22px; }
.story-header h2 { max-width: 880px; }
.story-header p:not(.eyebrow) { max-width: 770px; color: var(--muted); margin-top: 17px; }
.story-sticky { position: sticky; inset-block-start: 92px; width: min(1200px,calc(100% - var(--space) * 2)); min-height: min(620px,calc(100svh - 112px)); margin-inline: auto; padding-block: 28px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: 46px; align-items: center; }
.story-stage { position: relative; min-width: 0; width: 100%; color: #d1eaf6; isolation: isolate; }
.story-stage::before { content: ""; position: absolute; z-index: -1; inset: 8% 2%; background: radial-gradient(ellipse,rgba(121,193,229,.13),transparent 65%); filter: blur(28px); }
.story-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.story-art-mobile { display: none; }
.story-copy { min-width: 0; padding-block: 12px; }
.story-step { margin: 0 0 26px; }
.story-step .eyebrow { margin-bottom: 15px; }
.story-step h3 { font-size: clamp(26px,2.4vw,32px); line-height: 1.25; margin-bottom: 17px; }
.story-step > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.75; }
.story-enhanced .story-steps { position: relative; min-height: 245px; }
.story-enhanced .story-step { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: translate3d(0,16px,0); transition: opacity .32s ease,transform .52s var(--motion-ease),visibility .32s; }
.story-enhanced .story-step.is-active { position: relative; opacity: 1; visibility: visible; transform: translate3d(0,0,0); }
.story-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.story-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 9px 13px; border: 1px solid #454e52; border-radius: 6px; background: rgba(255,255,255,.025); color: #bbc4c8; font: inherit; font-size: 14px; line-height: 1.5; text-align: start; }
.story-controls button:hover { border-color: var(--accent-ink); color: #ffffff; }
.story-controls button[aria-pressed="true"] { background: rgba(121,193,229,.17); border-color: #94c9e4; color: #ecf7fd; }
.story-controls button[data-story-replay] { color: #cde7f5; border-color: transparent; padding-inline: 6px; }
.story-controls button[data-story-replay] svg { width: 17px; height: 17px; }
.story-progress { height: 2px; overflow: hidden; margin-top: 24px; background: rgba(255,255,255,.13); border-radius: 2px; }
.story-progress > span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,#79c1e5,#79bde5); transform: scaleX(var(--story-progress,0)); transform-origin: left center; }
[dir="rtl"] .story-progress > span { transform-origin: right center; }
.story-stage .scene-label { fill: #c4cdd1; font: 400 24px var(--font); letter-spacing: 0; }
.story-stage .scene-label-emphasis { fill: #e5f4fb; font-weight: 500; }
.story-stage .scene-label-small { fill: #b1bcc2; font: 400 22px var(--font); }
.story-stage .scene-numeral { fill: #faf7ff; font: 450 63px var(--font); letter-spacing: -.05em; }
.story-stage .scene-count { fill: #e5f4fb; font: 500 24px var(--font); }
.story-stage .scene-surface { fill: #181d1f; stroke: #465157; stroke-width: 1.2; }
.story-stage .scene-grid { fill: none; stroke: #79c1e5; stroke-width: .8; opacity: .1; }
.story-stage .scene-track { fill: none; stroke: #5f7079; stroke-width: 2; opacity: .46; }
.story-stage .scene-flow { fill: none; stroke-width: 3; stroke-linecap: round; }
.story-stage .scene-node { fill: #181e21; stroke: #9ed2ec; stroke-width: 1.5; }
.release-ai-track { transform: translateY(calc(var(--release-lift,-70px) * var(--release-separation,0))); }
.release-traveler { transform: translateX(calc(var(--release-distance,686px) * var(--release-travel,0))); }
.release-platform-traveler { transform: translateX(calc(var(--release-distance,686px) * var(--platform-travel,0))); opacity: .7; }
.release-trace { stroke-dasharray: 100; stroke-dashoffset: calc(100 - 100 * var(--release-travel,0)); }
.release-dependency { opacity: calc(1 - var(--release-separation,0)); }
.release-independent-label { opacity: var(--release-separation,0); }
.release-shared-label { opacity: calc(1 - var(--release-separation,0)); }
.release-acceptance { opacity: var(--release-acceptance,0); transform-box: fill-box; transform-origin: center; transform: scale(calc(.9 + var(--release-acceptance,0) * .1)); }
.release-source-ring { transform-box: fill-box; transform-origin: center; animation: source-ring 3.2s ease-out infinite; }
@keyframes source-ring { 0% { opacity: .65; transform: scale(.75); } 75%,100% { opacity: 0; transform: scale(1.6); } }
.admission-request { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 8 92; animation: admitted-trace 3s linear infinite; animation-delay: calc(var(--i,0) * -.23s); }
@keyframes admitted-trace { from { stroke-dashoffset: 108; } to { stroke-dashoffset: 0; } }
.admission-gate { opacity: calc(.62 + var(--admission-check,0) * .38); }
.admission-gate-ring { fill: none; stroke: #aadcf5; stroke-width: 1.4; opacity: var(--admission-check,0); stroke-dasharray: 13 7; animation: gate-record 7s linear infinite; }
@keyframes gate-record { to { stroke-dashoffset: -120; } }
.admission-outbound { stroke-dasharray: 100; stroke-dashoffset: calc(100 - 100 * var(--admission-delivery,0)); }
.admission-effect { opacity: calc(.24 + var(--admission-delivery,0) * .76); }
.admission-effect .scene-numeral { opacity: var(--admission-delivery,0); }
.admission-reject { opacity: var(--admission-check,0); }
.admission-pulse { transform-box: fill-box; transform-origin: center; opacity: var(--admission-delivery,0); animation: effect-resolve 3s ease-in-out infinite; }
@keyframes effect-resolve { 0%,100% { opacity: .24; transform: scale(1); } 50% { opacity: .65; transform: scale(1.08); } }
.story-section[data-phase="2"] .admission-request { animation-play-state: paused; opacity: .26; }
.story-section[data-mode="manual"] :is(.release-ai-track,.release-traveler,.release-platform-traveler,.release-acceptance,.admission-effect) { transition: transform .8s var(--motion-ease),opacity .7s ease; }
.story-section[data-mode="manual"] :is(.release-dependency,.release-independent-label,.release-shared-label,.admission-reject,.admission-gate) { transition: opacity .7s ease; }
.story-section[data-mode="manual"] :is(.release-trace,.admission-outbound) { transition: stroke-dashoffset .85s var(--motion-ease); }

/* A product is framed as an application, with the evidence inside the frame. */
.product-feature { position: relative; padding-block: 70px; }
.product-feature > .section-heading { max-width: 850px; }
.product-screen { position: relative; overflow: hidden; min-width: 0; border: 1px solid rgba(195,226,242,.3); border-radius: 13px; background: #14181a; box-shadow: 0 26px 90px rgba(0,0,0,.32),0 0 65px rgba(121,193,229,.08); }
.product-screen-chrome { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; min-height: 57px; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg,#1f272b,#181d1f); font-size: 14px; color: #c9d2d7; }
.product-screen-chrome strong { font-weight: 500; color: #e3eef4; }
.product-workspace { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 1px; background: rgba(255,255,255,.09); }
.product-source, .product-answer { min-width: 0; padding: 30px; background: #15191b; }
.product-source h3, .product-answer h3 { font-size: 22px; margin-bottom: 18px; }
.product-source p, .product-answer p { color: var(--muted); }
.product-source .source-row { display: grid; gap: 5px; padding: 14px 16px; margin-top: 10px; border: 1px solid #343c3f; border-radius: 6px; background: #1a1f21; font-size: 14px; }
.product-source .source-row.is-selected, .product-source .source-row[aria-selected="true"] { border-color: #75abc6; background: rgba(121,193,229,.12); }
.product-answer { background: linear-gradient(150deg,#1b2225,#15191b 80%); }
.product-answer .answer-panel { margin-top: 0; border-color: rgba(167,212,235,.45); background: rgba(20,27,30,.7); }
.product-status { display: inline-flex; align-items: center; gap: 9px; color: #d6edf8; padding: 7px 10px; border: 1px solid rgba(151,203,229,.35); border-radius: 5px; font-size: 14px; background: rgba(121,193,229,.09); }
.product-status::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #adddf5; box-shadow: 0 0 12px rgba(121,193,229,.45); }
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.demo-trigger { display: inline-flex; align-items: center; gap: 11px; min-height: 48px; padding: 10px 16px; background: transparent; border: 1px solid #4c585f; border-radius: 6px; color: #e4f0f6; font-size: 16px; text-decoration: none; }
.demo-trigger svg { width: 23px; height: 23px; flex-shrink: 0; }
.demo-trigger:hover { border-color: #abd7ee; background: rgba(121,193,229,.1); }
.industrial-feature { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: 48px; }
.industrial-media { position: relative; min-width: 0; overflow: hidden; aspect-ratio: 16 / 11; border: 1px solid rgba(195,226,242,.2); border-radius: 12px; background: #161b1d; }
.industrial-media img, .industrial-media video { width: 100%; height: 100%; object-fit: cover; }
.industrial-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 80px rgba(9,12,13,.25); pointer-events: none; }
.leadership-feature { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: 64px; align-items: center; }
.leader-portrait { position: relative; width: 100%; max-width: 390px; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 12px; border: 1px solid rgba(188,223,241,.3); background: var(--surface); }
.leader-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.leader-portrait::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,rgba(11,15,17,.75)); pointer-events: none; }
.leader-portrait figcaption { position: absolute; z-index: 2; inset-inline: 23px; inset-block-end: 22px; color: #e8dfef; font-size: 14px; line-height: 1.6; }
.leadership-feature h2, .industrial-feature h2 { margin-bottom: 21px; }
.leadership-feature p, .industrial-feature p { color: var(--muted); }
.leadership-feature .eyebrow, .industrial-feature .eyebrow { color: var(--accent-ink); }
.cta-panel { background: radial-gradient(ellipse at 100% 0,rgba(121,193,229,.12),transparent 65%),#171c1e; border-color: #465861; }
.quote-panel { border-inline-start-color: var(--brand-violet); }
.site-footer { border-top-color: rgba(255,255,255,.1); }

/* Opt-in progressive enhancement: content remains fully visible without JS. */
[data-reveal].reveal-ready { transition: opacity .7s var(--motion-ease),transform .95s var(--motion-ease),clip-path 1.1s var(--motion-ease); transition-delay: var(--reveal-delay,0ms); }
[data-reveal].reveal-ready:not(.is-revealed) { opacity: 0; transform: translate3d(0,30px,0); }
[data-reveal="image"].reveal-ready:not(.is-revealed) { opacity: 1; transform: translate3d(0,22px,0); clip-path: inset(0 0 24% 0 round 12px); }
[data-reveal="line"].reveal-ready:not(.is-revealed) { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
[dir="rtl"] [data-reveal="line"].reveal-ready:not(.is-revealed) { clip-path: inset(0 0 0 100%); }
[data-reveal].is-revealed { opacity: 1; transform: translate3d(0,0,0); clip-path: inset(0); }
.motion-region:not(.in-view) *, .motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-paused [data-reveal].reveal-ready { opacity: 1; transform: none; clip-path: none; }
.motion-paused .cinematic-hero .hero-copy > * { animation: none; opacity: 1; transform: none; clip-path: none; }
.motion-paused .hero-film-wrap { will-change: auto; }
.media-dialog { position: fixed; width: min(1120px,calc(100% - 40px)); max-height: calc(100svh - 40px); margin: auto; padding: 12px; overflow: auto; color: var(--text); background: #131719; border: 1px solid #5e747f; border-radius: 12px; box-shadow: 0 24px 120px rgba(0,0,0,.7); }
.media-dialog:not([open]) { display: none; }
.media-dialog::backdrop { background: rgba(4,7,8,.88); backdrop-filter: blur(10px); }
.media-dialog[open] { animation: dialog-arrive .42s var(--motion-ease) both; }
.motion-paused .media-dialog[open] { animation: none !important; opacity: 1; transform: none; }
.media-dialog video { width: 100%; max-height: 78svh; height: auto; border-radius: 6px; background: #090c0d; }
.media-dialog [data-close-demo], .media-dialog .dialog-close { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 13px; margin-inline-start: auto; margin-bottom: 10px; color: #ede6f5; background: #242b2f; border: 1px solid #4d5d65; border-radius: 6px; font: inherit; font-size: 14px; }
.media-dialog h2, .media-dialog > p { padding-inline: 12px; }
.media-dialog h2 { font-size: 24px; margin-bottom: 16px; }
.media-dialog > p { color: var(--muted); font-size: 14px; margin-top: 14px; }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 1440px) {
  .cinematic-hero { min-height: 790px; }
  .hero-film { object-position: 62% 50%; }
  [dir="rtl"] .hero-film { object-position: 38% 50%; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 10px; }
  .motion-toggle-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .motion-toggle { padding-inline: 11px; }
  .story-sticky { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 28px; }
  .story-step h3 { font-size: 27px; }
  .story-stage .scene-label, .story-stage .scene-label-small { font-size: 27px; }
  .leadership-feature { gap: 42px; }
}
@media (max-width: 960px) {
  .cinematic-hero { min-height: 740px; }
  .hero-inner { padding-block: 68px 116px; }
  .cinematic-hero .hero-copy { max-width: 580px; }
  .cinematic-hero h1 { font-size: 58px; }
  .hero-film { object-position: 65% 50%; }
  .cinematic-hero::before { background: linear-gradient(90deg,rgba(10,13,15,.96),rgba(10,13,15,.82) 48%,rgba(10,13,15,.24)),linear-gradient(0deg,#0c0d12,transparent 30%); }
  [dir="rtl"] .cinematic-hero::before { background: linear-gradient(270deg,rgba(10,13,15,.96),rgba(10,13,15,.82) 48%,rgba(10,13,15,.24)),linear-gradient(0deg,#0c0d12,transparent 30%); }
  .story-section { min-height: 170svh; }
  .story-sticky { grid-template-columns: minmax(0,1fr); gap: 0; top: 84px; padding-block: 10px 24px; }
  .story-stage { max-width: 710px; margin-inline: auto; }
  .story-stage svg { max-height: 390px; }
  .story-stage .scene-label { font-size: 24px; }
  .story-stage .scene-label-small { font-size: 22px; }
  .story-copy { max-width: 710px; width: 100%; margin-inline: auto; }
  .story-enhanced .story-steps { min-height: 155px; }
  .story-controls { margin-top: 10px; }
  .story-progress { margin-top: 18px; }
  .industrial-feature { gap: 30px; }
  .product-source, .product-answer { padding: 23px; }
}
@media (max-width: 760px) {
  .cinematic-hero { min-height: 810px; align-items: start; }
  .hero-inner { padding-block: 44px 280px; }
  .cinematic-hero .hero-copy { max-width: 610px; }
  .cinematic-hero h1 { font-size: clamp(42px,8.5vw,58px); max-width: 11em; }
  .cinematic-hero .hero-copy > p:not(.eyebrow):not(.meta) { font-size: 16px; line-height: 1.7; max-width: 36em; }
  .hero-film-wrap { inset: 20% -15% -3%; }
  .hero-film { object-position: 65% 85%; }
  [dir="rtl"] .hero-film { object-position: 65% 85%; }
  .cinematic-hero::before, [dir="rtl"] .cinematic-hero::before { background: linear-gradient(180deg,#0b0e10 0%,rgba(11,14,16,.96) 24%,rgba(11,14,16,.72) 48%,rgba(11,14,16,.04) 76%,#0c0d12 100%); }
  .hero-caption { inset-inline: var(--space); inset-block-end: 27px; max-width: 330px; }
  .cinematic-hero > .hero-caption.wrap { flex-wrap: wrap; gap: 9px 20px; padding-top: 15px; }
  .story-section { min-height: 0; margin-block: 20px; padding-block: 42px 32px; }
  .story-header { margin-bottom: 8px; }
  .story-sticky { position: relative; top: auto; min-height: 0; padding-block: 0; }
  .story-stage svg { max-height: none; }
  .story-enhanced .story-steps { min-height: 185px; }
  .story-controls button[data-story-step] { flex: 1 1 110px; }
  .story-copy { padding-top: 8px; }
  .industrial-feature, .leadership-feature { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .industrial-media { aspect-ratio: 16 / 10; }
  .leader-portrait { max-width: 350px; }
  .product-workspace { grid-template-columns: minmax(0,1fr); }
  .product-feature { padding-block: 46px; }
  .product-screen-chrome { padding: 14px 18px; }
}
@media (max-width: 620px) {
  .header-inner { gap: 7px; min-height: 68px; }
  .brand { gap: 7px; }
  .brand-mark { width: 27px; height: 27px; flex-basis: 27px; }
  .brand-copy strong { font-size: 14px; }
  .language-switch, .menu-toggle, .motion-toggle { min-width: 42px; min-height: 44px; padding-inline: 9px; }
  .cinematic-hero { min-height: 800px; }
  .hero-inner { padding-block: 37px 260px; }
  .cinematic-hero .eyebrow { font-size: 14px; margin-bottom: 20px; }
  .cinematic-hero h1 { font-size: clamp(38px,9vw,48px); line-height: 1.12; }
  [dir="rtl"] .cinematic-hero h1 { font-size: clamp(36px,8.6vw,46px); line-height: 1.45; }
  .cinematic-hero .hero-actions { margin-top: 24px; }
  .cinematic-hero .hero-copy > p.hero-roles { font-size: 14px; line-height: 1.8; margin-top: 17px; }
  .cinematic-hero .hero-copy > .meta { font-size: 14px; line-height: 1.7; margin-top: 18px; }
  .hero-film-wrap { inset: 30% -36% -2%; }
  .hero-caption { inset-block-end: 24px; }
  .section { padding-block: 43px; }
  .proof-grid { gap: 24px; }
  .proof-visual { aspect-ratio: 16 / 10; }
  .story-art-desktop { display: none; }
  .story-art-mobile { display: block; }
  .story-stage { max-width: 450px; }
  .story-stage .scene-label { font-size: 18px; }
  .story-stage .scene-label-small { font-size: 17px; }
  .story-stage .scene-count { font-size: 18px; }
  .story-stage .scene-numeral { font-size: 42px; }
  .story-step h3 { font-size: 25px; }
  .story-enhanced .story-steps { min-height: 220px; }
  .story-step p { font-size: 16px; }
  .story-controls { gap: 8px; }
  .story-controls button { padding: 10px 12px; }
  .product-source, .product-answer { padding: 21px; }
  .product-actions { gap: 12px; }
  .product-actions .button, .product-actions .demo-trigger { width: 100%; }
  .media-dialog { width: calc(100% - 20px); max-height: calc(100svh - 20px); padding: 9px; }
  .media-dialog video { max-height: 70svh; }
}
@media (max-width: 380px) {
  .brand-mark { display: none; }
  .cinematic-hero { min-height: 840px; }
  .cinematic-hero h1 { font-size: 38px; }
  .hero-inner { padding-block-end: 240px; }
  .story-enhanced .story-steps { min-height: 250px; }
}
/* Small screens get the complete object as a scene below the introduction. */
@media (min-width: 961px) {
  .hero-film { -webkit-mask-image: linear-gradient(180deg,transparent 0%,#000000 7%,#000000 92%,transparent 100%); mask-image: linear-gradient(180deg,transparent 0%,#000000 7%,#000000 92%,transparent 100%); }
}
@media (max-width: 960px) {
  .cinematic-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; background: #070909; }
  .hero-inner { order: 1; width: min(1200px,calc(100% - var(--space) * 2)); padding: 42px 0 0; }
  .cinematic-hero .hero-copy { max-width: 100%; }
  .hero-film-wrap { order: 2; position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 420px; margin: 0; transform: none !important; z-index: 0; will-change: auto; overflow: hidden; background: #070909; }
  .hero-film, [dir="rtl"] .hero-film { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center center; -webkit-mask-image: none; mask-image: none; }
  .hero-film-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,#070909 0%,transparent 8%,transparent 91%,#070909 100%); }
  .cinematic-hero::before, [dir="rtl"] .cinematic-hero::before { background: none; }
  .cinematic-hero > .hero-caption.wrap { order: 3; position: relative; inset: auto; width: min(1200px,calc(100% - var(--space) * 2)); max-width: none; margin-inline: auto; padding: 22px 0; background: #070909; }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic-hero .hero-copy > *, [data-reveal].reveal-ready { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-film-wrap { transform: none !important; will-change: auto; }
  .story-section { min-height: 0; }
  .story-sticky { position: relative; top: auto; min-height: 0; }
  .story-enhanced .story-steps { min-height: 0; }
  .story-enhanced .story-step { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .proof-card:hover .proof-visual > :is(img,video,.premium-illustration) { transform: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media print {
  .hero-film-wrap, .hero-caption, .motion-toggle, .story-controls, .story-progress, .media-dialog { display: none !important; }
  .cinematic-hero { min-height: 0; color: #171918; background: #ffffff; }
  .cinematic-hero::before { display: none; }
  .hero-inner { padding-block: 28px; }
  .cinematic-hero h1, .cinematic-hero .hero-copy p { color: #171918 !important; }
  .story-section { min-height: 0; background: #ffffff; }
  .story-sticky { position: relative; top: auto; min-height: 0; display: block; }
  .story-enhanced .story-step { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 20px; }
  [data-reveal].reveal-ready { opacity: 1; transform: none; clip-path: none; }
}
