@charset "UTF-8";

:root {
  color-scheme: dark;
  --paper: #f3efe8;
  --muted: #bbc1c0;
  --night: #101417;
  --accent: #ffc286;
  --line: #bec6c333;
  --gutter: clamp(18px, 4.4vw, 76px);
  --journey-pages: 11;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--paper);
  background: var(--night);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scrollbar-color: #74817d var(--night); }
body { margin: 0; min-width: 280px; height: calc(var(--journey-pages) * 100svh); }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #d47d37; color: var(--night); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 18px; top: 16px; z-index: 30; padding: 12px;
  transform: translateY(-180%); background: var(--night);
}
.skip-link:focus { transform: none; }

.pilot {
  position: sticky; top: 0; height: 100svh; min-height: 280px;
  overflow: hidden; isolation: isolate; background: var(--night);
}
.pilot-header {
  position: absolute; top: clamp(16px,3.4vh,28px); inset-inline: var(--gutter);
  z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; pointer-events: none;
}
.pilot-header button, .pilot-header a { pointer-events: auto; }
.brand { display: block; flex: none; }
.brand img {
  display: block; width: clamp(40px,3.5vw,56px); height: clamp(40px,3.5vw,56px);
  object-fit: contain;
}
.header-actions, .social-buttons { display: flex; align-items: center; }
.header-actions { gap: clamp(10px,1.4vw,24px); }
.social-button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 11px;
  border: 0; background: none; color: var(--paper);
}
.social-button:disabled { opacity: .56; cursor: default; }
.social-button svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.social-button .icon-fill { fill: currentColor; }

.pilot-stage { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.pilot-stage > canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  touch-action: pan-y !important; pointer-events: auto;
}
#opening-identity {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; pointer-events: none;
  background: var(--night);
}
#opening-identity img { display: block; width: 32vw; height: auto; }
#opening-identity p {
  margin: 0; font-weight: 400; font-size: clamp(18px,2.15vw,36px);
  line-height: 1.2; text-align: center;
}
html[data-ready="true"] #opening-identity,
html[data-error="true"] #opening-identity { display: none; }

.return-control {
  position: absolute; z-index: 6; top: 108px; left: var(--gutter);
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  background: transparent; border: 0; padding: 10px 0;
  font-size: 13px; line-height: 1.35; color: var(--paper);
}
.return-control span { color: var(--accent); font-size: 17px; }
.scene-hit {
  position: absolute; z-index: 3; min-height: 44px; min-width: 44px;
  background: transparent; border: 0; padding: 0; pointer-events: auto;
}
.scene-hit:hover { box-shadow: inset 0 -1px #ffc286aa; }
.scene-hit:focus-visible { outline-color: var(--accent); }
.scene-hit:disabled { pointer-events: none; }

.contact-form {
  position: absolute; z-index: 4; width: min(440px,86vw); margin: 0;
  text-align: left; transform-origin: top left;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.field label { color: var(--paper); font-size: 12px; line-height: 1.45; }
.field label span { color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px;
  border: 1px solid #97a3a35e; border-radius: 2px;
  background: #141a1e; color: var(--paper);
  font-size: 16px; font-weight: 400; line-height: 1.4;
}
.field textarea { height: 66px; min-height: 66px; max-height: 112px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 2px; }
.send-button {
  display: flex; align-items: center; gap: 20px; min-height: 44px;
  padding: 8px 15px; border: 1px solid #c6ccc557; border-radius: 2px;
  background: #151b1e; color: var(--paper); font-size: 13px;
}
.send-button span, .send-button:hover { color: var(--accent); }
.send-button:hover { border-color: var(--accent); }
.draft-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.draft-note[data-error="true"] { color: #ffcb9d; }
.pilot-status {
  position: absolute; z-index: 4; bottom: 24px; inset-inline: 20px; margin: 0;
  color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; pointer-events: none;
}
html[data-ready="true"] .pilot-status { display: none; }

.fallback { max-width: 1040px; margin-inline: auto; padding: 130px var(--gutter) 42px; }
.fallback-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 32px; }
.fallback-nav a, .fallback a { text-decoration: underline; text-underline-offset: .3em; }
.fallback-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.fallback section { scroll-margin-top: 120px; padding-block: clamp(28px,6vw,72px); }
.fallback-arrival { display: grid; justify-items: center; text-align: center; }
.fallback-arrival img { width: min(48vw,430px); }
.fallback h1, .fallback h2, .fallback h3 { font-weight: 500; line-height: 1.14; text-wrap: balance; }
.fallback h1 { margin: 14px 0 0; font-size: clamp(22px,3.2vw,38px); }
.fallback h2 { margin: 0 0 16px; font-size: clamp(30px,5vw,58px); letter-spacing: -.035em; }
.fallback h3 { margin-top: 32px; font-size: clamp(21px,3vw,34px); letter-spacing: -.02em; }
.fallback p { max-width: 63ch; margin: 0 0 1.2em; font-size: clamp(16px,1.65vw,21px); line-height: 1.6; color: var(--paper); }
.fallback .company-lead { max-width: 39ch; font-size: clamp(21px,2.7vw,34px); line-height: 1.34; }
.fallback .statement-label { font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.fallback article { margin-block: 48px; }
.fallback img { display: block; max-width: 100%; height: auto; }
.fallback-grid, .founders { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.fallback-grid { gap: clamp(28px,3.6vw,52px) clamp(24px,3vw,46px); }
.fallback-grid.is-portrait { grid-template-columns: repeat(5,minmax(0,1fr)); }
.fallback-grid img { width: 100%; object-fit: contain; }
.founders { gap: clamp(16px,3vw,40px); }
.founders figure { margin: 0; }
.founders img { width: 100%; }
.founders figcaption { margin-top: 14px; max-width: 32ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.founders strong { display: block; margin-bottom: 2px; font-size: 20px; font-weight: 500; color: var(--paper); }

html[data-error="true"] body { height: auto; }
html[data-error="true"] .pilot, html[data-error="true"] .pilot-stage {
  position: relative; height: auto; min-height: 100svh; overflow: visible;
}
html[data-error="true"] .pilot-header { position: fixed; }
html[data-error="true"] #pilot-canvas, html[data-error="true"] #pilot-content,
html[data-error="true"] .scene-hit, html[data-modules="unavailable"] #menu-toggle { display: none; }
html[data-error="true"] .contact-form {
  position: relative !important; inset: auto !important; transform: none !important;
  opacity: 1 !important; visibility: visible; margin: 0 auto 48px;
}
html[data-error="true"] .pilot-status { position: static; padding-bottom: 26px; }

@media (max-width: 760px) {
  .pilot-header { top: 18px; gap: 12px; }
  .social-button { width: 40px; padding: 10px; }
  .social-button svg { width: 18px; height: 18px; }
  #opening-identity { gap: 8px; }
  #opening-identity img { width: 60vw; }
  #opening-identity p { font-size: clamp(16px,4.6vw,21px); }
  .return-control { top: 88px; gap: 8px; font-size: 12px; }
  .field-row { gap: 12px; }
  .field { margin-bottom: 9px; }
  .field input, .field textarea { padding: 7px 9px; }
  .draft-note { font-size: 11px; }
  .fallback-grid.is-portrait { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fallback-grid:not(.is-portrait) { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 380px) {
  .header-actions { gap: 5px; }
  .social-button { width: 35px; }
  .founders { grid-template-columns: 1fr; }
}
@media (max-height: 540px) {
  .contact-form { max-height: 54svh; overflow-y: auto; overscroll-behavior-y: contain; }
  html[data-error="true"] .contact-form { max-height: none; }
}
