:root {
  --rid-brand: #237eff;
  --rid-blue: #0542ad;
  --rid-deep: #062f79;
  --rid-graphite: #333333;
  --rid-muted: #667282;
  --rid-cyan: #36aeca;
  --rid-green: #28b77c;
  --rid-line: #d9e5f2;
  --rid-background: #f1f7ff;
  --rid-paper: #f8fbff;
  --rid-soft: #edf7f9;
  --white: #ffffff;
  --danger: #b42318;
  --shadow: 0 18px 38px rgba(5, 66, 173, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--rid-graphite);
  font-family:
    Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--rid-brand);
  color: var(--white);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: var(--white);
  padding: 0.75rem 1rem;
  color: var(--rid-blue);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, 820px);
}

.center {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rid-line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-copy span,
.brand-copy small {
  display: block;
}

.brand-copy span {
  color: var(--rid-graphite);
  font-family: Arkhip, Montserrat, Inter, sans-serif;
  font-weight: 900;
}

.brand-copy small {
  color: var(--rid-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  color: var(--rid-graphite);
  font-size: 0.9rem;
  font-weight: 750;
}

.main-nav a:hover,
.site-footer a:hover,
.legal-content a:hover,
.checkbox-label a:hover {
  color: var(--rid-brand);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.2;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-primary {
  background: var(--rid-blue);
  color: var(--white);
  box-shadow: var(--shadow);
}

.button-primary:hover {
  background: var(--rid-deep);
}

.button-secondary {
  border-color: var(--rid-line);
  background: var(--white);
  color: var(--rid-blue);
}

.button-secondary:hover {
  border-color: var(--rid-brand);
}

.button-light {
  background: var(--white);
  color: var(--rid-blue);
}

.hero,
.section {
  padding-block: 5rem;
}

.section-white {
  background: var(--white);
}

.section-muted {
  background: var(--rid-background);
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.hero-grid,
.request-grid,
.integrator-grid,
.formats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.15rem;
  border-radius: 0.45rem;
  background: var(--rid-soft);
  padding: 0.35rem 0.7rem;
  color: var(--rid-blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Arkhip, Montserrat, Inter, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 1.4rem;
  font-size: 2.75rem;
  line-height: 1.08;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.1rem;
  line-height: 1.14;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-lead,
.lead {
  color: var(--rid-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 2rem;
  border-left: 4px solid var(--rid-green);
  padding-left: 1.25rem;
  font-weight: 750;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 2rem;
}

.stats-grid div,
.model-card,
.service-card,
.case-card,
.contact-card,
.request-form,
.deliverable-card,
.problem-card,
.integrator-list article,
.formats-grid article,
.principles-grid article,
.image-panel {
  border: 1px solid var(--rid-line);
  border-radius: 0.5rem;
  background: var(--rid-paper);
}

.stats-grid div {
  min-height: 122px;
  padding: 1rem;
}

.stats-grid strong {
  display: block;
  color: var(--rid-brand);
  font-size: 1rem;
  line-height: 1.35;
}

.stats-grid span {
  display: block;
  margin-top: 0.45rem;
  color: var(--rid-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual > img {
  width: 100%;
  height: 520px;
  border: 1px solid var(--rid-line);
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.model-card {
  position: absolute;
  left: -1.25rem;
  right: 1.25rem;
  bottom: 0;
  overflow: hidden;
  background: rgba(248, 251, 255, 0.96);
  box-shadow: var(--shadow);
}

.model-card-head {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  background: var(--rid-blue);
  padding-inline: 1.1rem;
  color: var(--white);
  font-weight: 850;
}

.model-card-head strong {
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

.model-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  padding: 1rem;
}

.model-step {
  display: grid;
  gap: 0.65rem;
  border: 1px solid var(--rid-line);
  border-radius: 0.5rem;
  background: var(--white);
  padding: 0.85rem;
}

.model-step span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--rid-soft);
  color: var(--rid-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.model-step p {
  margin: 0;
  color: var(--rid-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.section-intro {
  max-width: 800px;
  margin-bottom: 2.75rem;
}

.section-intro-split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 2rem;
}

.section-intro p {
  color: var(--rid-muted);
  line-height: 1.75;
}

.problem-grid,
.service-grid,
.case-grid,
.formats-grid,
.principles-grid,
.deliverable-grid,
.integrator-list {
  display: grid;
  gap: 1rem;
}

.problem-grid,
.service-grid,
.deliverable-grid {
  grid-template-columns: repeat(3, 1fr);
}

.case-grid {
  grid-template-columns: repeat(3, 1fr);
}

.formats-grid,
.principles-grid,
.integrator-list {
  grid-template-columns: repeat(2, 1fr);
}

.problem-card {
  position: relative;
  min-height: 132px;
  background: var(--white);
  padding: 1.15rem 1.15rem 1.15rem 2.4rem;
  font-weight: 760;
  line-height: 1.55;
  box-shadow: 0 8px 22px rgba(51, 51, 51, 0.05);
}

.problem-card::before {
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 4px;
  height: 36px;
  border-radius: 999px;
  background: var(--rid-cyan);
  content: "";
}

.integrator-grid {
  align-items: start;
}

.integrator-list article {
  background: var(--white);
  padding: 1.2rem;
}

.integrator-list p,
.deliverable-card p,
.formats-grid p,
.principles-grid p {
  margin-bottom: 0;
  color: var(--rid-muted);
  line-height: 1.65;
}

.image-panel {
  overflow: hidden;
  margin: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.image-panel figcaption {
  border-top: 1px solid var(--rid-line);
  padding: 1.15rem;
  color: var(--rid-graphite);
  font-weight: 750;
  line-height: 1.6;
}

.image-panel-compact img {
  aspect-ratio: 1 / 1;
}

.deliverable-card {
  min-height: 180px;
  padding: 1.25rem;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(5, 66, 173, 0.06);
}

.deliverable-card h3::before {
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--rid-green);
  content: "";
}

.service-card,
.case-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.35rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-number,
.case-card span,
.formats-grid span {
  width: fit-content;
  margin-bottom: 1rem;
  border-radius: 0.4rem;
  background: var(--rid-soft);
  padding: 0.35rem 0.65rem;
  color: var(--rid-blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.service-card p,
.case-card p {
  color: var(--rid-muted);
  line-height: 1.68;
}

.result {
  margin-top: auto;
  border-top: 1px solid var(--rid-line);
  padding-top: 1rem;
  color: var(--rid-graphite) !important;
  font-weight: 700;
}

.methodology-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.methodology-timeline article {
  position: relative;
  min-height: 270px;
  border: 1px solid var(--rid-line);
  border-radius: 0.5rem;
  background: var(--white);
  padding: 1.4rem;
}

.methodology-timeline span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--rid-brand);
  border-radius: 999px;
  color: var(--rid-blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.methodology-timeline h3 {
  margin-top: 1.25rem;
}

.methodology-timeline p {
  color: var(--rid-muted);
  line-height: 1.65;
}

.methodology-timeline strong {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  color: var(--rid-blue);
  font-size: 0.92rem;
}

.formats-layout {
  align-items: start;
}

.formats-grid article {
  background: var(--rid-paper);
  padding: 1.2rem;
}

.formats-grid h3 {
  margin-bottom: 0.55rem;
}

.principles-grid article {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--rid-paper);
  padding: 1.2rem;
}

.principles-grid span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--rid-green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.principles-grid h3 {
  margin-bottom: 0.45rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border-radius: 0.5rem;
  background: var(--rid-blue);
  padding: 2.35rem;
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-band p {
  max-width: 760px;
  margin-bottom: 0;
  color: #e8f2ff;
  line-height: 1.75;
}

.request-grid {
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1.4rem;
}

.contact-card p {
  margin: 0;
  font-weight: 900;
}

.contact-card span {
  color: var(--rid-muted);
  line-height: 1.55;
}

.contact-card a {
  color: var(--rid-blue);
  font-weight: 800;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 850;
}

.field label span {
  color: var(--rid-blue);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--rid-line);
  border-radius: 0.5rem;
  background: var(--white);
  padding: 0.75rem 0.9rem;
  color: var(--rid-graphite);
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rid-brand);
  box-shadow: 0 0 0 3px rgba(35, 126, 255, 0.16);
}

.form-wide {
  grid-column: 1 / -1;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--rid-muted);
  line-height: 1.6;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.25rem;
}

.checkbox-label a {
  color: var(--rid-blue);
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.field-error {
  margin: 0.45rem 0 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 750;
}

.field-note,
.form-alert {
  margin: 0.45rem 0 0;
  color: var(--rid-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-alert {
  border-left: 4px solid var(--danger);
  padding-left: 0.85rem;
  color: var(--rid-graphite);
  font-weight: 750;
}

.site-footer {
  background: var(--rid-deep);
  color: #dcecff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-title {
  margin: 0;
  color: var(--white);
  font-family: Arkhip, Montserrat, Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
}

.footer-text {
  max-width: 480px;
  line-height: 1.7;
}

.site-footer address,
.site-footer nav {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  font-style: normal;
}

.footer-heading {
  margin-bottom: 0.25rem;
  color: var(--white);
  font-weight: 900;
}

.legal-page h1,
.thanks-page h1 {
  font-size: 2.4rem;
}

.legal-content {
  margin: 2rem 0;
  color: var(--rid-muted);
  line-height: 1.8;
}

.legal-content h2 {
  margin-top: 2rem;
  color: var(--rid-graphite);
  font-size: 1.25rem;
}

.legal-content a {
  color: var(--rid-blue);
  font-weight: 800;
}

.thanks-page {
  min-height: 58vh;
  background: var(--rid-background);
  padding-block: 5rem;
}

.thanks-page p:not(.eyebrow) {
  color: var(--rid-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.diagnostic-page h1 {
  font-size: 2.4rem;
}

.diagnostic-form {
  grid-template-columns: repeat(2, 1fr);
}

.diagnostic-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border: 1px solid var(--rid-line);
  border-radius: 0.5rem;
  padding: 1.2rem;
}

.diagnostic-section legend {
  padding-inline: 0.45rem;
  color: var(--rid-blue);
  font-weight: 900;
}

.diagnostic-warning,
.diagnostic-message {
  border: 1px solid var(--rid-line);
  border-left: 4px solid var(--rid-green);
  border-radius: 0.5rem;
  background: var(--rid-paper);
  padding: 1rem;
}

.diagnostic-warning p,
.diagnostic-message p {
  margin: 0.5rem 0 0;
  color: var(--rid-muted);
  line-height: 1.65;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.diagnostic-checkbox {
  border: 1px solid var(--rid-line);
  border-radius: 0.5rem;
  background: var(--white);
  padding: 0.7rem;
}

@media (min-width: 1180px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.65rem;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .request-grid,
  .integrator-grid,
  .formats-layout,
  .section-intro-split,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .problem-grid,
  .service-grid,
  .deliverable-grid,
  .case-grid,
  .methodology-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .container,
  .narrow {
    width: min(100% - 1.25rem, 1180px);
  }

  .hero,
  .section {
    padding-block: 3.5rem;
  }

  h1 {
    font-size: 2.15rem;
  }

  h2,
  .legal-page h1,
  .thanks-page h1 {
    font-size: 1.85rem;
  }

  .brand-copy {
    display: none;
  }

  .header-cta {
    padding-inline: 0.85rem;
    font-size: 0.86rem;
  }

  .stats-grid,
  .problem-grid,
  .service-grid,
  .deliverable-grid,
  .case-grid,
  .formats-grid,
  .principles-grid,
  .integrator-list,
  .methodology-timeline,
  .request-form,
  .diagnostic-section,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-visual > img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .model-card {
    position: static;
    margin-top: 1rem;
  }

  .model-list {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .request-form .button,
  .form-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
