:root {
  --paper: #f5f5f5;
  --ink: #1e1920;
  --muted: #69636c;
  --purple: #8a2476;
  --purple-dark: #54256d;
  --line: rgba(73, 54, 78, 0.12);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 14%, rgba(138, 36, 118, 0.11), transparent 25%),
    radial-gradient(circle at 9% 74%, rgba(225, 190, 76, 0.11), transparent 24%),
    var(--paper);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.contact-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 78px;
  padding: 0 clamp(22px, 5vw, 82px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(245, 245, 245, 0.72);
  box-shadow: 0 12px 34px rgba(63, 38, 67, 0.06);
  backdrop-filter: blur(22px) saturate(165%);
}

.contact-logo {
  width: 52px;
  height: 52px;
}

.contact-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 #fff, 0 9px 24px rgba(50, 31, 55, 0.08);
  font-size: 0.8rem;
  font-weight: 650;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px rgba(50, 31, 55, 0.12);
}

.site-header,
.site-footer {
  --purple: #7b227d;
  --purple-dark: #54246f;
  font-family: "DM Sans", Arial, sans-serif;
}

.contact-main {
  padding: calc(72px + clamp(30px, 4vw, 58px)) clamp(18px, 5vw, 80px) 90px;
}

.breadcrumb {
  width: min(1320px, 100%);
  margin: 0 auto clamp(28px, 4vw, 50px);
  color: var(--muted);
  font-size: 0.78rem;
}

.breadcrumb ol {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.breadcrumb li+li::before {
  content: "›";
  margin-right: 10px;
  color: rgba(84, 37, 109, 0.48);
}

.breadcrumb a {
  color: var(--purple-dark);
  font-weight: 650;
  transition: color 180ms ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--purple);
}

.breadcrumb [aria-current="page"] {
  color: var(--muted);
}

.contact-bento {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42));
  box-shadow: inset 0 1px 0 #fff, 0 18px 50px rgba(47, 30, 51, 0.08);
  backdrop-filter: blur(18px) saturate(145%);
}

.intro-card {
  grid-column: 1 / -1;
  width: 100%;
  padding: clamp(18px, 2.5vw, 34px) 0 clamp(34px, 4vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-card::after {
  content: none;
}

.eyebrow, .card-label {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #522a6f;
  font-family: "Climate Crisis", Impact, sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.025em;
}

.intro-copy {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.65;
}

.service-chips {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-chips span {
  padding: 9px 13px;
  border: 1px solid rgba(138, 36, 118, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--purple-dark);
  font-size: 0.75rem;
}

.availability-card, .direct-card {
  min-height: 250px;
  padding: 30px;
}

.availability-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(150deg, #77216f, #4d246a);
  color: #fff;
}

.availability-card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -55px;
  width: 170px;
  height: 170px;
  border: 34px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

.availability-dot {
  width: 12px;
  height: 12px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #9ee36d;
  box-shadow: 0 0 0 8px rgba(158, 227, 109, 0.13);
}

.availability-card p {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}

.availability-card strong {
  color: rgba(255, 255, 255, .68);
  font-size: .75rem;
  font-weight: 500;
}

.direct-card {
  display: grid;
  align-content: center;
  gap: 9px;
}

.direct-card .card-label {
  margin-bottom: 18px;
}

.direct-card a {
  width: fit-content;
  font-weight: 650;
  transition: color 180ms ease;
}

.direct-card a:hover {
  color: var(--purple);
}

.direct-card>span {
  margin-top: 12px;
  color: var(--muted);
  font-size: .78rem;
}

.form-card {
  grid-column: 1 / -1;
  padding: clamp(28px, 4vw, 58px);
}

.form-heading {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: start;
}

.form-heading h2 {
  max-width: 670px;
  margin: 0;
  color: #29222b;
  font-size: clamp(1.7rem, 3.2vw, 3.4rem);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -.035em;
}

.step-mark {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(138, 36, 118, .08);
  color: var(--purple);
  font-size: .7rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 9px;
}

.field>span, .project-field legend, .phase-field legend {
  color: #4d4550;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .035em;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  background: rgba(255, 255, 255, .68);
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input, .field select {
  height: 58px;
  padding: 0 18px;
}

.field textarea {
  min-height: 170px;
  padding: 17px 18px;
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(138, 36, 118, .55);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(138, 36, 118, .08);
}

.field input::placeholder, .field textarea::placeholder {
  color: #aaa3ac;
}

.field [aria-invalid="true"] {
  border-color: #b83e58;
  box-shadow: 0 0 0 4px rgba(184, 62, 88, .08);
}

.email-field, .company-field, .project-field, .phase-field {
  grid-column: 1 / -1;
}

.project-field, .phase-field {
  margin: 8px 0 2px;
  padding: 0;
  border: 0;
}

.project-field legend, .phase-field legend {
  margin-bottom: 11px;
}

.project-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.project-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-options span {
  min-height: 50px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .58);
  color: #625a65;
  font-size: .76rem;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: all 180ms ease;
}

.project-options input:checked+span {
  border-color: var(--purple);
  background: rgba(138, 36, 118, .1);
  color: var(--purple-dark);
  box-shadow: inset 0 0 0 1px var(--purple);
}

.project-options input:focus-visible+span {
  outline: 3px solid rgba(138, 36, 118, .18);
  outline-offset: 2px;
}

body.contact-growth-mode .project-options span {
  border-color: rgba(138, 36, 118, 0.24);
  background: rgba(138, 36, 118, 0.05);
  color: var(--purple-dark);
}

body.contact-growth-mode .project-options input:checked+span {
  border-color: var(--purple);
  background: rgba(138, 36, 118, 0.1);
  color: var(--purple-dark);
  box-shadow: inset 0 0 0 1px var(--purple);
}

.phase-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phase-switch {
  position: relative;
  width: min(420px, 100%);
  display: block;
  cursor: pointer;
}

.phase-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.phase-switch-track {
  position: relative;
  min-height: 54px;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 1px solid rgba(138, 36, 118, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 4px rgba(62, 35, 66, 0.08);
  isolation: isolate;
}

.phase-switch-track::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 7px 18px rgba(95, 29, 95, 0.22);
  transition: translate 240ms cubic-bezier(.2, .8, .2, 1);
}

.phase-switch-track span {
  padding: 0 16px;
  color: #625a65;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  transition: color 220ms ease;
}

.phase-switch-track span:first-child {
  color: #fff;
}

.phase-switch input:checked+.phase-switch-track::before {
  translate: 100% 0;
}

.phase-switch input:checked+.phase-switch-track span:first-child {
  color: #625a65;
}

.phase-switch input:checked+.phase-switch-track span:last-child {
  color: #fff;
}

.phase-switch input:focus-visible+.phase-switch-track {
  outline: 3px solid rgba(138, 36, 118, .2);
  outline-offset: 3px;
}

.undefined-need-option {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  cursor: pointer;
}

.undefined-need-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.undefined-need-option span {
  width: auto;
  min-height: 54px;
  padding: 5px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138, 36, 118, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #625a65;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.undefined-need-option:hover span {
  border-color: rgba(138, 36, 118, 0.32);
  transform: translateY(-1px);
}

.undefined-need-option input:checked+span {
  border-color: rgba(138, 36, 118, 0.45);
  background: rgba(138, 36, 118, 0.1);
  color: var(--purple-dark);
  box-shadow: inset 0 0 0 1px rgba(138, 36, 118, 0.16);
}

.undefined-need-option input:focus-visible+span {
  outline: 3px solid rgba(138, 36, 118, 0.2);
  outline-offset: 3px;
}

.message-field {
  grid-column: 1 / -1;
}

.form-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.consent {
  max-width: 610px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}

.consent input {
  margin-top: 2px;
  accent-color: var(--purple);
}

.send-button {
  min-width: 210px;
  padding: 14px 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  box-shadow: 0 12px 28px rgba(95, 29, 95, .23);
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.send-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 34px rgba(95, 29, 95, .29);
}

.send-button:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
  box-shadow: 0 8px 20px rgba(95, 29, 95, .16);
}

.form-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--purple-dark);
  font-size: .78rem;
  font-weight: 650;
  text-align: right;
}

.contact-page-footer {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
}

@media (max-width: 900px) {
  .contact-bento {
    grid-template-columns: 1fr 1fr;
  }

  .intro-card {
    grid-column: 1 / -1;
  }

  .form-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .contact-main {
    padding: calc(62px + 24px) 14px 60px;
  }

  .breadcrumb {
    margin-bottom: 24px;
    font-size: .72rem;
  }

  .contact-bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bento-card {
    border-radius: 26px;
  }

  .intro-card {
    grid-column: auto;
    padding: 20px 0 30px;
  }

  h1 {
    font-size: 48px;
  }

  .availability-card, .direct-card {
    min-height: 210px;
    padding: 26px;
  }

  .form-card {
    grid-column: auto;
    padding: 28px 18px;
  }

  .form-heading {
    display: grid;
  }

  .step-mark {
    width: fit-content;
  }

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

  .email-field, .company-field, .project-field, .phase-field, .message-field {
    grid-column: auto;
  }

  .project-options {
    grid-template-columns: 1fr 1fr;
  }

  .phase-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .phase-switch {
    width: 100%;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .send-button {
    width: 100%;
  }

  .form-status {
    text-align: left;
  }

  .contact-page-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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