/* Orvelle — "Polar night": blue-black sky, slate cloud, frost type, one glacier-ice accent. */
:root {
  --ink: oklch(0.12 0.01 250);        /* page and far sky */
  --night: oklch(0.16 0.014 250);     /* raised surfaces */
  --slate: oklch(0.34 0.018 250);     /* cloud and borders */
  --mist: oklch(0.72 0.018 245);      /* secondary text */
  --frost: oklch(0.95 0.008 240);     /* primary text */
  --ice: oklch(0.85 0.07 230);        /* accent */
  --ice-deep: oklch(0.6 0.1 240);
  --line: oklch(1 0 0 / .12);
  --serif: 'Forum', 'Times New Roman', serif;
  --sans: 'Red Hat Display', system-ui, sans-serif;
  --mono: 'Red Hat Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --pad: clamp(20px, 5vw, 72px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--frost); scroll-behavior: auto; overscroll-behavior-y: none; }
body { margin: 0; font: 400 16px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
em { font-style: normal; color: var(--ice); }
a { color: inherit; }
img, video, canvas { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
.kicker { font: 500 11px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--mist); margin: 0 0 18px; }
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--frost); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-decoration: none; transition: background .3s, transform .3s var(--ease); }
.btn:hover { background: var(--ice); transform: translateY(-2px); }
.link { font-weight: 600; font-size: 14px; color: var(--ice); padding: 10px 0; border-bottom: 1px solid currentColor; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: oklch(0.16 0.014 250 / .6); backdrop-filter: none; font-size: 16px; transition: border-color .3s, background .3s; }
.round:hover { border-color: var(--ice); background: var(--night); }
.tool { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.tool b { color: var(--frost); font-weight: 500; margin-left: 4px; }
.tool[aria-pressed="true"] { border-color: var(--ice-deep); }
.tool[aria-pressed="true"] b { color: var(--ice); }

/* Loader */
.loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; gap: 22px; text-align: center; background: var(--ink); transition: opacity .9s var(--ease), visibility .9s; }
.loader.done { opacity: 0; visibility: hidden; }
.brand-word { font: 400 clamp(44px, 8vw, 88px)/1 var(--serif); letter-spacing: .08em; margin: 0; }
.loader-bar { width: min(260px, 60vw); height: 1px; background: var(--line); margin: 0 auto; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--ice); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.loader-note { margin: 0; font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pad); transition: background .4s; }
.nav.solid { background: oklch(0.12 0.01 250 / .92); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 24px/1 var(--serif); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.brand svg { width: 24px; height: 24px; color: var(--ice); }
.nav nav { display: flex; gap: 30px; }
.nav nav a { font-size: 13px; letter-spacing: .06em; text-decoration: none; color: var(--mist); padding: 12px 0; transition: color .3s; }
.nav nav a:hover { color: var(--frost); }
.nav-tools { display: flex; gap: 8px; }

/* 1 · Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 65% 40%, transparent 40%, oklch(0.1 0.01 250 / .75)), linear-gradient(to top, oklch(0.1 0.01 250 / .85), transparent 38%); }
.hero-copy { position: absolute; left: var(--pad); bottom: clamp(48px, 10vh, 110px); max-width: min(860px, 62vw); }
.hero h1 { font-size: clamp(52px, 8.4vw, 132px); margin-bottom: 22px; }
.hero h1 span, .film-copy h2 span, .contact h2 span { display: block; overflow: hidden; padding-bottom: .04em; }
.lede { color: var(--mist); font-size: 17px; max-width: 420px; margin: 0 0 30px; }
[data-stage-copy] { transition: opacity .7s var(--ease), transform .9s var(--ease); }
[data-stage-copy]:not(.on) { opacity: 0; transform: translateY(16px); pointer-events: none; }
.hero-captions { list-style: none; margin: 0; padding: 0; position: absolute; left: var(--pad); bottom: clamp(48px, 10vh, 110px); width: min(400px, 80vw); }
.hero-captions li { position: absolute; bottom: 0; left: 0; right: 0; border-left: 1px solid var(--ice); padding: 4px 0 4px 20px; }
.hero-captions b { display: block; font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); margin-bottom: 10px; }
.hero-captions span { font: 400 clamp(22px, 2.4vw, 30px)/1.25 var(--serif); }
.hero-progress { position: absolute; right: var(--pad); bottom: clamp(48px, 10vh, 110px); display: grid; gap: 12px; justify-items: end; }
.hero-count { font: 400 11px var(--mono); letter-spacing: .2em; color: var(--mist); }
.hero-count b { color: var(--frost); font-weight: 500; }
.hero-progress ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.hero-progress li { width: 28px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.hero-progress li::after { content: ''; position: absolute; inset: 0; background: var(--ice); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.hero-progress li.on::after { transform: scaleX(1); }
.hero-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mist); transition: opacity .6s; }
.hero-hint span { color: var(--frost); }

/* 2 · Aircraft reel (pinned with sticky; section height is set from the card count) */
.aircraft { position: relative; height: 380vh; }
.reel-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1fr minmax(300px, 34vw) 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 0 var(--pad); overflow: hidden; }
.reel-head h2 { font-size: clamp(40px, 4.6vw, 76px); max-width: 9ch; }
.reel-count { margin: 38px 0 12px; font: 400 13px var(--mono); color: var(--mist); }
.reel-count b { font: 400 54px/1 var(--serif); color: var(--frost); margin-right: 8px; }
.reel-bar { width: 140px; height: 1px; background: var(--line); }
.reel-bar i { display: block; height: 100%; background: var(--ice); transform-origin: left; }
.reel { position: relative; height: 100%; perspective: 1200px; }
.card { position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 4 / 5; margin-top: calc(-62.5% * 1); will-change: transform, filter; }
.card-in { position: relative; height: 100%; border-radius: 18px; overflow: hidden; background: var(--night); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--lift, 0px)); transition: transform .5s var(--ease); box-shadow: 0 30px 60px -20px oklch(0 0 0 / .7); cursor: pointer; }
.card-in video, .card-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-in::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: var(--edge, 0); transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), oklch(0.97 0.02 230 / .95), oklch(0.7 0.04 240 / .25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card-tag { position: absolute; left: 18px; bottom: 16px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 1px 8px oklch(0 0 0 / .6); }
.reel-text { max-width: 360px; }
.reel-text .finish, .sheet .finish { font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); margin: 0 0 14px; }
.reel-text h3 { font-size: clamp(34px, 3.4vw, 54px); margin-bottom: 18px; }
.reel-text p:not(.finish) { color: var(--mist); margin: 0 0 24px; }
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(105%); transition: transform .8s var(--ease); }
.mask.in > span { transform: none; }

/* 3 · Charter */
.charter { padding: 14vh 0 12vh; }
.film { position: relative; height: 92vh; min-height: 520px; overflow: hidden; margin: 0 auto; clip-path: inset(0 var(--inset, 8vw) round var(--radius, 28px)); }
.film video { position: absolute; left: 0; width: 100%; top: -10%; height: 120%; object-fit: cover; transform: translateY(var(--par, 0px)); }
.film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(0.1 0.01 250 / .78), transparent 60%); pointer-events: none; }
.film-copy { position: absolute; z-index: 1; left: calc(var(--pad) + 6vw); top: 50%; transform: translateY(-50%); max-width: 470px; }
.film-copy h2 { font-size: clamp(46px, 6vw, 96px); margin-bottom: 22px; }
.film-copy h2 span > *, .contact h2 span > * { display: inline-block; }
.film-copy p:not(.kicker) { color: var(--mist); font-size: 17px; margin: 0 0 30px; }
.rise > span { transform: translateY(105%); transition: transform 1s var(--ease); }
.rise > span > em, .rise > span { display: block; }
.rise.in > span { transform: none; }
.rise.in > span:nth-child(2) { transition-delay: .1s; }
.perks { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4vw; padding: 12vh var(--pad) 0; }
.perks ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.perks li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.perks li b { font: 400 12px/2.4 var(--mono); color: var(--ice); }
.perks h3 { font-size: clamp(26px, 2.4vw, 36px); margin-bottom: 8px; }
.perks li p { margin: 0; color: var(--mist); max-width: 46ch; }
.topview { position: relative; }
.topview canvas { position: sticky; top: 10vh; width: 100%; height: 80vh; }

/* 4 · Ownership arc */
.ownership { position: relative; padding: 14vh var(--pad); overflow: hidden; display: grid; grid-template-columns: minmax(300px, .75fr) 1.5fr; grid-template-rows: 1fr auto; align-items: center; column-gap: 2vw; min-height: 100vh; }
.own-head { position: relative; z-index: 12; max-width: 460px; grid-row: 1 / 3; }
.own-head h2 { font-size: clamp(40px, 5vw, 80px); margin-bottom: 18px; }
.own-sub { color: var(--mist); margin: 0 0 28px; max-width: 420px; }
.arc { position: relative; height: clamp(400px, 62vh, 600px); perspective: 1400px; outline-offset: 8px; touch-action: pan-y; }
.oc { position: absolute; left: 50%; top: 4%; width: clamp(220px, 24vw, 340px); aspect-ratio: 3 / 4; margin-left: calc(clamp(220px, 24vw, 340px) / -2); transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s var(--ease); }
.oc .card-in { cursor: pointer; }
.arc-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 18px; }
.arc-count { font: 400 12px var(--mono); letter-spacing: .2em; color: var(--mist); }
.arc-count b { color: var(--frost); font-weight: 500; }

/* 5 · Contact */
.contact { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 16vh var(--pad); overflow: hidden; }
.contact-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 70% at 50% 50%, oklch(0.12 0.01 250 / .55), var(--ink)); }
.contact-inner { position: relative; z-index: 2; width: min(760px, 100%); text-align: center; }
.contact h2 { font-size: clamp(44px, 6.4vw, 104px); margin-bottom: 52px; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; text-align: left; }
form label > span, legend { display: block; font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; }
input, textarea { width: 100%; font: 400 16px var(--sans); color: var(--frost); background: oklch(0.16 0.014 250 / .7); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 50px; transition: border-color .3s; }
input:focus, textarea:focus { border-color: var(--ice); outline: none; }
[aria-invalid="true"] { border-color: oklch(0.7 0.16 25); }
fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
fieldset legend { width: 100%; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font: 400 14px var(--sans); letter-spacing: 0; text-transform: none; color: var(--frost); cursor: pointer; transition: border-color .3s, background .3s; }
.chip input:checked + span { border-color: var(--ice); background: oklch(0.85 0.07 230 / .12); }
.chip input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 3px; }
fieldset[aria-invalid="true"] .chip span { border-color: oklch(0.7 0.16 25); }
.wide { grid-column: 1 / -1; }
form .btn { justify-self: start; }
.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.6em; color: var(--mist); }
.form-status.err { color: oklch(0.78 0.13 25); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 56px var(--pad) 34px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot nav { display: flex; gap: 26px; }
.foot nav a { color: var(--mist); text-decoration: none; font-size: 14px; padding: 12px 0; }
.foot nav a:hover { color: var(--frost); }
.foot-tools { display: flex; gap: 8px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; font-size: 13px; color: var(--mist); }
.foot-base p { margin: 0; }

/* Detail sheet */
.sheet { width: min(980px, 92vw); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--night); color: var(--frost); display: none; grid-template-columns: 1.3fr 1fr; overflow: hidden; }
.sheet[open] { display: grid; }
.sheet::backdrop { background: oklch(0.08 0.01 250 / .82); }
.sheet video { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.sheet > div { padding: 44px 36px; align-self: center; }
.sheet h3 { font-size: 46px; margin-bottom: 16px; }
.sheet p:not(.finish) { color: var(--mist); margin: 0 0 26px; }
.close { position: absolute; top: 14px; right: 14px; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .tool { padding: 0 11px; }
  .reel-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding-top: 86px; padding-bottom: 28px; gap: 14px; }
  .reel-head h2 { font-size: 34px; max-width: none; }
  .reel-count, .reel-bar { display: none; }
  .reel { width: 100%; overflow: hidden; }
  .card { left: 50%; right: auto; width: min(58vw, 280px); margin-left: calc(min(58vw, 280px) / -2); margin-top: calc(min(58vw, 280px) * -.625); }
  .reel-text h3 { font-size: 30px; margin-bottom: 8px; }
  .reel-text p:not(.finish) { margin-bottom: 10px; font-size: 15px; }
  .film { height: 86vh; }
  .film video { object-position: 74% 50%; }
  .film-copy { left: 10vw; right: 10vw; top: 9vh; transform: none; }
  .film::after { background: linear-gradient(to bottom, oklch(0.1 0.01 250 / .92) 10%, transparent 62%); }
  .perks { grid-template-columns: 1fr; }
  .topview { display: none; }
  .ownership { grid-template-columns: 1fr; grid-template-rows: auto; padding: 12vh var(--pad); }
  .own-head { grid-row: auto; min-height: 270px; }
  form { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: 1fr; }
  .sheet video { min-height: 220px; max-height: 40vh; }
  .sheet > div { padding: 26px 22px; }
  .sheet h3 { font-size: 34px; }
  .hero-copy { right: var(--pad); }
  .hero-progress { bottom: auto; top: 84px; }
}
@media (max-width: 520px) {
  .brand { font-size: 20px; }
  .tool { font-size: 10px; letter-spacing: .08em; }
  .tool b { display: none; }
}
@media (prefers-reduced-motion: reduce) { html:not(.motion-on) * { transition-duration: .01s !important; } }
.reduced * { transition-duration: .01s !important; }
