:root {
  --bg: #101310;
  --deep: #0a0c0a;
  --surface: #151915;
  --surface-2: #1a201a;
  --line: #465046;
  --line-soft: #2b332b;
  --green: #5f7e62;
  --green-bright: #7f9d81;
  --green-dark: #26362a;
  --text: #d7dbd4;
  --strong: #f2f4ef;
  --muted: #979f96;
  --shell: 1180px;
  --pad: clamp(20px, 4vw, 54px);
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

body::selection { background: var(--green); color: var(--strong); }

a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(calc(100% - (var(--pad) * 2)), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--strong);
  color: var(--deep);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.app-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 12, 10, .92);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: grid;
  gap: 1px;
  text-decoration: none;
}

.brand span {
  color: var(--strong);
  font-size: .92rem;
  font-weight: 600;
}

.brand small {
  color: var(--green-bright);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portfolio-link {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.portfolio-link:hover,
.portfolio-link:focus-visible { color: var(--strong); }

.builder-shell {
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 7vw, 88px) 0 clamp(70px, 9vw, 110px);
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: start;
}

.builder-context {
  position: sticky;
  top: 34px;
}

.eyebrow,
.step-label,
.field-label,
.review-label {
  margin: 0;
  color: var(--green-bright);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.builder-context h1 {
  margin: 14px 0 0;
  color: var(--strong);
  font: 600 clamp(2.55rem, 4.4vw, 4.3rem)/.98 var(--heading);
  letter-spacing: -.015em;
  text-transform: none;
}

.intro {
  max-width: 470px;
  margin: 26px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.78;
}

.context-rule {
  height: 1px;
  margin: 38px 0 26px;
  background: linear-gradient(90deg, var(--green) 0 68px, var(--line-soft) 68px 100%);
}

.context-list {
  margin: 0;
}

.context-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.context-list dt {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.context-list dd {
  margin: 0;
  color: var(--text);
  font-size: .86rem;
}

.builder-panel {
  min-width: 0;
  border-top: 2px solid var(--green);
}

.builder-topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.builder-topbar > div { display: grid; gap: 4px; }

.step-title {
  color: var(--strong);
  font: 600 1.18rem/1.08 var(--heading);
  letter-spacing: .01em;
  text-transform: none;
}

.progress-text {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.progress-track {
  height: 3px;
  background: var(--line-soft);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green-bright);
  transition: width 180ms ease;
}

.question-stage {
  min-height: 410px;
  padding: clamp(42px, 6vw, 68px) 0 clamp(44px, 6vw, 62px);
}

.question-block {
  animation: reveal 160ms ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-block h2 {
  max-width: 760px;
  margin: 0;
  color: var(--strong);
  font: 600 clamp(1.85rem, 3.2vw, 3rem)/1.08 var(--heading);
  letter-spacing: -.012em;
  text-transform: none;
}

.question-help {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option label {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  background: rgba(13, 16, 13, .62);
  color: var(--text);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.option label::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 1px solid var(--green);
  transform: rotate(45deg);
}

.option input:checked + label {
  border-color: var(--green-bright);
  background: #172119;
  color: var(--strong);
}

.option input:checked + label::before { background: var(--green-bright); }
.option input:focus-visible + label { outline: 2px solid var(--green-bright); outline-offset: 3px; }
.option label:hover { border-color: #607061; background: #131813; }

.text-control {
  width: 100%;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #0d100d;
  color: var(--strong);
  padding: 15px 16px;
  transition: border-color 140ms ease, background 140ms ease;
}

textarea.text-control {
  min-height: 165px;
  resize: vertical;
}

.interview-finish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.interview-finish span {
  color: var(--muted);
  font-size: .78rem;
}

.text-control:focus {
  border-color: var(--green-bright);
  background: #111511;
}

.inline-extra {
  margin-top: 18px;
}

.inline-extra label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.inline-extra .text-control { margin-top: 0; }

.builder-actions {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
}

.button {
  min-height: 44px;
  border-radius: 0;
  padding: 0 18px;
  cursor: pointer;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button-primary {
  border: 1px solid var(--green);
  background: var(--green-dark);
  color: var(--strong);
}

.button-primary:hover,
.button-primary:focus-visible { background: #314737; }

.button-secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.button-secondary:hover,
.button-secondary:focus-visible { color: var(--strong); border-color: #657066; }

.button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.builder-status {
  min-height: 24px;
  margin: 8px 0 0;
  color: #b98f7d;
  font-size: .78rem;
}

.review-list {
  margin-top: 32px;
  border-top: 1px solid var(--line-soft);
}

.review-item {
  display: grid;
  grid-template-columns: minmax(120px, .38fr) minmax(0, 1.62fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.review-value {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
}

.review-edit {
  align-items: start;
  cursor: text;
}

.review-edit-heading {
  display: grid;
  gap: 5px;
}

.review-edit-heading strong {
  color: var(--strong);
  font-size: .88rem;
  line-height: 1.35;
}

.review-control {
  min-height: 46px;
  margin-top: 0;
}

textarea.review-control {
  min-height: 84px;
}

select.review-control {
  appearance: auto;
}

.review-instruction {
  margin: 18px 0 0;
  color: var(--strong);
  font-size: .82rem;
  font-weight: 600;
}

.interview-note {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-left: 2px solid var(--green-bright);
  background: rgba(55, 79, 60, .18);
  color: var(--text);
  font-size: .84rem;
  line-height: 1.6;
}

.brief-summary {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 3px solid var(--green-bright);
  background: rgba(55, 79, 60, .2);
}

.brief-summary span {
  color: var(--green-bright);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brief-summary p {
  margin: 8px 0 0;
  color: var(--strong);
  font-size: 1.02rem;
  line-height: 1.65;
}

.brief-shell {
  margin-top: 30px;
  border: 1px solid var(--line);
  background: #0d100d;
}

.brief-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.brief-header strong {
  display: block;
  margin-top: 6px;
  color: var(--strong);
  font: 600 clamp(1.6rem, 2.8vw, 2.5rem)/1.08 var(--heading);
  text-transform: none;
}

.brief-body { padding: 8px 24px 22px; }

.brief-row {
  display: grid;
  grid-template-columns: minmax(120px, .36fr) minmax(0, 1.64fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.brief-row:last-child { border-bottom: 0; }

.brief-row h3 {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brief-row p,
.brief-row ul {
  margin: 0;
  color: var(--text);
}

.brief-row ul {
  padding-left: 18px;
}

.contact-capture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.contact-capture .full { grid-column: 1 / -1; }

.contact-capture label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-capture .text-control { margin-top: 0; }

.contact-capture .bot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-capture .consent-field {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--green);
  background: rgba(55, 79, 60, .18);
  color: var(--strong);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.consent-field input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--green-bright);
}

.success-next {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--strong);
  font-size: 1.05rem;
  line-height: 1.65;
}

.success-details {
  max-width: 650px;
}

.consent-field a,
.footer-link,
.privacy-card a {
  color: var(--green-bright);
  text-underline-offset: 3px;
}

.consent-field a:hover,
.consent-field a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible,
.privacy-card a:hover,
.privacy-card a:focus-visible {
  color: var(--strong);
}

.footer-link { text-decoration-thickness: 1px; }

.privacy-main {
  min-height: calc(100vh - 156px);
  padding: clamp(48px, 7vw, 88px) 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(220px, .58fr) minmax(0, 1.42fr);
  gap: clamp(42px, 8vw, 110px);
  align-items: start;
}

.privacy-heading h1 {
  margin: 14px 0 0;
  color: var(--strong);
  font: 600 clamp(2.55rem, 4.4vw, 4.3rem)/.98 var(--heading);
}

.privacy-heading p {
  max-width: 420px;
  margin: 24px 0 0;
  color: var(--muted);
}

.privacy-card {
  border-top: 2px solid var(--green);
  padding-top: 30px;
}

.privacy-card h2 {
  margin: 34px 0 8px;
  color: var(--strong);
  font: 600 1.45rem/1.2 var(--heading);
}

.privacy-card h2:first-child { margin-top: 0; }

.privacy-card p,
.privacy-card li {
  color: var(--text);
}

.privacy-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.privacy-card .privacy-updated {
  margin-top: 34px;
  color: var(--muted);
  font-size: .78rem;
}

.app-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--deep);
}

.footer-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #6f776e;
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .builder-grid,
  .privacy-grid { grid-template-columns: 1fr; gap: 44px; }
  .builder-context { position: static; }
  .builder-context h1 { max-width: 720px; }
  .intro { max-width: 680px; }
  .context-list { max-width: 680px; }
  .question-stage { min-height: 360px; }
}

@media (max-width: 680px) {
  :root { --pad: 18px; }

  .header-inner { min-height: 64px; gap: 14px; }
  .brand span { font-size: .8rem; }
  .brand small { font-size: .56rem; letter-spacing: .08em; }
  .portfolio-link { font-size: .62rem; }

  .builder-shell { min-height: auto; padding: 38px 0 64px; }
  .builder-grid { gap: 38px; }
  .builder-context h1 { font-size: clamp(2.35rem, 10vw, 3.45rem); }
  .intro { margin-top: 20px; font-size: .94rem; }
  .context-rule { margin: 30px 0 20px; }
  .context-list div { grid-template-columns: 68px 1fr; gap: 12px; }

  .builder-topbar { min-height: 72px; gap: 14px; }
  .step-title { font-size: 1.12rem; }
  .progress-text { font-size: .66rem; }

  .question-stage { min-height: 300px; padding: 28px 0 24px; }
  .question-block h2 {
    font-size: clamp(1.75rem, 7.8vw, 2.45rem);
    line-height: 1.08;
  }
  .question-help { margin-top: 14px; font-size: .88rem; }
  .option-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .option label { min-height: 60px; padding: 13px 14px; }

  .text-control {
    margin-top: 20px;
    font-size: 16px;
    scroll-margin-bottom: 110px;
  }

  textarea.text-control {
    min-height: 128px;
    max-height: 34vh;
  }

  .builder-actions {
    position: sticky;
    bottom: var(--keyboard-inset, 0px);
    z-index: 20;
    min-height: 72px;
    margin-inline: calc(var(--pad) * -1);
    padding: 10px var(--pad) max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(10, 12, 10, .96);
    backdrop-filter: blur(14px);
  }

  .button {
    min-height: 44px;
    padding: 0 14px;
    font-size: .68rem;
  }

  .review-item,
  .brief-row { grid-template-columns: 1fr; gap: 8px; }

  .interview-finish {
    align-items: stretch;
    flex-direction: column;
  }

  .interview-finish .button {
    width: 100%;
  }

  .brief-header { padding: 18px; }
  .brief-body { padding: 6px 18px 18px; }

  .contact-capture { grid-template-columns: 1fr; }
  .contact-capture .full { grid-column: auto; }

  .footer-inner {
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

