:root {
  --adc-ink: #14120f;
  --adc-muted: #6d675f;
  --adc-soft: #f6f2eb;
  --adc-panel: #ffffff;
  --adc-line: rgba(16, 16, 15, 0.12);
  --adc-green: #526640;
  --adc-green-dark: #3f5032;
  --adc-green-soft: #edf2e7;
  --adc-warm: #e8e1d5;
  --adc-shadow: 0 30px 90px rgba(26, 22, 18, 0.13);
  --adc-radius: 8px;
  --adc-display: "Didot", "Bodoni 72", "Iowan Old Style", Georgia, serif;
  --adc-sans: "Optima", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4eee5;
  color: var(--adc-ink);
  font-family: var(--adc-sans);
  line-height: 1.5;
  min-height: 100svh;
  text-rendering: geometricPrecision;
}

#top {
  display: grid;
  min-height: 100svh;
  grid-template-rows: minmax(0, 1fr) auto;
}

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  padding: clamp(46px, 7.4vh, 70px) clamp(42px, 4.45vw, 74px) 0;
}

.brand img {
  width: clamp(176px, 15.8vw, 265px);
  height: auto;
}

.nav-cta,
.button,
.text-button {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 47px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta {
  min-width: 176px;
  padding: 0 22px;
  background: var(--adc-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--adc-green-dark);
  transform: translateY(-1px);
}

.button {
  min-width: clamp(206px, 18.4vw, 308px);
  min-height: clamp(56px, 4.3vw, 72px);
  padding: 0 clamp(24px, 2.5vw, 42px);
  font-family: var(--adc-display);
  font-size: clamp(17px, 1.5vw, 25px);
  font-weight: 400;
}

.button svg,
.nav-cta svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button-primary {
  background: var(--adc-green);
  color: #fff;
}

.hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 68px);
  margin: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(249, 244, 235, 0.98) 0%, rgba(249, 244, 235, 0.92) 29%, rgba(249, 244, 235, 0.24) 55%, rgba(20, 18, 15, 0.18) 100%),
    url("assets/painting-detail.jpg") 54% center / cover no-repeat;
}

.hero::before {
  display: block;
  content: none;
}

.hero::after {
  display: block;
  content: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-copy {
  position: absolute;
  top: clamp(142px, 18vh, 230px);
  left: clamp(42px, 4.45vw, 74px);
  max-width: min(42vw, 590px);
  padding-top: 0;
  pointer-events: auto;
}

.hero-copy h1,
.hero-copy .hero-rule,
.hero-copy .hero-subhead {
  display: block;
}

.scarcity {
  display: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--adc-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: clamp(420px, 34vw, 570px);
  font-family: var(--adc-display);
  font-size: clamp(62px, 5.3vw, 88px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  word-spacing: 0;
}

.hero-rule {
  display: block;
  width: clamp(48px, 4.35vw, 73px);
  height: 1px;
  margin-top: clamp(26px, 3.1vw, 52px);
  background: var(--adc-green);
}

.hero-subhead {
  max-width: clamp(360px, 32vw, 530px);
  margin-top: clamp(28px, 2.4vw, 40px);
  color: var(--adc-muted);
  font-family: var(--adc-display);
  font-size: clamp(20px, 1.72vw, 29px);
  line-height: 1.28;
}

.hero-note {
  max-width: 430px;
  margin-top: 18px;
  color: #3d3933;
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  position: static;
  display: block;
  margin-top: clamp(34px, 4.6vh, 54px);
  opacity: 1;
  pointer-events: auto;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.studio-image {
  display: none;
}

.application-card {
  position: absolute;
  top: clamp(170px, 25vh, 300px);
  right: clamp(42px, 7.2vw, 120px);
  width: clamp(330px, 31vw, 520px);
  min-height: auto;
  border: 1px solid rgba(72, 61, 48, 0.16);
  border-radius: 10px;
  padding: clamp(24px, 2.35vw, 40px);
  background: rgba(246, 241, 232, 0.9);
  box-shadow: 0 22px 70px rgba(20, 18, 15, 0.22);
  backdrop-filter: blur(18px);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-header {
  opacity: 1;
}

.application-card.is-engaged,
.application-card[data-current-step="1"],
.application-card[data-current-step="2"],
.application-card[data-current-step="3"],
.application-card[data-current-step="4"] {
  opacity: 1;
}

.app-card-header {
  display: grid;
  gap: 7px;
}

.app-icon {
  display: none;
}

.app-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.application-card h2 {
  max-width: none;
  font-family: var(--adc-display);
  font-size: clamp(31px, 2.38vw, 44px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
}

.app-card-header p {
  color: var(--adc-muted);
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.32;
  max-width: clamp(260px, 23vw, 390px);
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(18px, 2vw, 34px);
  align-items: center;
  margin-top: clamp(18px, 1.8vw, 30px);
  padding-bottom: 0;
  border-bottom: 0;
  color: #1e1e1d;
  font-size: clamp(12px, 0.85vw, 14px);
}

.progress-track {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e6e3;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--adc-green);
  transition: width 240ms ease;
}

.form-status {
  min-height: 0;
  margin-top: 0;
  color: #9b372f;
  font-size: 12px;
}

.form-status:not(:empty) {
  min-height: 18px;
  margin-top: 8px;
}

.form-step {
  display: none;
}

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

.form-step h3 {
  margin: clamp(18px, 1.7vw, 28px) 0 clamp(12px, 1vw, 16px);
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
}

.option-group {
  display: grid;
  gap: clamp(10px, 0.8vw, 14px);
}

.option-row {
  display: grid;
  min-height: clamp(46px, 3vw, 56px);
  grid-template-columns: 1fr 18px;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(16, 16, 15, 0.12);
  border-radius: 6px;
  padding: 0 clamp(14px, 1.3vw, 22px);
  color: #161615;
  cursor: pointer;
  font-family: var(--adc-display);
  font-size: clamp(16px, 1.13vw, 19px);
}

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

.option-row i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(16, 16, 15, 0.18);
  border-radius: 50%;
}

.option-row:has(input:focus-visible) {
  outline: 3px solid rgba(90, 111, 67, 0.24);
  outline-offset: 2px;
}

.option-row:has(input:checked) {
  border-color: rgba(90, 111, 67, 0.48);
  background: var(--adc-green-soft);
  font-weight: 700;
}

.option-row:has(input:checked) i {
  border: 4px solid var(--adc-green);
}

.field-grid {
  display: grid;
  gap: clamp(10px, 0.9vw, 15px);
}

.field-grid label {
  display: grid;
  gap: 6px;
  color: var(--adc-muted);
  font-size: clamp(12px, 0.92vw, 15px);
  font-weight: 700;
}

.field-grid input {
  min-height: clamp(43px, 3.1vw, 52px);
  border: 1px solid rgba(16, 16, 15, 0.13);
  border-radius: 5px;
  padding: 0 12px;
  background: #fff;
  color: var(--adc-ink);
  outline: none;
}

.field-grid input:focus {
  border-color: rgba(90, 111, 67, 0.6);
  box-shadow: 0 0 0 3px rgba(90, 111, 67, 0.16);
}

.result-step {
  padding: 8px 0 18px;
}

.result-step h3 {
  margin-top: 0;
  font-family: var(--adc-display);
  font-size: clamp(30px, 2.6vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}

.result-step p:last-child {
  color: var(--adc-muted);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.45;
}

.form-actions {
  display: none;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}

.text-button {
  display: none;
  min-height: 41px;
  border: 0;
  background: transparent;
  color: var(--adc-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.text-button.is-visible {
  display: inline-flex;
  align-items: center;
}

.form-actions .button {
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: transparent;
}

.form-actions .button svg {
  display: none;
}

.application-card[data-current-step="3"] .form-actions .button {
  min-width: 96px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--adc-green);
  color: #fff;
  font-family: var(--adc-sans);
  font-size: 12px;
  font-weight: 700;
}

.application-card[data-current-step="1"] .form-actions,
.application-card[data-current-step="2"] .form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.application-card[data-current-step="3"] .form-actions {
  display: flex;
  justify-content: flex-end;
}

.application-card[data-current-step="3"] .app-card-header,
.application-card[data-current-step="4"] .app-card-header {
  display: none;
}

.application-card[data-current-step="3"] .progress-row,
.application-card[data-current-step="4"] .progress-row {
  margin-top: 0;
}

.application-card[data-current-step="3"] .form-actions .button svg {
  display: block;
  width: 20px;
  height: 20px;
}

.application-card[data-current-step="4"] .form-actions {
  display: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(280px, auto) minmax(240px, 1fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 30px) clamp(30px, 5.4vw, 90px);
  border-top: 1px solid rgba(20, 18, 15, 0.1);
  background: #f4eee5;
  color: var(--adc-muted);
}

.site-footer p,
.site-footer a,
.site-footer address {
  font-size: clamp(12px, 0.98vw, 15px);
  line-height: 1.35;
}

.site-footer p {
  font-family: var(--adc-display);
  color: var(--adc-ink);
}

.site-footer address {
  font-style: normal;
}

.site-footer a {
  justify-self: end;
  color: var(--adc-green);
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    padding: clamp(28px, 5.6vw, 52px) clamp(24px, 5vw, 56px) 0;
    background: transparent;
    opacity: 1;
  }

  .brand img {
    width: 146px;
  }

  .hero {
    width: 100%;
    aspect-ratio: auto;
    min-height: calc(100svh - 133px);
    margin: 0;
    border-radius: 0;
    padding: clamp(134px, 16vw, 176px) clamp(24px, 5vw, 56px) 56px;
    background-image: url("assets/painting-detail.jpg");
    background-position: 54% center;
    background-size: cover;
  }

  .hero::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    background: linear-gradient(90deg, rgba(249, 244, 235, 0.98) 0%, rgba(249, 244, 235, 0.94) 46%, rgba(249, 244, 235, 0.44) 76%, rgba(249, 244, 235, 0.08) 100%);
    pointer-events: none;
  }

  .hero-copy {
    position: relative;
    inset: auto;
    max-width: min(560px, 78vw);
    padding-top: 0;
    pointer-events: auto;
  }

  .hero-copy h1,
  .hero-copy .hero-rule,
  .hero-copy .hero-subhead {
    display: block;
  }

  .hero-actions {
    position: static;
    display: grid;
    gap: 17px;
    justify-items: start;
    margin-top: clamp(42px, 3.7vw, 62px);
    opacity: 1;
    pointer-events: auto;
  }

  h1 {
    font-size: clamp(46px, 8.8vw, 78px);
  }

  .hero-subhead {
    max-width: 430px;
    font-size: clamp(20px, 3.2vw, 27px);
  }

  .hero-visual {
    position: relative;
    inset: auto;
    margin-top: clamp(30px, 5vw, 58px);
    pointer-events: auto;
  }

  .application-card {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
  }

  .studio-image {
    background-position: 54% center;
  }

  .application-card {
    width: min(100%, 500px);
    margin: 0;
    opacity: 1;
    min-height: auto;
    padding: 24px 22px;
  }

  .application-card h2 {
    font-size: clamp(32px, 8vw, 42px);
  }

  .app-card-header p {
    max-width: 280px;
    font-size: 14px;
  }

  .progress-row {
    gap: 18px;
    margin-top: 20px;
    font-size: 12px;
  }

  .form-step h3 {
    margin: 22px 0 14px;
    font-size: 14px;
  }

  .option-group {
    gap: 10px;
  }

  .option-row {
    min-height: 46px;
    grid-template-columns: 1fr 18px;
    padding: 0 14px;
    font-size: 16px;
  }

  .option-row i {
    width: 18px;
    height: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    padding: 24px clamp(24px, 5vw, 56px);
  }

  .site-footer a {
    justify-self: start;
  }

}

@media (max-width: 620px) {
  .site-header {
    padding-top: 20px;
  }

  .nav-cta {
    width: 100%;
  }

  .application-card {
    padding: 24px 20px;
  }

  .hero-actions,
  .button-primary {
    width: auto;
  }

  .hero-actions .button-primary {
    width: min(100%, 270px);
  }

  .scarcity {
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .button,
  .text-button {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    display: grid;
    gap: 18px;
    justify-content: stretch;
    padding: 24px;
  }
}
