[hidden] { display: none !important; }
:root {
  --bg: #050608;
  --panel: #0d0f13;
  --panel-2: #14171d;
  --line: #262a33;
  --text: #f3f1ec;
  --muted: #a3a6ad;
  --accent: #d9b26b;
  --accent-ink: #1a1408;
  --ok: #5fbf8a;
  --err: #ff7a70;
  --radius: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 5vw, 56px); background: linear-gradient(var(--bg), rgba(5,6,8,.75)); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.04); }
.brand { font-weight: 800; letter-spacing: .28em; font-size: 14px; text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 11px 18px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer; text-decoration: none; transition: .2s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.small { padding: 7px 12px; font-size: 13px; }

/* Sections */
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.hero { min-height: 86vh; display: grid; align-items: end; padding: 120px 0 72px; background:
  linear-gradient(180deg, rgba(5,6,8,.35) 0%, rgba(5,6,8,.55) 55%, var(--bg) 100%),
  linear-gradient(90deg, rgba(5,6,8,.85) 0%, rgba(5,6,8,.25) 70%),
  url('/assets/img/hero-stage.jpg') center 35% / cover no-repeat, #0b0d12; border-bottom: 1px solid var(--line); }
.photo-band { height: clamp(220px, 34vw, 440px); background-size: cover; background-position: center; position: relative; border-bottom: 1px solid var(--line); }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--accent); font-weight: 700; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7vw, 92px); line-height: 1.02; margin: 14px 0 26px; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin: 10px 0 24px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.lede { color: var(--muted); max-width: 620px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.note { color: var(--muted); font-size: 13px; }
section.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.step-num { font: 700 12px var(--font); letter-spacing: .2em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.site-footer { padding: 48px 0 64px; color: var(--muted); font-size: 13px; }
.site-footer .brand { display: block; margin-bottom: 12px; color: var(--text); }
.draft-banner { background: #3a2a07; color: #ffd98a; text-align: center; font-size: 12.5px; padding: 7px 12px; letter-spacing: .02em; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: flex-start; justify-content: center; padding: 4vh 16px; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); overflow-y: auto; }
.modal.open { display: flex; }
.dialog { width: min(760px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 28px 8px; }
.dialog-head h2 { font-size: 30px; margin: 6px 0 0; }
.dialog-body { padding: 8px 28px 28px; }
.close { background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; line-height: 1; }
.progress { display: flex; gap: 8px; padding: 0 28px 10px; }
.progress span { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--accent); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 13px; font: 15px var(--font); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(217,178,107,.5); border-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; }
.seg label { cursor: pointer; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); }
.seg label { position: relative; }
.seg input:checked + span { color: var(--accent-ink); }
.seg label:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); margin: 10px 0; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.error { color: var(--err); font-size: 14px; min-height: 20px; margin: 10px 0 0; }
.hp { position: absolute; left: -5000px; }

.doc { background: #f7f5ef; color: #1b1b1b; font-family: var(--serif); font-size: 14.5px; line-height: 1.55; border-radius: 10px; padding: 28px 30px; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); }
.doc h4 { text-align: center; margin: 0 0 14px; font-size: 15px; letter-spacing: .02em; }
.doc h5 { text-align: center; margin: 16px 0 8px; font-size: 13.5px; }
.doc p { margin: 0 0 10px; }
.doc .sub { padding-left: 22px; }
.doc mark { background: #f3dfa6; padding: 0 3px; border-radius: 3px; }
.read-hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }

.sig-wrap { border: 1px dashed #4a4f5a; border-radius: 12px; background: #fbfaf6; position: relative; touch-action: none; }
.sig-wrap canvas { width: 100%; height: 150px; display: block; border-radius: 12px; cursor: crosshair; }
.sig-wrap .sig-label { position: absolute; left: 16px; bottom: 12px; color: #9a9a9a; font-size: 12px; pointer-events: none; }
.sig-wrap .sig-line { position: absolute; left: 16px; right: 16px; bottom: 34px; border-top: 1px solid #c9c6bd; pointer-events: none; }
.sig-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }

.done { text-align: center; padding: 18px 0 8px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: rgba(95,191,138,.15); color: var(--ok); display: grid; place-items: center; font-size: 30px; margin: 0 auto 16px; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
