:root {
  --process-navy: #0b1d3a;
  --process-navy-soft: #132b4f;
  --process-gold: #745a27;
  --process-gold-line: #c49a4b;
  --process-cream: #faf7f2;
  --process-paper: #fffefa;
  --process-ink: #182033;
  --process-muted: #5f697b;
  --process-line: rgba(11, 29, 58, 0.13);
  --process-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --process-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --process-gutter: clamp(20px, 4vw, 56px);
  --process-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.rws-process-page {
  margin: 0;
  color: var(--process-ink);
  background: var(--process-paper);
  font-family: var(--process-sans);
  -webkit-font-smoothing: antialiased;
}

.rws-process-page a { color: inherit; }

.rws-process-wrap {
  width: min(var(--process-max), calc(100% - (2 * var(--process-gutter))));
  margin-inline: auto;
}

.rws-process-eyebrow {
  margin: 0 0 18px;
  color: var(--process-gold);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rws-process-hero {
  padding: clamp(142px, 15vw, 184px) 0 clamp(74px, 9vw, 112px);
  background:
    radial-gradient(circle at 82% 18%, rgba(196, 154, 75, 0.12), transparent 31rem),
    var(--process-cream);
}

.rws-process-hero__copy {
  max-width: 910px;
}

.rws-process-hero h1,
.rws-process-section h2,
.rws-process-closing h2 {
  margin: 0;
  color: var(--process-navy);
  font-family: var(--process-serif);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.rws-process-hero h1 {
  max-width: 17ch;
  font-size: clamp(3.2rem, 6.6vw, 5.45rem);
  line-height: 0.99;
}

.rws-process-hero__lede {
  max-width: 760px;
  margin: 30px 0 0;
  color: #3f4b5f;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}

.rws-process-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 76px);
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(11, 29, 58, 0.18);
}

.rws-process-map li {
  position: relative;
  min-height: 132px;
  padding: 24px clamp(22px, 3vw, 36px) 6px 0;
}

.rws-process-map li:not(:last-child)::after {
  position: absolute;
  top: 28px;
  right: 24px;
  color: var(--process-gold);
  content: "\2192";
  font-size: 1.25rem;
}

.rws-process-map small {
  display: block;
  margin-bottom: 7px;
  color: var(--process-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rws-process-map strong {
  display: block;
  max-width: 14ch;
  color: var(--process-navy);
  font-family: var(--process-serif);
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 600;
  line-height: 1.15;
}

.rws-process-section {
  padding: clamp(76px, 10vw, 124px) 0;
}

.rws-process-section--navy {
  color: #fff;
  background: var(--process-navy);
}

.rws-process-section h2,
.rws-process-closing h2 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 5vw, 4.15rem);
  line-height: 1.04;
}

.rws-process-section--navy h2 { color: #fff; }

.rws-process-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--process-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.rws-process-section--navy .rws-process-intro {
  color: rgba(255, 255, 255, 0.72);
}

.rws-system-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
}

.rws-system-list li {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.rws-system-list__number {
  display: block;
  margin-bottom: 22px;
  color: #d4af61;
  font-family: var(--process-serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.rws-system-list h3,
.rws-grace-list h3 {
  margin: 0 0 11px;
  font-family: var(--process-serif);
  font-size: clamp(1.55rem, 2.3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.14;
}

.rws-system-list h3 { color: #fff; }
.rws-system-list h3 {
  font-size: clamp(1.42rem, 1.9vw, 1.7rem);
  overflow-wrap: break-word;
}

.rws-system-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.66;
}

.rws-process-section--grace {
  background: var(--process-cream);
}

.rws-grace-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.rws-grace-list li { min-width: 0; }

.rws-grace-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 28px 24px 24px;
  color: var(--process-ink);
  background: var(--process-paper);
  border: 1px solid rgba(11, 29, 58, 0.11);
  border-top: 3px solid var(--process-gold-line);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(11, 29, 58, 0.05);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.rws-grace-card:hover {
  border-color: rgba(116, 90, 39, 0.48);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(11, 29, 58, 0.09);
}

.rws-grace-card__letter {
  display: block;
  margin-bottom: 20px;
  color: var(--process-gold);
  font-family: var(--process-serif);
  font-size: 3.1rem;
  font-weight: 600;
  line-height: 0.9;
}

.rws-grace-list h3 { color: var(--process-navy); }

.rws-grace-list p {
  margin: 0 0 22px;
  color: #4f5b6e;
  font-size: 0.96rem;
  line-height: 1.62;
}

.rws-grace-card__link {
  margin-top: auto;
  padding-top: 17px;
  color: var(--process-gold);
  border-top: 1px solid var(--process-line);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rws-process-closing {
  padding: clamp(76px, 10vw, 118px) 0;
  text-align: center;
  background: var(--process-paper);
}

.rws-process-closing h2 {
  max-width: 17ch;
  margin-inline: auto;
}

.rws-process-closing p:not(.rws-process-eyebrow) {
  max-width: 610px;
  margin: 22px auto 0;
  color: var(--process-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.rws-process-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.rws-process-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  color: #fff !important;
  background: var(--process-navy);
  border: 1px solid var(--process-navy);
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.rws-process-button--quiet {
  color: var(--process-navy) !important;
  background: transparent;
}

@media (max-width: 1040px) {
  .rws-system-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rws-grace-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rws-grace-list li { grid-column: span 2; }
  .rws-grace-list li:nth-child(4) { grid-column: 2 / span 2; }
}

@media (max-width: 720px) {
  .rws-process-hero { padding-top: 120px; }
  .rws-process-map { grid-template-columns: 1fr; }
  .rws-process-map li {
    min-height: 0;
    padding: 20px 0;
    border-bottom: 1px solid rgba(11, 29, 58, 0.12);
  }
  .rws-process-map li:not(:last-child)::after {
    top: auto;
    right: 4px;
    bottom: -13px;
    transform: rotate(90deg);
  }
  .rws-system-list { grid-template-columns: 1fr; }
  .rws-grace-list { grid-template-columns: 1fr; }
  .rws-grace-list li,
  .rws-grace-list li:nth-child(4) { grid-column: auto; }
  .rws-process-actions { align-items: stretch; flex-direction: column; }
  .rws-process-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rws-grace-card { transition: none; }
}
