:root {
  --ink: #102033;
  --muted: #667386;
  --blue: #012c5c;
  --blue-soft: #e9f0f8;
  --line: #d9e3ef;
  --paper: #fbfaf7;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(1, 44, 92, 0.14);
  --radius: 24px;
  --header-height: clamp(64px, 12vh, 110px);
  --viewport-after-header: calc(100dvh - var(--header-height));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 52%, #ffffff 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 227, 239, 0.8);
}

.brand img {
  width: auto;
  max-height: calc(var(--header-height) - 12px);
}
.main-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 2rem); font-size: 0.95rem; font-weight: 600; }
.main-nav a { color: #324155; }
.main-nav a:hover { color: var(--blue); }
.nav-cta { padding: 0.65rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

.viewport-after-header {
  height: var(--viewport-after-header);
  padding: 0;
  overflow: hidden;
}
.center-y { display: grid; align-items: center;}
.section-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.hero > * {min-width: 0;}
.hero-text { max-width: 700px; min-width: 0; justify-self: start; }
.eyebrow { margin: 0 0 0.8rem; color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: "Libre Baskerville", Georgia, serif; }
h1 { max-width: 760px; font-size: clamp(2.6rem, 7vw, 5.9rem); letter-spacing: -0.06em; color: var(--blue); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.04em; color: var(--blue); }
h3 { font-size: 1.15rem; color: #17263a; }
.lead { max-width: 640px; margin: 1.3rem 0 0; font-size: clamp(1.1rem, 2vw, 1.35rem); color: #415066; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.85rem 1.25rem; border-radius: 999px; font-weight: 800; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--blue); color: var(--white); box-shadow: 0 14px 36px rgba(1, 44, 92, 0.22); }
.button.secondary { background: var(--white); color: var(--blue); border: 1px solid var(--line); }

.hero-card {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vh, 2rem) clamp(0.6rem, 1.5vw, 1.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}
.hero-card img {
  width: 100%;
  height: 100%;
  max-height: calc(var(--viewport-after-header) - 4rem);
  object-fit: contain;
  margin: 0;
}
.hero-card p { margin: 0; color: #4a5a70; font-size: 1.05rem; }

.narrow { max-width: 880px; padding: 1rem 0 4rem; }
.intro p { margin: 0; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.55; color: #263852; }
.section-heading { max-width: 760px; margin-bottom: 2rem; }
.cards { display: grid; gap: 1rem; padding-bottom: clamp(4rem, 8vw, 7rem); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 12px 36px rgba(16, 32, 51, 0.06); }
.card p, .body-copy p, .steps p, .contact-panel p { color: var(--muted); }
.card p { margin: 0.7rem 0 0; }

.process-section { background: linear-gradient(135deg, var(--blue) 0%, #0b3f79 100%); color: var(--white); padding: clamp(4rem, 8vw, 6rem) 0; }
.process-section .eyebrow, .process-section h2 { color: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps article { padding: 1.4rem; border: 1px solid rgba(255,255,255,0.18); border-radius: 20px; background: rgba(255,255,255,0.08); }
.steps span { display: inline-flex; margin-bottom: 1rem; font-weight: 900; color: #c8d8ea; }
.steps p { color: #dce7f4; margin-bottom: 0; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.body-copy p:first-child { margin-top: 0; }
.body-copy p { font-size: 1.05rem; }
.contact { padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact-panel { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius); background: var(--blue-soft); border: 1px solid var(--line); }
.contact-panel::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 320px; height: 320px; border: 34px solid rgba(1,44,92,0.08); border-radius: 50%; }
.contact-panel p { max-width: 620px; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 3.5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }

@media (max-width: 820px) {
  .site-header { align-items: center; }
  .brand img { max-height: calc(var(--header-height) - 12px); }
  .main-nav { flex-wrap: wrap; justify-content: flex-end; gap: 0.7rem 1rem; font-size: 0.88rem; }
  .hero, .split { grid-template-columns: 1fr; }
  .viewport-after-header { min-height: var(--viewport-after-header); height: auto; overflow: visible;}
  .cards.three, .steps { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header {
  position: static;
  height: auto;
  min-height: var(--header-height);
  max-height: var(--header-height);
  flex-direction: column;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  }
  .main-nav { justify-content: flex-start; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .brand {
    display: none;
  }
}

.ruler {
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6px 6px;
}

.ruler-end {
  flex: 0 0 auto;
  height: clamp(24px, 4vw, 48px);
  width: auto;
}

.ruler-line {
  flex: 1 1 auto;
  min-width: 0;
  height: clamp(24px, 4vw, 48px);
  background-image: url("assets/SB-logo-ruler-BGtr-line.png");
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
}
