:root {
  --ink: #182445;
  --ink-soft: #526078;
  --paper: #f4f1e9;
  --paper-deep: #ebe7dd;
  --field: #faf8f3;
  --line: rgba(24, 36, 69, 0.72);
  --error: #8b2c36;
  --success: #1f5f4a;
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(16px, 2.8vw, 42px);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.75), transparent 28rem),
    var(--paper-deep);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  transform: translate(-50%, -120%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 12px);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.93fr) minmax(480px, 1.07fr);
  gap: clamp(14px, 1.4vw, 24px);
  width: min(1480px, 100%);
  min-height: calc(100vh - clamp(32px, 5.6vw, 84px));
  margin: 0 auto;
}

.intro-panel,
.art-panel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.intro-inner {
  display: flex;
  flex-direction: column;
  width: min(490px, calc(100% - 64px));
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(38px, 5.3vh, 70px) 0 clamp(24px, 3.6vh, 44px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2vw, 35px);
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.brand-mark path {
  fill: var(--ink);
  stroke: none;
}

.brand-mark .brand-centre {
  fill: var(--paper);
  stroke: none;
}

.copy-block {
  margin: clamp(62px, 9vh, 112px) 0 clamp(36px, 5vh, 62px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 6.1vw, 86px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.dek {
  max-width: 430px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.55;
}

.waitlist-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 12px;
}

.field label {
  display: block;
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

input[type="email"],
select {
  width: 100%;
  height: 58px;
  border: 1px solid transparent;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: var(--field);
  font-size: 14px;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

input[type="email"] {
  padding: 0 17px;
}

input::placeholder {
  color: #9299a7;
  opacity: 1;
}

.select-wrap {
  position: relative;
}

select {
  appearance: none;
  padding: 0 42px 0 17px;
  cursor: pointer;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 12px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  pointer-events: none;
  transform: translateY(-50%);
}

input[type="email"]:focus,
select:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(24, 36, 69, 0.09);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 15px 0 14px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
  cursor: pointer;
}

.consent-row input {
  width: 15px;
  height: 15px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--ink);
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 58px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--paper);
  background: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.submit-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 150ms ease;
}

.submit-button:hover:not(:disabled) {
  color: var(--ink);
  background: transparent;
}

.submit-button:hover:not(:disabled) svg {
  transform: translateX(3px);
}

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

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

.form-status {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.form-status[data-state="error"] {
  color: var(--error);
}

.form-status[data-state="success"] {
  color: var(--success);
}

.waitlist-form.is-complete .form-grid,
.waitlist-form.is-complete .consent-row,
.waitlist-form.is-complete .submit-button {
  display: none;
}

.waitlist-form.is-complete .form-status {
  min-height: 58px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(31, 95, 74, 0.34);
  background: rgba(31, 95, 74, 0.06);
  text-align: center;
}

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

.intro-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: clamp(30px, 6vh, 72px);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.art-panel {
  background:
    linear-gradient(rgba(24, 36, 69, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 36, 69, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

.skyline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
}

.skyline g,
.skyline path {
  vector-effect: non-scaling-stroke;
}

.clouds,
.cn-tower,
.building,
.midrise,
.street-lines {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
}

.clouds {
  opacity: 0.62;
  stroke-width: 0.9;
}

.cn-tower {
  stroke-width: 1.25;
}

.building {
  fill: rgba(24, 36, 69, 0.025);
}

.left-back,
.right-back {
  opacity: 0.8;
}

.left-front,
.right-front {
  fill: rgba(24, 36, 69, 0.055);
  stroke-width: 1.2;
}

.midrise {
  fill: rgba(244, 241, 233, 0.94);
}

.street-lines {
  opacity: 0.58;
}

.horizon-fade {
  fill: url(#paper-fade);
  stroke: none;
}

.art-caption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  background: var(--error);
  text-align: center;
}

@media (max-width: 980px) {
  body {
    padding: 16px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .intro-panel {
    min-height: calc(100svh - 32px);
  }

  .art-panel {
    min-height: min(76vw, 720px);
  }

  .intro-inner {
    width: min(520px, calc(100% - 48px));
  }

  h1 {
    font-size: clamp(60px, 12vw, 84px);
  }
}

@media (max-width: 560px) {
  .intro-panel {
    min-height: calc(100svh - 24px);
  }

  body {
    padding: 12px;
  }

  .intro-inner {
    width: calc(100% - 36px);
    padding-top: 30px;
    padding-bottom: 24px;
  }

  .brand {
    font-size: 28px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .copy-block {
    margin: 54px 0 38px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 72px);
  }

  .dek {
    font-size: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .intro-footer {
    align-items: flex-end;
    padding-top: 36px;
  }

  .intro-footer span:last-child {
    text-align: right;
  }

  .art-panel {
    min-height: 520px;
  }
}

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