:root {
  --ink: #14110f;
  --oat: #ece5d8;
  --greige: #ddd3c6;
  --oxblood: #6e2233;
  --veil: #f7f3ec;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  margin: 0;
  background: var(--veil);
  color: var(--ink);
  font-family: "Hanken Grotesk", Arial, sans-serif;
}

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

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

.shell-top {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(247,243,236,0.98) 0%, rgba(247,243,236,0.88) 70%, rgba(247,243,236,0) 100%);
  pointer-events: none;
}

.brand {
  width: 104px;
  display: inline-flex;
  pointer-events: auto;
}

.brand__logo {
  width: 100%;
  height: auto;
}

.level-back {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(20,17,15,0.18);
  border-radius: 50%;
  background: rgba(247,243,236,0.92);
  color: rgba(20,17,15,0.72);
  transform: translateY(-50%);
  pointer-events: auto;
}

.level-back::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.level-back::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.level-back span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.level-back:hover,
.level-back:focus-visible {
  border-color: rgba(20,17,15,0.42);
  color: var(--ink);
  outline: none;
}

.eyebrow,
.field > span,
.group-label {
  margin: 0;
  color: rgba(110,34,51,0.78);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brief-intro {
  width: min(1180px, calc(100% - 80px));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 570px) 360px;
  justify-content: space-between;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  margin: 0 auto;
  padding: 128px 0 64px;
}

.brief-intro__copy {
  max-width: 570px;
}

.brief-intro h1,
.brief-form h2 {
  margin: 16px 0 24px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 350;
  line-height: 0.96;
}

.brief-intro h1 {
  max-width: 560px;
  font-size: clamp(3.35rem, 4.9vw, 5.1rem);
  letter-spacing: -0.05em;
}

.brief-intro__lead {
  max-width: 530px;
  margin: 0;
  color: rgba(20,17,15,0.72);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  font-weight: 300;
  line-height: 1.55;
}

.brief-intro__facts {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.brief-intro__facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(20,17,15,0.67);
  font-size: 0.8rem;
}

.brief-intro__facts li::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--oxblood);
}

.brief-intro__image {
  width: 360px;
  height: 470px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--greige);
}

.brief-intro__image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: 50% 42%;
}

.brief-form-section {
  padding: 72px clamp(20px, 6vw, 96px) 96px;
  background: var(--oat);
}

.brief-form {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px);
  background: rgba(255,255,255,0.48);
  box-shadow: 0 30px 80px rgba(20,17,15,0.08);
}

.brief-form__heading {
  max-width: 590px;
  margin-bottom: 42px;
}

.brief-form h2 {
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  letter-spacing: -0.04em;
}

.brief-form__heading > p:last-child {
  margin: 0;
  color: rgba(20,17,15,0.6);
}

.brief-form__trap {
  position: absolute !important;
  left: -9999px !important;
}

fieldset {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 34px 0;
  border: 0;
  border-top: 1px solid rgba(20,17,15,0.15);
}

legend {
  padding: 0 20px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 400;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.field > span,
.group-label {
  color: rgba(20,17,15,0.66);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(20,17,15,0.2);
  border-radius: 0;
  background: rgba(255,255,255,0.58);
  color: var(--ink);
  padding: 13px 15px;
  outline: none;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--oxblood);
  background: rgba(255,255,255,0.88);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid .group-label {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.choice-grid label {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(20,17,15,0.14);
  background: rgba(255,255,255,0.34);
  padding: 12px 14px;
  cursor: pointer;
}

.choice-grid label:has(input:checked) {
  border-color: var(--oxblood);
  background: rgba(110,34,51,0.06);
}

.choice-grid input,
.consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--oxblood);
}

.choice-grid span {
  font-size: 0.88rem;
  line-height: 1.35;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(20,17,15,0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

.brief-form__footer {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 30px;
  border-top: 1px solid rgba(20,17,15,0.15);
}

.brief-form__footer button {
  min-height: 52px;
  border: 1px solid var(--oxblood);
  background: var(--oxblood);
  color: var(--oat);
  padding: 0 28px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.brief-form__footer button:hover,
.brief-form__footer button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  outline: none;
}

.brief-form__footer button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.brief-form__footer p {
  max-width: 390px;
  margin: 0;
  color: rgba(20,17,15,0.56);
  font-size: 0.78rem;
  line-height: 1.45;
}

.brief-form__status {
  display: none;
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid rgba(20,17,15,0.14);
  color: rgba(20,17,15,0.76);
  font-size: 0.84rem;
  line-height: 1.45;
}

.brief-form__status:not(:empty) {
  display: block;
}

.brief-form__status[data-state="error"] {
  border-color: rgba(110,34,51,0.38);
  color: var(--oxblood);
}

.brief-form__status[data-state="success"] {
  border-color: rgba(45,91,57,0.35);
  color: #2d5b39;
}

.page-veil {
  position: fixed;
  z-index: 300;
  inset: 0;
  background: var(--veil);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 820px) {
  .brief-intro {
    width: auto;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    margin: 0;
    padding: 108px 20px 48px;
  }

  .brief-intro h1 {
    font-size: clamp(2.75rem, 12vw, 4.35rem);
  }

  .brief-intro__image {
    width: min(72vw, 300px);
    height: clamp(330px, 92vw, 400px);
    justify-self: end;
  }

  .brief-form-section {
    padding: 44px 10px 64px;
  }

  .brief-form {
    padding: 28px 18px;
  }

  .brief-form__heading {
    margin-bottom: 34px;
  }

  fieldset {
    padding: 28px 0;
  }

  .field-row,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .brief-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .brief-form__footer button {
    width: 100%;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .brief-intro {
    width: min(920px, calc(100% - 56px));
    grid-template-columns: minmax(0, 520px) 300px;
    gap: 54px;
  }

  .brief-intro h1 {
    font-size: clamp(3.5rem, 6vw, 4.5rem);
  }

  .brief-intro__image {
    width: 300px;
    height: 410px;
  }
}

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