/* ========================================================================
   CONTACT
   A concise, human contact page with a quiet editorial opening and a
   deliberately focused form. Shared hero, ticker, and footer stay intact.
   ======================================================================== */

.ry-contact-page {
  --contact-red: #ff2626;
  --contact-line: rgba(255, 255, 255, .1);
  --contact-copy: rgba(255, 255, 255, .7);
  --contact-muted: rgba(255, 255, 255, .5);
  background: #040404;
}

.ry-contact-page #smooth-content { background: #040404; }

/* The source photo is bright and close-up, so the standard dissolve is
   extended to keep the handoff into the black page completely seamless. */
.ry-contact-page .ry-page-hero__bg {
  background-position: center 43%;
}

.ry-contact-page .ry-page-hero__scrim {
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, .45) 0%,
      rgba(0, 0, 0, .32) 30%,
      rgba(0, 0, 0, .6) 57%,
      rgba(0, 0, 0, .91) 79%,
      #000 100%),
    linear-gradient(90deg,
      rgba(0, 0, 0, .8) 0%,
      rgba(0, 0, 0, .28) 55%,
      rgba(0, 0, 0, .08) 100%);
}

.ry-contact-intro {
  position: relative;
  isolation: isolate;
  padding: clamp(76px, 8vw, 118px) 0 clamp(82px, 9vw, 130px);
  overflow: hidden;
}

.ry-contact-intro::before,
.ry-contact-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.ry-contact-intro::before {
  width: min(60vw, 820px);
  aspect-ratio: 1;
  right: -22vw;
  top: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 0, .065), transparent 68%);
}

.ry-contact-intro::after {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(255, 255, 255, .025) 7% 7.08%, transparent 7.08% 93%, rgba(255, 255, 255, .025) 93% 93.08%, transparent 93.08%),
    linear-gradient(180deg, #000 0%, transparent 12%, transparent 88%, rgba(255, 255, 255, .018) 100%);
}

.ry-contact-intro > .container { z-index: 2; }

.ry-contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: 'Syncopate', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--contact-red);
}

.ry-contact-kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--contact-red), transparent);
}

.ry-contact-intro h2,
.ry-contact-form-copy h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.045em;
  color: #fff;
}

.ry-contact-intro__opening {
  padding-bottom: clamp(50px, 6vw, 78px);
  border-bottom: 1px solid var(--contact-line);
}

.ry-contact-intro__lead {
  max-width: 970px;
}

.ry-contact-intro__lead > p {
  max-width: 780px;
  margin: 30px 0 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.84;
  color: var(--contact-copy);
}

.ry-contact-story-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 86px);
  margin-top: clamp(54px, 7vw, 88px);
}

.ry-contact-portrait {
  position: relative;
  width: 100%;
  aspect-ratio: .70;
  margin: 0;
  overflow: hidden;
  background: #040404;
}

.ry-contact-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(.70) brightness(.78) contrast(1.06);
}

.ry-contact-portrait::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      #040404 0%,
      rgba(4,4,4,.62) 10%,
      transparent 29%,
      transparent 82%,
      rgba(4,4,4,.76) 100%),
    linear-gradient(180deg,
      #040404 0%,
      transparent 15%,
      transparent 72%,
      #040404 100%);
}

.ry-contact-story {
  display: grid;
  grid-template-columns: 1px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  max-width: 910px;
  margin: 0;
}

.ry-contact-story__line {
  position: relative;
  background: linear-gradient(180deg, var(--contact-red), rgba(255, 255, 255, .12) 32%, rgba(255, 255, 255, .04));
}

.ry-contact-story__line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--contact-red);
  background: #050505;
  transform: translate(-50%, -2px);
  box-shadow: 0 0 24px rgba(255, 0, 0, .5);
}

.ry-contact-story__content p {
  margin: 0 0 25px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.84;
  color: var(--contact-copy);
}

.ry-contact-story__content p:last-child { margin-bottom: 0; }

.ry-contact-story strong,
.ry-contact-intro__lead strong { color: rgba(255, 255, 255, .94); }

.ry-contact-inline-quote {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 38, 38, .72);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ry-contact-notices {
  display: grid;
  gap: 18px;
  margin-top: clamp(56px, 7vw, 86px);
}

.ry-contact-notice {
  position: relative;
  border: 1px solid var(--contact-line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .014));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 28px 55px -44px rgba(0, 0, 0, .95);
}

.ry-contact-notice p {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255, 255, 255, .66);
}

.ry-contact-notice p + p { margin-top: 16px; }
.ry-contact-notice strong { color: #fff; }

.ry-contact-notice a {
  color: #fff;
  text-decoration-color: var(--contact-red);
  text-underline-offset: 4px;
}

.ry-contact-notice--crisis {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 28px 30px;
  border-color: rgba(255, 38, 38, .26);
  background: linear-gradient(120deg, rgba(255, 38, 38, .09), rgba(255, 255, 255, .02) 58%, rgba(255, 255, 255, .012));
}

.ry-contact-notice__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 38, 38, .55);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(255, 0, 0, .12);
}

.ry-contact-notice--boundary {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 34px;
}

.ry-contact-notice__rule {
  border-radius: 999px;
  background: linear-gradient(180deg, var(--contact-red), rgba(255, 38, 38, .16));
}

/* Form stage */
.ry-contact-form-section {
  position: relative;
  isolation: isolate;
  padding: clamp(88px, 10vw, 144px) 0;
  overflow: hidden;
  background: #020202;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.ry-contact-form-section__texture {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .57) 60%, rgba(0, 0, 0, .78)),
    linear-gradient(180deg, #020202 0%, transparent 18%, transparent 78%, #020202 100%),
    url('../../images/webp/resource-hero-bg-1.webp');
  background-position: center;
  background-size: cover;
  opacity: .72;
}

.ry-contact-form-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 42%, rgba(255, 0, 0, .075), transparent 28%),
    linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, .025) 50%, transparent 50.1%);
}

.ry-contact-form-copy {
  position: sticky;
  top: 130px;
  max-width: 430px;
  padding-top: 12px;
}

.ry-contact-eyebrow {
  margin-bottom: 15px;
  font-family: 'Syncopate', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .48);
}

.ry-contact-form-copy h2 { font-size: clamp(34px, 4vw, 54px); }

.ry-contact-form-copy > p {
  max-width: 39ch;
  margin: 28px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255, 255, 255, .62);
}

.ry-contact-form-copy__signal {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 30px;
  margin-top: 44px;
  opacity: .58;
}

.ry-contact-form-copy__signal span {
  width: 2px;
  border-radius: 2px;
  background: var(--contact-red);
  box-shadow: 0 0 11px rgba(255, 0, 0, .35);
}

.ry-contact-form-copy__signal span:nth-child(1) { height: 8px; }
.ry-contact-form-copy__signal span:nth-child(2) { height: 17px; }
.ry-contact-form-copy__signal span:nth-child(3) { height: 27px; }
.ry-contact-form-copy__signal span:nth-child(4) { height: 14px; }
.ry-contact-form-copy__signal span:nth-child(5) { height: 6px; }

.ry-contact-form-card {
  position: relative;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(18, 18, 18, .95), rgba(5, 5, 5, .9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 40px 90px -48px rgba(0, 0, 0, .95);
}

.ry-contact-form-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 42px;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--contact-red), transparent);
  box-shadow: 0 0 16px rgba(255, 0, 0, .45);
}

.ry-contact-form-card input,
.ry-contact-form-card select,
.ry-contact-form-card textarea {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  outline: 0;
  background: rgba(0, 0, 0, .52);
  color: rgba(255, 255, 255, .9);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.ry-contact-form-card input,
.ry-contact-form-card select { height: 56px; padding: 0 17px; }
.ry-contact-form-card textarea { min-height: 178px; padding: 17px; resize: vertical; }

.ry-contact-form-card input::placeholder,
.ry-contact-form-card textarea::placeholder { color: rgba(255, 255, 255, .42); opacity: 1; }

.ry-contact-form-card input:focus,
.ry-contact-form-card select:focus,
.ry-contact-form-card textarea:focus {
  border-color: rgba(255, 38, 38, .68);
  background: rgba(0, 0, 0, .72);
  box-shadow: 0 0 0 3px rgba(255, 38, 38, .08), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.ry-contact-select-wrap { position: relative; }
.ry-contact-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 19px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(255, 255, 255, .6);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.ry-contact-form-card select {
  padding-right: 45px;
  appearance: none;
  cursor: pointer;
}

.ry-contact-form-card select option { background: #0b0b0b; color: #fff; }

#contact-us-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 54px;
  margin-top: 7px;
  padding: 0 30px;
  border: 1px solid var(--contact-red);
  border-radius: 999px;
  background: var(--contact-red);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 36px -18px rgba(255, 0, 0, .72);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

#contact-us-button:hover {
  transform: translateY(-2px);
  background: #ff3a3a;
  box-shadow: 0 20px 42px -18px rgba(255, 0, 0, .84);
}

#contact-us-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

#contact-us-button:disabled { opacity: .58; cursor: wait; transform: none; }

#form-status.show-message { display: block !important; }

.ry-contact-form-card .form-message {
  padding: 26px;
  border: 1px solid rgba(255, 38, 38, .34);
  border-radius: 12px;
  background: rgba(255, 38, 38, .075);
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .ry-contact-story-stage {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ry-contact-intro__lead { max-width: 760px; }
  .ry-contact-portrait {
    width: min(100%, 430px);
    margin: 38px auto 0;
    aspect-ratio: .74;
  }
  .ry-contact-form-copy { position: static; max-width: 680px; padding-top: 0; }
  .ry-contact-form-copy > p { max-width: 54ch; }
  .ry-contact-form-copy__signal { margin-top: 28px; }
}

@media (max-width: 767.98px) {
  .ry-contact-page .ry-page-hero__bg { background-position: 57% center; }
  .ry-contact-page .ry-page-hero__scrim {
    background:
      linear-gradient(180deg, rgba(0,0,0,.43) 0%, rgba(0,0,0,.38) 32%, rgba(0,0,0,.74) 62%, #000 100%),
      linear-gradient(90deg, rgba(0,0,0,.64), rgba(0,0,0,.18));
  }
  .ry-contact-intro { padding-top: 66px; }
  .ry-contact-intro h2 { font-size: clamp(31px, 9vw, 43px); }
  .ry-contact-intro__lead > p { margin-top: 24px; font-size: 16px; line-height: 1.76; }
  .ry-contact-story { gap: 22px; margin-left: 4px; }
  .ry-contact-story__content p { font-size: 15px; line-height: 1.76; }
  .ry-contact-notice--crisis { grid-template-columns: 1fr; gap: 16px; padding: 24px 22px; }
  .ry-contact-notice--boundary { gap: 20px; padding: 25px 22px; }
  .ry-contact-form-section { padding: 76px 0 86px; }
  .ry-contact-form-copy h2 { font-size: clamp(32px, 9.2vw, 43px); }
  .ry-contact-form-card { border-radius: 16px; }
  #contact-us-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #contact-us-button { transition: none; }
}
