@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-v1/SourceSans3-Regular.ttf.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  color: #f3f2ef;
  background: #030305;
  --muted: #b8b6b2;
  --metal: #a79a7e;
  --action-metal: #d0ab73;
  --interface-font: "Segoe UI", Arial, sans-serif;
  --supporting-font: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  /* Project the entire inspected lockup through the existing cover crop. */
  --wordmark-x: calc(48vw + max(100vw, 177.778lvh) * .00112);
  --brand-bottom: calc(50lvh - max(100lvh, 56.25vw) * .0324074);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #eee9de; outline-offset: 4px; }
.sr-only, .trap { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#completion-announcement { position: fixed; top: 0; left: 0; margin: 0; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 10; padding: 12px; background: #eee; color: #090909; }
.skip-link:focus { top: 16px; }
.page, main { width: 100%; height: 100%; }
/* One fixed background in every UI state. Each layout covers the viewport
   with its own approved media; only clean portrait uses an HTML logo. */
.media-stage { position: fixed; inset: 0; width: 100%; height: 100lvh; overflow: hidden; background: #000; isolation: isolate; contain: paint; transform: translateZ(0); }
.media-stage video, #media-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; }
.media-stage video { opacity: 0; }
.media-stage video.is-active { opacity: 1; }
.media-stage[data-layout="portrait"] video, .media-stage[data-layout="portrait"] #media-poster { object-position: 50% 50%; }
.media-stage .brand { position: absolute; inset: 0 0 26%; display: flex; align-items: center; justify-content: center; }
.brand { font-size: 36px; font-weight: 400; letter-spacing: .12em; }
.brand img { display: block; width: min(78%, 600px); height: auto; }
.media-stage[data-layout="portrait"] .brand { inset: 27svh auto auto 14%; width: 72%; display: block; opacity: 0; transition: opacity 1.5s ease; }
.media-stage[data-layout="portrait"] .brand img { width: 100%; height: auto; }
.media-stage[data-layout="portrait"] .brand[data-visible="true"] { opacity: 1; }
.media-stage[data-layout="portrait"] .brand[data-still="true"] { transition: none; }
.composition { position: fixed; inset: 0; pointer-events: none; }
.connect-toggle { pointer-events: none; position: absolute; top: 55%; left: var(--wordmark-x); transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-width: 224px; min-height: 56px; padding: 17px 20px; border: 0; border-radius: 0; background: transparent; color: #f0ede6; font-family: var(--interface-font); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; line-height: 22px; opacity: 0; visibility: hidden; transition: opacity 320ms ease, color 180ms ease; }
/* One measured vertical accent recalls the emblem's straight strokes. The
   invisible hit area stays generous; there is no button shell or badge. */
.connect-toggle::before, .submit::before, .sheet-header h2::before { content: ""; flex: none; width: 2px; height: 18px; background: linear-gradient(180deg, #976e46, var(--action-metal)); }
.connect-toggle[data-ready="true"] { pointer-events: auto; opacity: 1; visibility: visible; }
button.connect-toggle:hover { color: var(--action-metal); }
button.connect-toggle:focus-visible, .submit:focus-visible { outline: 1px solid var(--action-metal); outline-offset: 3px; color: #fff; }
#connection-complete { pointer-events: none; cursor: default; opacity: 0; }
#connection-complete[data-revealing="true"] { opacity: 1; animation: completion-reveal 400ms ease both; }
@keyframes completion-reveal { from { opacity: 0; } to { opacity: 1; } }
#connection-complete:focus { outline: none; }
.connect-toggle { top: calc(var(--brand-bottom) + (55lvh + 17px - var(--brand-bottom)) * .82 - 17px); }
@media (max-width: 900px) and (orientation: portrait) {
  .connect-toggle { left: 50%; top: calc(27svh + 17.7534vw + 10px); }
}
body[data-sheet-open="true"] .composition { visibility: hidden; }
body[data-sheet-open="true"] .connect-toggle { visibility: hidden; opacity: 0; pointer-events: none; transition: none; }
footer { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 28px; right: 72px; color: #b8b6b2; font-family: var(--interface-font); font-size: 10px; font-weight: 400; letter-spacing: 0; line-height: 1.5; }
#motion-toggle, #sound-toggle { position: fixed; z-index: 10; right: max(12px, env(safe-area-inset-right)); bottom: calc(var(--keyboard-offset, 0px) + max(12px, env(safe-area-inset-bottom))); width: 44px; height: 44px; }
#sound-toggle { right: calc(max(12px, env(safe-area-inset-right)) + 44px); }
[data-motion-toggle], [data-sound-toggle] { min-width: 44px; min-height: 44px; padding: 14px; border: 0; color: #a6a5a2; background: transparent; transition: color 160ms ease; }
[data-motion-toggle]:hover, [data-sound-toggle]:hover { color: #d4d2cc; }
[data-motion-toggle] svg, [data-sound-toggle] svg { display: block; width: 14px; height: 14px; fill: currentColor; }
[data-sound-toggle] .sound-on, [data-sound-toggle][data-muted="false"] .sound-off { display: none; }
[data-sound-toggle][data-muted="false"] .sound-on { display: block; }
[data-sound-toggle][aria-disabled="true"] { cursor: default; }
[data-motion-toggle] .play-icon { display: none; }
[data-motion-toggle][data-paused="true"] .pause-icon { display: none; }
[data-motion-toggle][data-paused="true"] .play-icon { display: block; }
noscript { position: absolute; top: 64%; width: 100%; padding: 0 24px; text-align: center; pointer-events: auto; font-size: 13px; }
.connection { display: flex; flex-direction: column; position: fixed; z-index: 5; left: 0; right: 0; bottom: var(--keyboard-offset, 0px); height: 50svh; max-height: calc(var(--visual-height, 100dvh) - 12px); opacity: 0; visibility: hidden; transform: translateY(4px); transition: transform 180ms ease, opacity 220ms ease, visibility 220ms; isolation: isolate; font-family: var(--interface-font); }
/* A feathered, localized scrim has no panel boundary. The video stays on its
   own fixed surface, independent of both the dialog and its scroll position. */
.connection::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: -80px; left: 50%; width: min(1440px, 155vw); transform: translateX(-50%); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(3 4 6 / 97%) 0%, rgb(3 4 6 / 91%) 35%, rgb(3 4 6 / 64%) 65%, transparent 100%); }
.connection[aria-hidden="false"] { opacity: 1; visibility: visible; transform: translateY(0); transition: transform 180ms ease, opacity 220ms ease; }
.connection[data-completing="true"] { opacity: 1; visibility: visible; transform: none; transition: none; }
.connection[data-completing="true"] #form-status { visibility: hidden; }
body:has(.connection[data-completing="true"]) footer { visibility: hidden; }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #65615a transparent; scroll-padding: 24px; }
.form-content { max-width: 864px; margin: 0 auto; padding: 0 32px max(24px, env(safe-area-inset-bottom)); }
.sheet-header { position: relative; z-index: 1; flex: none; width: min(calc(100% - 64px), 800px); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 14px auto 10px; }
.sheet-header h2 { display: flex; align-items: center; gap: 17px; margin: 0; color: #f0ede6; font-size: 17px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; line-height: 1.4; }
.sheet-header h2:focus { outline: none; }
.sheet-header h2:focus-visible { outline: 1px solid #b3a58b; outline-offset: 5px; }
.sheet-controls { display: flex; align-items: center; gap: 16px; }
#close-form { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border: 0; color: #d3d1cb; background: transparent; font-size: 0; }
#close-form span { font-size: 24px; font-weight: 300; line-height: 1; }
#close-form:hover { color: #fff; }
.preview-note { margin: 0 0 22px; color: #b3b1ac; font-size: 10px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { min-width: 0; margin-bottom: 22px; }
label { display: block; margin-bottom: 7px; color: #c8c4bb; font-size: 11px; font-weight: 500; text-transform: uppercase; line-height: 1.5; letter-spacing: .1em; }
label span { color: var(--muted); }
.optional { font-size: 10px; text-transform: none; letter-spacing: 0; }
input, textarea { display: block; width: 100%; min-height: 48px; padding: 12px 8px; border: 0; border-bottom: 1px solid rgb(178 172 161 / 48%); border-radius: 0; background: rgb(8 9 11 / 28%); color: #f7f5f0; font-size: 16px; font-weight: 400; line-height: 1.5; transition: border-color 150ms ease, background 150ms ease; }
input:hover, textarea:hover { border-bottom-color: #aaa49a; }
input:focus, textarea:focus { outline: 1px solid rgb(208 171 115 / 65%); outline-offset: 3px; border-bottom-color: var(--action-metal); background: rgb(15 16 18 / 72%); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #e6a9a9; }
.message-field { display: flex; flex-direction: column; }
textarea { flex: 1; min-height: 120px; resize: none; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.form-note, .privacy-note { color: var(--muted); font-size: 10px; line-height: 1.6; }
footer, .preview-note, .form-note, .privacy-note { font-family: var(--supporting-font); font-weight: 400; text-transform: none; letter-spacing: 0; }
.preview-note, .form-note, .privacy-note { font-size: 11px; }
.form-note { margin: 0; max-width: 420px; }
.submit { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex: none; min-height: 48px; padding: 13px 16px; border: 0; border-radius: 0; background: rgb(5 6 8 / 42%); color: #f0ede6; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; transition: color 150ms ease, background 150ms ease; }
.submit::before { height: 15px; }
.submit:hover { color: var(--action-metal); background: rgb(12 13 15 / 70%); }
.privacy-note { margin: 12px 0 0; font-size: 11px; }
#form-status { font-size: 12px; line-height: 1.6; margin: 12px 0 0; }
#form-status:empty { display: none; }
#form-status.error { color: #efbebe; }
@media (max-width: 700px) {
  .form-content { padding: 0 24px max(24px, env(safe-area-inset-bottom)); }
  .sheet-header { gap: 12px; width: calc(100% - 48px); margin: 12px auto 4px; }
  .sheet-header h2 { font-size: 14px; letter-spacing: .11em; gap: 12px; }
  .sheet-controls { gap: 8px; }
  .preview-note { margin: 4px 0 20px; font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .field-row { gap: 16px; }
  .field { margin-bottom: 20px; }
  textarea { height: 104px; min-height: 104px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .submit { align-self: flex-end; width: auto; }
  footer { left: 20px; right: 72px; }
}
@media (max-width: 380px) {
  .connect-toggle { min-width: 200px; font-size: 12px; letter-spacing: .12em; gap: 14px; }
  .sheet-header h2 { font-size: 12px; letter-spacing: .07em; gap: 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .connection { top: var(--mobile-sheet-top, 40svh); bottom: calc(var(--keyboard-offset, 0px) + max(12px, env(safe-area-inset-bottom)) + 52px); height: auto; max-height: none; }
  .sheet-header { margin-top: 0; margin-bottom: 8px; }
  .preview-note { margin-top: 0; margin-bottom: 12px; }
  .form-content { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
