/* Inner-page system and representative-page boundary correction. */
#main-header { position: relative !important; }

.ry-page-hero {
  position: relative;
  padding: clamp(86px, 9vw, 140px) 0;
  color: #f7f4ec;
  background: #081126;
}
.ry-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 84% 10%, rgba(8,122,91,.24), transparent 36%), linear-gradient(120deg, rgba(26,41,98,.2), transparent 54%);
}
.ry-page-hero .et_pb_row { position: relative; z-index: 1; }
.ry-page-hero h1 { max-width: 12ch; color: #fff; }
.ry-page-hero .ry-kicker { color: #d5cfa7; }
.ry-page-hero .ry-lead { color: #dfe6f5 !important; }
.ry-page-hero--split .et_pb_row { display: flex; align-items: center; gap: clamp(48px,7vw,110px); }
.ry-page-art .et_pb_image_wrap { display: block; overflow: hidden; border: 1px solid rgba(213,207,167,.26); border-radius: 34px; box-shadow: 0 36px 80px rgba(0,0,0,.36); }
.ry-page-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.ry-section-heading { max-width: 980px; }
.ry-section-heading h2 { max-width: 14ch; margin-bottom: 24px; }
.ry-section-heading .ry-copy { font-size: clamp(18px,1.4vw,23px); }

.ry-ledger { margin-top: 46px; border-top: 1px solid var(--ry-line); }
.ry-ledger-item { display: grid; grid-template-columns: 90px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--ry-line); }
.ry-ledger-item span { color: var(--ry-emerald-dark); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.ry-ledger-item h3 { margin-bottom: 10px; }
.ry-ledger-item p { color: var(--ry-muted); font-size: 16px; }

.ry-callout { padding: clamp(32px,4vw,58px); color: #fff; background: var(--ry-navy); border-radius: 34px; }
.ry-callout h2, .ry-callout h3 { color: #fff; }
.ry-callout p { color: #dbe2f0; }
.ry-callout .ry-kicker { color: var(--ry-gold-light); }

.ry-service-detail { padding: clamp(38px,5vw,72px) 0; border-top: 1px solid var(--ry-line); }
.ry-service-detail:first-child { border-top: 0; }
.ry-service-detail__grid { display: grid; grid-template-columns: minmax(240px,.75fr) minmax(0,1.25fr); gap: clamp(42px,7vw,110px); }
.ry-service-detail h2 { margin-bottom: 18px; }
.ry-service-detail blockquote { margin: 24px 0 0; padding: 0; color: var(--ry-emerald-dark); border: 0; font-family: "DM Serif Display",Georgia,serif; font-size: clamp(25px,2.4vw,36px); line-height: 1.25; }

@media (min-width:981px) {
  .ry-service-detail__grid { column-gap: clamp(42px,7vw,110px); row-gap: 0; align-items: stretch; }
  .ry-service-detail__grid > div:first-child { display: contents; }
  .ry-service-detail__grid > div:first-child > .ry-service-photo { grid-column: 1; grid-row: 1 / 5; height: 100%; margin: 0; }
  .ry-service-detail__grid > div:first-child > .ry-service-photo img { height: 100%; aspect-ratio: auto; }
  .ry-service-detail__grid > div:first-child > .ry-kicker,
  .ry-service-detail__grid > div:first-child > h2,
  .ry-service-detail__grid > div:first-child > blockquote,
  .ry-service-detail__grid > div:last-child { grid-column: 2; }
  .ry-service-detail__grid > div:first-child > .ry-kicker { grid-row: 1; }
  .ry-service-detail__grid > div:first-child > h2 { grid-row: 2; }
  .ry-service-detail__grid > div:first-child > blockquote { grid-row: 3; }
  .ry-service-detail__grid > div:last-child { grid-row: 4; }
}
.et_pb_text ul.ry-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 28px 0; padding: 0 !important; list-style: none !important; }
.et_pb_text ul.ry-checks > li { position: relative; padding-left: 26px; list-style: none; color: var(--ry-muted); font-size: 15px; }
.et_pb_text ul.ry-checks > li::before { content: ""; position: absolute; top: .7em; left: 0; width: 10px; height: 10px; background: var(--ry-gold); border-radius: 50%; }

.ry-principle-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 52px; }
.ry-principle { min-height: 300px; padding: clamp(28px,4vw,52px); background: rgba(255,255,255,.72); border: 1px solid var(--ry-line); border-radius: 24px; }
.ry-principle span { color: var(--ry-emerald-dark); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.ry-principle h3 { margin: 54px 0 15px; }
.ry-principle p { color: var(--ry-muted); font-size: 16px; }

.ry-story { max-width: 820px; }
.ry-story p { color: var(--ry-muted); font-size: clamp(18px,1.35vw,22px); line-height: 1.78; }
.ry-story p + p { margin-top: 22px; }
.ry-story .ry-pullquote { margin: 48px 0; color: var(--ry-navy); font-family: "DM Serif Display",Georgia,serif; font-size: clamp(34px,4vw,58px); line-height: 1.12; }

.ry-credential-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; background: var(--ry-line); border: 1px solid var(--ry-line); border-radius: 24px; }
.ry-credential { min-height: 220px; padding: clamp(28px,4vw,48px); background: var(--ry-paper); }
.ry-credential strong { display: block; color: var(--ry-navy); font-family: "DM Serif Display",Georgia,serif; font-size: clamp(25px,2.5vw,38px); font-weight: 400; }
.ry-credential p { margin-top: 14px; color: var(--ry-muted); font-size: 15px; }

.ry-accordion details { border-top: 1px solid var(--ry-line); }
.ry-accordion details:last-child { border-bottom: 1px solid var(--ry-line); }
.ry-accordion summary { position: relative; min-height: 74px; padding: 24px 48px 24px 0; color: var(--ry-navy); cursor: pointer; font-family: "DM Serif Display",Georgia,serif; font-size: clamp(22px,2vw,30px); list-style: none; }
.ry-accordion summary::-webkit-details-marker { display: none; }
.ry-accordion summary::after { content: "+"; position: absolute; top: 21px; right: 2px; color: var(--ry-emerald-dark); font-family: Manrope,sans-serif; font-size: 28px; }
.ry-accordion details[open] summary::after { content: "–"; }
.ry-accordion details > div { max-width: 760px; padding: 0 0 28px; color: var(--ry-muted); font-size: 16px; }

.ry-contact-grid { display: grid !important; grid-template-columns: .85fr 1.15fr; gap: clamp(42px,7vw,100px); }
.ry-contact-card { padding: clamp(28px,4vw,48px); color: #fff; background: var(--ry-navy); border-radius: 28px; }
.ry-contact-card h2, .ry-contact-card h3 { color: #fff; }
.ry-contact-card p, .ry-contact-card a { color: #dbe2f0; }
.ry-contact-card a { display: inline-block; min-height: 44px; padding: 9px 0; font-weight: 750; }
.ry-form label { display: block; margin-bottom: 8px; color: var(--ry-navy); font-size: 14px; font-weight: 800; }
.ry-form input, .ry-form textarea, .ry-form select { width: 100%; min-height: 52px; margin: 0 0 20px; padding: 14px 16px; color: var(--ry-ink); background: #fff; border: 1px solid rgba(16,28,66,.28); border-radius: 10px; font: inherit; }
.ry-form textarea { min-height: 160px; resize: vertical; }
.ry-form button { min-height: 54px; padding: 15px 24px; color: #fff; background: var(--ry-emerald); border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.ry-form button:hover { background: var(--ry-emerald-dark); }
.ry-form__status { margin-top: 18px; font-size: 14px; }
.ry-form__notice { margin-bottom: 22px; padding: 14px 16px; background: var(--ry-bone); border-left: 4px solid var(--ry-gold); font-size: 14px; }

@media (max-width:980px) {
  .ry-page-hero--split .et_pb_row { display: block; }
  .ry-page-hero--split .et_pb_column { width: 100% !important; margin-right: 0 !important; }
  .ry-page-art { margin-top: 48px; }
  .ry-service-detail__grid, .ry-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width:767px) {
  .ry-page-hero { padding: 76px 0 84px; }
  .ry-page-hero h1 { max-width: none; font-size: clamp(48px,14vw,66px); }
  .ry-page-art img { aspect-ratio: 1 / 1; }
  .ry-ledger-item { grid-template-columns: 1fr; gap: 10px; }
  .et_pb_text ul.ry-checks, .ry-principle-grid, .ry-credential-grid { grid-template-columns: 1fr; }
  .ry-principle { min-height: auto; }
  .ry-principle h3 { margin-top: 38px; }
}

