:root {
  --ink: #171816;
  --blue: #3b536d;
  --paper: #f1e8dc;
  --rule: rgba(23, 24, 22, .60);
  --rule-soft: rgba(23, 24, 22, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(rgba(247, 242, 234, .24), rgba(247, 242, 234, .24)), url('assets/bg_parchment.png');
  background-position: center top;
  background-size: 1080px auto;
  background-repeat: repeat;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.4;
}

body:has(.demo-lightbox[open]) { overflow: hidden; }
a { color: inherit; }
img, video { max-width: 100%; }
.container { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.eyebrow {
  display: block;
  margin: 0 0 9px;
  font-family: Inter, Arial, sans-serif;
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

#main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 225, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-container { width: min(1240px, calc(100% - 80px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { display: block; width: auto; height: 50px; max-width: 285px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; font-size: .94rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a.active { text-decoration: underline; text-underline-offset: 5px; }
.nav-links .nav-cta { padding: 11px 20px; color: #f8f2e9; background: #1e2427; border: 1px solid #1e2427; text-decoration: none; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--rule); background: transparent; }
.nav-toggle span { display: block; height: 1px; margin: 5px 0; background: var(--ink); }

.hero { padding: 34px 0 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .51fr) minmax(0, .49fr); gap: clamp(28px, 3.2vw, 44px); align-items: center; padding: 0 0 36px; border-bottom: 1px solid var(--rule); }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 640px; margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.8rem, 3.85vw, 3.55rem); line-height: .96; letter-spacing: -.036em; font-weight: 700; }
.hero-line { display: block; white-space: nowrap; }
.hero-summary { max-width: 600px; margin: 22px 0 0; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(1.12rem, 1.48vw, 1.32rem); line-height: 1.42; color: var(--blue); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 21px; border: 1px solid #202521; text-decoration: none; font-size: .92rem; }
.btn-primary { color: #f8f2e9; background: #1e2427; }
.btn-link { min-height: auto; padding: 6px 0 4px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #324d69; }
.hero-visual { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(23, 24, 22, .19); background: #ddd1c0; aspect-ratio: 3 / 2; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.82) contrast(.99); }

.validation-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 38px; align-items: center; padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.validation-stat { display: flex; min-height: 142px; flex-direction: column; justify-content: center; padding-right: 30px; border-right: 1px solid var(--rule-soft); }
.validation-stat .eyebrow { margin-bottom: 10px; }
.validation-number { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(6.2rem, 8.4vw, 7.8rem); font-weight: 600; line-height: .82; letter-spacing: -.055em; }
.validation-copy h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.65rem, 3.65vw, 3.4rem); line-height: .98; letter-spacing: -.031em; }
.validation-copy p { max-width: 880px; margin: 10px 0 0; font-size: 1.03rem; line-height: 1.4; color: var(--blue); }

.engine-grid { display: grid; grid-template-columns: minmax(0, .52fr) minmax(0, .48fr); gap: clamp(30px, 3.5vw, 48px); align-items: center; padding: 34px 0 38px; border-bottom: 1px solid var(--rule); }
.engine-copy { min-width: 0; }
.section-title { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.8rem, 3.75vw, 3.45rem); line-height: .98; letter-spacing: -.032em; }
.section-intro { max-width: 575px; margin: 10px 0 20px; color: var(--blue); font-size: 1.02rem; line-height: 1.4; }
.spec-list { margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.spec-row { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; min-height: 66px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.spec-row > div { min-width: 0; }
.spec-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #20231f; }
.spec-icon svg { display: block; width: 36px; height: 36px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.spec-row dt { font-size: 1.04rem; font-weight: 700; line-height: 1.14; }
.spec-row dd { margin: 3px 0 0; color: var(--blue); font-size: .94rem; line-height: 1.34; }
.engine-visual { min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding-left: clamp(18px, 2.5vw, 34px); border-left: 1px solid var(--rule-soft); }
.engine-visual img { display: block; width: 100%; max-width: 560px; height: auto; object-fit: contain; object-position: center; mix-blend-mode: multiply; }

.demo-section { padding: 34px 0 38px; }
.demo-head { padding-bottom: 15px; }
.demo-head .section-title { font-size: clamp(2.75rem, 3.6vw, 3.35rem); }
.demo-head p { margin: 6px 0 0; color: var(--blue); font-size: 1.01rem; line-height: 1.4; }
.demo-video-container { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--rule); background: #1f211f; aspect-ratio: 16 / 9; cursor: pointer; font: inherit; color: inherit; }
.demo-poster { display: block; width: 100%; height: 100%; object-fit: contain; background: #171816; }
.demo-video-play-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(20, 20, 18, .12); color: white; transition: background .2s ease; }
.demo-video-container:hover .demo-video-play-overlay, .demo-video-container:focus-visible .demo-video-play-overlay { background: rgba(20, 20, 18, .25); }
.demo-video-container:focus-visible { outline: 3px solid #486784; outline-offset: 3px; }
.demo-play-btn { width: 66px; height: 66px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: rgba(20, 20, 18, .38); box-shadow: 0 4px 20px rgba(0, 0, 0, .24); }
.demo-play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.demo-play-label { font-family: Inter, Arial, sans-serif; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }

.demo-lightbox { width: min(1240px, 94vw); max-width: none; max-height: 96dvh; padding: 0; border: 0; overflow: visible; background: transparent; color: white; }
.demo-lightbox::backdrop { background: rgba(7, 8, 8, .90); backdrop-filter: blur(3px); }
.demo-lightbox-shell { position: relative; padding: 44px 16px 16px; background: #111; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.demo-lightbox-head { position: absolute; top: 0; left: 16px; right: 10px; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: Inter, Arial, sans-serif; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #e9e9e9; }
.demo-lightbox-close { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: white; font: 400 28px/1 Arial, sans-serif; cursor: pointer; }
.demo-lightbox-close:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.demo-lightbox-frame { width: 100%; max-height: calc(96dvh - 62px); background: #000; aspect-ratio: 16 / 9; }
.demo-lightbox-frame video { display: block; width: 100%; height: 100%; max-height: calc(96dvh - 62px); object-fit: contain; background: #000; }
.demo-lightbox[open] { animation: demoFade .16s ease-out; }
@keyframes demoFade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

.acquisition { padding: 0 0 28px; }
.acquisition-panel { text-align: center; padding: 34px 24px 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.acquisition-panel h2 { max-width: 760px; margin: 0 auto; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.5rem, 3.25vw, 3rem); line-height: .98; letter-spacing: -.031em; }
.acquisition-panel p { max-width: 720px; margin: 10px auto 0; font-size: .96rem; line-height: 1.4; color: var(--blue); }
.acquisition-actions { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.direct-note { margin-top: 14px; font-size: .80rem; }
.handover-note { margin-top: 4px; font-size: .72rem; color: #676159; }
.site-footer { padding: 0 0 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: Inter, Arial, sans-serif; font-size: .64rem; color: #5f5b54; }
.footer-inner a { text-decoration: none; }

@media (max-width: 1100px) {
  .container, .nav-container { width: min(100% - 44px, 1240px); }
  .nav-container { min-height: 70px; }
  .nav-logo img { height: 40px; max-width: 235px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 20px; background: #f2eadf; border-bottom: 1px solid var(--rule); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 4px; }
  .nav-links .nav-cta { margin-top: 6px; text-align: center; }
  .hero-line { display: inline; white-space: normal; }
  .hero-line:not(:last-child)::after { content: ' '; }
  .hero-inner, .engine-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { max-width: 820px; font-size: clamp(3rem, 6.4vw, 4rem); }
  .hero-summary { max-width: 760px; }
  .hero-visual { width: 100%; aspect-ratio: 3 / 2; }
  .validation-inner { grid-template-columns: 190px 1fr; }
  .engine-visual { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--rule-soft); }
  .engine-visual img { width: min(100%, 680px); max-width: none; }
}

@media (max-width: 620px) {
  .container, .nav-container { width: min(100% - 24px, 1240px); }
  .hero { padding-top: 22px; }
  .hero-inner { padding-bottom: 28px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.05rem); line-height: 1; }
  .hero-summary { margin-top: 17px; font-size: 1.08rem; line-height: 1.4; }
  .hero-actions { margin-top: 19px; gap: 18px; }
  .validation-inner { grid-template-columns: 1fr; gap: 14px; padding: 26px 0 30px; }
  .validation-stat { min-height: 0; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .validation-number { font-size: 6rem; line-height: .86; }
  .validation-copy h2 { font-size: 2.48rem; }
  .validation-copy p { font-size: .97rem; }
  .engine-grid { padding: 30px 0 34px; }
  .section-title { font-size: 2.55rem; }
  .section-intro { margin-bottom: 16px; }
  .spec-row { grid-template-columns: 44px 1fr; min-height: 64px; padding: 9px 0; }
  .engine-visual { padding-top: 22px; }
  .demo-section { padding: 30px 0 34px; }
  .demo-head .section-title { font-size: 2.55rem; }
  .demo-play-btn { width: 58px; height: 58px; }
  .demo-lightbox { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; }
  .demo-lightbox-shell { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 48px 8px 16px; border: 0; }
  .demo-lightbox-head { left: 12px; right: 8px; }
  .demo-lightbox-frame, .demo-lightbox-frame video { max-height: calc(100dvh - 64px); }
  .acquisition { padding-bottom: 24px; }
  .acquisition-panel { padding: 30px 10px 28px; }
  .acquisition-panel h2 { font-size: 2.48rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .btn-primary { min-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-lightbox[open] { animation: none; }
}
