:root {
  --red: #ed1c24;
  --ink: #111111;
  --paper: #ffffff;
  --muted: #6f6b67;
  --soft: #f5f4f2;
  --line: #dcd9d5;
  --primary: #111111;
  --primary-foreground: #ffffff;
  --border: #c9c7c3;
  --input: #c9c7c3;
  --ring: #ed1c24;
  --radius: 0;
  --font-display: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display), Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.landing-shell {
  min-height: 100svh;
  padding: 16px;
  background: var(--paper);
}

.site-header {
  min-height: 84px;
  border: 1px solid var(--ink);
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 22px;
  background: #fff;
}

.brand-mark {
  position: relative;
  width: 165px;
  height: 64px;
  flex: 0 0 165px;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  width: 200px;
  height: auto;
  max-width: none;
  top: -20px;
  left: -18px;
}

.header-status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #797570;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-status span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.header-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(237, 28, 36, 0.08);
  animation: signal 2.1s ease-in-out infinite;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(410px, 0.72fr);
  min-height: calc(100svh - 116px);
  border: 1px solid var(--ink);
}

.art-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(28px, 4vw, 64px) clamp(24px, 4vw, 68px) 18px;
  background: #fff;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.art-index,
.panel-index,
.stage-code {
  font-family: var(--font-mono), monospace;
  text-transform: uppercase;
}

.art-index {
  margin: 0 0 clamp(16px, 2.5vh, 28px);
  color: #8c8883;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.hero-slogan {
  max-width: 850px;
  margin: 0;
  font-size: clamp(52px, 6.7vw, 118px);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.8;
  text-transform: uppercase;
}

.hero-slogan em {
  color: var(--red);
  font-style: normal;
}

.art-stage {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: clamp(-18px, -1.3vw, -6px) clamp(-24px, -2vw, -8px) 0;
}

.art-stage::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}

.character-art {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 1120px);
  height: auto;
  object-fit: contain;
}

.stage-code {
  position: absolute;
  right: 2px;
  bottom: 4px;
  color: #9a9691;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.signup-panel {
  min-width: 0;
  border-left: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 clamp(30px, 3.5vw, 64px) 24px;
  background: #fff;
}

.panel-index {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 calc(clamp(30px, 3.5vw, 64px) * -1);
  border-bottom: 1px solid var(--line);
  padding: 18px clamp(30px, 3.5vw, 64px);
  color: #827e79;
  font-size: 8px;
  letter-spacing: 0.17em;
}

.signup-content {
  width: min(100%, 460px);
  margin: auto 0;
  padding: clamp(36px, 6vh, 74px) 0 clamp(34px, 5vh, 62px);
}

.protocol-label {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #797570;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.protocol-label span {
  width: 22px;
  height: 2px;
  flex: 0 0 22px;
  background: var(--red);
}

.signup-panel h2,
.legal-page h1 {
  margin: 0;
  font-size: clamp(50px, 4.6vw, 80px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.86;
  text-transform: uppercase;
}

.signup-panel h2 em {
  display: block;
  color: var(--red);
  font-style: normal;
}

.lead {
  max-width: 420px;
  margin: 25px 0 31px;
  color: #504d49;
  font-size: 17px;
  line-height: 1.58;
}

.signup-form {
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 8px;
}

.field {
  position: relative;
}

.field label {
  position: absolute;
  top: 9px;
  left: 14px;
  z-index: 1;
  color: #898580;
  font-family: var(--font-mono), monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.field input {
  width: 100%;
  min-height: 62px;
  border: 1px solid #cbc8c4;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: var(--ink);
  padding: 27px 14px 8px;
  font-family: var(--font-display), Arial, sans-serif;
  font-size: 16px;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.field input:hover {
  border-color: #9e9993;
}

.field input:focus {
  border-color: var(--ink);
  background: #fefefe;
  box-shadow: inset 3px 0 0 var(--red);
}

.field input::placeholder {
  color: #aaa6a1;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #716d68;
  font-size: 11px;
  line-height: 1.5;
}

.consent-row button {
  margin-top: 1px;
  border-color: #a9a6a1;
  background: #fff;
}

.consent-row button[data-state="checked"] {
  border-color: var(--ink);
  background: var(--ink);
}

.consent-row input[type="checkbox"] {
  appearance: none;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  border: 1px solid #a9a6a1;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.consent-row input[type="checkbox"]:checked {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' d='m3.5 8 3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.consent-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.consent-row label {
  cursor: pointer;
}

.consent-row a {
  text-decoration-color: #a9a6a1;
  text-underline-offset: 2px;
}

.submit-button {
  min-height: 60px;
  border: 1px solid var(--ink);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--ink);
  color: #fff;
  padding: 0 20px;
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.submit-button span[aria-hidden="true"] {
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--red);
  background: var(--red);
}

.submit-button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-message {
  min-height: 15px;
  margin: 0;
  color: #c51b21;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  line-height: 1.4;
}

.success-state {
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--ink);
  padding: 22px 0;
}

.success-state strong {
  display: block;
  margin-bottom: 5px;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.success-state p {
  margin: 0;
  color: #716d68;
  font-size: 14px;
}

.access-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 17px;
  color: #77736e;
  font-family: var(--font-mono), monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-points span {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.access-points b {
  margin-right: 7px;
  color: var(--red);
  font-weight: 400;
}

.bot-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

footer {
  width: min(100%, 460px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  color: #918d88;
  font-family: var(--font-mono), monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer a {
  text-underline-offset: 3px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 14px;
  text-align: right;
}

.legal-page {
  width: min(800px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 84px;
}

.legal-page .back-link {
  display: inline-block;
  margin-bottom: 56px;
  color: #77736f;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

.legal-page h1 {
  margin-bottom: 30px;
}

.legal-page h2 {
  margin: 36px 0 9px;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.legal-page p {
  color: #56524e;
  font-size: 16px;
  line-height: 1.72;
}

.legal-page ul {
  margin: 10px 0 0;
  padding-left: 22px;
  color: #56524e;
  font-size: 16px;
  line-height: 1.72;
}

.legal-page a:hover {
  text-decoration-color: var(--red);
}

.legal-meta {
  color: #8b8782 !important;
  font-family: var(--font-mono), monospace;
  font-size: 9px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.company-details {
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--ink);
  margin: 26px 0 6px;
  padding: 18px 0;
}

.company-details p {
  margin: 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #77736f;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-nav a {
  text-underline-offset: 4px;
}

@keyframes signal {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@media (max-width: 1180px) {
  .experience-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  }

  .hero-slogan {
    font-size: clamp(54px, 6.8vw, 88px);
  }

  .art-panel {
    padding-inline: clamp(22px, 3vw, 44px);
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .landing-shell {
    padding: 8px;
  }

  .site-header {
    min-height: 66px;
    padding: 5px 12px;
  }

  .brand-mark {
    width: 140px;
    height: 54px;
    flex-basis: 140px;
  }

  .brand-mark img {
    width: 178px;
    top: -18px;
    left: -19px;
  }

  .header-status {
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .header-status > span {
    display: none;
  }

  .experience-grid {
    display: block;
    min-height: 0;
  }

  .art-panel {
    display: flex;
    flex-direction: column;
    padding: 30px 16px 0;
  }

  .art-index {
    margin-bottom: 17px;
    font-size: 8px;
  }

  .hero-slogan {
    max-width: 620px;
    font-size: clamp(47px, 13.3vw, 76px);
    line-height: 0.84;
  }

  .art-stage {
    min-height: 0;
    margin: 12px -16px 0;
  }

  .character-art {
    width: 100%;
  }

  .stage-code {
    right: 8px;
    bottom: 1px;
    font-size: 6px;
  }

  .signup-panel {
    border-top: 1px solid var(--ink);
    border-left: 0;
    padding: 0 20px 24px;
  }

  .panel-index {
    margin: 0 -20px;
    padding: 15px 20px;
  }

  .signup-content {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 38px 0 40px;
  }

  .signup-panel h2 {
    font-size: clamp(50px, 15.4vw, 76px);
  }

  .lead {
    margin: 22px 0 26px;
  }

  footer {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 460px) {
  .site-header {
    min-height: 60px;
  }

  .brand-mark {
    width: 128px;
    height: 50px;
    flex-basis: 128px;
  }

  .brand-mark img {
    width: 166px;
    top: -17px;
    left: -19px;
  }

  .header-status {
    text-align: right;
  }

  .art-panel {
    padding-top: 25px;
  }

  .hero-slogan {
    font-size: clamp(44px, 13.8vw, 62px);
  }

  .signup-panel {
    padding-inline: 16px;
  }

  .panel-index {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .protocol-label {
    font-size: 8px;
  }

  .lead {
    font-size: 16px;
    line-height: 1.52;
  }

  .field input,
  .submit-button {
    min-height: 58px;
  }

  .consent-row {
    font-size: 10.5px;
  }

  .access-points {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  footer nav {
    justify-content: flex-start;
    text-align: left;
  }

  .legal-page {
    width: min(100% - 32px, 800px);
    padding-top: 30px;
  }

  .legal-page .back-link {
    margin-bottom: 38px;
  }

  .legal-page h1 {
    font-size: clamp(46px, 15vw, 64px);
  }

  .legal-page p,
  .legal-page ul {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
