@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400;1,9..144,600&family=Inter:wght@400;500;600&display=swap");

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line-soft: rgba(0, 0, 0, 0.1);
  --line-mid: rgba(0, 0, 0, 0.22);
  --muted-strong: rgba(0, 0, 0, 0.72);
  --muted-light: rgba(255, 255, 255, 0.55);
  --line-light: rgba(255, 255, 255, 0.18);
}

/* --muted scoped here so it doesn't bleed into shared nav tokens
   (tbps-header is hidden on this page, but kept for safety) */
.project-layout {
  --muted: rgba(0, 0, 0, 0.55);
}

/* ── Entry animation ───────────────────────────────────────────────── */
@keyframes tbps-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tbps-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav {
  animation: tbps-fade-in 0.35s ease both;
}

.project-layout {
  animation: tbps-slide-in-right 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    0.08s both;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

/* Cancel the global header.css body padding — this template handles its own offset */
body.tbps-project-body {
  padding-top: 0 !important;
  background: #ffffff;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Hide the global tbps-header pill on the contact page — replaced by .nav below */
body.tbps-project-body .tbps-header {
  display: none !important;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-decoration: none;
  color: var(--ink);
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
}

.nav-back {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}

.nav-back:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ============ LAYOUT ============ */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 100vh;
  padding-top: 80px;
}

/* LEFT: progress + context */
.left {
  background: var(--ink);
  color: #ffffff !important;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
}

.left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 30% 60%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    ellipse at 30% 60%,
    black 30%,
    transparent 80%
  );
}

.left-inner {
  position: relative;
  z-index: 2;
}

.left-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.left-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--paper);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.left-title {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: #ffffff !important;
}

.left-title .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.8;
}

.left-desc {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 380px;
  margin-bottom: 60px;
}

.left-desc strong {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--paper);
}

/* Step list */
.steps {
  display: flex;
  flex-direction: column;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.step-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 16px;
  align-items: center;
  transition: opacity 0.3s;
  opacity: 0.45;
}

.step-item.active {
  opacity: 1;
}

.step-item.done {
  opacity: 0.65;
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.2px;
}

.step-item.active .step-num {
  color: var(--paper);
}

.step-label {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-label .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.75;
}

.step-state {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.1px;
  color: rgba(255, 255, 255, 0.4);
}

.step-item.active .step-state {
  color: var(--paper);
  font-weight: 600;
}

.step-item.done .step-state::before {
  content: "✓";
  color: var(--paper);
}

.left-foot {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.left-foot a {
  color: var(--paper);
  text-decoration: none;
}

/* RIGHT: form */
.right {
  padding: 80px 80px 80px;
  background: var(--paper);
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.form-head {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}

.form-step-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.form-h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
}

.form-h2 .ital {
  font-style: italic;
  font-weight: 400;
}

.form-progress {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.2px;
}

.form-progress b {
  color: var(--ink);
  font-weight: 600;
}

/* ============ FORM STEPS ============ */
.form-step {
  display: none;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.form-step.active {
  display: flex;
}

/* Step 1: service picker (big cards) */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-pick {
  border: 1px solid var(--line-mid);
  border-radius: 16px;
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 180px;
}

.service-pick:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.service-pick.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.service-pick .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
}

.service-pick.selected .tag {
  color: rgba(255, 255, 255, 0.55);
}

.service-pick .title {
  font-family: "Fraunces", serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.service-pick .title .ital {
  font-style: italic;
  font-weight: 400;
}

.service-pick .desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-strong);
}

.service-pick.selected .desc {
  color: rgba(255, 255, 255, 0.65);
}

.service-pick .check {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-mid);
  display: grid;
  place-items: center;
  font-size: 10px;
  transition: all 0.25s;
}

.service-pick.selected .check {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.service-pick.selected .check::after {
  content: "✓";
}

/* Multi-select pills (Step 2) */
.field-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.field-label .opt {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Inter";
  font-size: 13px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 10px 18px;
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--paper);
  color: var(--ink);
  user-select: none;
}

.pill:hover {
  border-color: var(--ink);
}

.pill.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Text inputs */
.input-wrap {
  border-bottom: 1px solid var(--line-mid);
  padding: 14px 0;
  transition: border-color 0.2s;
}

.input-wrap:focus-within {
  border-color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: var(--ink);
  outline: none;
  padding: 0;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.3);
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.55;
  font-size: 16px;
  padding: 8px 0;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Budget cards */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.budget-pick {
  border: 1px solid var(--line-mid);
  border-radius: 14px;
  padding: 22px 18px;
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
  background: var(--paper);
}

.budget-pick:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.budget-pick.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.budget-pick .num {
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.budget-pick .num .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.7;
}

.budget-pick .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.budget-pick.selected .lbl {
  color: rgba(255, 255, 255, 0.6);
}

/* Footer / actions */
.form-actions {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition:
    transform 0.2s,
    opacity 0.2s,
    background 0.2s,
    color 0.2s;
  font-family: "Inter", sans-serif;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  background: var(--ink) !important;
  color: var(--paper) !important;
}

.btn-primary .arr {
  transition: transform 0.2s;
}

.btn-primary:hover:not(:disabled) .arr {
  transform: translateX(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-mid);
}

.btn-ghost:hover {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--ink);
}

/* Step 4: review */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.review-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  gap: 24px;
  align-items: start;
}

.review-row .key {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.review-row .val {
  font-family: "Fraunces", serif;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.review-row .val.body {
  font-family: "Inter";
  font-size: 15px;
  color: var(--muted-strong);
}

.review-row .val .ital {
  font-style: italic;
  opacity: 0.75;
}

.review-row .edit {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  text-align: right;
  padding-top: 6px;
  border-bottom: 1px solid var(--ink);
  align-self: start;
  line-height: 1;
  padding-bottom: 2px;
}

.review-row .edit:hover {
  opacity: 0.6;
}

.review-note {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: start;
}

.review-note .icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 600;
}

.review-note p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.review-note p strong {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--paper);
}

/* ============ SUCCESS SCREEN ============ */
.success {
  display: none;
  flex-direction: column;
  align-items: start;
  flex: 1;
  justify-content: center;
}

.success.active {
  display: flex;
}

.success-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.success-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
}

.success h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.success h2 .ital {
  font-style: italic;
  font-weight: 400;
}

.success p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted-strong);
  max-width: 480px;
  margin-bottom: 36px;
}

.success p strong {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
}

.success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.success-ref {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.success-ref b {
  color: var(--ink);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .project-layout {
    grid-template-columns: 1fr;
  }

  .left {
    position: relative;
    top: 0;
    height: auto;
    padding: 40px 20px;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .right {
    padding: 48px 24px;
  }

  .steps .step-item {
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
  }

  .step-num {
    flex: 0 0 36px;
    align-self: center;
  }

  .step-label {
    flex: 1 1 0;
    min-width: 0;
    font-size: 15px;
  }

  .step-state {
    flex: 0 0 100%;
    padding-left: 46px;
    text-align: left;
    font-size: 9px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 22px 24px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

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

  .review-row {
    grid-template-columns: 100px 1fr 50px;
    gap: 16px;
  }
}
