:root {
  color-scheme: light;
  --ink: #18202b;
  --muted: #667180;
  --canvas: #f4f0e8;
  --paper: #fffdf7;
  --line: #d8d4ca;
  --blue: #1264e8;
  --blue-soft: #e9f1ff;
  --error: #a8443a;
  --success: #1264e8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); }
button, input { font: inherit; }
button, input { min-height: 46px; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.access-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.32fr) minmax(420px, 0.68fr); }
.identity-field { position: relative; display: grid; min-height: 100vh; align-content: space-between; overflow: hidden; padding: clamp(34px, 6vw, 88px); border-right: 1px solid var(--line); }
.identity-field::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(18, 100, 232, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 100, 232, 0.055) 1px, transparent 1px); background-size: 42px 42px; content: ""; mask-image: linear-gradient(to bottom right, #000, transparent 72%); }
.access-copy { position: relative; z-index: 2; align-self: end; max-width: 680px; }
.eyebrow, .panel-index { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.access-copy h1 { margin: 18px 0 24px; font-size: clamp(56px, 8.2vw, 124px); font-weight: 590; letter-spacing: -0.075em; line-height: 0.88; }
.access-copy > p:not(.eyebrow) { max-width: 600px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.access-copy dl { display: grid; max-width: 680px; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 46px 0 0; border-top: 1px solid var(--line); }
.access-copy dl div { display: grid; gap: 5px; padding: 15px 16px 0 0; }
.access-copy dt { color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.access-copy dd { margin: 0; font-size: 13px; font-weight: 650; }

.signal-map { position: relative; z-index: 2; width: min(46vw, 520px); aspect-ratio: 1; justify-self: end; }
.signal-map strong { position: absolute; inset: 50% auto auto 50%; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; transform: translate(-50%, -50%); }
.orbit { position: absolute; inset: 12%; border: 1px solid rgba(18, 100, 232, 0.28); border-radius: 50%; }
.orbit-two { inset: 33%; border-style: dashed; }
.identity-node { position: absolute; width: 18px; height: 18px; border: 4px solid var(--paper); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 0 32px rgba(18, 100, 232, 0.28); }
.node-a { top: 17%; left: 27%; }
.node-b { right: 18%; bottom: 25%; }
.match-line { position: absolute; top: 39%; left: 30%; width: 47%; height: 1px; background: var(--blue); transform: rotate(36deg); transform-origin: left center; }
.match-line::after { position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); content: ""; }

.access-panel { display: grid; min-height: 100vh; align-content: center; gap: 50px; padding: clamp(32px, 5vw, 74px); background: var(--paper); }
.panel-index { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
#access-form { display: grid; gap: 28px; }
.field-block { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.field-block label { font-size: 22px; font-weight: 620; letter-spacing: -0.03em; }
.field-block > span { align-self: end; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.field-block input { grid-column: 1 / -1; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid #9fa7b1; border-radius: 0; background: transparent; color: var(--ink); font-size: 24px; letter-spacing: -0.025em; }
.field-block input:focus { border-color: var(--blue); outline-offset: 4px; }
.reveal-control { grid-column: 1 / -1; justify-self: start; min-height: 30px; padding: 3px 0; border: 0; background: transparent; color: var(--blue); font-size: 11px; }
.form-status { min-height: 22px; margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="success"] { color: var(--success); }
.access-button { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px; border: 1px solid var(--blue); border-radius: 3px; background: var(--blue); color: white; font-weight: 700; }
.access-button:hover { background: #0b55ca; }
.access-button:disabled { border-color: #aeb6c0; background: #aeb6c0; }
.privacy-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

@media (prefers-reduced-motion: no-preference) {
  .orbit-one { animation: drift 18s linear infinite; }
  .orbit-two { animation: drift 12s linear infinite reverse; }
  .identity-node { animation: pulse 3.2s ease-in-out infinite; }
  .node-b { animation-delay: 1.6s; }
  @keyframes drift { to { transform: rotate(360deg); } }
  @keyframes pulse { 50% { box-shadow: 0 0 0 1px var(--blue), 0 0 46px rgba(18, 100, 232, 0.48); } }
}

@media (max-width: 840px) {
  .access-shell { grid-template-columns: 1fr; }
  .identity-field { min-height: 46vh; padding: 28px 24px 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-map { width: 210px; justify-self: end; }
  .access-copy h1 { margin: 8px 0 15px; font-size: clamp(48px, 15vw, 74px); }
  .access-copy > p:not(.eyebrow) { font-size: 13px; }
  .access-copy dl { margin-top: 24px; }
  .access-copy dl div:nth-child(3) { display: none; }
  .access-copy dl { grid-template-columns: repeat(2, 1fr); }
  .access-panel { min-height: 54vh; padding: 36px 24px 48px; }
}

@media (max-width: 480px) {
  .signal-map { width: 150px; margin-bottom: -12px; }
  .access-copy h1 { font-size: 52px; }
  .access-panel { gap: 34px; }
}
