:root {
  --contact-gold: #ebaa46;
  --contact-ink: #10100d;
  --contact-paper: #f7f4ec;
  --contact-soft: #ede8dd;
  --contact-line: rgba(16, 16, 13, 0.13);
}

.contact-page {
  background: var(--bg);
}

.contact-hero {
  min-height: 100svh;
  padding: 104px clamp(16px, 3vw, 42px) 72px;
  display: grid;
  place-items: center;
  background: var(--contact-gold);
  color: var(--contact-ink);
}

.contact-hero-inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 10.5vw, 150px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.contact-pill-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 48px);
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 17px 11px;
  border: 1px solid #11110e;
  border-radius: 999px;
  background: #11110e;
  color: #f7b849;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
  transition: transform 320ms var(--ease), background 320ms ease, color 320ms ease, border-color 320ms ease;
}

.contact-pill span {
  transition: transform 320ms var(--ease);
}

.contact-pill:hover,
.contact-pill:focus-visible {
  transform: translateY(-3px);
  background: transparent;
  color: #11110e;
}

.contact-pill:hover span,
.contact-pill:focus-visible span {
  transform: translateX(4px);
}

.contact-pill-light {
  background: #f7f4ec;
  color: #11110e;
  border-color: #f7f4ec;
}

.contact-pill-light:hover,
.contact-pill-light:focus-visible {
  background: transparent;
  color: currentColor;
}

.contact-media-section {
  padding: 0 clamp(16px, 3vw, 42px) clamp(48px, 6vw, 82px);
  background: var(--contact-gold);
}

.contact-image-wrap {
  width: min(1440px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  clip-path: inset(0 0 0 0 round 8px);
  box-shadow: 0 24px 80px rgba(16, 16, 13, 0.18);
}

.contact-image-wrap img {
  width: 100%;
  height: clamp(340px, 48vw, 620px);
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 900ms var(--ease);
}

.contact-image-wrap.is-visible img,
.contact-image-wrap:hover img {
  transform: scale(1);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 46px);
  padding: 0 clamp(16px, 3vw, 42px) clamp(76px, 9vw, 126px);
  background: var(--contact-gold);
  color: var(--contact-ink);
}

.contact-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 28px) 0 0;
  border-top: 1px solid rgba(16, 16, 13, 0.16);
  background: transparent;
  transition: transform 320ms var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-kicker {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.62;
}

.contact-card h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 760;
  line-height: 1.02;
}

.contact-card p:not(.contact-kicker) {
  margin: 28px 0 0;
  max-width: 36ch;
  color: rgba(16, 16, 13, 0.64);
  line-height: 1.45;
}

.project-section {
  padding: clamp(78px, 10vw, 140px) clamp(16px, 3vw, 42px);
  background: #fbfaf7;
  color: #080808;
}

.project-intro {
  width: min(1180px, 100%);
  margin: 0 auto clamp(38px, 6vw, 74px);
}

.project-intro h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.8vw, 86px);
  font-weight: 400;
  line-height: 0.94;
}

.project-intro p {
  margin: 0;
  max-width: 720px;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 560;
  line-height: 1.36;
  color: rgba(8, 8, 8, 0.66);
}

.project-intro .email-line {
  margin-top: 14px;
  font-size: clamp(15px, 1.35vw, 18px);
  color: rgba(8, 8, 8, 0.7);
}

.project-intro a,
.email-cta {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-form {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.project-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.project-form legend {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  color: rgba(8, 8, 8, 0.58);
}

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

.project-form label {
  display: grid;
  gap: 9px;
  color: #111;
  font-size: 13px;
  font-weight: 780;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(8, 8, 8, 0.06);
  border-radius: 8px;
  background: #efefef;
  color: #080808;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 620;
  outline: none;
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease, transform 240ms var(--ease);
}

.project-form textarea {
  resize: vertical;
  min-height: 128px;
  line-height: 1.45;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  background: #fff;
  border-color: #080808;
  box-shadow: 0 0 0 4px rgba(235, 170, 70, 0.2);
  transform: translateY(-1px);
}

.project-form label.field-error input,
.project-form label.field-error select,
.project-form label.field-error textarea,
.project-form .field-error input {
  border-color: #c43122;
  background: #fff3ef;
}

.full-span {
  grid-column: 1 / -1;
}

.file-field {
  position: relative;
}

.file-field input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-field span {
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border-radius: 8px;
  background: #efefef;
  border: 1px solid transparent;
  color: rgba(8, 8, 8, 0.68);
  cursor: pointer;
  transition: background 240ms ease, border-color 240ms ease;
}

.file-field:hover span,
.file-field input:focus + span {
  background: #fff;
  border-color: #080808;
}

.checkbox-field {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}

.checkbox-field input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: 1px;
  accent-color: #080808;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
}

.form-status.is-error,
.form-status.is-success,
.form-status.is-loading {
  display: block;
}

.form-status.is-error {
  background: #fff3ef;
  color: #922315;
}

.form-status.is-success {
  background: #eef8e3;
  color: #1f4e16;
}

.form-status.is-loading {
  background: #f4eddf;
  color: #5d4318;
}

.contact-submit {
  justify-self: start;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: #080808;
  color: #fffaf0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
  transition: transform 280ms var(--ease), opacity 240ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  transform: translateY(-2px);
}

.contact-submit[disabled] {
  opacity: 0.58;
  cursor: wait;
}

.note-press {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 0 clamp(16px, 3vw, 42px) clamp(78px, 10vw, 140px);
  background: #fbfaf7;
  color: #080808;
}

.note-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid rgba(8, 8, 8, 0.09);
  border-radius: 8px;
  background: #f1eee7;
}

.note-card h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 54px);
  font-weight: 860;
  line-height: 0.96;
}

.note-card p:not(.contact-kicker) {
  max-width: 42ch;
  color: rgba(8, 8, 8, 0.66);
  font-size: 15px;
  line-height: 1.38;
}

.email-cta {
  display: inline-block;
  margin: 18px 0;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 780;
}

.contact-final {
  min-height: 64vh;
  display: grid;
  place-items: center;
  padding: clamp(78px, 10vw, 142px) clamp(16px, 3vw, 42px);
  background:
    linear-gradient(120deg, rgba(235, 170, 70, 0.2), transparent 44%),
    #050505;
  color: #f8f6ec;
  text-align: center;
}

.contact-final-inner {
  width: min(1080px, 100%);
}

.contact-final h2 {
  margin: 0;
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 860;
  line-height: 1;
  text-transform: uppercase;
}

.contact-final p {
  width: min(660px, 100%);
  margin: 22px auto;
  color: rgba(248, 246, 236, 0.7);
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.35;
}

.contact-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease), filter 780ms var(--ease), clip-path 900ms var(--ease);
}

.contact-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

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

  .contact-card,
  .note-card {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .contact-hero,
  .contact-media-section,
  .contact-info,
  .project-section,
  .note-press,
  .contact-final {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-hero {
    min-height: 100svh;
    padding-top: 110px;
    padding-bottom: 72px;
  }

  .contact-hero-inner {
    text-align: center;
  }

  .contact-hero h1 {
    font-size: clamp(54px, 17vw, 76px);
    line-height: 0.96;
  }

  .contact-pill-row {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 8px;
  }

  .contact-pill {
    min-height: 38px;
    padding: 9px 14px 10px;
    font-size: 11px;
  }

  .contact-image-wrap {
    border-radius: 8px;
  }

  .contact-image-wrap img {
    height: 320px;
  }

  .contact-info {
    gap: 18px;
    padding-bottom: 54px;
  }

  .project-intro h2 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 0.96;
  }

  .project-intro p {
    font-size: 16px;
    line-height: 1.36;
  }

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

  .full-span {
    grid-column: auto;
  }

  .project-form {
    gap: 26px;
    padding: 0;
  }

  .contact-card {
    min-height: 0;
    gap: 14px;
    padding: 15px 0 0;
  }

  .contact-card h2 {
    font-size: clamp(20px, 5.8vw, 26px);
    line-height: 1.04;
  }

  .contact-card p:not(.contact-kicker) {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .note-press {
    gap: 14px;
    padding-bottom: 60px;
  }

  .note-card {
    min-height: 0;
    gap: 16px;
    padding: 18px;
  }

  .note-card h2 {
    font-size: clamp(24px, 7.4vw, 32px);
    line-height: 1;
  }

  .note-card p:not(.contact-kicker) {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .note-card .email-cta {
    margin: 4px 0;
    font-size: clamp(16px, 5.2vw, 22px);
  }

  .contact-final h2 {
    font-size: clamp(23px, 6.8vw, 32px);
    line-height: 1.02;
  }

  .contact-submit {
    width: 100%;
  }

  .email-cta {
    word-break: break-word;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-reveal,
  .contact-image-wrap img,
  .contact-pill,
  .contact-pill span {
    transition: none;
  }
}
