@font-face { font-family: "Mulish"; src: url("fonts/mulish-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
:root {
  --ink: #172b2e; --muted: #576963; --paper: #f8f7f2; --night: #101c21; --cream: #f4efe3;
  --accent: #ddb477; --green: #356a59; --line: #d3dbd4;
  --font-display: "Mulish", "Segoe UI", sans-serif; --font-text: var(--font-display);
  --font-serif: Georgia, "Times New Roman", serif;
  --m-in: 160ms; --m-out: 220ms; --m-ease: cubic-bezier(.2,.8,.2,1);
  color: var(--ink); background: var(--paper); font-family: var(--font-text); font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 96px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
h1,h2,h3,p,figure { margin: 0; }
button,input,a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button,input { font: inherit; }
button,a { color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
img,video { display: block; }
button:focus-visible,a:focus-visible,input:focus-visible { outline: 3px solid #4b9d84; outline-offset: 5px; }
[hidden] { display: none !important; }
::selection { background: #cde1d3; color: #152b23; }
.wrap { width: 88%; margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 6%; z-index: 100; padding: 14px 24px; background: var(--cream); color: var(--night); }
.skip-link:focus { top: 16px; }
.site-header { position: absolute; top: 0; left: 0; right: 0; height: 88px; z-index: 10; color: var(--cream); }
.header-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 36px; border-bottom: 1px solid #e4eee11c; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; letter-spacing: -.05em; min-height: 44px; white-space: nowrap; }
.wordmark svg { width: 30px; height: 30px; stroke: var(--accent); stroke-width: 1.5; color: var(--accent); }
.header-inner nav { display: flex; gap: 36px; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: #e2e5dd; }
.header-inner nav a:hover { color: var(--accent); }

/* The cover uses the existing clips as a slanted, original-ratio video wall. */
.cover { position: relative; isolation: isolate; min-height: 760px; height: 100svh; max-height: 1100px; display: grid; place-items: center; overflow: hidden; color: var(--cream); background: var(--night); padding: 132px 0 140px; }
.cover-scenes { position: absolute; z-index: -2; inset: -150px -260px; overflow: hidden; transform: rotate(-8deg) scale(1.06); opacity: .72; pointer-events: none; }
.cover-video-wall, .cover-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.cover-video-wall { width: 100%; align-items: center; opacity: 0; transition: opacity 700ms ease; }
.cover-scenes[data-video-ready="true"] .cover-video-wall { opacity: 1; }
.cover-scenes[data-video-ready="true"] .cover-fallback { opacity: 0; }
.cover-video-row { display: flex; justify-content: center; gap: 18px; width: max-content; flex: none; }
.cover-video-row:nth-child(2) { margin-left: -90px; }
.cover-video-row:nth-child(3) { margin-left: 70px; }
/* Keep scaling on wide monitors: a fixed upper bound leaves the right side empty. */
.cover-video-tile { width: max(620px, calc((100vw + 520px) / 2)); aspect-ratio: var(--media-ratio, 1600 / 450); position: relative; flex: none; overflow: hidden; border: 1px solid #ffffff12; border-radius: 8px; background: #1b2c31; }
.cover-video-tile video { width: 100%; height: 100%; object-fit: contain; filter: saturate(.72); }
.cover-fallback { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; align-content: center; gap: 18px; transition: opacity 700ms ease; }
.cover-fallback img { width: 100%; height: auto; aspect-ratio: 1600 / 450; object-fit: contain; filter: saturate(.65); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, #101c21ed 0%, #101c21b5 45%, #101c2152 100%), linear-gradient(180deg, #101c21e6, transparent 35%, transparent 65%, #101c21f5); }
.cover-content { text-align: center; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .19em; color: #d4cbb9; margin-bottom: 32px; }
.cover h1 { font-size: clamp(78px,11.5vw,190px); font-weight: 900; line-height: 1; letter-spacing: -.075em; text-wrap: nowrap; }
.cover h1 > span { color: var(--accent); }
.cover-subtitle { margin-top: 30px; font-family: var(--font-serif); font-size: clamp(26px,2.6vw,42px); font-style: italic; line-height: 1.3; color: #e9e2d6; letter-spacing: -.025em; }
.cover-actions { display: flex; justify-content: center; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border: 1px solid transparent; padding: 0 26px; border-radius: 5px; font-size: 15px; font-weight: 750; transition: background var(--m-in), transform var(--m-in); }
.button-primary { color: var(--night); background: var(--cream); }
.button-secondary { color: var(--cream); background: #ffffff08; border-color: #f4efe345; }
.button-primary:hover { background: #fff; }
.button-secondary:hover { background: #ffffff19; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary > span { font-size: 12px; }
.cover-resources { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; margin: 18px auto 0; padding-top: 10px; border-top: 1px solid #e4eee133; }
.cover-resources a { display: inline-flex; align-items: center; min-height: 44px; color: #e2e5dd; font-size: 13px; font-weight: 700; text-underline-offset: 4px; transition: color var(--m-in); }
.cover-resources a:hover { color: var(--accent); text-decoration: underline; }
.cover-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 12px; align-items: center; font-size: 13px; letter-spacing: .025em; color: #d3dbd5; padding: 10px; }
.cover-scroll > span:last-child { font-size: 24px; line-height: 1; }

.section { padding: 84px 0 96px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
h2 { font-size: clamp(42px,4.4vw,78px); font-weight: 800; line-height: 1.1; letter-spacing: -.06em; }
h2 em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.045em; color: var(--green); }
.section-heading > p { font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--muted); padding-bottom: 4px; flex: none; }
.demo-section { background: var(--night); color: var(--cream); padding-top: 64px; }
.demo-section h2 em { color: var(--accent); }
.demo-section .section-heading > p { color: #bccbc5; }
.demo-frame { border-radius: 8px; overflow: hidden; background: #080f13; }
.demo-frame video { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; }
.gallery-section { background: var(--paper); }
.video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 28px; row-gap: 46px; }
.scene-card { min-width: 0; }
.scene-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.scene-heading h3 { font-size: clamp(19px,1.65vw,28px); font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.scene-heading .scene-duration { font-size: 12px; color: var(--muted); white-space: nowrap; }
.scene-stage { position: relative; aspect-ratio: 32/9; border-radius: 6px; overflow: hidden; background: #101c21; color: #fff; isolation: isolate; }
.card-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-views { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; }
.scene-card[data-ready] .player-views { opacity: 1; }
.scene-card[data-ready] .card-poster { opacity: 0; }
.player-viewport { position: relative; overflow: hidden; }
.media-slice { position: absolute; inset: 0 auto auto 0; width: 200%; max-width: none; height: 100%; object-fit: fill; pointer-events: none; }
.player-viewport[data-player="b"] .media-slice { left: -100%; }
.generated-layer { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split,100%)) 0 0); }
.compare-divider { position: absolute; top: 0; bottom: 0; left: var(--split,100%); width: 1px; background: #fff; pointer-events: none; }
.scene-card[data-full-generated] .compare-divider, .scene-card[data-full-proxy] .compare-divider { display: none; }
.scene-launch { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; padding: 0; background: transparent; color: #fff; }
.play-glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff90; background: #12201cc0; font-size: 15px; line-height: 1; padding-left: 2px; transition: transform var(--m-in), opacity var(--m-in), background var(--m-in); }
.scene-launch:hover .play-glyph { transform: scale(1.06); background: #12201ced; }
.scene-launch:focus-visible { outline-offset: -4px; }
.scene-card[data-playing] .play-glyph { opacity: 0; }
.scene-card[data-playing] .scene-launch:hover .play-glyph, .scene-card[data-playing] .scene-launch:focus-visible .play-glyph { opacity: 1; }
.scene-card[data-loading] .play-glyph { font-size: 16px; }
.scene-card[data-playing] .scene-heading h3 { color: var(--green); }
.player-labels { position: absolute; inset: 7px 0 auto; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.player-labels span { justify-self: start; margin-left: 8px; padding: 2px 5px; background: #101c21a6; color: #f3f4ed; font-size: 10px; font-weight: 650; border-radius: 2px; }
.scene-controls { display: flex; gap: 10px; align-items: center; min-height: 42px; color: var(--muted); font-size: 11px; font-weight: 650; }
.scene-controls label, .scene-controls > span { flex: none; }
.scene-controls input { min-width: 0; width: 100%; margin: 0; height: 32px; accent-color: var(--green); cursor: ew-resize; }
.scene-controls input:disabled { cursor: default; opacity: .35; }
.scene-caption { font-size: 14px; line-height: 1.55; color: var(--muted); }
.scene-status { font-size: 13px; margin-top: 8px; color: #ad4729; line-height: 1.45; }
.collection-status { font-size: 18px; padding: 30px 0; }
.collection-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 54px; }
.pagination-pages { display: flex; align-items: center; gap: 7px; }
.pagination-arrow, .pagination-page { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 14px; font-weight: 750; transition: background var(--m-in), color var(--m-in), border-color var(--m-in), transform var(--m-in); }
.pagination-page { font-size: 12px; }
.pagination-arrow:hover:not(:disabled), .pagination-page:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.pagination-page[aria-current="page"] { border-color: var(--green); background: var(--green); color: var(--paper); }
.pagination-arrow:disabled { opacity: .34; cursor: default; }
.pagination-status { min-width: 76px; color: var(--muted); font-size: 11px; font-weight: 650; text-align: center; }
.long-gallery-section { color: var(--cream); background: var(--night); --muted: #bccbc5; --green: #a7cfbd; }
.long-gallery-section h2 em { color: var(--accent); }
.long-gallery-section .scene-heading { color: var(--cream); }
.long-gallery-section .scene-controls input { accent-color: var(--accent); }
.long-gallery-section .scene-status { color: #f2bfaa; }
.site-footer { padding: 32px 0; color: #bec9c2; background: var(--night); border-top: 1px solid #e4eee11c; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; font-size: 12px; }
.site-footer .wordmark { font-size: 20px; color: var(--cream); }
.site-footer .wordmark svg { width: 24px; height: 24px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer p a { display: inline; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .header-inner nav { gap: 24px; }
  .section-heading { align-items: start; }
  .section-heading > p { font-size: 14px; max-width: 30ch; }
  .video-grid { column-gap: 20px; row-gap: 38px; }
  .scene-heading { gap: 8px; }
  .scene-duration { display: none; }
  .scene-controls { gap: 6px; font-size: 10px; }
  .scene-caption { font-size: 13px; }
}
@media (max-width: 900px) {
  .header-inner nav { gap: 18px; }
  .header-inner nav a { font-size: 12px; }
  .wordmark { font-size: 21px; }
  .cover h1 { font-size: 11vw; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading { flex-direction: column; gap: 20px; }
  .section-heading > p { max-width: none; }
  .section-heading > p br { display: none; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .wrap { width: 90%; }
  .site-header { height: 76px; }
  .header-inner { gap: 14px; }
  .wordmark { font-size: 18px; gap: 7px; }
  .wordmark svg { width: 24px; height: 24px; }
  .header-inner nav { gap: 14px; }
  .header-inner nav a { font-size: 12px; }
  .header-inner nav a:nth-child(2) { display: none; }
  .cover { min-height: 640px; height: 100svh; padding: 112px 0 120px; }
  .cover-scenes { inset: -160px -500px; gap: 13px; }
  .cover-video-wall, .cover-fallback { gap: 13px; }
  .cover-video-row { gap: 13px; }
  .cover-video-tile { width: clamp(620px, calc(100vw + 310px), 760px); border-radius: 6px; }
  .eyebrow { font-size: 10px; margin-bottom: 24px; }
  .cover h1 { font-size: 11vw; }
  .cover-subtitle { font-size: 23px; margin-top: 26px; }
  .cover-actions { margin-top: 30px; gap: 10px; }
  .button { font-size: 13px; padding-inline: 18px; }
  .cover-resources { column-gap: 18px; margin-top: 12px; padding-top: 6px; }
  .cover-resources a { font-size: 12px; }
  .cover-scroll { font-size: 11px; white-space: nowrap; }
  .section { padding: 52px 0 64px; }
  .section-heading { margin-bottom: 28px; }
  h2 { font-size: 39px; }
  .video-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .scene-heading h3 { font-size: 24px; }
  .scene-heading .scene-duration { display: block; }
  .scene-caption { font-size: 14px; }
  .scene-controls { font-size: 12px; gap: 12px; }
  .collection-pagination { margin-top: 38px; gap: 10px; }
  .pagination-arrow, .pagination-page { min-width: 36px; height: 36px; }
  .pagination-status { min-width: 66px; font-size: 10px; }
  .footer-inner { gap: 12px 24px; }
  .footer-inner > p { order: 2; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; }
}
