@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/dm-sans-latin.woff2") format("woff2");
}
:root {
  --paper: #ffffff;
  --ink: #1e293b;
  --body: #4e5d6d;
  --blue: #2456df;
  --blue-hover: #1b43b3;
  --wash: #f1f5f8;
  --line: #d8e1e9;
  --max-width: 1240px;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; transition: color 160ms ease; }
a:hover { color: var(--blue); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(48px, 5.1vw, 70px); line-height: 1.045; }
h2 { font-size: clamp(36px, 4vw, 52px); line-height: 1.1; }
h3 { font-size: clamp(25px, 2.5vw, 32px); line-height: 1.18; letter-spacing: -.035em; }
.container { width: min(var(--max-width), 100%); margin-inline: auto; padding-inline: 36px; }
.section-space { padding-block: 100px; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 14px 20px; background: var(--paper); z-index: 50; }
.skip-link:focus { position: fixed; top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; width: 100%; min-height: 104px; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-inline: max(36px, calc((100% - var(--max-width)) / 2 + 36px)); background: var(--paper); border-bottom: 1px solid transparent; transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.site-header[data-scrolled="true"] { background: rgb(255 255 255 / 96%); border-color: var(--line); box-shadow: 0 5px 18px -16px rgb(30 41 59 / 45%); backdrop-filter: blur(12px); }
.site-header::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--blue); transform: scaleX(var(--reading-progress, 0)); transform-origin: left; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.ui-ready .site-header[data-scrolled="true"]::after { opacity: 1; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { transition: transform 180ms ease; }
.site-header nav { position: relative; isolation: isolate; display: flex; align-items: center; gap: 32px; font-size: 14px; }
.site-header nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav-feedback { position: absolute; left: 0; top: 0; z-index: 0; width: var(--nav-w, 0px); height: var(--nav-h, 40px); border-radius: 5px; background: #edf2f8; opacity: var(--nav-visible, 0); transform: translate3d(var(--nav-x, 0px), var(--nav-y, 0px), 0); pointer-events: none; transition: transform 220ms cubic-bezier(.2, .7, .2, 1), width 220ms cubic-bezier(.2, .7, .2, 1), height 220ms ease, opacity 140ms ease; }
.site-header .nav-contact { padding: 0 19px; border: 1px solid var(--line); border-radius: 6px; transition: transform 160ms ease, border-color 160ms ease, color 160ms ease; }
.nav-contact:hover { border-color: var(--blue); }
.site-header [aria-current="page"], .site-header [aria-current="location"] { color: var(--blue); font-weight: 600; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 58px; padding-top: 48px; padding-bottom: 72px; }
.hero-copy { padding-bottom: 34px; }
.hero h1 { max-width: 560px; }
.hero-intro { margin-top: 28px; max-width: 485px; color: var(--body); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; padding: 13px 23px; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.button-label { display: inline-block; pointer-events: none; transition: transform 160ms ease-out; }
.button-primary { background: var(--blue); color: var(--paper); }
.button-primary:hover { background: var(--blue-hover); color: var(--paper); box-shadow: 0 7px 14px -9px rgb(36 86 223 / 65%); }
.button-secondary { border-color: #a7b7c5; background: transparent; }
.button-secondary:hover { color: var(--blue); border-color: var(--blue); background: var(--wash); }
.hero-photo { perspective: 1100px; }
.hero-photo img { width: 100%; height: 510px; object-fit: cover; object-position: 51% 50%; border-radius: 8px; }
.section-kicker { margin-bottom: 22px; font-size: 14px; font-weight: 500; color: var(--blue); line-height: 1.5; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; border-top: 1px solid var(--line); }
.body-copy { font-size: 18px; line-height: 1.75; color: var(--body); }
.body-copy > p + p { margin-top: 20px; }
.about .body-copy { padding-top: 39px; }
.body-copy .about-principle { color: var(--ink); font-size: 16px; padding-top: 23px; margin-top: 28px; border-top: 1px solid var(--line); }
.applications-band { background: var(--wash); }
.section-intro { max-width: 660px; margin-bottom: 50px; }
.section-description { max-width: 560px; font-size: 18px; line-height: 1.7; color: var(--body); margin-top: 24px; }
.application { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding-block: 34px; border-top: 1px solid #cbd7e1; }
.application:last-child { padding-bottom: 0; }
.application-context { font-size: 13px; margin-bottom: 11px; color: var(--body); }
.application > p { max-width: 540px; font-size: 17px; line-height: 1.75; color: var(--body); }
.technology { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.technology .button { margin-top: 28px; }
.contact-band { background: #eaf0fc; }
.contact { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; padding-block: 74px; }
.contact h2 { font-size: clamp(36px, 3.7vw, 48px); }
.contact p:not(.section-kicker) { margin-top: 24px; max-width: 550px; font-size: 17px; line-height: 1.75; color: var(--body); }
.contact-email { justify-self: end; align-self: center; padding-block: 12px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; color: var(--blue); letter-spacing: -.035em; text-decoration-thickness: 1px; text-underline-offset: 8px; transition: color 160ms ease, text-underline-offset 180ms ease; }
.contact-email:hover { color: var(--blue-hover); text-underline-offset: 5px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 34px; }
.site-footer p { font-size: 12px; line-height: 1.7; color: var(--body); }
.site-footer p span { display: block; }
.photo-credit { text-align: right; }
/* Technical details live in a separate document, not the first introduction. */
.detail-hero { padding-top: 65px; padding-bottom: 72px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 28px; font-size: 14px; }
.detail-hero h1 { max-width: 850px; font-size: clamp(45px, 5.5vw, 72px); }
.detail-intro { max-width: 710px; margin-top: 28px; font-size: 20px; color: var(--body); line-height: 1.7; }
.signal-flow { list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; padding-block: 0 70px; margin-block: 0; gap: 32px; }
.signal-flow li { position: relative; padding: 26px 28px; background: var(--wash); border-radius: 6px; }
.signal-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -25px; top: 50%; transform: translateY(-50%); color: var(--body); }
.signal-flow p { font-size: 18px; font-weight: 500; line-height: 1.5; }
.signal-flow span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--body); }
.technical-steps { list-style: none; counter-reset: step; margin-block: 0; padding-block: 0 85px; }
.technical-steps > li { display: grid; grid-template-columns: 56px 1fr 1.25fr; gap: 28px; border-top: 1px solid var(--line); padding-block: 36px; counter-increment: step; }
.technical-steps > li::before { content: counter(step, decimal-leading-zero); color: var(--blue); font-size: 14px; padding-top: 6px; }
.technical-steps h2 { font-size: clamp(27px, 3vw, 36px); max-width: 350px; }
.technical-steps .body-copy { font-size: 17px; }
.technical-steps .body-copy p + p { margin-top: 16px; }
.questions { max-width: 870px; padding-top: 0; }
.questions h2 { margin-bottom: 32px; }
details { border-top: 1px solid var(--line); padding-block: 14px; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; display: flex; align-items: center; min-height: 44px; list-style: none; font-size: 18px; line-height: 1.5; cursor: pointer; padding-right: 30px; transition: color 160ms ease; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary::after { content: ""; position: absolute; right: 6px; top: calc(50% - 6px); width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 200ms ease; }
details[open] > summary::after { transform: rotate(225deg); }
details[open] > summary { color: var(--blue); }
details p { padding-top: 16px; max-width: 690px; font-size: 16px; line-height: 1.8; color: var(--body); }
.not-found { min-height: 55vh; padding-block: 80px; }
.not-found p { max-width: 550px; margin-top: 24px; }
.not-found .button { margin-top: 28px; }
/* Motion answers pointer/scroll input; content never waits for an entrance effect. */
@media (hover: hover) and (pointer: fine) {
  summary:hover { color: var(--blue); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover, .site-header .nav-contact:hover { transform: translateY(-2px); }
  .ui-ready .button-label { transform: translate(var(--label-x, 0px), var(--label-y, 0px)); }
  .ui-ready .hero-photo img { transform: rotateX(var(--photo-x, 0deg)) rotateY(var(--photo-y, 0deg)); transition: transform 360ms cubic-bezier(.2, .7, .2, 1), box-shadow 200ms ease; }
  .ui-ready .hero-photo[data-pointer-active="true"] img { transition-duration: 160ms; box-shadow: 0 14px 24px -20px rgb(30 41 59 / 65%); }
  .brand:hover img { transform: rotate(-1deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .button:active, .site-header .nav-contact:active { transform: translateY(1px) scale(.985); }
}
@media (min-width: 1440px) {
  .hero { padding-top: 65px; padding-bottom: 85px; }
  .hero-photo img { height: 550px; }
}
@media (max-width: 1020px) {
  .container { padding-inline: 28px; }
  .hero { gap: 32px; }
  .hero h1 { font-size: clamp(43px, 5.4vw, 60px); }
  .hero-intro { font-size: 17px; }
  .hero-photo img { height: 480px; }
  .about, .application, .technology { gap: 56px; }
  .site-header nav { gap: 22px; }
  .contact { gap: 32px; }
  .technical-steps > li { grid-template-columns: 40px 1fr 1.2fr; gap: 20px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 106px; }
  .container { padding-inline: 22px; }
  .section-space { padding-block: 64px; }
  .site-header { min-height: 86px; gap: 16px; }
  .site-header .brand img { width: 115px; }
  .site-header nav { gap: 18px; font-size: 13px; }
  .nav-about, .nav-applications { display: none !important; }
  .site-header .nav-contact { padding-inline: 14px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; padding-bottom: 50px; gap: 30px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { max-width: 580px; font-size: clamp(43px, 8.6vw, 63px); }
  .hero-intro { margin-top: 23px; max-width: 570px; font-size: 17px; }
  .hero-actions { margin-top: 26px; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3; object-position: center; }
  .about, .technology { grid-template-columns: 1fr; gap: 26px; }
  .about .body-copy { padding-top: 0; }
  .section-kicker { margin-bottom: 17px; font-size: 13px; }
  .body-copy { font-size: 17px; }
  .section-description { font-size: 17px; }
  .section-intro { margin-bottom: 36px; }
  .application { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }
  .application > p { max-width: none; font-size: 16px; }
  .application-context { margin-bottom: 8px; }
  .contact { grid-template-columns: 1fr; padding-block: 56px; gap: 24px; }
  .contact-email { justify-self: start; font-size: 30px; }
  .site-footer { flex-wrap: wrap; gap: 24px; }
  .site-footer .brand { width: 100%; }
  .site-footer .brand img { width: 100px; }
  .site-footer p { font-size: 11px; }
  .photo-credit { align-self: end; }
  .detail-hero { padding-top: 30px; padding-bottom: 42px; }
  .detail-hero h1 { font-size: clamp(43px, 8.6vw, 62px); }
  .detail-intro { font-size: 18px; margin-top: 24px; }
  .signal-flow { grid-template-columns: 1fr; gap: 30px; padding-bottom: 48px; }
  .signal-flow li { padding: 22px 24px; }
  .signal-flow li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -27px; transform: translateX(-50%); }
  .technical-steps { padding-bottom: 42px; }
  .technical-steps > li { grid-template-columns: 32px 1fr; gap: 16px; padding-block: 30px; }
  .technical-steps .body-copy { grid-column: 2; font-size: 16px; }
  .questions { padding-top: 0; }
  summary { font-size: 17px; }
  .desktop-break { display: none; }
}
@media (max-width: 359px) {
  .container { padding-inline: 18px; }
  .site-header .brand img { width: 98px; }
  .site-header nav { gap: 10px; font-size: 12px; }
  .site-header .nav-contact { padding-inline: 10px; }
  .hero h1, .detail-hero h1 { font-size: 39px; }
  .button { padding-inline: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a, summary, summary::after, .brand img, .button-label, .hero-photo img, .nav-feedback, .site-header, .site-header::after { transition: none !important; }
  .button-label, .hero-photo img { transform: none !important; }
}

/* Experimental draft: the photograph itself yields. No backing plate or wallpaper. */
body { isolation: isolate; }
.hero-stage { overflow: clip; position: relative; }
.hero { position: relative; display: block; min-height: 790px; width: 100%; max-width: none; padding-top: 38px; padding-bottom: 90px; padding-inline: max(36px, calc((100% - 1240px) / 2 + 36px)); }
.hero-copy { position: relative; z-index: 3; padding-bottom: 0; }
.hero h1 { max-width: 1100px; font-size: clamp(64px, 9.1vw, 132px); line-height: .94; letter-spacing: -.065em; }
.hero-intro { margin-top: 38px; max-width: 440px; font-size: 18px; line-height: 1.6; }
.hero-actions { margin-top: 26px; }
.hero-photo { position: absolute; z-index: 1; right: -5%; top: 3%; width: 59%; height: 87%; perspective: 1500px; }
.hero-photo::before { content: none; }
.photo-surface { position: relative; width: 100%; height: 100%; background: transparent; }
.hero-photo img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: 51% 50%; clip-path: polygon(3% 0, 100% 5%, 97% 99%, 0 95%); }
.elastic-photo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.surface-ready img { opacity: 0; }
.hero-photo .surface-ready img { transform: none; }
.about-scene { background: var(--ink); color: var(--paper); }
.about { min-height: 80svh; align-items: center; padding-block: 135px; gap: 80px; border-top: 0; }
.about h2 { font-size: clamp(55px, 6.8vw, 96px); line-height: 1; }
.about .section-kicker { color: #a4bbff; }
.about .body-copy { padding-top: 40px; color: #d0d8e5; font-size: 20px; line-height: 1.7; }
.about .about-principle { color: white; border-color: #506078; }
.applications-band { position: relative; background: var(--wash); }
.applications-layout { padding-block: 120px; }
.applications-layout h2 { font-size: clamp(48px, 5.3vw, 74px); line-height: 1.02; }
.application-list { position: relative; }
.application { padding-block: 50px; }
.application h3 { font-size: clamp(36px, 4.1vw, 58px); }
.application-context { font-size: 14px; }
.application > p { font-size: 18px; }
.application[data-active="true"] h3 { color: var(--blue); }
.technology { min-height: 640px; padding-block: 130px; }
.technology h2 { font-size: clamp(50px, 6.2vw, 85px); line-height: 1.02; }
.technology .body-copy { border-left: 2px solid var(--blue); padding-left: 32px; }
.contact { grid-template-columns: 1fr; align-items: start; gap: 55px; padding-block: 110px 100px; }
.contact h2 { max-width: 1000px; font-size: clamp(48px, 6vw, 82px); }
.contact p:not(.section-kicker) { max-width: 620px; }
.contact-email { justify-self: start; align-self: start; position: relative; padding-block: 24px 28px; font-size: clamp(44px, 9.5vw, 118px); line-height: 1.15; letter-spacing: -.06em; text-decoration: none; }
.contact-label { display: inline-flex; white-space: nowrap; }
.contact-letter { display: inline-block; transform-origin: center 80%; }
.contact-email::after { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 5px; height: 3px; background: currentColor; transform-origin: left; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
.contact-email:hover::after { transform: scaleX(.94); }
.technical-steps > li { min-height: 300px; align-content: center; }

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .ui-ready .hero-stage { height: 175svh; }
  .ui-ready .hero { position: sticky; top: 104px; min-height: 640px; height: calc(100svh - 104px); padding-top: 3svh; }
  .ui-ready .hero h1 { color: var(--ink); }
  .ui-ready .hero-copy { transform: none; }
  .ui-ready .hero-photo { transform: none; transition: none; }
  .ui-ready .hero-photo img { transform: none; box-shadow: none; }
  .applications-band[data-experience="true"] { --panel-inset: clamp(28px, 4vw, 72px); --panel-gap: clamp(64px, 6vw, 112px); height: 210svh; }
  .applications-band[data-experience="true"] .applications-layout { position: sticky; top: 104px; width: 100%; height: calc(100svh - 104px); min-height: 620px; padding: 34px 0 50px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
  .applications-band[data-experience="true"] .section-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px 70px; width: min(var(--max-width), 100%); max-width: none; margin: 0 auto; padding-inline: 36px; }
  .applications-band[data-experience="true"] .section-kicker { grid-column: 1 / -1; margin-bottom: 4px; }
  .applications-band[data-experience="true"] .section-description { align-self: end; margin: 0; font-size: 17px; }
  .applications-band[data-experience="true"] .application-viewport { width: 100%; overflow: clip; padding-block: 12px 30px; }
  .applications-band[data-experience="true"] .application-list { display: flex; width: max-content; gap: var(--panel-gap); padding-inline: var(--panel-inset); transform: translate3d(var(--application-travel, 0px), 0, 0); }
  .applications-band[data-experience="true"] .application { position: relative; flex: none; width: min(calc(100vw - var(--panel-inset) * 2), 1160px); display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; min-height: 290px; padding-block: 30px; border-top: 1px solid #b6c5d8; }
  /* Travel with the panels: these seams make the sideways movement legible. */
  .applications-band[data-experience="true"] .application + .application::before { content: ""; position: absolute; inset-block: 0; left: calc(var(--panel-gap) / -2); width: 1px; background: #becbd7; pointer-events: none; }
  .applications-band[data-experience="true"] .application:last-child { padding-bottom: 30px; }
  .applications-band[data-experience="true"] .application h3 { font-size: clamp(48px, 5vw, 72px); line-height: 1; }
  .applications-band[data-experience="true"] .application > p { font-size: 18px; line-height: 1.65; }
  .technical-steps h2 { transform: translateY(calc(var(--section-offset, 0px) * .6)); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ui-ready .contact-letter { transform: translateY(var(--letter-y, 0px)) rotate(var(--letter-angle, 0deg)); transition: transform 420ms cubic-bezier(.16,.8,.2,1); }
}
@media (max-width: 1020px) and (min-width: 761px) {
  .hero { padding-inline: 28px; }
  .hero h1 { font-size: 9.2vw; }
  .hero-intro { max-width: 370px; font-size: 17px; }
  .about { gap: 45px; }
  .about h2 { font-size: 64px; }
  .about .body-copy { font-size: 18px; }
  .applications-band[data-experience="true"] .section-intro { gap: 12px 36px; }
  .applications-band[data-experience="true"] .application { gap: 30px; }
  .applications-band[data-experience="true"] .application h3 { font-size: 46px; }
}
@media (max-width: 760px) {
  .hero-stage { overflow: clip; }
  .hero { display: grid; grid-template-columns: 1fr; min-height: 0; gap: 34px; padding-top: 32px; padding-bottom: 60px; padding-inline: 22px; }
  .hero h1 { font-size: clamp(48px, 10.7vw, 76px); line-height: .97; }
  .hero-intro { margin-top: 27px; max-width: 580px; font-size: 17px; }
  .hero-photo { position: relative; width: 100%; height: auto; right: auto; top: auto; }
  .photo-surface { height: auto; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 3; }
  .about { min-height: 0; padding-block: 85px; gap: 34px; }
  .about h2 { font-size: clamp(50px, 10vw, 72px); }
  .about .body-copy { padding-top: 0; font-size: 18px; }
  .applications-layout { padding-block: 80px; }
  .applications-layout h2 { font-size: clamp(42px, 8.4vw, 60px); }
  .application { gap: 22px; padding-block: 36px; }
  .application h3 { font-size: 38px; }
  .application > p { font-size: 16px; }
  .technology { min-height: 0; padding-block: 85px; gap: 32px; }
  .technology h2 { font-size: clamp(46px, 9.5vw, 65px); }
  .technology .body-copy { padding-left: 22px; }
  .contact { gap: 34px; padding-block: 80px 64px; }
  .contact h2 { font-size: 46px; }
  .contact-email { font-size: clamp(34px, 10.4vw, 74px); letter-spacing: -.065em; }
  .technical-steps > li { min-height: 0; }
}
@media (max-width: 359px) {
  .hero { padding-inline: 18px; }
  .hero h1 { font-size: 42px; }
  .contact h2 { font-size: 40px; }
  .contact-email { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .elastic-photo { display: none; }
  .surface-ready img { opacity: 1; }
  .hero-copy, .hero-photo, .hero-photo img, .technical-steps h2, .contact-letter, .contact-email::after { transform: none !important; transition: none !important; }
  .hero h1 { color: var(--ink); mix-blend-mode: normal; }
}
.kinetic-word { display: inline-block; white-space: nowrap; transform-origin: center 80%; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ui-ready .kinetic-word { transform: translateY(var(--word-y, 0px)) rotate(var(--word-angle, 0deg)); transition: transform 460ms cubic-bezier(.16,.8,.2,1); }
}
@media (prefers-reduced-motion: reduce) {
  .kinetic-word { transform: none !important; transition: none !important; }
}
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .ui-ready .hero { min-height: 0; }
  .applications-band[data-experience="true"] .applications-layout { min-height: 0; }
}
@media (min-width: 761px) and (max-height: 800px) and (prefers-reduced-motion: no-preference) {
  .ui-ready .hero { padding-top: 18px; }
  .ui-ready .hero h1 { font-size: clamp(62px, 8.1vw, 104px); }
  .ui-ready .hero-intro { margin-top: 24px; font-size: 16px; line-height: 1.5; }
  .ui-ready .hero-actions { margin-top: 20px; }
  .applications-band[data-experience="true"] .applications-layout { padding-block: 24px 22px; gap: 16px; }
  .applications-band[data-experience="true"] .section-intro { gap: 8px 36px; }
  .applications-band[data-experience="true"] h2 { font-size: 44px; }
  .applications-band[data-experience="true"] .section-description { font-size: 15px; line-height: 1.6; }
  .applications-band[data-experience="true"] .application { min-height: 220px; padding-block: 20px; }
  .applications-band[data-experience="true"] .application h3 { font-size: 42px; }
  .applications-band[data-experience="true"] .application > p { font-size: 16px; }
}
@media (min-width: 761px) and (max-height: 599px) {
  .ui-ready .hero-stage { height: auto; }
  .ui-ready .hero { position: relative; top: auto; min-height: 680px; height: auto; }
  .ui-ready .hero-copy { transform: none; }
}

/* Native scroll-video scene: stable layout, bounded decoder, static fallbacks. */
.video-stage { display: contents; }
.site-header .brand { min-height: 44px; align-items: center; }
.hero-photo .scroll-video {
  clip-path: polygon(3% 0, 100% 5%, 97% 99%, 0 95%);
  -webkit-user-select: none;
  user-select: none;
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  /* Reserve the scene once on enhancement. Decoder unloads must not collapse
     the document beneath somebody who has already scrolled past this scene. */
  .ui-ready .hero-stage { overflow: visible; }
  .ui-ready .video-stage {
    display: block;
    min-height: 150svh;
    position: relative;
    align-self: stretch;
  }
  .ui-ready .video-stage .hero-photo {
    --scene-photo-height: min(60svh, calc((100vw - 44px) * .75));
    position: sticky;
    top: calc(84px + (100svh - 84px - var(--scene-photo-height)) / 2);
    align-self: start;
    height: var(--scene-photo-height);
    transform: none;
  }
  .ui-ready .video-stage .photo-surface,
  .ui-ready .video-stage .hero-photo img { height: 100%; }
}
@media (max-width: 359px) and (prefers-reduced-motion: no-preference) {
  .ui-ready .video-stage .hero-photo {
    --scene-photo-height: min(60svh, calc((100vw - 36px) * .75));
  }
}
@media (orientation: landscape) and (max-height: 599px) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .ui-ready .hero-stage { overflow: visible; }
  .ui-ready .hero { display: grid; grid-template-columns: 1fr; gap: 34px; min-height: 0; height: auto; padding-inline: 22px; padding-bottom: 60px; }
  .ui-ready .video-stage { display: block; position: relative; min-height: 170svh; align-self: stretch; }
  .ui-ready .video-stage .hero-photo { position: sticky; top: 116px; right: auto; width: min(100%, calc((100svh - 138px) * 1.5)); height: calc(100svh - 138px); margin-inline: auto; transform: none; }
  .ui-ready .video-stage .photo-surface,
  .ui-ready .video-stage .hero-photo img { height: 100%; }
}
/* Reduced motion is gated by the player; an explicit Play request remains available. */

/* The original page design is unchanged; only the photo gains a sensing overlay. */
.story-overlay { position: absolute; inset: 9% 13% 20% 7%; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 10px; pointer-events: none; z-index: 2; }
.wobbl-indicator { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 100px; background: #fff; box-shadow: 0 3px 20px #16263c14; color: var(--ink); font-size: 12px; line-height: 1.3; }
.hero-photo .wobbl-indicator img { width: 86px; height: 23px; aspect-ratio: auto; object-fit: contain; clip-path: none; border-radius: 0; transform: none; box-shadow: none; transition: none; }
.indicator-light { flex: none; width: 10px; height: 10px; background: #64748b; border-radius: 50%; }
[data-story-phase="notice"] .indicator-light, [data-story-phase="detect"] .indicator-light { background: #cf3434; box-shadow: 0 0 0 3px #cf34341a; }
[data-story-phase="respond"] .indicator-light { background: #e4ad13; box-shadow: 0 0 0 3px #e4ad1326; }
[data-story-phase="recover"] .indicator-light { background: #2b875b; box-shadow: 0 0 0 3px #2b875b1a; }
.story-status { max-width: 320px; padding: 12px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.45; box-shadow: 0 3px 20px #16263c14; }
.story-status p { display: none; margin: 0; }
[data-story-phase="static"] .status-static,
[data-story-phase="notice"] .status-notice,
[data-story-phase="detect"] .status-detect,
[data-story-phase="respond"] .status-respond,
[data-story-phase="recover"] .status-recover { display: block; }
.story-description { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .story-overlay { inset: 10% 7% 10%; justify-content: space-between; gap: 8px; }
  .wobbl-indicator { padding: 8px 11px; font-size: 11px; gap: 7px; }
  .hero-photo .wobbl-indicator img { width: 72px; height: 19px; }
  .story-status { padding: 9px 12px; font-size: 12px; max-width: 100%; }
}

/* A quiet frame for the scroll-controlled recovery sequence. */
.hero-photo .photo-surface { border-radius: 14px; }
.hero-photo .photo-surface > img, .hero-photo .scroll-video { clip-path: none; border-radius: 14px; }
@media (max-width: 760px) {
  .story-overlay { bottom: 24%; }
}
