:root {
  color-scheme: dark;
  --ink: #f5f2e9;
  --muted: #9da39e;
  --dark: #0b0e0c;
  --dark-soft: #151a16;
  --accent: #d3ff52;
  --accent-ink: #273000;
  --panel: #f1efe7;
  --panel-ink: #171a18;
  --panel-muted: #686e69;
  --line: rgba(245, 242, 233, 0.13);
  --panel-line: rgba(23, 26, 24, 0.14);
  --danger: #a72b22;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--dark);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% -10%, rgba(211, 255, 82, 0.1), transparent 28rem),
    linear-gradient(145deg, #121612, var(--dark) 55%, #070907);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(211, 255, 82, 0.48);
  outline-offset: 3px;
}

.bio-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(16px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
}

.bio-page::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.ambient--one {
  top: -16rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  background: rgba(211, 255, 82, 0.12);
}

.ambient--two {
  bottom: -18rem;
  left: -7rem;
  width: 31rem;
  height: 31rem;
  background: rgba(47, 91, 72, 0.16);
}

.bio-header {
  display: flex;
  width: min(100%, 1240px);
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; }

.brand img {
  display: block;
  width: 140px;
  height: auto;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}

.header-note span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43dc79;
  box-shadow: 0 0 0 5px rgba(67, 220, 121, 0.09);
}

.bio-layout {
  display: grid;
  width: min(100%, 1240px);
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.78fr);
  gap: clamp(46px, 7vw, 106px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 78px) 0 20px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 6vw, 92px);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.06em;
}

.intro h1 em {
  display: block;
  color: var(--accent);
  font-weight: 400;
}

.intro__lead {
  max-width: 590px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.65;
}

.route-preview {
  display: grid;
  max-width: 640px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 37px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-preview div { min-width: 0; }

.route-preview span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.route-preview strong {
  color: #ccd1cc;
  font-size: 11px;
  font-weight: 650;
}

.route-preview i {
  color: #646b65;
  font-size: 14px;
  font-style: normal;
}

.coverage {
  margin: 18px 0 0;
  color: #697069;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.journey {
  position: relative;
  overflow: hidden;
  min-height: 548px;
  padding: clamp(27px, 3vw, 40px);
  border-radius: 4px 46px 4px 4px;
  color: var(--panel-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), transparent 40%),
    var(--panel);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.journey::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 4px;
  background: var(--accent);
  content: "";
}

.journey__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.journey__header span {
  display: block;
  margin-bottom: 9px;
  color: #63721f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.journey__header h2 {
  max-width: 340px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.journey__header > strong {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  color: var(--panel-muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress {
  height: 3px;
  margin: 22px 0 20px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(23, 26, 24, 0.1);
}

.progress i {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: #7e991f;
  transition: width 240ms ease;
}

.form-step {
  display: none;
  animation: rise 250ms ease-out both;
}

.form-step.is-active { display: block; }

.step-help {
  margin: 0 0 11px;
  color: var(--panel-muted);
  font-size: 11px;
}

.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.area-grid button {
  display: grid;
  min-height: 69px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--panel-line);
  border-radius: 3px 16px 3px 3px;
  color: var(--panel-ink);
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.area-grid button:hover,
.area-grid button:focus-visible {
  transform: translateY(-1px);
  border-color: #849b38;
  background: #fff;
}

.area-grid button > span {
  color: #778422;
  font-size: 8px;
  font-weight: 800;
}

.area-grid button strong {
  font-size: 12px;
  line-height: 1.25;
}

.area-grid button i {
  color: #7b877d;
  font-size: 15px;
  font-style: normal;
}

.assignment {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  padding: 11px;
  border: 1px solid rgba(96, 113, 34, 0.19);
  border-radius: 3px 18px 3px 3px;
  background: rgba(211, 255, 82, 0.11);
}

.assignment--compact { margin-bottom: 24px; }

.assignment__photo {
  position: relative;
  flex: 0 0 54px;
  height: 58px;
  overflow: hidden;
  border-radius: 2px 17px 2px 2px;
  background: #dfe4d5;
}

.assignment__photo > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #687044;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.assignment__photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

.assignment > div:last-child > span {
  display: block;
  margin-bottom: 3px;
  color: #737a73;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assignment strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.05;
}

.assignment p {
  margin: 4px 0 0;
  color: #61701f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-step > label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 750;
}

.field {
  display: flex;
  min-height: 60px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(23, 26, 24, 0.17);
  border-radius: 3px 17px 3px 3px;
  background: rgba(255, 255, 255, 0.66);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field:focus-within {
  border-color: #7e991f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(126, 153, 31, 0.1);
}

.field input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 0 17px;
  border: 0;
  outline: 0;
  color: var(--panel-ink);
  background: transparent;
  font-size: 16px;
}

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

.field > span:not(.country-code) {
  padding-right: 16px;
  color: #8e948e;
  font-family: Georgia, "Times New Roman", serif;
}

.country-code {
  padding-left: 17px;
  color: #5f701e;
  font-size: 14px;
  font-weight: 800;
}

.field--phone input { padding-left: 9px; }

.field-error {
  min-height: 18px;
  margin: 5px 3px 3px;
  color: var(--danger);
  font-size: 10px;
}

.primary-action {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 1px solid #151916;
  border-radius: 3px 17px 3px 3px;
  color: #f7f8f1;
  background: #151916;
  box-shadow: 0 13px 28px rgba(15, 18, 16, 0.16);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: transform 150ms ease, background 150ms ease;
}

.primary-action:hover {
  transform: translateY(-1px);
  background: #222821;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.primary-action span {
  color: var(--accent);
  font-size: 17px;
}

.back-action {
  display: block;
  width: 100%;
  min-height: 36px;
  margin-top: 3px;
  border: 0;
  color: var(--panel-muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.privacy {
  margin: 16px 0 0;
  color: #858b85;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.honeypot {
  position: fixed !important;
  top: -1000px !important;
  left: -1000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.loading-state {
  display: flex;
  min-height: 340px;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(23, 26, 24, 0.15);
  border-top-color: #6c8715;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.loading-state strong,
.loading-state p { display: block; margin: 0; }

.loading-state strong { font-size: 14px; }

.loading-state p {
  margin-top: 4px;
  color: var(--panel-muted);
  font-size: 10px;
}

.result-state {
  padding: 45px 0 0;
  text-align: center;
}

.result-state > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #843200;
  background: #ffe1cb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.result-state h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.result-state p {
  max-width: 330px;
  margin: 9px auto 18px;
  color: var(--panel-muted);
  font-size: 11px;
  line-height: 1.5;
}

.result-state .primary-action { justify-content: center; }

.result-state a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #555b55;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.is-hidden { display: none !important; }

.noscript {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 15px;
  border-radius: 12px;
  color: #fff;
  background: #7f1d1d;
  text-align: center;
  font-family: sans-serif;
}

.noscript a { color: #fff; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes rise {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 820px) {
  .bio-page {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .bio-header {
    min-height: 50px;
    padding-bottom: 7px;
  }

  .brand img { width: 103px; }

  .header-note {
    gap: 7px;
    font-size: 9px;
  }

  .bio-layout {
    display: flex;
    gap: 0;
    flex-direction: column;
    padding: 14px 0 6px;
  }

  .intro { width: 100%; }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 8px;
  }

  .intro h1 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 0.94;
  }

  .intro h1 em { display: inline; margin-left: 0.15em; }

  .intro__lead,
  .route-preview,
  .coverage { display: none; }

  .journey {
    width: 100%;
    min-height: 0;
    margin-top: 14px;
    padding: 17px 16px 12px;
    border-radius: 3px 27px 3px 3px;
  }

  .journey__header h2 {
    font-size: clamp(24px, 7.2vw, 31px);
  }

  .journey__header > strong { display: none; }

  .journey__header span { margin-bottom: 4px; }

  .progress { margin: 10px 0 11px; }

  .step-help {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .area-grid { gap: 6px; }

  .area-grid button {
    min-height: 54px;
    gap: 7px;
    padding: 0 10px;
    border-radius: 3px 13px 3px 3px;
  }

  .area-grid button strong { font-size: 10px; }

  .area-grid button i { font-size: 13px; }

  .assignment {
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
  }

  .assignment--compact { margin-bottom: 13px; }

  .assignment__photo {
    flex-basis: 45px;
    height: 48px;
  }

  .assignment strong { font-size: 17px; }

  .form-step > label {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .field { min-height: 53px; }

  .field input {
    min-height: 51px;
    font-size: 16px;
  }

  .field-error {
    min-height: 15px;
    margin: 3px 3px 2px;
  }

  .primary-action { min-height: 50px; }

  .back-action {
    min-height: 29px;
    margin-top: 0;
  }

  .privacy {
    margin-top: 7px;
    font-size: 8px;
  }

  .loading-state { min-height: 250px; }
}

@media (max-width: 820px) and (max-height: 680px) {
  .bio-page {
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .bio-header { min-height: 43px; }

  .brand img { width: 91px; }

  .bio-layout { padding-top: 8px; }

  .eyebrow { display: none; }

  .intro h1 { font-size: clamp(29px, 8.5vw, 36px); }

  .journey {
    margin-top: 9px;
    padding-top: 13px;
  }

  .journey__header h2 { font-size: 22px; }

  .area-grid button { min-height: 48px; }

  .assignment { margin-bottom: 9px; }

  .privacy { display: none; }
}

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