:root {
  --rivimetal-red: #8c0500;
  --contact-graphite: #182126;
  --contact-muted: #626b6f;
  --contact-paper: #f2f0eb;
  --contact-warm-white: #f8f7f3;
  --contact-line: rgba(24, 33, 38, 0.14);
}

.rm-contact-page main {
  overflow: hidden;
  background: var(--contact-paper);
}

.ct-shell {
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
}

.ct-eyebrow,
.ct-label,
.ct-field-label {
  display: block;
  color: var(--rivimetal-red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.ct-hero {
  min-height: 650px;
  color: #fff;
  background: var(--contact-graphite);
}

.ct-hero-grid {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(340px, .84fr) minmax(0, 1.16fr);
}

.ct-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(38px, 5vw, 78px) clamp(34px, 5vw, 76px) clamp(46px, 6vw, 88px) max(32px, calc((100vw - 1380px) / 2));
}

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

.ct-breadcrumb li,
.ct-breadcrumb a {
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ct-breadcrumb li + li::before {
  margin-right: 12px;
  content: "/";
  color: var(--rivimetal-red);
}

.ct-hero-body {
  max-width: 600px;
  padding-top: 90px;
}

.ct-hero h1 {
  margin: 20px 0 24px;
  color: #fff;
  font-size: clamp(58px, 6.2vw, 100px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
}

.ct-hero p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 18px;
  line-height: 1.7;
}

.ct-hero-index {
  display: flex;
  gap: 15px;
  align-items: center;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ct-hero-index::before {
  width: 44px;
  height: 1px;
  content: "";
  background: var(--rivimetal-red);
}

.ct-hero-image {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}

.ct-hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(24, 33, 38, .22), transparent 35%), linear-gradient(0deg, rgba(24, 33, 38, .22), transparent 35%);
  pointer-events: none;
}

.ct-hero-image img,
.ct-photo img,
.ct-base-image img,
.ct-rfq-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ct-hero-image img {
  object-position: 54% center;
}

.ct-contact {
  padding: clamp(80px, 9vw, 138px) 0;
}

.ct-contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(54px, 8vw, 126px);
  align-items: start;
}

.ct-contact-intro {
  position: sticky;
  top: 112px;
}

.ct-contact-intro h2,
.ct-visit-copy h2,
.ct-rfq-copy h2 {
  margin: 20px 0 24px;
  color: var(--contact-graphite);
  font-size: clamp(40px, 4.7vw, 72px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .98;
}

.ct-contact-intro > p,
.ct-visit-copy > p {
  max-width: 520px;
  margin: 0;
  color: var(--contact-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ct-details {
  margin-top: 44px;
  border-top: 1px solid var(--contact-line);
}

.ct-detail {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--contact-line);
}

.ct-detail dt {
  color: var(--rivimetal-red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ct-detail dd {
  margin: 0;
  color: var(--contact-graphite);
  font-size: 15px;
  line-height: 1.65;
}

.ct-detail a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.ct-detail a:hover,
.ct-detail a:focus-visible {
  color: var(--rivimetal-red);
}

.ct-form-wrap {
  padding: clamp(30px, 4.4vw, 64px);
  background: #fff;
  border-top: 3px solid var(--rivimetal-red);
}

.ct-form-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--contact-line);
}

.ct-form-heading h3 {
  margin: 0;
  color: var(--contact-graphite);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.ct-form-heading span:last-child {
  max-width: 210px;
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.ct-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 26px;
}

.ct-field-wide {
  grid-column: 1 / -1;
}

.ct-field-label {
  margin-bottom: 9px;
  color: #414a4e;
  letter-spacing: .1em;
}

.ct-optional {
  color: #83898c;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form input[type="tel"],
.ct-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 0;
  color: var(--contact-graphite);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(24, 33, 38, .28);
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 180ms ease;
}

.ct-form textarea {
  min-height: 142px;
  resize: vertical;
}

.ct-form input:focus,
.ct-form textarea:focus {
  border-color: var(--rivimetal-red);
}

.ct-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: #515a5e;
  font-size: 13px;
  line-height: 1.65;
}

.ct-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--rivimetal-red);
}

.ct-consent a {
  color: var(--contact-graphite);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct-submit-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--contact-line);
}

.ct-submit,
.ct-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  color: #fff;
  background: var(--rivimetal-red);
  border: 1px solid var(--rivimetal-red);
  border-radius: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ct-submit:hover,
.ct-submit:focus-visible,
.ct-button:hover,
.ct-button:focus-visible {
  color: var(--rivimetal-red);
  background: transparent;
}

.ct-submit:disabled {
  cursor: wait;
  opacity: .58;
}

.ct-status {
  min-height: 24px;
  margin: 0;
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 1.55;
}

.ct-status[data-state="success"] { color: #25633c; }
.ct-status[data-state="error"] { color: var(--rivimetal-red); }

.ct-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ct-photo {
  position: relative;
  height: clamp(420px, 55vw, 760px);
  overflow: hidden;
  background: var(--contact-graphite);
}

.ct-photo img {
  object-position: center;
}

.ct-photo-caption {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(24px, 4vw, 60px);
  max-width: 410px;
  padding: 22px 26px;
  color: #fff;
  background: rgba(24, 33, 38, .88);
  border-left: 3px solid var(--rivimetal-red);
  backdrop-filter: blur(8px);
}

.ct-photo-caption span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ct-photo-caption strong {
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 500;
  line-height: 1.2;
}

.ct-rfq {
  color: #fff;
  background: var(--contact-graphite);
}

.ct-rfq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  min-height: 520px;
}

.ct-rfq-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(60px, 8vw, 120px) clamp(34px, 7vw, 110px) clamp(60px, 8vw, 120px) max(32px, calc((100vw - 1380px) / 2));
}

.ct-rfq-copy h2 {
  max-width: 720px;
  color: #fff;
}

.ct-rfq-copy p {
  max-width: 600px;
  margin: 0 0 34px;
  color: rgba(255,255,255,.68);
  font-size: 16px;
  line-height: 1.7;
}

.ct-rfq-image {
  min-height: 520px;
  overflow: hidden;
}

.ct-rfq-image img {
  object-position: center;
}

.ct-visit {
  padding: clamp(80px, 9vw, 138px) 0;
  background: var(--contact-warm-white);
}

.ct-visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  gap: clamp(46px, 7vw, 110px);
  align-items: center;
}

.ct-base-image {
  height: clamp(440px, 48vw, 680px);
  overflow: hidden;
}

.ct-base-image img {
  object-position: center;
}

.ct-visit-copy h2 {
  max-width: 500px;
}

.ct-address {
  margin: 38px 0 28px;
  padding: 20px 0;
  color: var(--contact-graphite);
  border-top: 1px solid var(--contact-line);
  border-bottom: 1px solid var(--contact-line);
  font-size: 15px;
  line-height: 1.65;
}

.ct-map {
  height: 250px;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--contact-line);
  background: #e6e4df;
}

.ct-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.65) contrast(.95);
}

@media (max-width: 1199px) {
  .ct-hero,
  .ct-hero-grid,
  .ct-hero-image { min-height: 570px; }
  .ct-contact-intro { position: static; }
}

@media (max-width: 991px) {
  .ct-shell { width: min(100% - 42px, 760px); }
  .ct-hero-grid { grid-template-columns: 1fr 1fr; }
  .ct-hero-copy { padding-left: 32px; }
  .ct-contact-grid,
  .ct-visit-grid { grid-template-columns: 1fr; }
  .ct-rfq-grid { grid-template-columns: 1fr 42%; }
  .ct-contact-intro > p { max-width: 680px; }
  .ct-base-image { height: 520px; }
}

@media (max-width: 767px) {
  .ct-shell { width: calc(100% - 40px); }
  .ct-hero-grid { grid-template-columns: 1fr; }
  .ct-hero,
  .ct-hero-grid { min-height: 0; }
  .ct-hero-copy {
    min-height: 420px;
    padding: 34px 20px 46px;
  }
  .ct-hero-body { padding-top: 70px; }
  .ct-hero-image { min-height: 390px; }
  .ct-hero h1 { font-size: clamp(54px, 17vw, 78px); }
  .ct-contact { padding: 72px 0; }
  .ct-contact-grid { gap: 44px; }
  .ct-contact-intro h2,
  .ct-visit-copy h2,
  .ct-rfq-copy h2 { font-size: clamp(38px, 11vw, 56px); }
  .ct-detail { grid-template-columns: 92px minmax(0, 1fr); }
  .ct-form-wrap { padding: 28px 20px; }
  .ct-form-heading { display: block; }
  .ct-form-heading span:last-child { display: block; max-width: none; margin-top: 12px; text-align: left; }
  .ct-form-grid { grid-template-columns: 1fr; gap: 26px; }
  .ct-field-wide { grid-column: auto; }
  .ct-submit-row { display: block; }
  .ct-submit { width: 100%; margin-bottom: 18px; }
  .ct-photo { height: 430px; }
  .ct-photo-caption { right: 20px; bottom: 20px; left: 20px; }
  .ct-rfq-grid { grid-template-columns: 1fr; }
  .ct-rfq-copy { padding: 72px 20px; }
  .ct-rfq-image { min-height: 390px; order: -1; }
  .ct-visit { padding: 72px 0; }
  .ct-base-image { height: 430px; }
  .ct-map { height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-submit,
  .ct-button,
  .ct-detail a { transition: none; }
}
